Plex Media Server - "not authorised" screen.


Recommended Posts

@groot-stuff Thanks for the tip. Plex's server claim process is ridiculous. Particularly when their data breach forced users to change passwords and thus have to go through the painful claim process.

 

The process for me, in detail:

  1. Stop the Plex Server. In my case it is a container
  2. Modify Preferences.xml to remove:
    • PlexOnlineHome="1"
      PlexOnlineMail="[email protected]"
      PlexOnlineToken="XXXXXXXXXXXXXXXXXXXXX"
      PlexOnlineUsername="YourUserName"
    • For me this involved
      1. ssh <unraid IP>
      2. cd /mnt/user/appdata/PlexMediaServer/Library/Application Support/Plex Media Server
      3. vim Preferences.xml (maybe make a copy first in case you screw it up)
      4. remove the entries listed above and save
  3. Generate Claim Code from https://www.plex.tv/claim/. This starts your 4 minute clock so get to the next steps quickly
  4. Edit PlexMediaServer container configuration from the Docker UI un Unraid. Add the Claim code as a key (PLEX_CLAIM=claim-xxxxxx).
  5. Save container configuration
  6. Start Container
  7. In a Private Browser, load Plex webui (http://UNRAID_IP:32400/web)
  8. Sign in. This will prompt you with a few questions about pinning library. Click Finish and your Libraries should be back to normal

This process is ridiculous and made worse by the 4 minute timer. I had to attempt it 3 or so times.

 

  • Like 1
Link to comment
9 hours ago, Pducharme said:

For me, it was easy.  I went to plex.tv/claims, copy the new Claim ID, then edit my PLEX docker (from Plex INC) and put the new claim-id into the variable called "PLEX_CLAIM" and save and restart the docker.

I tried all the editing Preferences.xml crap and it didn't work. Adding the Claim ID worked for me (-e PLEX_CLAIM= `claim-xxxxxxx`) BUT What tripped me up the 1st time is it doesn't work if you are behind a reverse proxy (like nignx or LinuxServer SWAG) and use the proxy address. Apparently, you have to go directly to the webserver's IP (eg http://192.168.1.x:32400/web) and do it that way.

Link to comment

@groot-stuff Thanks for the help. I've been messing around with it for a few hours now and I had to add these steps:

I have different VLAN's for different things Ex. Wifi is at 10, so it's a x.x.10.x network. UNRAID is 15, ex. x.x.15.x network. My default wired connection is default VLAN so it's x.x.1.x

It took me way too much time to figure out that I had to change my PLEX docker to the default VLAN since I was on my default wired connection. Since it took me so long, i thought I'd share this here. :)

Link to comment
  • 3 months later...

Hello all, I just start with unraid and since 2hours with plex, I've read all and test all but I have always "not authorized" screen instead of setup server

I've test :

- delete docker and reinstall

- delete appdata plex folder

- delete 4 ligne in preference xml

- reset plex account password

- disabled 3 factor auth

- open webgui in private tab

 

please help me :(

Link to comment
Quote

docker run
  -d
  --name='Plex'
  --net='host'
  -e TZ="Europe/Paris"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Nestor"
  -e HOST_CONTAINERNAME="Plex"
  -e 'PLEX_CLAIM'='Insert Token from https://plex.tv/claim'
  -e 'PLEX_UID'='0'
  -e 'PLEX_GID'='0'
  -e 'VERSION'='latest'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:32400]/web'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/plexinc/pms-docker/master/img/plex-server.png'
  -v '/mnt/user/appdata/tmp/':'/transcode':'rw'
  -v '/mnt/user/Medias/':'/data':'rw'
  -v '/mnt/user/appdata/Plex-Media-Server':'/config':'rw' 'plexinc/pms-docker'

608e0bffff91c48585e5e37eb5428e365b9016d200fb37de57bc9a2d056c515a

La commande s'est terminée avec succès!

 

Link to comment

I do docker run again with a valid claim :

Quote

docker run
  -d
  --name='Plex'
  --net='host'
  -e TZ="Europe/Paris"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Nestor"
  -e HOST_CONTAINERNAME="Plex"
  -e 'PLEX_CLAIM'='claim-HgxpZw7*************'
  -e 'PLEX_UID'='0'
  -e 'PLEX_GID'='0'
  -e 'VERSION'='latest'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:32400]/web'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/plexinc/pms-docker/master/img/plex-server.png'
  -v '/mnt/user/appdata/tmp/':'/transcode':'rw'
  -v '/mnt/user/Medias/':'/data':'rw'
  -v '/mnt/user/appdata/Plex-Media-Server':'/config':'rw' 'plexinc/pms-docker'

8571c3ce7d2fe80b486b139fa1037c4f16b45b10a174f268aeedd1ae5bdfb087

La commande s'est terminée avec succès!

I changed last caracter of claim for here

Link to comment
  • 1 month later...

Hi folks,

 

Using linuxserver PLEX docker and I am having a similar issue. Have a server back home (moved abroad) and had not used it for a while.

 

Today I go login and seems I forgot my password or whatever, so I reset it. After that I logged in, and my shares were visible but all with exclamation points and saying "not authorized"/"you don't have permission" etc.

 

Read somewhere I needed to update the docker so I did.

 

Once I did that, I now login to my server, and my shares are gone, don't see server options, etc.

 

I tried doing the claim process and adding the variable, but the result is the same and when I check the log I see:

 

**** Server already claimed ****
Docker is used for versioning skip update check
[custom-init] No custom files found, skipping...
Starting Plex Media Server. . . (you can ignore the libusb_init error)
[ls.io-init] done.

 

Appreciate any help on how I get this back to working as a server and seeing my shares.

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.