Automatic update always fails

Every time I’ve tried using the automatic update it fails.

The server logs show that your Plex Media Server is checking for updates and finding available updates (3 of them, in this case):

Dec 26, 2017 10:12:17.425 [3464] DEBUG - HTTP requesting GET https://plex.tv/updater/products/1/check.xml?build=windows-i386&channel=16&distribution=english&version=1.9.6.4429-23901a099
...
Dec 26, 2017 10:12:18.676 [3464] DEBUG - HTTP 200 response from GET https://plex.tv/updater/products/1/check.xml?build=windows-i386&channel=16&distribution=english&version=1.9.6.4429-23901a099
Dec 26, 2017 10:12:18.677 [3464] DEBUG - AutoUpdate: Found potential version: 1.9.7.4460-a39b25852
Dec 26, 2017 10:12:18.677 [3464] DEBUG - AutoUpdate: Found potential version: 1.10.0.4523-648bc61d4
Dec 26, 2017 10:12:18.677 [3464] DEBUG - AutoUpdate: Found potential version: 1.10.1.4602-f54242b6b

You’ll need to elaborate on precisely what isn’t working for you. What do you see on the Settings > Server > General screen in the web app? What happens there when you “Check for Updates”? If it prompts for one, what happens when you “Install Update”? Sharing screenshots of what you’re seeing can help illustrate things.

I get the update notification, then download it and apply… then it goes back to showing a download.

@parsley72 said:
I get the update notification, then download it and apply… then it goes back to showing a download.

Could you get a registry export to text file for me and send it by Private Message
Regedit and then locate HKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Server
and right click on Plex Media Server and select Export and save to a text file with Save as Type set to Text Files (*.txt)

I want to check if you ever selected skip this update

The other point is about how you run Plex Media Server.exe - are you running it as a service or scheduled task? If you are, tyhen auto updating is not appropriate and updates must all be done manually with you stopping the service and ensuring processes close down then manually applying the update

There is some evidence in the log that suggests that may be you are running as a service/scheduled task

Actually I suspect the issue is to do with the Plex Media Server running as a service

I can see the update job being triggered

Dec 26, 2017 10:12:09.260 [11296] DEBUG - Job running: Plex Update Service Launcher.exe "C:\Users\Tom\AppData\Local\Plex Media Server\Updates\1.10.1.4602-f54242b6b\packages\Plex-Media-Server-1.10.1.4602-f54242b6b.exe" C:\Users\Tom\AppData\Local\ "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe" 

and the attempt to shutdown the server to allow that to run

Dec 26, 2017 10:12:10.018 [0304] DEBUG - Ordered to stop server.
Dec 26, 2017 10:12:10.018 [0304] DEBUG - TrayIcon::WindowProc received WM_DESTROY
Dec 26, 2017 10:12:10.019 [15136] DEBUG - Stopping server...
Dec 26, 2017 10:12:10.019 [15136] DEBUG - HttpServer: Stopping server.
Dec 26, 2017 10:12:10.019 [12104] DEBUG - TranscodeJobManager: [Running] onServerShutdown
Dec 26, 2017 10:12:10.019 [12104] DEBUG - TranscodeJobManager: [Running] -> [Shutdown]
Dec 26, 2017 10:12:10.019 [12104] DEBUG - MetadataItemClusterRequestHandler: a shutdown event has been received
Dec 26, 2017 10:12:10.019 [15136] DEBUG - Server stopped.
Dec 26, 2017 10:12:10.020 [15136] DEBUG - NetworkService: Stopping advertisement.

But the server restarted immediately

Dec 26, 2017 10:12:11.056 [2844] INFO - Plex Media Server v1.9.6.4429-23901a099 - Microsoft PC x64 - build: windows-i386 english - GMT 13:00
Dec 26, 2017 10:12:11.056 [2844] INFO - Windows version: 10.0 (Build 16299), language en-US
Dec 26, 2017 10:12:11.057 [2844] INFO - 2 2992 MHz processor(s): Architecture=0, Level=6, Revision=5898 Processor Identifier=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel
Dec 26, 2017 10:12:11.057 [2844] DEBUG - "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe" 

These log lines suggest to me that you are running it as a service

Dec 26, 2017 10:12:11.084 [18256] ERROR - TrayIcon::Create failed
Dec 26, 2017 10:12:16.093 [18256] DEBUG - TrayIcon::WindowProc received DisplayIcon timer message
Dec 26, 2017 10:12:21.093 [18256] DEBUG - TrayIcon::WindowProc received DisplayIcon timer message
Dec 26, 2017 10:12:26.096 [18256] DEBUG - TrayIcon::WindowProc received DisplayIcon timer message
Dec 26, 2017 10:12:31.095 [18256] DEBUG - TrayIcon::WindowProc received DisplayIcon timer message
Dec 26, 2017 10:12:36.096 [18256] DEBUG - TrayIcon::WindowProc received DisplayIcon timer message

I have the same issue with the automatic updates. So how should the Plex server be setup so that the automatic updates occur automatically?

@abitfloppy said:
I have the same issue with the automatic updates. So how should the Plex server be setup so that the automatic updates occur automatically?

same issue - you mean you run Plex Media Server as a scheduled task or service?

My earlier response was specifically relating to what was seen in logs. I have no idea what your issue is without any diagnostic logs showing the problem

I have this same issue. I recently had to re-install my windows 10 (pro x64) After this I installed PLEX server again. A few days later there was an update. I had NOT been able to auto-update for months before the re-install, always having to download manually and install. I thought to myself, why not try it again. It worked perfectly. THAT ONE TIME ONLY!!!

Now, it’s back to telling me I have an update available. I click ‘Download Updates’ and it does. I think click ‘Install Update’ and it starts, then says ‘Installing’ and within a second or 2 at the most it says ‘Something Went Wrong’ and goes back to saying ‘Download Updates’ It pops up for a fraction of a second the Install Manually link…but I can’t ever click on it fast enough before it vanishes. (I did, just now, sneak in a right click on the link fast enough to get the menu option to open link in new tab…which I did and got the download of the new version.)

I have tried installing with both people connected to the server and with everyone off the server. My current version is 1.13.3.5223 and I am about to manually update to 1.13.4.5251.

I have my server set to: Server version updates Automatically during scheduled maintenance. Which it obviously never does. My update channel is BETA.

It’s not the end of the world that this doesn’t work… But since it is supposed to, I would like to know what I need to do (if anything) to get it fixed. Especially having it simply update itself every night during maintenance.

Greg

You mention a couple of issues here - will need logs to investigate each

For the issue of clicking Download Updates and Install Update - will need the logs zip plus zip of the Logs\Installer logs folder

For the scheduled task server update not working will need the zipped logs collected after the scheduled tasks period. Perhaps first thing in the morning

See
https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/
https://support.plex.tv/articles/200250417-plex-media-server-log-files/

I’m on Windows 7 and seeing the same thing that ChefGS is. In Plex Media Server.log I’m getting

Jul 21, 2018 13:31:17.210 [3052] ERROR - AutoUpdater failed (30006) 
Jul 21, 2018 13:31:17.211 [3052] ERROR - Could not connect to the Update Service (30006)
Jul 21, 2018 13:31:25.929 [5760] ERROR - AutoUpdater failed (30006) 
Jul 21, 2018 13:31:25.929 [5760] ERROR - Could not connect to the Update Service (30006)
Jul 21, 2018 13:31:35.724 [2576] ERROR - AutoUpdater failed (30006) 
Jul 21, 2018 13:31:35.724 [2576] ERROR - Could not connect to the Update Service (30006)
Jul 21, 2018 13:32:10.573 [2576] ERROR - AutoUpdater failed (30006) 
Jul 21, 2018 13:32:10.574 [2576] ERROR - Could not connect to the Update Service (30006)
Jul 21, 2018 13:34:30.441 [5344] ERROR - AutoUpdater failed (30006) 
Jul 21, 2018 13:34:30.441 [5344] ERROR - Could not connect to the Update Service (30006)
Jul 21, 2018 13:34:57.034 [2984] WARN - LongPoll: Got error, closing.
Jul 21, 2018 13:37:58.410 [2988] WARN - LongPoll: Got error, closing.

In Update Service Launcher I only have

Jul 21, 2018 13:34:30.431 [4356] INFO - Plex Update Service Launcher v1.13.0.5023-31d3c0c65 - Microsoft PC x64 - build: windows-i386
Jul 21, 2018 13:34:30.432 [4356] INFO - Windows version: 6.1 (Build 7601), language en-US
Jul 21, 2018 13:34:30.432 [4356] INFO - 4 3000 MHz processor(s): Architecture=0, Level=16, Revision=1026 Processor Identifier=AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD

and there isn’t any entry in Logs/Installer since last May.

I have no internet connection issues, and actually downloaded the upgrade using the Web Client on another machine. I fired off the install from there, it failed, then I logged into the server machine directly via TeamViewer and am seeing the same behavior as ChefGS.

I then went to the Updates folder and deleted the 1.13.4.5271.blahblah folder, and returned to Plex Server and tried again. The update downloaded but again refused to install as above.

I went to the Plex server downloads page and downloaded the latest Windows version. It’s the same .exe file as what’s in the Update folder, it appears. I manually exited Plex Server from the tray icon and ran the downloaded installer. It chugged a while saying “Stopping Plex” which was interesting since I already exited it. It then continued through a successful install and launch. Upon returning to the Server Settings page (the browser window was still open), I refreshed and saw it displaying “Version 1.13.0.5023” and the “download update” button again. I clicked that, the button changed to a gray “downloading update” … and there it sat. After logging out and back in, it’s displaying the correct “Version 1.13.4.5271” with the green-check and “Up to date” text. Yay!

Just wanted to give you my experience in detail, in case it helps.

The only issues I am aware of with regards to the Update Service relate to the Local App Data Path and if the path originally in place is no longer there

Would need older logs as well (there would be 6 log files for each log)

and what is in the registry for
HKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Server\LocalAppDataPath
and
HKEY_USERS\.DEFAULT\Software\Plex, Inc.\Plex Media Server\LocalAppDataPath

1 Like

I’ve had the exact same issue as @parsley72 for at least year, and finally got around to trying to fix it. I also have auto-updates enabled, and it never does. Let me know if my logs would help as well.

FWIW, my LocalAppDataPath is on a network share, e.g., \\diskstation\plex\.

The issue with the updater is not where the LocalAppDataPath is but if it was changed after the update service was created and if the original location no longer exists

See my post re registry entry for .DEFAULT

Sorry, just noticed your reply now. Both registry settings are correct (I did not need to change them), and auto-updater still fails. Do you know if it matters if there is a trailing slash or not? One setting has the slash, the other doesn’t.

There is a problem with having a trailing slash

OK, thanks for the info. I’ve already done the update manually, so I’ll have to wait for the next release to see if removing the trailing slash works.

Just tried to install v1.14.1.5488 through the Web UI - unfortunately fixing the registry entries did not help. Any logs I can check for more clues?

send me by private message export to text file of registry areas

HKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Server
and
HKEY_USERS\.DEFAULT\Software\Plex, Inc.\Plex Media Server

and the server logs covering time of the update - in Logs - check both areas of where LocalAppDataPath points to for the above two registry area

and zip of the msi log files - check both areas Logs\Installer Logs and also %Temp%

1 Like

OK, just sent PM.

You have an unsupported configuration.

You must not have the Plex Media Server Local Application Data on a network share and you are also advised not to have the Transcode Temp Directory on a network share

See https://support.plex.tv/articles/200289496-general/
Section headed

Windows Specific Settings

The path where local application data is stored

Warning! : You should not specify a location that resides on a network share/disk.

and see https://support.plex.tv/articles/200250347-transcoder/
Section headed

Transcoder temporary directory

Warning! : You should not specify a location that resides on a network share/disk.

Please shutdown Plex Media Server and using Services.exe stop the Plex Update Service
Wait for it to stop

Then when all Plex processes are no longer showing in Windows Task Manager, do the following registry edits
Delete these registry keys

HKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Server\TranscoderTempDirectory
HKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Server\LocalAppDataPath

Then start an elevated cmd.exe window (Start / Run / cmd and right click on Command Prompt and select Run As Administrator)
Then type this command in the command line window

sc delete PlexUpdateService

This should return [SC] DeleteService SUCCESS

You are now back to the default. which would use this area
C:\Users\darcy\AppData\Local to create a Plex Media Server directory structure and no PlexUpdateService. This will get recreated on next re-install of Plex Media Server.

If you wish to salvage your existing data files, copy this whole file structure
\\diskstation\plex\Plex Media Server to be here
C:\Users\darcy\AppData\Local\Plex Media Server
Make sure you do not accidentally end up with
C:\Users\darcy\AppData\Local\Plex Media Server\Plex Media Server

All this to be done whilst Plex Media Server is still shutdown

If you wish to use a different local drive / path than C:\Users\darcy\AppData\Local then you will need to copy the file structure from the diskstation and instead of deleting the registry key
HKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Server\LocalAppDataPath but to edit it and have the path changed

  • eg set it to
    D:\Plex
    This would then expect to have a structure of files
    D:\Plex\Plex Media Server
    Again when copying from \\Diskstation\Plex\Plex Media Server make sure you do not end up with D:\Plex\Plex Media Server\Plex Media Server

Next is to download Plex Media Server setup file for 1.14.5488 from https://plex.tv/downloads
Run it

From now going forward you are running with a supported configuration and we can investigate any further issues you may have

You will need to also to set the Transcoder temp Directory to the path for an internal local drive directory

1 Like