[Plex] Update to 0.9.9.13.525 fails no matter what I try

Status
Not open for further replies.

loki_racer

Dabbler
Joined
Jan 2, 2014
Messages
23
I recently upgraded FreeNAS to 9.2.1.8-RELEASE-x64. Prior to the upgrade, I had Plex 0.9.9.12.504 installed.

After the FreeNAS upgrade, Plex is listed as having an update. When I try to update Plex to 0.9.9.13.525 it seems to die with this error:

Code:
Oct 23 15:36:55 freenas manage.py: [middleware.exceptions:38] [MiddlewareError: Failed to update plugin]


I found a number of people discussing this issue, and even a bug report about it: https://bugs.freenas.org/issues/3757

  • I ssh'd in to the jail and emptied tmp/ and .plugins/
  • Restarted FreeNAS
  • Turn off plugin
  • Turn off jail
  • Update Plex
And then I get the error I posted above. It appears that the Plex database may be large enough that the upgrade never finishes. I left it running the first time for 48 hours and it never finished. Now when I run the update, it throws that error after about 5 minutes.

The box is no slouch. 32GB ram, AMD A4-5300, 16TB all 4TB 7200 NAS level drives.

Is the recommended action to uninstall Plex and reinstall?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
No, the update will eventually finish. The problem is that for some people that means staying down for more than a day or two. The 5 minutes is because that's the timeout last I checked.

If you turned the plugin off, then did the update and didn't do anything that interferes with the update process (reboot, trying to start the plugin, etc.) it *should* eventually finish.
 

loki_racer

Dabbler
Joined
Jan 2, 2014
Messages
23
Let's just say "should eventually finish" isn't happening. What would be the next plan of attack? I don't think it would be too painful to just kill the plugin and reinstall, but I wanted to make sure I couldn't submit some type of bug report or logs to help out trying to nail down the issue.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
I don't do Plex in a plugin. But if I were you I think I'd kill the plugin and reinstall.

Just remember that in the future the upgrades *should* work and my advice would be to start an upgrade before bed and let that biznatch run all night. ;)

The issue for most people is that their database consists of 100's of thousands of files. The update process copies them out of the plugin jail, then back into the new jail after the "upgrade". But moving 100k+ files takes a VERY long time. It's not high throughput but is extremely I/O intensive. So you hit the 5 minute timeout where it basically makes you think the upgrade has failed, but the background processes are still working and it does finish (at least, it's supposed to). Unless you have a smoking gun that validates this isn't true I wouldn't worry too much about a bug ticket and just do a reinstall. There are steps in the forum on how you can upgrade the jail yourself in like 2 minutes. The only drawback is that the WebGUI will still show the old version, but you will in fact have the latest version installed.
 
Joined
Mar 16, 2016
Messages
6
Hi
Often I get as a result the pressure of the "Update" button ("Aggiorna" in Italian), in the installed plugins section, obtain this irritating message: "manage.py: [middleware.exceptions: 37] [MiddlewareError: Failed to update plugins]" like described here as for the error number mismatch 38 instead of 37.
I tried to googoling several times in search for a solution, but no one is avail.
I tried reinstalling the Plex PlugIn and Transmission in different Jails and then to apply updates, sometimes it works and sometimes not.
The situation is almost unbearable.
Has anyone had experience with the string above, the middleware error, and if you somehow resolved?
Thanks for your attention
 

Attachments

  • Failed-to-update-plugin.gif
    Failed-to-update-plugin.gif
    182.7 KB · Views: 350
Status
Not open for further replies.
Top