Cannot claim media server

Server Version#: 1.31.2.6810-1 (Arch Linux)
Player Version#: 9.19.0.177 (Android TV)

The server on the Linux box is active.
On Android TV, when I open Plex app, my media on the server is not shown.
On desktop, when I browse to http://192.168.178.100:32400/web/
it says: “TUXSIL server is unclaimed and not secure”
When I press “Claim it now” and on the next page “Claim Server” it does NOT succeed in claiming the server.

server log
Plex Media Server.log (1.7 MB)

I do not succeed in solving this problem. Any help is appreciated

This tool will help you claim the server.

It must be run from the server, as root, with PMS stopped.

Given Arch Linux is not official, you can use the -p option in the tool to specify where Preferences.xml is located .

Hello and thanks for your support.
I ran the script:

[root@TUXSIL UserCredentialReset-main]# find / -name Preferences.xml
/var/lib/plex/Plex Media Server/Preferences.xml
[root@TUXSIL UserCredentialReset-main]# ./UserCredentialReset.sh -p '/var/lib/plex/Plex Media Server/Preferences.xml' 
 
          Plex Media Server user credential reset and reclaim tool (User-Defined)
 
This utility will reset the server's credentials.
It will next reclaim the server for you using a Plex Claim token you provide from https://plex.tv/claim
 
Using given Preferences path:  '/var/lib/plex/Plex Media Server/Preferences.xml'
Please enter Plex Claim Token copied from http://plex.tv/claim : claim-redacted
Clearing Preferences.xml
Getting new credentials from Plex.tv
Claim completed without errors.
 Username: redacted
 Email:    redacted
 
Complete.  You may now start PMS.

And now, the media on the server are not being shown. Neither in the Plex Android TV app nor in the webbrowser on dekstop.
So obviously (?) the “Claim your server” message is not displayed either.

Can you please advise further?

I have now uninstalled plex-media-server and installed plex-media-server-plexpass.
After initialization, where I could fill the library with media, I’m back on "This server is unclaimed and not secure’ .
Then I re-ran the script

[root@TUXSIL UserCredentialReset-main]# ./UserCredentialReset.sh -p '/var/lib/plex/Plex Media Server/Preferences.xml' 
 
          Plex Media Server user credential reset and reclaim tool (User-Defined)
 
This utility will reset the server's credentials.
It will next reclaim the server for you using a Plex Claim token you provide from https://plex.tv/claim
 
Using given Preferences path:  '/var/lib/plex/Plex Media Server/Preferences.xml'
Please enter Plex Claim Token copied from http://plex.tv/claim : claim-redacted
Clearing Preferences.xml
Getting new credentials from Plex.tv
Claim completed without errors.
 Username: redacted
 Email:    redacted
 
Complete.  You may now start PMS.
[root@TUXSIL UserCredentialReset-main]# 
exit

and now the media server is gone again…
I’m lost. Any further suggestions maybe?

Now,

  1. start the server
  2. Open it by its LAN IP (RFC-1918 compliant LAN) the first time ; An incognito window is helpful when reclaiming in ‘weird’ situations and never a bad idea.

The server is started on the home server.
I enter URL http://192.168.178.100:32400/web in a private browser window.
The media server is not shown…

I tried this option as well: https://forums.plex.tv/t/linux-tips/276247/21#second-choice-after-a-hard-password-reset-on-plextv-3

But this returns:

[root@TUXSIL eljejer]# systemctl start plexmediaserver
[root@TUXSIL eljejer]# curl -X POST ‘http://127.0.0.1:32400/myplex/claim?token=claim-LpVu-1xysxxQfoeSb_3w

Internal Server Error

500 Internal Server Error

[root@TUXSIL eljejer]#
  1. You’ll need to do something about the first two adapters here at some point. Two on the same subnet isn’t wise
Mar 26, 2023 22:44:25.460 [0x7f6647926aa8] DEBUG - Network interfaces:
Mar 26, 2023 22:44:25.460 [0x7f6647926aa8] DEBUG -  * 1 lo (127.0.0.1) (00-00-00-00-00-00) (loopback: 1)
Mar 26, 2023 22:44:25.460 [0x7f6647926aa8] DEBUG -  * 3 enp0s20f0u1c2 (192.168.178.100) (8C-AE-4C-DD-10-7F) (loopback: 0)
Mar 26, 2023 22:44:25.460 [0x7f6647926aa8] DEBUG -  * 6 macvlan1 (192.168.178.102) (6E-7F-D8-58-27-50) (loopback: 0)
Mar 26, 2023 22:44:25.460 [0x7f6647926aa8] DEBUG -  * 7 ztuku6eo7y (192.168.193.100) (CA-56-D7-5E-F9-5B) (loopback: 0)

Is this a fresh installation?

Internal server failure (500) will happen when one or more of the core components doesn’t start and/or there’s a file permissions problem in the APP_SUPP_DIR tree somewhere.

Be advised; Arch native installations aren’t supported.

If you can install docker on arch and then Plex in a docker container; :+1:

Hello again @ChuckPa
To circumvent the problem that there is more than one Network Adapter present on the server, I thought to use the “Preferred Network Interface” setting as described in this artcle
There I change the defaullt “Any” to NIC “enp0s20f0u1c2” that is linked to 192.168.178.100
However this is still not letting me claim the server.
I attach the new log
Plex Media Server_3.log (119.9 KB)

Do you maybe have another suggestion?

@eljejer

If you ran my utility, and it returned your Plex username and email address
then the server is claimed.

Your next step was to open it via the IP address (incognito to be extra isolated) the first time.

The “Internal error 500” is where the problem is occurring.

Can you please do the following?

  1. Restart PMS
  2. Attempt to open it again via the IP / loopback (127.0.0.1 if server is on the same machine as you’re typing from)
  3. Let it fail
  4. Stop Plex
  5. Make a tar.gz of `/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs’
  6. Upload/attach that tar.gz here.

We’ll see what’s happening.

@ChuckPa Hi and thanks for continuing support

I ran your utility once more:

[root@TUXSIL UserCredentialReset-main]# ./UserCredentialReset.sh -p '/var/lib/plex/Plex Media Server/Preferences.xml'
 
          Plex Media Server user credential reset and reclaim tool (User-Defined)
 
This utility will reset the server's credentials.
It will next reclaim the server for you using a Plex Claim token you provide from https://plex.tv/claim
 
Using given Preferences path:  '/var/lib/plex/Plex Media Server/Preferences.xml'
Please enter Plex Claim Token copied from http://plex.tv/claim : claim-redacted
Clearing Preferences.xml
Getting new credentials from Plex.tv
Claim completed without errors.
 Username: eljejer
 Email:    redacted
 
Complete.  You may now start PMS.
[root@TUXSIL UserCredentialReset-main]# 

restarted PMS
opened URL http://192.168.178.100:32400/web
“Let is fail” i.e. “This server is unclaimed and not secure” message is shown
Tared the logs. However, on my system they are not in

 `/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs’`Preformatted text`

but rather in

'/var/lib/plex/Plex Media Server/Logs'

So I did

[root@TUXSIL eljejer]# pwd
/home/eljejer
[root@TUXSIL eljejer]# tar -zcvf pms.logs.tar.gz '/var/lib/plex/Plex Media Server/Logs'

I attach the logs here
pms.logs.tar.gz (251.6 KB)

B.t.w. opening plex web in private / incognito tab says:

Not authorized

You do not have access to this server

@ChuckPa Once more I have un-installed PMS but now made sure to also delete as root:

rm -rf /var/lib/plex/

And re-installed plex-media-server-plexpass.

Then I went through the initialization, lost the connection once again, and executed your scrpt:

./UserCredentialReset.sh -p '/var/lib/plex/Plex Media Server/Preferences.xml'

All is well now. But I really can’t explain why…

If you get ‘not authorized’ after claiming — the server isn’t able to authenticate you.
We know the Claim tool was able to talk to plex.tv and get credentials.

It does sound like there’s an underlying network concern there.
PMS requires constant network connection to work.

@ChuckPa Opening plex web in private / incognito tab works fine now also…

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.