Recover server plex

Sorry for my bad English. I changed port 32400 in plex and now I cant access to my server. I have plex installed in server ubuntu. I dont know if is possible change again port to 32400 and recover my server. Can I recover my server? Thanks a lot

Is the server in your home and resident on one of your machines?

Thanks a lot for answer. Not I have plex in dedicated server. Maybe I may reinstall plex?

It might be easier.

  1. Stop Plex
  2. sudo rm -rf /var/lib/plexmediaserver/Library
  3. Start Plex
  4. Claim again and setup as new

Ok, I did but now when I type "sudo service plexmediaserver start " I get this error : Job for plexmediaserver.service failed because the control process exited with error code. See “systemctl status plexmediaserver.service” and “journalctl -xe” for details.

you must SSH onto the machine there as root

allow me to detal:

  1. SSH tunnel to the machine as root (ssh -L 8888:127.0.0.1:32400 ip.addr.of.remote)
  2. Stop PMS (systemctl stop plexmediaserver)
  3. Delete the old instance (rm -rf /var/lib/plexmediaserver/Library) - this will take a moment bu be silent
  4. Start again (systemctl start plexmediaserver)
  5. Since it is remote, we use the tunnel to initialize it
  6. http://127.0.0.1:8888/web

1 I type ssh -L 8888:127.0.0.1:32400 myip(xx.xx.xx.xx)

2 systemctl stop plexmediaserver

3 rm -rf /var/lib/plexmediaserver/Library

4 But when I type systemctl start plexmediaserver I get this error again: Job for plexmediaserver.service failed because the control process exited with e rror code. See “systemctl status plexmediaserver.service” and “journalctl -xe” f or details.

Hello ChuckPA. I solved with this:

sudo useradd plex -U -d /var/lib/plexmediaserver
sudo mkdir /var/lib/plexmediaserver
sudo chown -R plex:plex /var/lib/plexmediaserver
sudo systemctl reset-failed
sudo systemctl start plexmediaserver

After I start plex and scan again my library.

Can I ask you how can I add other server ? I means, I have plex installed in one dedicated server. Can I install plex in other with the same acount and email?

It looks like you manually did the work I do during initial installation and setup.
Had you previously changed PMS’ Library directory and username?
I also fail to understand why you had to recreate /var/lib/plexmediasesrver.
The installer does all this.

Anyway, to your question of adding it to your account, Because it is remote, you still must use the SSH tunnel to connect with it

Therefore I recommend the SSH-tunnel procedure I detailed above in addition to

  1. Signing your browser out of your plex account
  2. Opening an In-Cognito window
  3. accessing the server through the tunnel (http://127.0.0.1:8888/web) in that in-cognito window.
  4. If the setup wizard fails to engage. Stop PMS, delete "Preferences.xml, and restart it.
  5. Now you can claim it.
  6. If you have setup libraries on it already, SKIP over creating new. they survive the soft-reset

I dont know why but when I followed yours steps all work until star plexmedia server. In this step I got the error “Job for plexmediaserver.service failed because the control process exited with error code. See “systemctl status plexmediaserver.service” and “journalctl -xe” for details.” Then I didnt have the directory rm -rf /var/lib/plexmediaserver/Library, so I tryed with the steps in previous message and start again to configure plex.

I have one dedicated server, and I want add other dedicated server with the same account and email so :

  1. I need create ssh-tunnel like **ssh -L 8888:127.0.0.1:32400 thenewipserver.

  2. In-Cognito window I need acces to server through the tunnel (http://127.0.0.1:8888/web)

  3. Follow your step 4,5 and 6 and I may see my other server right ?

Thanks a lot for you support. I tried to say you my steps to solve my problem in case anyone needs it. For more details Im using Ubuntu 16.04. Sorry for my bad English, Im from Spain.

Hello ChuckPA. All perfect and working. Thanks a lot for you support

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