Jump to content

Plex media server not starting

ChungusBot
Go to solution Solved by tikker,
9 minutes ago, ChungusBot said:

I used this quide

https://techhut.tv/turn-laptop-media-server-ubuntu-plex/

that check returned 

drwxrwxr-x 5 www-data www-data 4096 Jun 18 00:31 /var/lib/plexmediaserver

Hmm I believe that folder should be owned by Plex so it can write there. I would

  1. Check if something is in there
  2. sudo chown -R plex:plex /var/lib/plexmediaserver to transfer ownership to Plex and try starting it again

Hi I just started up a plex server using ubuntu and I cant get the plex server to start. When i do 

sudo systemctl status plexmediaserver.service

I just says

 

● plexmediaserver.service - Plex Media Server
     Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2021-06-18 14:20:29 UTC; 4s ago
    Process: 1433 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir>
    Process: 1435 ExecStart=/bin/sh -c  export PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-release | awk -F= ">
   Main PID: 1435 (code=exited, status=1/FAILURE)

Jun 18 14:20:29 media systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
Jun 18 14:20:29 media systemd[1]: Stopped Plex Media Server.
Jun 18 14:20:29 media systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Jun 18 14:20:29 media systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Jun 18 14:20:29 media systemd[1]: Failed to start Plex Media Server.
lines 1-12/12 (END)

Link to comment
Share on other sites

Link to post
Share on other sites

Since it's a freshly setup instance, you might as well remove it and start over.

 

If that fails again, it's time to dive into the log files.

PC Specs - AMD Ryzen 7 5800X3D MSI B550M Mortar - 32GB Corsair Vengeance RGB DDR4-3600 @ CL16 - ASRock RX7800XT 660p 1TBGB & Crucial P5 1TB Fractal Define Mini C CM V750v2 - Windows 11 Pro

 

Link to comment
Share on other sites

Link to post
Share on other sites

Is plex the owner of /var/lib/plexmediaserver (or whatever its directory is)?

Crystal: CPU: i7 7700K | Motherboard: Asus ROG Strix Z270F | RAM: GSkill 16 GB@3200MHz | GPU: Nvidia GTX 1080 Ti FE | Case: Corsair Crystal 570X (black) | PSU: EVGA Supernova G2 1000W | Monitor: Asus VG248QE 24"

Laptop: Dell XPS 13 9370 | CPU: i5 10510U | RAM: 16 GB

Server: CPU: i5 4690k | RAM: 16 GB | Case: Corsair Graphite 760T White | Storage: 19 TB

Link to comment
Share on other sites

Link to post
Share on other sites

id

Just now, tikker said:

Is plex the owner of /var/lib/plexmediaserver?

i dont know how do i check

 

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, ChungusBot said:

id

i dont know how do i check

 

ls -ld /var/lib/plexmediaserver

 

plex needs to exist as a separate user and own its directories. How did you set it up?

Crystal: CPU: i7 7700K | Motherboard: Asus ROG Strix Z270F | RAM: GSkill 16 GB@3200MHz | GPU: Nvidia GTX 1080 Ti FE | Case: Corsair Crystal 570X (black) | PSU: EVGA Supernova G2 1000W | Monitor: Asus VG248QE 24"

Laptop: Dell XPS 13 9370 | CPU: i5 10510U | RAM: 16 GB

Server: CPU: i5 4690k | RAM: 16 GB | Case: Corsair Graphite 760T White | Storage: 19 TB

Link to comment
Share on other sites

Link to post
Share on other sites

9 minutes ago, ChungusBot said:

I used this quide

https://techhut.tv/turn-laptop-media-server-ubuntu-plex/

that check returned 

drwxrwxr-x 5 www-data www-data 4096 Jun 18 00:31 /var/lib/plexmediaserver

Hmm I believe that folder should be owned by Plex so it can write there. I would

  1. Check if something is in there
  2. sudo chown -R plex:plex /var/lib/plexmediaserver to transfer ownership to Plex and try starting it again

Crystal: CPU: i7 7700K | Motherboard: Asus ROG Strix Z270F | RAM: GSkill 16 GB@3200MHz | GPU: Nvidia GTX 1080 Ti FE | Case: Corsair Crystal 570X (black) | PSU: EVGA Supernova G2 1000W | Monitor: Asus VG248QE 24"

Laptop: Dell XPS 13 9370 | CPU: i5 10510U | RAM: 16 GB

Server: CPU: i5 4690k | RAM: 16 GB | Case: Corsair Graphite 760T White | Storage: 19 TB

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, tikker said:

Hmm I believe that folder should be owned by Plex so it can write there. I would

  1. Check if something is in there
  2. sudo chown -R plex:plex /var/lib/plexmediaserver to transfer ownership to Plex and try starting it again

yeah that worked thanks

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×