Reinstall Operation System and Plex Media Server

Hello, I had a 64-bit CentOS 7 server with Plex Media Server installed on it.
Recently I reinstalled this CentOS server and reinstalled Plex Media Server, but it did not work properly anymore.
In the browser the only message that appears “Looking for servers …” and no longer loads the Plex server resources.

In the operating system, apparently everything is ok.
[root@cerberus ~]# systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
Loaded: loaded (/usr/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2019-04-23 13:02:10 -03; 16min ago
Process: 7505 ExecStartPre=/bin/sh -c /usr/bin/test -d “{PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "{PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” (code=exited, status=0/SUCCESS)
Main PID: 7565 (Plex Media Serv)
Tasks: 72
CGroup: /system.slice/plexmediaserver.service
├─7565 /usr/lib/plexmediaserver/Plex Media Server
├─7670 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-ad6e39743/Framework.bundle/Contents/Resources/Versions/2/Python…
├─8397 /usr/lib/plexmediaserver/Plex DLNA Server
├─8401 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared …
└─8447 Plex Plug-in [com.plexapp.agents.imdb] /usr/lib/plexmediaserver/Resources/Plug-ins-ad6e39743/Framework.bundle/Contents/Resources/Versions/2/P…

Apr 23 13:02:10 cerberus.evops.corp systemd[1]: Starting Plex Media Server…
Apr 23 13:02:10 cerberus.evops.corp systemd[1]: Started Plex Media Server.

[root@cerberus ~]# cat /usr/lib/firewalld/services/plexmediaserver.xml

<?xml version="1.0" encoding="utf-8"?> plexmediaserver Plex TV Media Server

[root@cerberus ~]# ls -ld /var/lib/plexmediaserver
drwxr-xr-x. 3 plex plex 21 Apr 23 11:28 /var/lib/plexmediaserver

Thanks for the help.

What doesn’t work?
Upon reinstalling, did you open the loopback adapter and perform first-run setup again?

You’e shown the output from systemd and that you have the host bound to a domain.

The browser only displays this page, it does not load the media server resources.

  1. Is the server local or remote?
  2. Is it a standalone host on your LAN or on your computer itself?

What you show there looks like nothing has been initialized and attached to that login account
-OR-
Web is still looking for it under the old device identifier (Remove the old in Settings - Devices - Server)

It’s a local server, standalone (physical host), it’s on my LAN.
After reinstalling the CentOS 7.6.1810 operating system and Plex Media Server, this page only appears.
The option to remove the old device (Settings - Devices- Server), does not appear in my settings.

In the (Authorized Devices) option only my connection to the browser appears.

Next major question: RFC-1918 compliant LAN addressing? (192.168.x.x, 172.16.x.x - 172.31.x.x, or 10.x.x.x)

It was all working, I just reinstalled the operating system with the same hostname, same ip addresses. But the networks are 192.168.1.x and 10.0.69.x, this server is the router, firewall, gateway and dns server of the network, in addition to being the media server.

Sign the Plex/Web out of your account. (it’s hanging on to the old Machine ID)
Now, in an incognito window, open the IP of the machine directly and complete the initialization.
Until init is complete, Plex/web won’t automatically find it

1 Like

I accessed https://plex.tv and logged in with my account, but not found a option to remove the old server ID. Is that really the address?

Seems to be the exact issue as: Plex Web not finding Server

Please understand:

  1. The server must be setup LOCALLY (or as if local / on the console)
  2. It must then sign into your Plex account
  3. Without both of these steps, it will not be seen in Plex/Web.

Accessing through Plex.tv REQUIRES the above
Accessing through the local server itself does not because it’s how you make it visible.

@ajan - Not the same.

That’s just what I’m trying to do. Accessing the local address http://10.0.69.1:32400, when opening the page, I login with my account and then it presents the page with the message “Looking for server …” "Where is my server? ".
This server has no graphical interface, for security sake the SSH port is not the default, which makes it harder to configure using ssh tunnel.
I do not know what to do to register the new installation.

Ok. Let’s do the SSH tunnel technique:

  1. Presume sshd runs on that host
  2. on the local host:
ssh -L 8888:127.0.0.1:32400  ip.addr.of.host
-sign in-
-- stop plex on that host --
-- sudo rm -f "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Preferences.xml" 
-- start plex

Return to local host but leave ssh session open

Open incognito session / Window

In that session http://127.0.0.1:8888/web

Now you will be greeted properly.

What do you mean by local host? Was it the Windows station? To run the ssh command on Windows station or CentOS server?

You have a Centos host you want to reinstall Linux on, right?

  1. Enable sshd on Centos
  2. from MacOS , the same ssh -L command from above works.
    from Windows however, you need port forwarding and Putty.
    Please see the link below.

https://support.plex.tv/articles/200288586-installation/

and

May I ask how you set it up the first time?

1 Like

Since i have the same issue, i deleted preferneces.xml, claimed my server new (localhost). Deleted all old entries in Devices.
The problem still exists. Maybe the new beta update (plex web) will fix it. I found out, that PMP also can‘t connect. Other Apps still work…

Hello, the problem still persists, I performed the procedure, but to no avail.

Hello, I still have this problem. I could not solve it. Does anyone else have any ideas? I bought the “Lifetime Plex Pass” license and can not use it.

@lvicentini

I need to know if your server is remote (hosted somewhere or local).

If local, I need to know its IP address and the IP address you’re trying to configure it from.
I ask this because Plex uses RFC-1918 addressing.
(192.168.x.x, 172.16.x.x-172.31.x.x, and 10.x.x.x to determine if local or remote. If your LAN IP addresses are not RFC-compliant, it will behave as a remote host.

Also, May I have the existing Logs (create a tar.gz not .tgz of the Logs directory? It will tell me what PMS is seeing and any gross errors.

Thanks a lot ChuckPA for you help and attention.

My LAN is 10.0.69.x, the IP address is 10.0.69.1
How send log file to you?