So im having issues with my plex disconnecting my mnts

Thanks for sharing that.

  1. You should not have that full service file there. The one which ships with PMS is in /lib/systemd/system/plexmediaserver.service

  2. The contents of what you show there is incorrect.

Are you attempting to customize plex?

If so, please tell me what you want to do and I’ll help.

Once proper customization is setup with systemd, we’ll erase the file you show there.

Did you remove the snap package?

I don’t know what customize plex refers too. but i’m just using plex to stream movies and such that i have on my unraid nas i built.

i ran the remove sanp line you posted above

i have attempted to setup the auto mount drives, it auto mounts them when i reboot the plex server, so i think I did it correct.

I’d like to check what’s happening.

  1. Open a terminal window
  2. ls -la /lib/systemd/system | grep -i plexm
  3. You should find it there.
  4. Next, ls -la /var/lib/plexmediaserver
  5. You should find Library listed there.

Please let me know what you find.

image

Good.

Let’s get that errant file out of there.

sudo rm /etc/systemd/system/plexmediaserver.service
sudo systemctl daemon-reload

Now we can enable Plex to start at system startup and also start it now.

sudo systemctl enable plexmediaserver
sudo systemctl start plexmediaserver

Now you can open a browser window, open http://127.0.0.1:32400/web

The Plex/web client will load.

You should now be able to do normal first run setup.

the web address says problem loading page

ok… let’s hit it a little harder :smiling_imp:

sudo chown -R plex:plex /var/lib/plexmediaserver
sudo systemctl start plexmediaserver
ps -ef | grep -i plexm

You should see a plex process or two at this point.

If not.

sudo tar cf /tmp/plexlogs.tar.gz  "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs"

The logs will be in /tmp/plexlogs.tar.gz

please attach that here.

i got this

Get the logs please.

plexlogs.tar.gz (20 KB)

i must have really messed this thing up when i tried to set it up.

Restart the host please.

There is a stuck process somewhere

do this?
sudo systemctl start plexmediaserver

there is a process somewhere which is holding the port open.

That’s what we need to get rid of.

restart the computer. let it all startup normally

ok, its restarted

now look for the processes.

ps -ef | grep -i plex

that is messed up…

Not hard.

sudo bash
cd /var/lib/plexmediaserver
mv Library  Library.old

Start Plex.
Let it run 2-3 minutes for it to create the empty structure.
Attempt to open Plex/web again.

( I am writing these instructions assuming you’re typing the commands on the same machine which is running the server ?? )

use the sudo systemctl start plexmediaserver to start it?

yep, its the computer that i have ubuntu and plex on.

Yes. that starts plex