Project

General

Profile

Bug #7689

Plex update mecanism still very inefficient

Added by Magnus Magnusman over 6 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
Joshua Ruehlig
Category:
Middleware
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

When plex updates it process the whole database which is created during media scan.
For small collection this is not a huge delay but for average or large collection the update process can the better part of a day.

The longer this process takes the greater the risk it fails or something breaks in the update.

The database needs to be excluded from the update process and similar to the script update methods focus in on updating the plugin only.
The present downside of script updating is that it doesn't show as updated in freenas.

Exclusion of the database from the update process would reduce update times from hours to mere minutes.

Since plex and plexpass are now one a plex updater script that runs on update seems a more efficient method rather then the present one.

Most of the works already been done in the forums for this already it would seem and is presently work.

History

#1 Updated by Magnus Magnusman over 6 years ago

This gentlemen came up with one that does the job.
https://github.com/mstinaff/PMS_Updater

#2 Updated by Joshua Ruehlig over 6 years ago

  • Status changed from Unscreened to Resolved

I fixed this already. With the 0.9.11.7.803 update I move the datadirectory (/usr/pbi/plexmediaserver-amd64/plexdata) to /var/db/plexdata.
See https://github.com/josh4trunks/freenas-plugins/commit/4dfe95c00266bcd0976898cc4f8d8559ea920d7a

If you install, or update to version 0.9.11.7.803 any future updates won't include the data-directory.

#3 Updated by Magnus Magnusman over 6 years ago

Damn fixed it before i put it up now that my kind of programing ;)

Nice work !!

With the database moved updating plex is going to be a trivial couple of minutes with little risk of failure.

#4 Updated by Joshua Ruehlig over 6 years ago

Magnus Magnusman wrote:

Damn fixed it before i put it up now that my kind of programing ;)

Nice work !!

With the database moved updating plex is going to be a trivial couple of minutes with little risk of failure.

Yup, guess it was pretty good timing =]

Yeah, that's what I'm hoping. The entire /usr/pbi/plexmediaserver-amd64 directory still needs to be worked with but it should be alot smaller now

#5 Updated by Magnus Magnusman over 6 years ago

It would seem the changes where only partially successful.

Warnings that something went wrong with the update and to update manually showup in sever settings and the web no longer updates.

Not sure if its the sheer time that this update takes or something in the update itself that's causing this.

#6 Updated by Joshua Ruehlig over 6 years ago

Magnus Magnusman wrote:

It would seem the changes where only partially successful.

Warnings that something went wrong with the update and to update manually showup in sever settings and the web no longer updates.

Not sure if its the sheer time that this update takes or something in the update itself that's causing this.

My fix doesn't have any benefit going from <=0.9.11.4.739 to 0.9.11.7.803. Only for future updates.

Not sure what is causing your issue, I don't know Plex very well. But checking its log and posting the output on their forum may be your best bet.

#7 Updated by Dru Lavigne almost 4 years ago

  • Target version set to Master - FreeNAS Nightlies
  • Seen in changed from to Unspecified

Also available in: Atom PDF