Ubuntu 18.04, Plex server fails to start

Server Version#:4.83
Player Version#:1.18.1.1973

Hello, reaching out because this is beyond my depth into both Plex and Linux. Plex fails to load the server on start or restart, showing the exit code below. This has been happening intermittently with the upgrades to plex. Any help is greatly appreciated!

● plexmediaserver.service - Plex Media Server
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2019-11-01 10:15:49 EDT; 41min ago
  Process: 7225 ExecStart=/bin/sh -c  PLEX_MEDIA_SERVER_INFO_VENDOR="$(grep ^NAME= /etc/os-release | awk -F= "{print \$2}"
  Process: 7223 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "
 Main PID: 7225 (code=exited, status=255)

Nov 01 10:15:49 sediment systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Nov 01 10:15:49 sediment systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
Nov 01 10:15:49 sediment systemd[1]: Stopped Plex Media Server.
Nov 01 10:15:49 sediment systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Nov 01 10:15:49 sediment systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 01 10:15:49 sediment systemd[1]: Failed to start Plex Media Server.

Please examine sudo journalctl -xe | grep plex and look for error messages. Include anything you find here (the first line or two showing what the error is is most helpful).

Next, please create a tar.gz of the Logs directory under **Plex Media Server (/var/lib/plexmediaserver) and attach it.

Hmm… sudo journalctl yields no results, /var/lib/plexmediaserver is empty ourside of the Library directory. Thinking I should just uninstall and reinstall?

Did you manually create /var/lib/plexmediaserver before installing

-or-

did you create a user plex before installing?

Plex Media Server Logs_2019-11-02_14-58-22.zip (693.8 KB) Plex Media Server Logs_2019-11-02_14-58-22.zip (693.8 KB)

I followed non-standard install instructions after creating/mounting disk ‘disks’ and moving all video material to directories ‘tv’ ‘movies’ etc

Looking at those file structures, I thought they were all supposed to be owned by PMS, but it shows my login as owner. But I cannot find the install directory, wherever I put it

More signs for a reinstall.

The database is locked the moment PMS starts up. This isn’t good.

Whose “Non-Standard” install instructions did you use?

Nov 01, 2019 09:57:10.082 [0x7f890cff9700] DEBUG - Collections: Synced tags in section 1 in 0ms.
Nov 01, 2019 09:57:10.420 [0x7f890cff9700] ERROR - Failed to begin transaction (../Library/MetadataCollection.cpp:174) (tries=1): Cannot begin transaction. database is locked
Nov 01, 2019 09:57:10.424 [0x7f88ef7fe700] DEBUG - [com.plexapp.system] Sending command over HTTP (GET): /:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_
Nov 01, 2019 09:57:10.424 [0x7f88ef7fe700] DEBUG - HTTP requesting GET http://127.0.0.1:44119/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_

You’re using a SNAP package. PMS is walled off.

I recommend using the native, NON-snap, from plex.tv/downloads.

1 Like

It has been some time since install and I may be confusing PMS install with a NVR I put together. If anything was custom, it was the setup with a separate PMS owned mount point in ‘/disks’ I will get on the reinstall and report back if/when resolved. Thanks for your help @ChuckPa!

I’m always here if you need help.

1 Like

If you’re talking about this non-standard configuration, The technique is pretty much the defacto standard on how to deal with Gnome Nautilus and the automounter.

Uninstall/Reinstall worked 100%. Deleted nothing outside of the usual auto-removal of the server.

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