× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Re: PlexPy - Plex Server Manager

Retired_Member
Not applicable

PlexPy - Plex Server Manager

Hello,

 

I've discovered PlexPy (https://github.com/drzoidberg33/plexpy) to follow the usage of my Plex Server, I managed to install it following the instructions on the GitHub installation page, but I can't make it to start automatically on Startup with my ReadyNAS.

There is an explanation to "install it as a deamon", but I'm not an expert and can't figure it out.

 

Could someone help me ?

 

Thanks a lot in advance.

 

Best!

Message 1 of 22

Accepted Solutions
RichStevenson
Aspirant

Re: PlexPy - Plex Server Manager

I just added it to the cron job to run at reboot.

 

crontab -e

@reboot python /opt/plexpy/PlexPy.py -d

 

 

View solution in original post

Message 9 of 22

All Replies
siigna
NETGEAR Expert

Re: PlexPy - Plex Server Manager

You'll want to use one of the "*.systemd" scripts provided in PlexPy's "init-scripts" directory, since ReadyNAS uses systemd as its init system.  Take note of the "Installation Notes" and "Configuration Notes" sections in the service file.

Message 2 of 22
Retired_Member
Not applicable

Re: PlexPy - Plex Server Manager

Hello,

 

Thank you for the quick reply !

I followed all the instruction on the init-scripts, created the folders, I installed plexpy in the /home/admin/plexpy folder.

But still when I type "systemctl start plexpy.service" I get the error message: "Job failed. See system journal and 'systemctl status' for details."

I can't locate the "system journal".

 

Would you have any idea on this issue ?

 

Thank you!

Message 3 of 22
StephenB
Guru

Re: PlexPy - Plex Server Manager

Message 4 of 22
Retired_Member
Not applicable

Re: PlexPy - Plex Server Manager

Thank you @StephenB for the help !

 

 

Here's a copy of the journal log :

Dec 08 21:06:56 NAS PlexPy.py[26442]: Traceback (most recent call last):
Dec 08 21:06:56 NAS PlexPy.py[26442]: File "/home/admin/plexpy/PlexPy.py", line 232, in <module>
Dec 08 21:06:56 NAS PlexPy.py[26442]: main()
Dec 08 21:06:56 NAS PlexPy.py[26442]: File "/home/admin/plexpy/PlexPy.py", line 157, in main
Dec 08 21:06:56 NAS PlexPy.py[26442]: plexpy.initialize(config_file)
Dec 08 21:06:56 NAS PlexPy.py[26442]: File "/home/admin/plexpy/plexpy/__init__.py", line 118, in initialize
Dec 08 21:06:56 NAS PlexPy.py[26442]: verbose=VERBOSE)
Dec 08 21:06:56 NAS PlexPy.py[26442]: File "/home/admin/plexpy/plexpy/logger.py", line 153, in initLogger
Dec 08 21:06:56 NAS PlexPy.py[26442]: file_handler = handlers.RotatingFileHandler(filename, maxBytes=MAX_SIZE, backupCount=MAX_FILES)
Dec 08 21:06:56 NAS PlexPy.py[26442]: File "/usr/lib/python2.7/logging/handlers.py", line 117, in __init__
Dec 08 21:06:56 NAS PlexPy.py[26442]: BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
Dec 08 21:06:56 NAS PlexPy.py[26442]: File "/usr/lib/python2.7/logging/handlers.py", line 64, in __init__
Dec 08 21:06:56 NAS PlexPy.py[26442]: logging.FileHandler.__init__(self, filename, mode, encoding, delay)
Dec 08 21:06:56 NAS PlexPy.py[26442]: File "/usr/lib/python2.7/logging/__init__.py", line 901, in __init__
Dec 08 21:06:56 NAS PlexPy.py[26442]: StreamHandler.__init__(self, self._open())
Dec 08 21:06:56 NAS PlexPy.py[26442]: File "/usr/lib/python2.7/logging/__init__.py", line 924, in _open
Dec 08 21:06:56 NAS PlexPy.py[26442]: stream = open(self.baseFilename, self.mode)
Dec 08 21:06:56 NAS PlexPy.py[26442]: IOError: [Errno 2] No such file or directory: '/None/plexpy.log'
Dec 08 21:06:56 NAS systemd[1]: plexpy.service: control process exited, code=exited status=1
Dec 08 21:06:56 NAS systemd[1]: Unit plexpy.service entered failed state.

 

 

I don't know if it can be of any help.

 

Thank you!

Message 5 of 22
StephenB
Guru

Re: PlexPy - Plex Server Manager

Perhaps logging is configured to write to a non-existent folder ('/None/plexpy.log')?

Message 6 of 22
Retired_Member
Not applicable

Re: PlexPy - Plex Server Manager

Just checked it seems to be correct, I checked the config.ini file of plexpy and all's good.

 

 

Here's how config the plexpy.service file:

 

Description=PlexPy - Stats for Plex Media Server usage

[Service]
ExecStart=/home/admin/plexpy/PlexPy.py --daemon --config /etc/plexpy/plexpy.ini --datadir /home/admin/.plexpy --nolaunch --quiet
GuessMainPID=no
Type=forking
User=admin
Group=admin

[Install]
WantedBy=multi-user.target

Message 7 of 22
StephenB
Guru

Re: PlexPy - Plex Server Manager

Well, the error says its trying to write to /None/, so something is off.  Is there anything in config.ini?

 

It's not an app I use, you might need to reach out to drzoidberg33.

Message 8 of 22
RichStevenson
Aspirant

Re: PlexPy - Plex Server Manager

I just added it to the cron job to run at reboot.

 

crontab -e

@reboot python /opt/plexpy/PlexPy.py -d

 

 

Message 9 of 22
Retired_Member
Not applicable

Re: PlexPy - Plex Server Manager

It looks like it's working !

 

Thank you so much, I've been working for a solution for some time now.

 

Thanks again for the help !

Message 10 of 22
BrianL2
NETGEAR Employee Retired

Re: PlexPy - Plex Server Manager

Hi Lex_Mih,

 

It seems like all is covered now and the thread is closed. I hope this thread will be helpful to other community members who are planning and using PLEX Server.

 

 

Kind regards,

 

BrianL
NETGEAR Community Team

Message 11 of 22
mdgm-ntgr
NETGEAR Employee Retired

Re: PlexPy - Plex Server Manager

Personally I would use systemd for this rather than cron.

Message 12 of 22
kohdee
NETGEAR Expert

Re: PlexPy - Plex Server Manager

I highly advise not installing plexpy to /opt. /opt is an OS partition.

Please install it to /apps/plexpy instead as /apps/plexpy is on the data volume and /opt is on the OS, which has limited space. 

Installing to the OS could limit your supportability from NETGEAR. 

Message 13 of 22
fremske
Guide

Re: PlexPy - Plex Server Manager

Hi there,

 

Can someone perhapse make a deb. package so newbies like me can easliy install this program via the frond end?

 

Many thanks.


Cheers,
Fremske

Message 14 of 22
JennC
NETGEAR Employee Retired

Re: PlexPy - Plex Server Manager

Hello fremske,

 

You may also post suggestions and ideas at Idea Exchange board. Adding kudos to the ideas will help as development team will be reviewing the post that has the most kudos for considering it to add to the product's future functionality.

 

Regards,

Message 15 of 22
kohdee
NETGEAR Expert

Re: PlexPy - Plex Server Manager

I think I know someone working on one 🙂

Message 16 of 22
fremske
Guide

Re: PlexPy - Plex Server Manager

Thank you Kohdee!

 

Any idea, where I can obtain the debian package file?

Is there a download link you can provide?

 

Cheers,
Fremske.

Message 17 of 22
kohdee
NETGEAR Expert

Re: PlexPy - Plex Server Manager

I don't have a link or a date -- but it'll eventually go through the ReadyNAS App Developer portal for approval.

 

Edit: Look below 😛

Message 18 of 22
Mhynlo
Luminary

Re: PlexPy - Plex Server Manager

There is a PlexPy build that is available here if you would like to try it out before its posted on the app store:

https://github.com/Mhynlo/rn-plexpy/releases/tag/1.3.6

 

Message 19 of 22
kohdee
NETGEAR Expert

Re: PlexPy - Plex Server Manager

@fremske, see @Mhynlo's post and try that deb file out and let us know if it is satisfactory. 

Message 20 of 22
fremske
Guide

Re: PlexPy - Plex Server Manager

Hi guys,

 

The package PlexPY 1.3.6 is working perfectly on my RN102.

 

Thanks a lot for this great contribution.


Cheers,

Fremske

Message 21 of 22
Mhynlo
Luminary

Re: PlexPy - Plex Server Manager

PlexPy is now avaialble on the app site:

http://apps.readynas.com/pages/?page_id=9

Message 22 of 22
Top Contributors
Discussion stats
  • 21 replies
  • 10681 views
  • 2 kudos
  • 10 in conversation
Announcements