NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
devbobo
Feb 23, 2015Aspirant
Plex not auto starting on reboot
G'day Guys,
I have Plex install on a RN-516, but for some reason when I reboot the NAS, I have to manually start the App.
Can someone please point in the the right direction on where to look to resolve this.
Thanks,
David
I have Plex install on a RN-516, but for some reason when I reboot the NAS, I have to manually start the App.
Can someone please point in the the right direction on where to look to resolve this.
Thanks,
David
9 Replies
Replies have been turned off for this discussion
- mdgm-ntgrNETGEAR Employee RetiredWhat version of Plex and what version of ReadyNAS OS?
- devboboAspirantPlex 0.9.11.7.803-87d0708
ReadyNAS OS 6.2.2 - mdgm-ntgrNETGEAR Employee RetiredAny clues in the journal?
Reboot the NAS, download the logs and look in systemd-journal.log - devboboAspirantNothing really stood out to me, I'll PM you the log.
The interesting thing I just noticed, when I load frontview immediately after the reboot, it shows Plex as running on the System Overview page...but if I reload the page, it's no longer shown as running. But if I start it manually, if starts up and runs fine. - mdgm-ntgrNETGEAR Employee RetiredYou might be better off asking on the Plex forums about this.
- devboboAspirantok, no worries
- devboboAspirantI've been doing a bit more digging on this...and it appears that PMS might be attempting to start before the network is fully up. The service is currently using netwrok.target after which to start, is it possible to somehow add a delay to this as well ?
[Unit]
Description=Plex Media Server
After=network.target
[Service]
EnvironmentFile=/apps/plexmediaserver/plexmediaserver_environment
ExecStartPre=/bin/sh -c '/usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"'
ExecStartPre=/bin/sh -c '/usr/bin/test -d "/apps/plexmediaserver/temp" || /bin/mkdir -p "/apps/plexmediaserver/temp"'
ExecStart=/bin/sh -c '/apps/plexmediaserver/Binaries/Plex\ Media\ Server'
Type=simple
[Install]
WantedBy=multi-user.target - devboboAspirantchanging the file to the following seemed to make it work....
[Unit]
Description=Plex Media Server
After=network.target
[Service]
EnvironmentFile=/apps/plexmediaserver/plexmediaserver_environment
ExecStartPre=/bin/sh -c 'sleep 60'
ExecStartPre=/bin/sh -c '/usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"'
ExecStartPre=/bin/sh -c '/usr/bin/test -d "/apps/plexmediaserver/temp" || /bin/mkdir -p "/apps/plexmediaserver/temp"'
ExecStart=/bin/sh -c '/apps/plexmediaserver/Binaries/Plex\ Media\ Server'
Type=simple
[Install]
WantedBy=multi-user.target - mtakacsAspirantFor anyone else who might be looking for this file, like I was, it's at
/apps/plexmediaserver/fvapp-plexmediaserver.service
-Mark
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!