I had an installation of Plex Server on my Raspberry Pi 4 (running Ubuntu Server) which was working fine. I recently had to restart the machine, and now the Plex Media Server service will not start. When I check the output with journalctl -xe, I get this output:
The job identifier is 337574.
Feb 19 17:34:25 ubuntu Plex Media Server[92412]: /bin/sh: 1: exec: /usr/lib/plexmediaserver/Plex Media Server: Permission denied
Feb 19 17:34:25 ubuntu systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=126/n/a
– Subject: Unit process exited
– Defined-By: systemd
– Support: http://www.ubuntu.com/support
I have the Plex server running as the user ubuntu, which is the owner of the /usr/lib/plexmediaserver/ folder, which seems correct. Any ideas about what else I can check in order to try and get the server to start again?
ubject: A start job for unit plexmediaserver.service has finished successfu>
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit plexmediaserver.service has finished successfully.
--
-- The job identifier is 337964.
Feb 19 22:37:10 ubuntu systemd[1]: plexmediaserver.service: Main process exited>
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit plexmediaserver.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 126.
Feb 19 22:37:10 ubuntu Plex Media Server[94741]: /bin/sh: 1: exec: /usr/lib/ple>
Feb 19 22:37:10 ubuntu systemd[1]: plexmediaserver.service: Failed with result >
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit plexmediaserver.service has entered the 'failed' state with result >
lines 2002-2024/2024 (END)
Feb 19 22:37:10 ubuntu systemd[1]: Started Plex Media Server.
-- Subject: A start job for unit plexmediaserver.service has finished successfully
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit plexmediaserver.service has finished successfully.
--
-- The job identifier is 337964.
Feb 19 22:37:10 ubuntu systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=126/n/a
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit plexmediaserver.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 126.
Feb 19 22:37:10 ubuntu Plex Media Server[94741]: /bin/sh: 1: exec: /usr/lib/plexmediaserver/Plex Media Server: Permission denied
Feb 19 22:37:10 ubuntu systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit plexmediaserver.service has entered the 'failed' state with result 'exit-code'.
~
Feb 19 22:37:05 ubuntu Plex Media Server[94729]: /bin/sh: 1: exec: /usr/lib/plexmediaserver/Plex Media Server: Permission denied
Feb 19 22:37:05 ubuntu systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit plexmediaserver.service has entered the 'failed' state with result 'exit-code'.
Feb 19 22:37:08 ubuntu sudo[94720]: pam_unix(sudo:session): session closed for user root
Feb 19 22:37:10 ubuntu systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 2.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Automatic restarting of the unit plexmediaserver.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Feb 19 22:37:10 ubuntu systemd[1]: Stopped Plex Media Server.
-- Subject: A stop job for unit plexmediaserver.service has finished
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A stop job for unit plexmediaserver.service has finished.
--
-- The job identifier is 337964 and the job result is done.
Feb 19 22:37:10 ubuntu systemd[1]: Starting Plex Media Server...
-- Subject: A start job for unit plexmediaserver.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit plexmediaserver.service has begun execution.
--
-- The job identifier is 337964.
Feb 19 22:37:10 ubuntu systemd[1]: Started Plex Media Server.
-- Subject: A start job for unit plexmediaserver.service has finished successfully
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit plexmediaserver.service has finished successfully.
--
-- The job identifier is 337964.
Feb 19 22:37:10 ubuntu systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=126/n/a
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit plexmediaserver.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 126.
Feb 19 22:37:10 ubuntu Plex Media Server[94741]: /bin/sh: 1: exec: /usr/lib/plexmediaserver/Plex Media Server: Permission denied
Feb 19 22:37:10 ubuntu systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit plexmediaserver.service has entered the 'failed' state with result 'exit-code'.
Feb 19 22:52:21 ubuntu systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
Feb 19 22:52:21 ubuntu systemd[1]: Stopped Plex Media Server.
Feb 19 22:52:21 ubuntu systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Feb 19 22:52:21 ubuntu systemd[1]: plexmediaserver.service: Failed with result ‘exit-code’.
Feb 19 22:52:21 ubuntu systemd[1]: Failed to start Plex Media Server.
I purged the snap version and reinstalled with the .deb. Everything seems to have gone through successfully, and it’s functioning normally. Thanks a million for the help.