YuriyGuts / syno-plex-update

Automatically check for Plex Media Server updates on Synology NAS and install them. Compatible with DSM 6 and DSM 7.
BSD 3-Clause "New" or "Revised" License
46 stars 2 forks source link

Problems successfully executing script #6

Open ronnyek opened 2 years ago

ronnyek commented 2 years ago

I'm setting this up for the first time, and I believe I got it setup... but the first time I run the update script manually, I get the following error message. My DSM version is 7.0.1-42218

Unable to install "/tmp/syno-plex-update/PlexMediaServer-1.25.3.5409-f11334058-x86_64_DSM7.spk". Unable to perform this operation, possibly because the network connection is unstable or the system is busy. Please try again later.

My synology has access to a ~600mb/sec internet connection so I would be very surprised if there were actually any network connectivity problems.

YuriyGuts commented 2 years ago

Based on a quick forum search, it looks like Unable to perform this operation, possibly because the network connection is unstable or the system is busy is a generic error message that shows up in many DSM applications.

My best guess is the OS might have been holding some kind of a lock while the script was running (maybe an internal housekeeping job of some kind). One troubleshooting direction I would suggest is to trigger the script manually or to pick a different time for the scheduled task.

Did the error occur once or does it repeat after every execution of the script?

hobbesjaap commented 2 years ago

Did you manage to resolve this issue? I've been getting the same error on my Synology (DS720+ on DSM7). Doesn't matter what time of day I run the script, it refuses to update Plex.

I've checked the /tmp/syno-plex-update/ folder and the file is there. It's just not triggering an installation for some reason.

hobbesjaap commented 2 years ago

Further to this, the issue might be that I have two shared folders:

volume1/Plex/

volume1/PlexMediaServer/

One was created by Plex on DSM6, one was created by Plex on DSM7

I'm just not 100% sure I can safely delete volume1/Plex (the old folder)

Since the script checks for both, could I be leading it down the wrong path if I have both folders?

YuriyGuts commented 2 years ago

@hobbesjaap The script makes its decisions based on the DSM version, so if there are any leftover shared folders, it shouldn't matter to the script itself. The package installer, however, might be expecting a certain shared folder state and failing because it's not sure how to proceed. My NAS had also been running DSM6 in the past and got upgraded to DSM7, though I don't have the old volume1/Plex folder anymore. I think I followed these instructions when I upgraded mine.

My troubleshooting advice would be to try installing the downloaded package manually (via uploading the .spk file on the DSM UI). If that fails, then the underlying cause may have something to do with an unfinished Plex version migration, so the resolution would be outside the realm of an auto-update script.

hobbesjaap commented 2 years ago

Hi @YuriyGuts thanks for getting in touch!

I've removed the Plex folder, tried running the script again and got the same result. I did a manual update and that installed without any problem. So there's something else going on, but I haven't yet figured out what...

YuriyGuts commented 2 years ago

@hobbesjaap Thanks for the update 👍 Just to collect some more details:

It would be interesting to watch the logs for a while to check if the manual update has "unstuck" things and future updates install correctly.