-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PMS 64 bit update does not work #67
Comments
Seeing the same thing when I finally got round to installing the update and thought I'd try just allowing it to install instead of stopping the server, running the program, installing the update, stopping the program and starting the service. The PmsService immediately recognises that the server has stopped and jumps in. I tried setting it to only restart after 300 seconds thinking that it would give time for the update to complete but it immediately kills any other processes and then waits 300 seconds before starting PMS so it still kills the update. Logfile snippet to show what's happening. [12:44:35 INF][PmsMonitor][Plex_Exited] Plex Media Server has stopped! |
Not sure if same issue but today I couldn't connect to plex server after an update which seemed to fail. |
I just updated Plex from 1.28 32bit to 1.30 64bit, and now the PMSservice tray seems to have the wrong data path. |
I downgraded from 64bit 1.30 to 32bit 1.28 and it's working now. Seems like there should be some setting in the service manager to point it to the correct directory. |
Well the thing I don't get it, is that it correctly identifies which version to use but then fails to recognise that it is being updated. Then somehow restarts Plex before the update Process is complete and blocks the update in itself... |
Not as stands. If you set the delay that is there, when spots that Plex has stopped (ie is updating) it kills all the Plex processes (including the update) and then waits that delay time before restarting them. |
Well how does it work in the 32 bit version? How does it know it is updating and waits as I never had an issue until the 64bit version? |
Same issue. Reinstalled Plex and it runs, will only display a web interface (or any interface) if I shut down PMSService completely. Did some experimentation and Plex fails to run even after PMSService is uninstalled. I believe it has something to do with the Plex Update Service, because Plex started again and worked after I removed that service. |
The service reads the plex log to detect the update, its possible the log has changed or the order of events has changed. I'll try and find some time to investigate. |
can you please try the new release and see if it works any better for you. |
Thanks for looking into it cjmurph. I've updated PMS and it did look hopeful at first in that it picked up the correct location for the logs: [06:41:55 DBG][PmsMonitor][WatchLog] PMS Log Path: C:\Users<username>\AppData\Local\Plex Media Server\Logs But when I tried an update, it spotted that Plex had stopped, waited 10 secs and then killed everything before restarting it. [18:55:55 INF][PmsMonitor][Plex_Exited] Plex Media Server has stopped! The Plex update logs seem to be rotated when it starts again so I've attached the ones with a recent timestamp as well as the PMS log in case that helps. Am I correct that it's watching "Plex Update Service.log"? PlexService20230112.log |
It is watching that log, but what I noticed last night is that with the 64 bit version of plex, the log file only gets flushed out to disk after a period. On my server, it wrote 18 lines at once and it happened a few seconds after the last log entry. |
Well, let me know if I can test anything or supply any logs that might help. |
its still stucks in "plex updating" status |
What about checking if the plex updating service executable is running? I believe it only gets started when an update is in progress, no? |
Question, so you're talking about the self updating issue, but is the 64bit issue fixed? I really don't care about the self updating since I've always just logged in, stopped the service, run the new ver install, then started the service, and I think that works fine, just that now when the new ver is the 64bit ver the service isn't(wasn't) finding plex anymore. So is the 64bit part fixed now? |
this is another ticket and its closed. |
it should pick it up more reliably, I've also added an option in the settings to manually specify the location if it still can't find it. |
I tried 1.2.1 and it seems to pick up that plex is updating. However, at least on my system nothing was happening and it was stuck in "updating". I had to restart the service to get it out of the mode, and then no update actually happened (although I did see the updater starting), not sure if the service tried to kill the update process because it saw that plex died and tried to kill helper applications that run? (sorry if I am not 100% sure how pmsservice works yet) |
so, if it gets stuck in 'plex is updating' it means that it saw that plex was updating so does not kill anything, but waits until it reads the update completed in the log. |
its neiher failing or asking for user input if running without pmsservice. |
I was following it in the task manager and I could see the update start, but then it dissapeared and pmsservice never got out of the "plex is updating" bit. It could have failed but when I start the process manually it went through fine, so not sure what user input it is asking for? |
Just tried updating to the 64bit ver again via the same method I've always used.
Looked for that location.txt file, still looking. |
Offtopic and this works fine. |
Of course if you stop the pmsservice you can update... that was never the question. But in the 32bit version pmsservice would wait during the update and then restart plex server by itself after the update was finished. |
The thread title specifically references the new 64bit ver, and the issue I'm seeing is that after updating in the way I always have it won't start post update. The built in plex update feature has never worked for me and I don't really care about that, so IMO that aspect isn't new or of concern. Though with PMS service 1.2.1 I did find in the new UI an option to point it to the executable, and doing so resolved the issue for me. To be clear from my experience being unable to update Plex via the built in updater not working is an old issue and very low priority, and I'm fairly sure it's a Plex issue not a PMSservice issue as even when manually running Plex in a user session it fails to update via the built in updater. (again my experience is it's always been like that and that Plex needs to fix their updater, but there's a long list of things they need to fix) Props to cjmurph for working on fixing that. |
never had an issue with the built in updater - my plex has always updated by itself to the most recent version using the plex buttler but in this case the thread really is about why with the new 64bit version this self updating doesn't work |
same issue, running 64 bit plex update to 1.31.0.6654-02189b09f fails if pmsservice is running, I had to stop the service and start plex by hand only then the update went through, else it would be just stuck every time with pmsservice running |
I'm not sure what it is about the installer, but it just doesn't ever seem to complete, so everything gets stuck. It works fine for the 32 bit version. I'll do some more testing with watching for the service rather than watching the log. |
Thanks for looking into it Cjmurph. I think I'm up to date on updates at the moment but there's bound to be another at some point soon. If there's anything that could be monitored or logged that you'd find useful just let us know and we'll try to attach it to a post. |
I currently have one pending if you need me to grab any info from it. |
Plex Media Server_x64_2023_02_15__22_12_54.log I am having the same issues, looks like the Plex installer log says PMS service is using one of the plex files? |
I'm having the same issue, just curious if this was ever fixed or if anyone has found a decent workaround? |
well, well, well, 2 solutions: 1.) use plex 32bit or what I did: 2.) uninstall pmsservice, activate autologin and add a task which locks(no logout) the server after a minute again, works like a charm |
This was the method I ended up using as well, though without a task to lock it (not necessary in my case). Basically just:
A restart of the system confirmed that the user was automatically signed in and Plex started up successfully, and that's that. This way the built-in updater will work just fine with a 64-bit installation. |
There does seem to be something about the 64 bit installer that requires a user session. 32 bit seems fine. |
From plex changelog Version 1.32.5.7349
|
Hi, do you know if this was ever resolved? I've recently rebuilt two new Plex servers, both now running PMS x64, with the service accounts being different from the primary administrator/user accounts. One is running on W11, and the other on Server2019. Both have the same issue when attempting to update. I've had to disable updates for now. Has anyone found a workaround/fix? |
yes, but I haven't released a version with the fix. you can pull the master branch and build it yourself if you are desperate. I am struggling for time atm but it's on my radar. |
|
The latest version has resolved the auto-update issue with x64. |
Just got round to installing 1.2.3.0 and can confirm it successfully detected an update started from the web app, flashed up a status to show this, waited for the update to complete and Plex to restart and then killed all the processes in order to restart them as a service. |
Hello, thanks for the great little tool that has helped to keep my PMS up :-)
I seem to have an issue when trying to update PMS while the Service is keeping track of it. Before it waited until the update was done but now it seems to just restart Plex during the update causing the update to fail. Any idea what I may be doing wrong here?
The text was updated successfully, but these errors were encountered: