Stuck on "Not Authorized" after initial setup

Server Version#:1.41.1.9057-af5eaea7a
Player Version#:
<If providing server logs please do NOT turn on verbose logging, only debug logging should be enabled>

I’ve setup a ProxMox container for my Plex server. I used the following instructions, which worked out great. How to Install Plex on Proxmox (+ Hardware Acceleration)

After step 7 “Configuring the Plex Application” I either get the “Not Authorized” screen or just a black screen with the Plex logo in the top right.

I’ve googled and tried various solutions with no effect. Most results seemed to be focused on widows or docker installs.

Additional details.
I’m using PiHole for DNS and I’ve enabled local DNS for my hostnames.
I have a 192.168.2.x network internally. The IP is static within the container.

LMK what other info would be of use.

Check the pihole logs for plex related blocked domains, and then post your server logs

you cannot use hostnames for initial claiming.

This is because PMS will see the hostname in the referred header and, no matter if local or remote, will deem the connection “remote”.

This is the root case of the “Not Authorized”

Solutions:

  1. Connect to the server by LAN IP (must be same subnet)
  2. Use a tool to help from inside the VM (e.g. tool below)

Using my 192.168.2.x network to connect internally. I’ve also tried 127.0.0.1 using Lynx on the command line inside the CT.

I tried that script and it just spits out errors.
Here’s the output.
root@plex:~# ./UserCredentialReset.sh
./UserCredentialReset.sh: line 7: DOCTYPE: command not found
./UserCredentialReset.sh: line 8: html: command not found
./UserCredentialReset.sh: line 11: data-color-mode=auto: command not found
./UserCredentialReset.sh: line 12: data-a11y-animated-images=system: command not found

Apparently lines of code inside “{ }” are the issue? I removed a few in some lines as test bu then other errors pop up.

I installed shellcheck to troubleshoot. Got the following output

root@plex:~# shellcheck UserCredentialReset.sh

In UserCredentialReset.sh line 22:

^-- SC1009 (info): The mentioned syntax error was in this simple command. ^-- SC1073 (error): Couldn't parse this redirection. Fix to allow more checks. ^-- SC1072 (error): Fix any mentioned problems and try again.

You didn’t download it correctly. You ended up downloading the github web text.

Go to github, let it show you the entire script.
COPY that text into the browser.

Return the the Linux terminal window
In a text editor (vi, nano, etc), paste the text, then save the script.

You’ll be able to see it’s clean script text

After exiting the editor, give it execute permission and then run it (as root)

Perhaps it’s better to download the tar.gz file (Releases) and then unpack it locally.

1 Like

THANK YOU!!

This did the trick. Script ran properly to the end. I’m getting into the admin site, I’m adding my library and so far so good!

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