QNAP NAS - Can’t Launch Setup, Not Authorized

Server Version#: 1.26.0.5715
OS: QNAP TS-251B v 5.0.0.1986 (2022/03/24)

I had PMS on my QNAP NAS at my previous address. When I moved, I turned off the NAS and transported it to the new address. When I tried to setup the NAS using the network at the new address, I immediately had issues with Plex. I thought this could be fixed with a factory reset of the NAS, and deleting the old server from my device list through the Plex browser client (i.e. starting again). I’ve obviously just made things worse - after trying for days to get PMS working again on the NAS I’m stuck. When I try to launch PMS from the NAS it says “Can’t Launch Setup, Not Authorized”.

I have already tried:

Very similar issue to the one detailed here: QNAP - Can't Launch Setup, Not Authorized, but the applicable solution doesn’t seem relevant, at least based on my non-expert review of the logs.

It does seem like somehow even after the factory reset and PMS uninstall there is something (e.g. cache, old PMS details) on the NAS somewhere preventing the login.

I would really appreciate any help with this. I have attached the logs with the most recent attempt again resulting in the error.
Logs.zip (182.1 KB)

Thanks for the logs.

It looks like you’re trying to access it using a WAN IP. This won’t work.
You must be on the same subnet, or using a SSH tunnel, or use the Plex Claim Token method to complete initial setup

May 03, 2022 12:10:34.438 [0x7f11699e4b38] DEBUG - Completed: [192.168.0.1:55587] 200 GET /web/js/chunk-830-8616060f1841c97c3337-plex-4.76.1.22469-3117cd9.js (6 live) GZIP 1ms 967 bytes (pipelined: 2)
May 03, 2022 12:10:34.438 [0x7f11699e4b38] DEBUG - Completed: [192.168.0.1:55588] 200 GET /web/js/chunk-884-6a5571e350dd82b13ef2-plex-4.76.1.22469-3117cd9.js (6 live) GZIP 1ms 16697 bytes (pipelined: 1)
May 03, 2022 12:10:34.446 [0x7f1169a07b38] DEBUG - Request came in with unrecognized domain / IP '122.107.XXX.168' in header Host; treating as non-local
May 03, 2022 12:10:34.446 [0x7f1169390b38] DEBUG - Request: [192.168.0.1:55586 (Subnet)] GET /web/js/chunk-408-263035433e3dcbaa4aa1-plex-4.76.1.22469-3117cd9.js (6 live) GZIP
May 03, 2022 12:10:34.446 [0x7f1169390b38] DEBUG - Final path: "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-8cf78dab3/WebClient.bundle/Contents/Resources/js/chunk-408-263035433e3dcbaa4aa1-plex-4.76.1.22469-3117cd9.js"
May 03, 2022 12:10:34.446 [0x7f1169390b38] DEBUG - Content-Length of /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-8cf78dab3/WebClient.bundle/Contents/Resources/js/chunk-408-263035433e3dcbaa4aa1-plex-4.76.1.22469-3117cd9.js is 79284 (of total: 79284).

Hi Chuck,

Thanks for the reply.

That is strange. My NAS is plugged in via ethernet to the back of the router into one of the ports labelled “LAN”. I have also checked the IP address for the router and NAS are the same. The unrecognised domain in the log snippet you included looks like the public IP address for the router. So I don’t understand why they are being treated as different subnets with this setup.

Are you able to confirm the steps for the Plex Claim Token method to complete initial setup? I will give that a go.

Thanks
Tim

You will need SSH into the QNAP/

  1. Stop Plex
  2. SSH into it
  3. Get into /share/*/.qpkg/Plex*/Lib*/Plex*
  4. edit Preferences.xml
  5. Remove the Name="Value" pairs for:
    – PlexOnlineUsername
    – PlexOnlineToken
    – PlexOnlineMail
    – PlexOnlineHome (if it exists)
  6. Save
  7. Start Plex and let it sit completely idle
  8. Keep the SSH session open. You’ll need it momentarily

Now for the claim token

  1. Open Claim | Plex
  2. COPY the claim token it gives you into your browser
  3. Return to the SSH session
  4. Type: curl -X POST 'http://127.0.0.1:32400/myplex/claim?Token=PASTE-TOKEN-HERE' and hit enter
  5. It will sit for 10-20 seconds while PMS and Plex.tv, using the claim-token, exchange new credentials.
  6. When it’s complete, you will see a flurry of feature flags output (XML), which ends with </MyPlex>
  7. Now open the server normally in your browser

Hi Chuck,

Thanks - when I open the Preferences.xml file I don’t see any of those pairs. Instead it has…

“Preferences OldestPreviousVersion=“1.26.0.5715-8cf78dab3” MachineIdentifier=“728f8374-7c5d-461f-a4e4-7a54d349ed86” ProcessedMachineIdentifier=“d6e00a4b81a7d72f184b7268ce672096e0d9f975” AnonymousMachineIdentifier=“c15b1b82-94c0-4c8c-9653-02bee8040733” MetricsEpoch=“1”/”

Am I in the correct file? Will this solution still work without those pairs in the xml file?

Thanks
Tim

Hi Chuck,

I have tried doing this without the first steps and I get the message: token is blank or empty

Thanks
Tim

@tim_r_3

Without those pairs in the Preferences.xml file, your server is “Unclaimed”

When we use the Claim Token method above, we want it unclaimed.
We also need it to sit idle (don’t access via the web page yet)

Given the server is already unclaimed, that’s fine.
Confirm the NAS has internet connectivity (DNS and Gateway are correct).
Then run the procedure in the SSH session starting with the " Now for the claim token"

Hi Chuck,

I still get the error…the SSH output is:

<127.0.0.1:32400/myplex/claim?Token=claim-8yxhHsvzYMyRths6gisU’

<?xml version="1.0" encoding="UTF-8"?> token is blank or empty [~] #

To be clear, I started the SSH session, logged in to the QNAP via SSH, then generated the claim token and entered the suggested code.

I’m not sure what you mean exactly by DNS and Gateway are correct. Could this be the problem? Can you elaborate?

Thanks for patience.
Tim

If your PMS can’t contact plex.tv due to a badly configured gateway or DNS, then this will be a problem

In the SSH console, type nslookup plex.tv and show us the output

I did as suggested and this was the output:

[~] # nslookup plex.tv

Server: 127.0.1.1

Address: 127.0.1.1#53

Non-authoritative answer:

Name: plex.tv

Address: 54.171.30.185

Name: plex.tv

Address: 52.213.23.84

Name: plex.tv

Address: 34.254.51.10

Name: plex.tv

Address: 63.34.174.176

Name: plex.tv

Address: 46.137.17.68

[~] #

Thanks
Tim

Simple thought? What is the local address of the NAS? 192.168.1.?? Then use http://[Local Plex Media Server IP Address]:32400/web to try and login.

And above output means that routing and DNS is okay, so next step is to ensure that your PMS is really not claimed, so in a browser, browse to: http://<IP_OF_QNAP>:32400/identity

Then show us the output

Hi Dane,

I just did that and output was as follows:

This XML file does not appear to have any style information associated with it. The document tree is shown below.

“MediaContainer size=“0” claimed=“0” machineIdentifier=“d6e00a4b81a7d72f184b7268ce672096e0d9f975” version=“1.26.0.5715-8cf78dab3”> </MediaContainer”

Dbirch, I then did as you suggested, though I had tried this so many times and it allowed me to login but then asked me to install PMS. Bizarrely, I have just tried this again and it launched the PMS setup wizard. I can’t explain why it has started working - PMS is setup and media is syncing.

Thanks both for your help.

Tim

1 Like

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