'The server "$server" is unreachable.' locally or remotely

Server Version#: 1.18.0.1944-f2cae8d6b (currently)
Installed from Repository: https://downloads.plex.tv/repo/deb/ public main
Player Version#: ALL
OS: (K)ubuntu 19.04 x86_64

For a while now PMS has been up and down, losing connection to the service multiple times an hour. Even the local WebPlayer is unable to connect to it reliably, but HTTP server and service are running and stable throughout.
(TL;DR: http://127.0.0.1:32400/web loads but often cannot reach server)

Steps tried:

  • Reboot client: Unresolved
  • Restart service (with systemctl): Unresolved
  • Reboot server: Unresolved
  • Clearing Preferences.xml: Unresolved
  • Server upgrade: Unresolved

Server has multiple home and remote users, all of which are effected.

Appears to only actually effect library browsing and settings, Once started media does not appear to be interrupted by this server “loss,” also “Podcasts” are not effected at all, remaining available when server is “unreachable.”

That will create a new server ID and you will loose all the share links with the old server.

When going to https://app.plex.tv/desktop#!/settings/devices/pms do you see the same server listed multiple times?

Yes, three at this point. 2x “an hour ago” and “11 hours ago”

do you still have a copy of the original prefernces.xml file?

Yes I do.

OK put that back so the machine ID matches with that server and restart server. Else all your shares are with it will be lost and you will need to reshare.

on the devices page I’m guessing it is the 11 hours ago one but not really sure so don’t remove them from that page.

after the server restarts give it a minute and can you grab the server logs. I’m guessing a DNS issue or similar but hoping logs will show what the deal is.

Done. Which logs do you want me to attach or do you want the whole log folder?

The plex media server.log should do for now

I think it’s attached here: (removed)

i don’t see anything. might have to zip it up

Okay. Added to previous post.

There are also 5 rollbacks if they will help.

if you have not done anything substantial since restart this should have everything useful.

seems like database part of database might be locked for some reason.

If you can get to server settings can you see if optimizing database helps at all. ( in Settings>Troubleshooting)

I can occassionally get into settings. I have done a lot of work with the database not too long ago. I have optimized and cleaned bundles and emptied trash in the last day or two. This has not solved this issue. (Didn’t occur to me that it might.)

Server is “down” at the moment.

If you think it will still help, I’ll try again if/when it comes back up.

There are some errors I have not seen before so waiting on some advice about them.

Not a problem. Depending on time frame, I may end up calling it a night (east coast here), but will check for responses in the morning if that happens.

It will likely be for a bit. It’s getting late here too, but hoping when the Europeans are around in a couple hours one might know

seems it is an issue with database corruption possibly causing the lock.

please try https://support.plex.tv/articles/201100678-repair-a-corrupt-database/

not sure how long this has been going on but you can also try to restore a back up if you have them

( you mentioned doing work with database so not sure when you did that but it might revert whatever changes you made)

Thank you for the assistance, Plex has not disconnected since rebuilding the library. Will let you know if it recurs.

1 Like