PMS on QNAP - 401 Unauthorized after NAS power outage

Hi there,

after a power outage due to a faulty UPS I have same issue as this one:

I tried everything, I have a blank Preferences.xml file and no access trough HTTPS but HTTP only and I cannot find the Server istance on my QNAP NAS.

I did a NAS Reset already, tried to uninstall and reinstall it, Plex update to latest release with no luck. I’m always getting a 401 Unauthorized error.

I dunno what to do, can someone help me out?

thanks in advance

Server Version#: 1.16.6

{
“type”: “log:message”,
“level”: 1,
“message”: “[Connections] [Loopback] is unavailable at http://127.0.0.1:32400/media/providers (Status 0)”,
“time”: “2020-04-26T12:55:01.094Z”
},
{
“type”: “log:message”,
“level”: 1,
“message”: “[Connections] [Loopback] is unavailable at http://127.0.0.1:32400/media/providers (Status 0)”,
“time”: “2020-04-26T12:55:01.094Z”
},
{
“type”: “log:message”,
“level”: 1,
“message”: “[Connections] All connections to [Loopback] failed”,
“time”: “2020-04-26T12:55:01.098Z”
},
{
“type”: “log:message”,
“level”: 4,
“message”: “[Servers] Waiting for initial servers = [Bundled], plex.tv”,
“time”: “2020-04-26T12:55:01.099Z”
},
{
“type”: “log:message”,
“level”: 1,
“message”: “[Companion] No companion found”,
“time”: “2020-04-26T12:55:01.102Z”
},

If you uninstalled PMS, then your previous PMS installation is gone.
QNAP deletes an app’s data when uninstalling.

I have new scripting to prevent this but it’s not quite ready for general use.
I am almost ready for a Forum Preview of it.

PMS and Plex/web are not tied to each other. Most don’t realize that even if the web page loads from the server , it’s not tied to it.

Your new installation is waiting out there. Plex/Web can’t find it yet because it’s still looking for the old one. This message tells us

“message”: “[Servers] Waiting for initial servers = [Bundled], plex.tv”,
  1. Let’s first remove the old server entry at Plex.tv

Settings - Authorized Devices (upper left corner) - Servers (the drop down)

  1. Now sign out of Plex/Web (upper right corner in the Avatar)
  2. Close the browser
  3. Open the browser again
  4. Open an incognito window
  5. Go to http://ip.addr.of.qnap:32400/web

You should find your new server installation sitting there waiting for you.

Hi there, thanks for your answer.

Unfortunately I don’t have the old server remove option so I cannot remove it otherwise I would have already done it.

There’s anything else I can do? Thanks again

Yes…

Open https://app.plex.tv

This will bring you to the Plex-hosted desktop.

From there, you can perform the same action to remove the old server definition.

Now you can proceed with the reinstallation.

Hi, unfortunately is not like that, maybe because i delete the old Plex account and create a completely new one?

By the way there’s no way for me to find the new Plex server on my NAS as per screenshot attached. What else I can do here? Thank you.

Hai eliminato il tuo account Plex principale? (l’ultimo account utilizzato per accedere al server)

Se questo account è stato eliminato, dovremo ricominciare da capo.

Descrivi per me i passaggi di base che hai fatto per arrivare a questo punto.

Sto cercando di capire dove ti trovi, quindi posso aiutarti a procedere.

Did you delete your main Plex account? (the account you used to sign into the server last)

If this account has been deleted, we will need to start over.

Please describe for me the basic steps you’ve done to get you to this point.

I am attempting to understand where you are at so I may then help you proceed forward.

I don’t know what point you’re at.

You deleted your main Plex account ?

If you have then the account which the NAS is using will never allow you to access it.

I am confused. Perhaps you can write in Italian and I will use google translate ?

Yep I deleted the main old account and created a new one but still the Plex Server installed on my NAS isn’t recognised. I tried everything you wrote without any luck.

This is what I get if I try the steps above:

No soup for you!

The server you’re trying to access doesn’t want to let you in. Make sure you’re signed in as a user with access to this server.

What is the IP address of your computer and what is the IP address of the QNAP?
Are both on the same IPv4 subnet?

You are using http://ip.addr.of.qnap:32400/web to access it?

Yep, but there’s now ay to see it. Do you want a Team Viewer session to check yourself?

  1. Use this package, written by Dane22 (a moderator), to grain access to the Plex “Preferences.xml” file
  1. Install the QNAP text editor (App Center)

  2. Stop Plex

  3. Open File Station, navigate into the PlexLibShare and find “Preferences.xml”

  4. Right Click and Open the file in the Text Editor.

  5. I want you to remove the entries for:
    a. PlexOnlineUsername
    b. PlexOnlineEmail
    c. PlexOnlineToken
    d. Save the file

  6. Open a browser to https://app.plex.tv

  7. Settings - Authorized Devices - Servers (dropdown)

  8. Remove the QNAP server entry.

  9. Sign Out (upper right corner - your avatar)

  10. Start Plex

  11. Open an incognito browser window

  12. open http://ip.addr.of.qnap:32400/web

  13. Be greeted by the Got-It and Sign On

  14. It will find the server sitting there and wanting to be claimed or setup.

  15. If it wants to setup – skip through everything and get to the dashboard

  16. Whenever it wants to be claimed - claim it.

Hi there,

this is what my preferences.xml file contain:

<?xml version="1.0" encoding="utf-8"?>

Screen Shot 2020-05-06 at 20.33.49

From which folder I should get the preferences.xml file?

Follow the tree. (My top folder is PlexData. Yours will says PMSLib)

Look on the right side here. ^^

Preferences.xml

I don’t have that folder on mu file station I’m sorry, I have to access the NAS via SFTP to access the hidden folders but my preferences.xml file is empty

Hi, how I can fix this issue then? Thank you.

I"m sorry, I didn’t see this until now.

Preferences.xml should never be empty.

If it’s empty (zero length) then

  1. Stop PMS.
  2. Start it
  3. let run for 2 minutes
  4. Stop PMS
  5. now check the lenght

When PMS 1.19.5 is released, you will hae the PlexData shared folder.
Until then (about 2 weeks until it becomes public release),

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