Server registers twice and Plex.tv access doesn't work

Server Version#: 1.16.3.1402
Player Version#: Whatever the version is that comes with PMS
The logs don’t really show any errors either with connections or PMS internals otherwise, so I won’t upload them right now, but I can in case you want.

What happens when I use the server direct URL (server IP and port):

  1. New fresh PMS install
  2. Sign into the server
  3. Server works fine, but for some reason a second server with the same name shows up in list as “unable to connect”.
  4. In devices list, only one server shows.
  5. In servers list (under “Web Client” section), the second server shows so I click on the (non-working) duplicate server and remove it.
  6. Come back to server URL, second server shows up again.

What happens when I connect via plex.tv:

  1. I sign in and click launch
  2. Both servers show up as “unable to connect”
  3. Cry

I have a transparent port forward from a public port to 32400 to enable remote access. Which technically works because when I open the public URL and forwarded port the server shows up (but with a duplicate server in the list). When I say “transparent” means that I’m not doing anything fancy and as far as I know there’s no headers being dropped or websockets limitations to any connections.

When I open it via plex.tv both servers look like they are down.

My Plex setup never had problems (not with server remote access or registration) before. And this is the first time in around 3 years this happens. My machine setup hasn’t changed (distro, networking, etc)

I thought there might be some conflict with the local database or the Preferences.xml file. This is why I did a clean install of PMS. Problem still happens.

Would you please go into the Logs directory on the host and make a tar.gz of everything there?

Then post that tarball here and I’ll look at it.

logs.tar.gz (3.6 MB)

would you please be so kind as to turn all the VERBOSE logging off?

It logs so much data that we lose what is needed at this level. The buffer is only 26MB in size.

DEBUG on
VERBOSE off

Restart PMS

Wait 2 minutes

Collect logs again.

Sure thing.

logs.tar.gz (3.6 MB)

There’s still some verbose entries, but most at the bottom is just debug

You forgot to restart PMS after setting DEBUG mode.

Each restart creates a new log file .

What I’m looking for occurs within the first 2 minutes after startup.

Will do.

Followup: Did you enable transcoder VERBOSE logging?

I think so, PMS is restarting, you want it on or off?

That also can be debug. we rarely need / want it verbose. Only time to use it is when testing new codecs

Yeah I just enabled everything I could get to debug. I’ll turn it off and restart again.

Thanks.

DEBUG is the default. VERBOSE is just too verbose to do anything but lose tons of data unless you’ve configured larger buffers.

In VERBOSE mode, you’ll never exceed 2 minutes of elapsed time due to that default buffer size

logs.tar.gz (3.4 MB)

I only saw another logging level in the “Web Client” segment and it was already disabled.

Thanks for those logs. I see what I need to see.

It’s trying to authenticate and is being denied. Is the account correct for this server ?

Aug 26, 2019 13:40:14.576 [0x7f1ea988b700] DEBUG - EventSource: Failure in ParseHeader: HTTP/1.1 403 Forbidden
Server: nginx
Date: Mon, 26 Aug 2019 13:40:14 GMT
Content-Type: text/html
Content-Length: 162
Connection: close

<html>
<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>
 (0 - Success).
Aug 26, 2019 13:40:14.576 [0x7f1ea988b700] ERROR - EventSource: Retrying in 15 seconds.

I logged in the server the first time with my username:password without problems.
Same when I log in into the web player, so I don’t know where this may be coming from, is there a place I can change something?

Settings - Server - General - (Show Advanced tab)

You can sign the server out and re-claim it.

Will do, should I restart after?

I would just be be safe.

Should this fail, I will next suspect the actual file ownership / permissions in /var/lib/plexmediaserver

EDIT: Need to step away a bit… will return asap

Me too, I’ll try again in about 1hr.