Plex install fix for Windows Server (Claim issue)

Hi guys,

I thought I’d post this to help anyone who is/was pulling their hair out like me.

Issue: As of today, the most recent version of Plex Media Server fails to initialize on Windows Server 2016/2019/2022 environments due to the “Claim” functionality confusing things.

Symptoms: Once Plex is installed, it will hang on “Initializing Plex Media Server” for 5 minutes then go to “Something went wrong. Can’t locate server”. If you try to access it locally it will give a “Access Denied” error and link you to a FAQ on claims that does not work.

Fix:
Follow these steps (once installed and the above symptoms experienced)

  1. Right click and exit Plex
  2. Open Notepad as Administrator
  3. Paste the below into the notepad
Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\SOFTWARE\Plex, Inc.\Plex Media Server\PlexOnlineHome]
[-HKEY_CURRENT_USER\SOFTWARE\Plex, Inc.\Plex Media Server\PlexOnlineMail]
[-HKEY_CURRENT_USER\SOFTWARE\Plex, Inc.\Plex Media Server\PlexOnlineUsername]
[-HKEY_CURRENT_USER\SOFTWARE\Plex, Inc.\Plex Media Server\PlexOnlineToken]
[-HKEY_CURRENT_USER\SOFTWARE\Plex, Inc.\Plex Media Server\PreferredNetworkInterface]

[HKEY_CURRENT_USER\SOFTWARE\Plex, Inc.\Plex Media Server]
"PublishServerOnPlexOnlineKey"=dword:00000001
"ManualPortMappingMode"=dword:00000000
"LogVerbose"=dword:00000000
"secureConnections"=dword:00000001
  1. Use notepad’s “Save As” function, change the file type to “All Files” (Not .txt), call the file “plex.reg” and it will save as a registry executable.
  2. Right-click the file you just created and select “Merge”, when prompted hit yes
  3. Once it says “Succesful”, open Plex Media Server app again
  4. Open a browser and navigate to https://127.0.0.1:32400/web
  5. And there you go!
4 Likes

You forgot to (re-)start the server after merging the registry.

But I doubt this will help anyone who is performing a completely fresh installation.
All it does is to remove and reset preferences from prior installations of PMS.

Corrected, thanks :slight_smile:

It absolutely will, PMS does not function on fresh installs as of today, as I said.

I just lost a day trying to spin up a new server on Server 2016, 2019 and 2022. I tried the same account, new accounts, new IPs, fresh installs of Windows Server on totally isolated VMs. Fresh installs of Plex are totally borked on Windows Server without the above steps.

It seems to be making some form of registry error when initializing the first account, which completely locks you out then requires running the above to format and go again.

1 Like

Did you check the Windows firewall? Try either creating a rule or disabling the firewall to test.

Yes, windows firewall doesn’t have anything to do with it, which is why editing the registry fixes it. If it was windows firewall the problem would persist after the registry adjustment, and it does not.

I’m certified Azure Solutions Architect Expert in my work, so reasonably technical. I checked all the obvious stuff and it’s definitely the registry entries not correctly generating upon initial install.

Try something:
after claiming the server (either after clicking the task tray icon or using the Setup Plex.html file) you should see the message: “Initializing Plex Media Server…” and a spinner
Here wait ~ 2 minutes.
Then Refresh the “web page” in your browser.
Now switch the side bar into the MORE… mode.
Inspect the side bar for any new arrivals.

Yeah, also tested that, and the server doesn’t show. The only time it shows is when you run the registry fix and it correctly starts the initial setup wizard.

Weird, this is exactly what I did on my test server. Windows 11, but no Windows server edition.

I can give you a test VM with Server on it if you wish… But it’s a very common problem, it will not fresh install on any server environment since the introduction of the Claiming feature. Loads of posts about it on here and Reddit.

I run a 40-core, 128GB RAM, 256GB SSD + 64TB HDD server, Windows 11 isn’t appropriate for such a system.

Thank you very much! I wasted a whole day on this, but now it’s finally resolved. I’m also using Windows Server 2022.

Wasted 3 days trying to figure this out, Thank you, Same case scenario reinstalled windows server twice trying to fix this wish they would pin this post or something lol

1 Like

DUDE!!! You fixed it!!! Oh my god, my brain has been broken since yesterday trying to scour the damn sites.

You are very welcome :slight_smile:

Glad I could help :slight_smile:

Ok I tried the solution and it won’t let me merge the new PLEX.REG file. When looking at the file properties it shows as registration entries but when trying to merge I get the following:

Cannot import C:\Users\Administrator\Documents\plex.reg: The specified file is not a registry script. You can only import binary registry files from within the registry editor.

I checked and the file was saved as .reg and ANSI coded.
I finally hand coded the Keys and new values.
I verified the Keys and values but still doesn’t give me access.
:frowning:

Ok I checked my Plex.reg and saw that I didn’t have the first two lines

Windows Registry Editor Version 5.00

Add those and it merged successfully. I then removed the Plex server and deleted all Plex keys under HKEY_CURRENT_USER\SOFTWARE\Plex, Inc.
Rebooted the server
Reinstalled the Plex Server software
Merged the plex.reg successfully.

However when I tried to browse to 127.0.0.1:32400/Web
which then took me to
http://127.0.0.1:32400/web/index.html#!/setup/ed1ed6dcf828718eb64d44eb0fe38ef9a986e435
I end up with the same error still Not Authorized.

I noticed that the following subkeys of Plex Media Server are not there
[-HKEY_CURRENT_USER\SOFTWARE\Plex, Inc.\Plex Media Server\PlexOnlineHome]
[-HKEY_CURRENT_USER\SOFTWARE\Plex, Inc.\Plex Media Server\PlexOnlineMail]
[-HKEY_CURRENT_USER\SOFTWARE\Plex, Inc.\Plex Media Server\PlexOnlineUsername]
[-HKEY_CURRENT_USER\SOFTWARE\Plex, Inc.\Plex Media Server\PlexOnlineToken]
[-HKEY_CURRENT_USER\SOFTWARE\Plex, Inc.\Plex Media Server\PreferredNetworkInterface]

Any Help would be appreciated.

Start over again and follow it from step 1. It seems you copied it wrong the first time, don’t do that this time.

Thanks Hybrice, I did that before the last message. Today it is working!!!

Just to restate:

  1. removed the Plex server application.
  2. deleted all Plex registry settings.
  3. Rebooted server.
  4. Installed Plex.
  5. Merged good Plex.reg this was merged successfully.
  6. Rebooted server.
  7. Logged in and I tried to browse to 127.0.0.1:32400/Web
    8.http://127.0.0.1:32400/web/index.html#!/setup/ed1ed6dcf828718eb64d44eb0fe38ef9a986e435
    I end up with the same error still Not Authorized.

However this morning it works!!! Go figure.

Thank you so much for posting this here! It fixes my problems.

This issue needs to be raised to the PLEX devs.

The Plex Media Server is completely broken on Windows Server 2022 without this registry fix.

You’re very welcome :slight_smile:

I did try raising it to them but could see no way to contact them, also it appears they had a large staff layoff recently so I’m not hopeful it’ll be fixed quickly…