Closed daeks closed 1 year ago
The updater will do three checks for the Plex installation folder:
Apparently, all three checks returned null, from what I can tell from the log.
Plex is running without issues on the machine? Where is Plex installed?
If needed, I can see about adding additional logging to help narrow down the issue.
Yes, plex runs well since a few years on that machine with any issue - I just switched from x86 to x64 a few weeks ago.
it is located under D:\server\plex\bin and if I take a look into the registry, I can find the "InstallFolder" entry under HKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Server, pointing to the right directory.
Also PlexService is running fine.
Thanks. My installs are in the default location, and since I don't have that registry value the install may only add it if a custom location is specified.
It should be any easy fix. I'll let you know when I create a new release.
Can you try the 0.2.1.1-beta.1 release?
thank you very much, unfortunately not - it looks like that it tries to lookup the service user, which is a different one executing the update.
Yes, it always did that. The one executing the update needs to be an administrator on the machine, but the user running the Plex service does not need to be an administrator.
If the user that is running the service is different, as in your case and mine, then the updater will need to lookup the user so it an read the correct registry keys - since the keys are in the HKEY_CURRENT_USER hive.
I need to read the Plex user's HKEY_CURRENT_USER hive for things like the Plex token, and whether Plex Pass downloads are enabled. This is the hive read by the Plex server, and could be different than the administrator's Plex registry keys setup during the installation when Plex is started the first time.
Now, the issue could be that if you are looking at the HKEY_CURRENT_USER hive of the administrator, and not the Plex service user, and you see the InstallFolder value that isn't in the Plex service user's Plex registry key, then that could be an issue. The easiest solution would be to export that InstallFolder value from the administrator registry key, and then import it into the Plex service user's registry key so that value exists.
The easiest solution would be to export that InstallFolder value from the administrator registry key, and then import it into the Plex service user's registry key so that value exists.
Thank you very much for the explanation, I fully understood it - another easy solution would be just to look into the registry of the user executing the update. As far as I have seen you have introduced a settings file, so adding the install location there would also be an option. Extracing the registry key, reimporting it for the service user just to start the updater sounds not right as the service user will anyhow not have the priviledge to execute the update, it will be the user calling the updater.
You can add the PlexInstallLocation
key to the configuration file and specify the full path to the Plex install location as the value. The updater will read this value first to get the installation location.
Release 0.2.1.1-beta.2 has the change.
That looks good :) thank you very much. I have specified the path and now it is working fine again.
Great. I'll close the issue and release the update.
Good day,
after updating plex to 64bit and the updater to 0.2.1.0, I cant find the installation anymore. It gives following error:
what can I do? I have not installed Plex in ProgramFiles, the registry entries are set correctly