NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

devbobo's avatar
devbobo
Aspirant
Feb 23, 2015

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

9 Replies

Replies have been turned off for this discussion
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    What version of Plex and what version of ReadyNAS OS?
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    Any clues in the journal?

    Reboot the NAS, download the logs and look in systemd-journal.log
  • Nothing 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-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired
    You might be better off asking on the Plex forums about this.
  • I'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
  • changing 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
  • For anyone else who might be looking for this file, like I was, it's at

    /apps/plexmediaserver/fvapp-plexmediaserver.service

    -Mark

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More