Diagnosing a service not starting on reboot (plexmediaserver)
up vote
0
down vote
favorite
I'm trying to figure out why a couple of my services aren't starting up at reboot. Once the system is up and running, I can run the service without issue.
/var/log/error.log
Nov 16 04:01:33 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
cat /lib/systemd/system/plexmediaserver.service
[Unit]
Description=Plex Media Server for Linux
After=network.target network-online.target
[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application Support"
Environment=PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
Environment=PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
Environment=PLEX_MEDIA_SERVER_TMPDIR=/tmp
ExecStartPre=/bin/sh -c '/usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"'
ExecStart=/bin/sh -c 'LD_LIBRARY_PATH=/usr/lib/plexmediaserver "/usr/lib/plexmediaserver/Plex Media Server"'
Type=simple
User=plex
Group=plex
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
[Install]
WantedBy=multi-user.target
journalctl -b e91fd44ec7d848aab748c9f63778f54e -u plexmediaserver.service
-- Logs begin at Tue 2018-10-23 07:53:01 MDT, end at Fri 2018-11-16 11:20:43 MST. --
Nov 16 04:01:28 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
Nov 16 04:01:28 Ubuntu systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
Nov 16 04:01:28 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
Nov 16 04:01:28 Ubuntu systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 16 04:01:28 Ubuntu systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 16 04:01:33 Ubuntu systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Nov 16 04:01:33 Ubuntu systemd[1]: Stopped Plex Media Server for Linux.
Nov 16 04:01:33 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
Nov 16 04:01:33 Ubuntu systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
Nov 16 04:01:33 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
Nov 16 04:01:33 Ubuntu systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 16 04:01:33 Ubuntu systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 16 04:01:39 Ubuntu systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Nov 16 04:01:39 Ubuntu systemd[1]: Stopped Plex Media Server for Linux.
Nov 16 04:01:39 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
Nov 16 04:01:39 Ubuntu systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
Nov 16 04:01:39 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
Nov 16 04:01:39 Ubuntu systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 16 04:01:39 Ubuntu systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 16 04:01:44 Ubuntu systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Nov 16 04:01:44 Ubuntu systemd[1]: Stopped Plex Media Server for Linux.
Nov 16 04:01:44 Ubuntu systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Nov 16 04:01:44 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
Nov 16 04:01:44 Ubuntu systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 16 04:01:44 Ubuntu systemd[1]: plexmediaserver.service: Failed with result 'start-limit-hit'.
Nov 16 11:12:46 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
Nov 16 11:12:46 Ubuntu systemd[1]: Started Plex Media Server for Linux.
journalctl -b e91fd44ec7d848aab748c9f63778f54e | grep -i plex
(standard input):1377:Nov 16 04:01:28 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
(standard input):1381:Nov 16 04:01:28 Ubuntu sh[2166]: /bin/mkdir: cannot create directory ‘/var/lib/plexmediaserver’: File exists
(standard input):1396:Nov 16 04:01:28 Ubuntu systemd[1]: Starting Tautulli/PlexPy - Stats for Plex Media Server usage...
(standard input):1403:Nov 16 04:01:28 Ubuntu systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
(standard input):1404:Nov 16 04:01:28 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
(standard input):1405:Nov 16 04:01:28 Ubuntu audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=plexmediaserver comm="systemd" exe="/lib/systemd/systemd" hostname=? addr=? te
rminal=? res=failed'
systemd plex
add a comment |
up vote
0
down vote
favorite
I'm trying to figure out why a couple of my services aren't starting up at reboot. Once the system is up and running, I can run the service without issue.
/var/log/error.log
Nov 16 04:01:33 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
cat /lib/systemd/system/plexmediaserver.service
[Unit]
Description=Plex Media Server for Linux
After=network.target network-online.target
[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application Support"
Environment=PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
Environment=PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
Environment=PLEX_MEDIA_SERVER_TMPDIR=/tmp
ExecStartPre=/bin/sh -c '/usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"'
ExecStart=/bin/sh -c 'LD_LIBRARY_PATH=/usr/lib/plexmediaserver "/usr/lib/plexmediaserver/Plex Media Server"'
Type=simple
User=plex
Group=plex
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
[Install]
WantedBy=multi-user.target
journalctl -b e91fd44ec7d848aab748c9f63778f54e -u plexmediaserver.service
-- Logs begin at Tue 2018-10-23 07:53:01 MDT, end at Fri 2018-11-16 11:20:43 MST. --
Nov 16 04:01:28 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
Nov 16 04:01:28 Ubuntu systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
Nov 16 04:01:28 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
Nov 16 04:01:28 Ubuntu systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 16 04:01:28 Ubuntu systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 16 04:01:33 Ubuntu systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Nov 16 04:01:33 Ubuntu systemd[1]: Stopped Plex Media Server for Linux.
Nov 16 04:01:33 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
Nov 16 04:01:33 Ubuntu systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
Nov 16 04:01:33 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
Nov 16 04:01:33 Ubuntu systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 16 04:01:33 Ubuntu systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 16 04:01:39 Ubuntu systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Nov 16 04:01:39 Ubuntu systemd[1]: Stopped Plex Media Server for Linux.
Nov 16 04:01:39 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
Nov 16 04:01:39 Ubuntu systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
Nov 16 04:01:39 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
Nov 16 04:01:39 Ubuntu systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 16 04:01:39 Ubuntu systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 16 04:01:44 Ubuntu systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Nov 16 04:01:44 Ubuntu systemd[1]: Stopped Plex Media Server for Linux.
Nov 16 04:01:44 Ubuntu systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Nov 16 04:01:44 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
Nov 16 04:01:44 Ubuntu systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 16 04:01:44 Ubuntu systemd[1]: plexmediaserver.service: Failed with result 'start-limit-hit'.
Nov 16 11:12:46 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
Nov 16 11:12:46 Ubuntu systemd[1]: Started Plex Media Server for Linux.
journalctl -b e91fd44ec7d848aab748c9f63778f54e | grep -i plex
(standard input):1377:Nov 16 04:01:28 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
(standard input):1381:Nov 16 04:01:28 Ubuntu sh[2166]: /bin/mkdir: cannot create directory ‘/var/lib/plexmediaserver’: File exists
(standard input):1396:Nov 16 04:01:28 Ubuntu systemd[1]: Starting Tautulli/PlexPy - Stats for Plex Media Server usage...
(standard input):1403:Nov 16 04:01:28 Ubuntu systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
(standard input):1404:Nov 16 04:01:28 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
(standard input):1405:Nov 16 04:01:28 Ubuntu audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=plexmediaserver comm="systemd" exe="/lib/systemd/systemd" hostname=? addr=? te
rminal=? res=failed'
systemd plex
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to figure out why a couple of my services aren't starting up at reboot. Once the system is up and running, I can run the service without issue.
/var/log/error.log
Nov 16 04:01:33 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
cat /lib/systemd/system/plexmediaserver.service
[Unit]
Description=Plex Media Server for Linux
After=network.target network-online.target
[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application Support"
Environment=PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
Environment=PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
Environment=PLEX_MEDIA_SERVER_TMPDIR=/tmp
ExecStartPre=/bin/sh -c '/usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"'
ExecStart=/bin/sh -c 'LD_LIBRARY_PATH=/usr/lib/plexmediaserver "/usr/lib/plexmediaserver/Plex Media Server"'
Type=simple
User=plex
Group=plex
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
[Install]
WantedBy=multi-user.target
journalctl -b e91fd44ec7d848aab748c9f63778f54e -u plexmediaserver.service
-- Logs begin at Tue 2018-10-23 07:53:01 MDT, end at Fri 2018-11-16 11:20:43 MST. --
Nov 16 04:01:28 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
Nov 16 04:01:28 Ubuntu systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
Nov 16 04:01:28 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
Nov 16 04:01:28 Ubuntu systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 16 04:01:28 Ubuntu systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 16 04:01:33 Ubuntu systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Nov 16 04:01:33 Ubuntu systemd[1]: Stopped Plex Media Server for Linux.
Nov 16 04:01:33 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
Nov 16 04:01:33 Ubuntu systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
Nov 16 04:01:33 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
Nov 16 04:01:33 Ubuntu systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 16 04:01:33 Ubuntu systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 16 04:01:39 Ubuntu systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Nov 16 04:01:39 Ubuntu systemd[1]: Stopped Plex Media Server for Linux.
Nov 16 04:01:39 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
Nov 16 04:01:39 Ubuntu systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
Nov 16 04:01:39 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
Nov 16 04:01:39 Ubuntu systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 16 04:01:39 Ubuntu systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 16 04:01:44 Ubuntu systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Nov 16 04:01:44 Ubuntu systemd[1]: Stopped Plex Media Server for Linux.
Nov 16 04:01:44 Ubuntu systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Nov 16 04:01:44 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
Nov 16 04:01:44 Ubuntu systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 16 04:01:44 Ubuntu systemd[1]: plexmediaserver.service: Failed with result 'start-limit-hit'.
Nov 16 11:12:46 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
Nov 16 11:12:46 Ubuntu systemd[1]: Started Plex Media Server for Linux.
journalctl -b e91fd44ec7d848aab748c9f63778f54e | grep -i plex
(standard input):1377:Nov 16 04:01:28 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
(standard input):1381:Nov 16 04:01:28 Ubuntu sh[2166]: /bin/mkdir: cannot create directory ‘/var/lib/plexmediaserver’: File exists
(standard input):1396:Nov 16 04:01:28 Ubuntu systemd[1]: Starting Tautulli/PlexPy - Stats for Plex Media Server usage...
(standard input):1403:Nov 16 04:01:28 Ubuntu systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
(standard input):1404:Nov 16 04:01:28 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
(standard input):1405:Nov 16 04:01:28 Ubuntu audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=plexmediaserver comm="systemd" exe="/lib/systemd/systemd" hostname=? addr=? te
rminal=? res=failed'
systemd plex
I'm trying to figure out why a couple of my services aren't starting up at reboot. Once the system is up and running, I can run the service without issue.
/var/log/error.log
Nov 16 04:01:33 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
cat /lib/systemd/system/plexmediaserver.service
[Unit]
Description=Plex Media Server for Linux
After=network.target network-online.target
[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application Support"
Environment=PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
Environment=PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
Environment=PLEX_MEDIA_SERVER_TMPDIR=/tmp
ExecStartPre=/bin/sh -c '/usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"'
ExecStart=/bin/sh -c 'LD_LIBRARY_PATH=/usr/lib/plexmediaserver "/usr/lib/plexmediaserver/Plex Media Server"'
Type=simple
User=plex
Group=plex
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
[Install]
WantedBy=multi-user.target
journalctl -b e91fd44ec7d848aab748c9f63778f54e -u plexmediaserver.service
-- Logs begin at Tue 2018-10-23 07:53:01 MDT, end at Fri 2018-11-16 11:20:43 MST. --
Nov 16 04:01:28 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
Nov 16 04:01:28 Ubuntu systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
Nov 16 04:01:28 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
Nov 16 04:01:28 Ubuntu systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 16 04:01:28 Ubuntu systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 16 04:01:33 Ubuntu systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Nov 16 04:01:33 Ubuntu systemd[1]: Stopped Plex Media Server for Linux.
Nov 16 04:01:33 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
Nov 16 04:01:33 Ubuntu systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
Nov 16 04:01:33 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
Nov 16 04:01:33 Ubuntu systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 16 04:01:33 Ubuntu systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 16 04:01:39 Ubuntu systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Nov 16 04:01:39 Ubuntu systemd[1]: Stopped Plex Media Server for Linux.
Nov 16 04:01:39 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
Nov 16 04:01:39 Ubuntu systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
Nov 16 04:01:39 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
Nov 16 04:01:39 Ubuntu systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 16 04:01:39 Ubuntu systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Nov 16 04:01:44 Ubuntu systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Nov 16 04:01:44 Ubuntu systemd[1]: Stopped Plex Media Server for Linux.
Nov 16 04:01:44 Ubuntu systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Nov 16 04:01:44 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
Nov 16 04:01:44 Ubuntu systemd[1]: plexmediaserver.service: Unit entered failed state.
Nov 16 04:01:44 Ubuntu systemd[1]: plexmediaserver.service: Failed with result 'start-limit-hit'.
Nov 16 11:12:46 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
Nov 16 11:12:46 Ubuntu systemd[1]: Started Plex Media Server for Linux.
journalctl -b e91fd44ec7d848aab748c9f63778f54e | grep -i plex
(standard input):1377:Nov 16 04:01:28 Ubuntu systemd[1]: Starting Plex Media Server for Linux...
(standard input):1381:Nov 16 04:01:28 Ubuntu sh[2166]: /bin/mkdir: cannot create directory ‘/var/lib/plexmediaserver’: File exists
(standard input):1396:Nov 16 04:01:28 Ubuntu systemd[1]: Starting Tautulli/PlexPy - Stats for Plex Media Server usage...
(standard input):1403:Nov 16 04:01:28 Ubuntu systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
(standard input):1404:Nov 16 04:01:28 Ubuntu systemd[1]: Failed to start Plex Media Server for Linux.
(standard input):1405:Nov 16 04:01:28 Ubuntu audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=plexmediaserver comm="systemd" exe="/lib/systemd/systemd" hostname=? addr=? te
rminal=? res=failed'
systemd plex
systemd plex
asked 2 days ago
Ackis
124212
124212
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093536%2fdiagnosing-a-service-not-starting-on-reboot-plexmediaserver%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown