Help installing PlexPy

I’ve updated the SPK to now run as the ‘plex’ user (for those concerned with it running as root). As mentioned previously, I have only tested on DSM6.0 and have not added code to check for Plex PMS installation, Python installation; so these are prerequisites. As usual 'use at own risk’

Links as follows:
PlexPy - run as plex
PlexPy - run as root

@trumpy81 said:
Just a note: could you name the packages with root or Plex please.

And thanks for the excellent job you have done with this installer. It works very nicely and when I get the time, I will test your latest offerings. :slight_smile:

@trumpy81 - I’d only named the one that runs as root as ‘plexpy-root.spk’ but have renamed both to avoid confusion/make it clearer (plexpy-rootuser.spk and plexpy-plexuser.spk). Still not update from Synology on the DSM6.0 synouser/adduser issue so until they provide the answers this is the simplest workaround I can think of for now

@trumpy81 said:
Yeah Synology are not too forward, coming up with answers. I don’t think they like people telling them their software is broken … :))

And thanks for renaming the packages, that should save any confusion over which is which.

And thanks again for this great package. :smiley:

I’ve submitted a pull request to SynoCommunity for the PlexPy SPK. A few things to note…

  1. The directory structure of this will be different
  2. The SPK does not include the PlexPy code (pulled from git at time of install)
  3. If you install this, it will not utilise your existing PlexPy config & database (have to manually backup/copy over and edit some paths)
  4. The Plex Media Server logs are not accessible in PlexPy (user permissions issue)
  5. The DSM6.0 user problem still exists

@trumpy81 said:
Have you tested with DSM 6.0-7321 Update 1?

  1. Could you write some instructions for this and will this always be needed or is it just for existing installs?

I’ll write a script/make some instructions to keep the setup. Just for existing installs - upgrades will not be affected. I’ll also keep the non-SynoCommunity SPK up to date, so no need to change

Hello
I installed .spk plexpy starts well
but not record my parameter
have I missed something?
I am under DSM with 6 ds415 +
thank you

I install the latest “PlexPy - run as plex” works great. I did a clean install and updated. Then I shutdown, copied over my config.ini and plexpy.db files from an old install, edited the config file, restarted PlexPy. AWESOME job! :slight_smile:

@pikeupe said:
Hello
I installed .spk plexpy starts well
but not record my parameter
have I missed something?
I am under DSM with 6 ds415 +
thank you

Not sure what you mean by ‘not record my parameter’. I have just noticed today that my PlexPy install has updated to version 1.3.15 and the default port changed to 8181; so might need to check http://yoursynoip:8181/home

Hello

I have http: // yoursynoip: 8181 / home
the concern is that I change a parameter that does not record
I dsm6 is I can not seem to have accé the root to modify the .ini file manually

@pikeupe said:
Hello

I have http: // yoursynoip: 8181 / home
the concern is that I change a parameter that does not record
I dsm6 is I can not seem to have accé the root to modify the .ini file manually

@pikeupe - what parameter do you want to change? You can get root access to system using:

ssh admin@yoursynoip
enter admin password
sudo -i
enter admin password
vi /usr/local/plexpy/config.ini

Otherwise, you can change the settings from inside PlexPy (recommended) - http://yoursynoip:8181/settings and click on ‘Save’ button


has every change I have this error
through the interface

edit: I finally got it was a problem server IP address

@pikeupe said:

has every change I have this error
through the interface

edit: I finally got it was a problem server IP address

Good to hear - yes, you do need to provide correct Plex Media Server IP address and I’d suggest getting the PMS Token (from settings page, Plex.tv Account → fetch token

Well…not sure how the SynoCommunity works, but I cannot get any progress made with getting it included. Maybe they are waiting for a solution to the user creation on DSM6.0. I’ll give it another couple of weeks, but if no progress will officially release a new SPK here for you all.

@trumpy81 said:
I finally got around to trying your PlexPy installer with specific user (Plex in this case) and unfortunately it would not run after the install. I ended up reverting to your first installer package, the one without specific users.

Checking through the Bash_err.log I came across this:

Apr 6 15:41:52 DiskStation sh: BASH_ERR: internal_error [ (27754)"synoscgi_SYNO.Core.Package.Installation_1_install" -> (27827)"/bin/sh /var/packages/plexpy/scripts/postinst" -> (27831)"/bin/sh /var/packages/plexpy/scripts/postinst" ] /var/packages/plexpy/scripts/installer: line 33: adduser: command not found

I believe you are using the wrong add user command for DSM 6.0. I think it should be ‘synouser --add username’ but I may be wrong, Synology have made a few changes in DSM 6.0 and they don’t necessarily gel with the documentation.

@trumpy81 - Guess I need to check the SPK that uses the ‘Plex’ user (should run on a Syno box that already has Plex installed, as the user does not need to be created). Indeed, the ‘adduser’ command no longer works with DSM6.0 and higher. Synology removed this and changed the method. The Developer documentation is outdated (comment from them directly) and an update is expected sometime. There has been a fair amount of discussion here on the problem and as yet no clear solution. What is a given, is that as soon as I have a fix for the problem, I’ll update the packages and provide a link in this thread :slight_smile:

I’m sorry if this has already been covered, i’ve only had my Synology for under 72hours. But has this already been addressed? This is the error i get when i try to manually install the package. Either Plexuser or as root.

Hello, some link to download .spk plexpy for DSM 5.2?, I have not yet upgraded to DSM 6 for not losing plexconnect.
Thank you!!

@jclobo said:
I have not yet upgraded to DSM 6 for not losing plexconnect.
PlexConnect 0.5-17 works with DSM6

I installed the docker according to the directions from the first page of this post. It shows up and running but I can’t not get to it. I have tried changing the port numbers from inside the docker. Double checked the PUID and PGID are correct. Am I missing something? Everything appears right, just can’t access plexpy.

Hello
plexpy is installed on a ds415 +
wanting to activate https

I have an error in the log : The pyOpenSSL module is missing. Install this module to enable HTTPS. HTTPS will be disabled.

Thank you for your help

Hello,

Same problem with HTTPS here - pyOpenSSL is installed, but not detected by PlexPy.

Logs show “2017-01-18 19:02:39 - WARNING :: MainThread : The pyOpenSSL module is missing. Install this module to enable HTTPS. HTTPS will be disabled”

Python is installed correctly (Python 2.7) and attempting to install PyOpenSSL via PIP shows it’s already installed.

root@DS1815:/volume1/@appstore/python/lib/python2.7/site-packages# python pip install pyopenssl

Requirement already satisfied: pyopenssl in /volume1/@appstore/python/lib/python2.7/site-packages
Requirement already satisfied: six>=1.5.2 in /volume1/@appstore/python/lib/python2.7/site-packages (from pyopenssl)
Requirement already satisfied: cryptography>=1.3.4 in /volume1/@appstore/python/lib/python2.7/site-packages (from pyopenssl)
Requirement already satisfied: idna>=2.0 in /volume1/@appstore/python/lib/python2.7/site-packages (from cryptography>=1.3.4->pyopenssl)
Requirement already satisfied: pyasn1>=0.1.8 in /volume1/@appstore/python/lib/python2.7/site-packages (from cryptography>=1.3.4->pyopenssl)
Requirement already satisfied: setuptools>=11.3 in /volume1/@appstore/python/lib/python2.7/site-packages (from cryptography>=1.3.4->pyopenssl)
Requirement already satisfied: enum34 in /volume1/@appstore/python/lib/python2.7/site-packages (from cryptography>=1.3.4->pyopenssl)
Requirement already satisfied: ipaddress in /volume1/@appstore/python/lib/python2.7/site-packages (from cryptography>=1.3.4->pyopenssl)
Requirement already satisfied: cffi>=1.4.1 in /volume1/@appstore/python/lib/python2.7/site-packages (from cryptography>=1.3.4->pyopenssl)
Requirement already satisfied: pycparser in /volume1/@appstore/python/lib/python2.7/site-packages (from cffi>=1.4.1->cryptography>=1.3.4->pyopenssl)

Running the latest version of plexpy…

2017-01-18 19:02:36 - DEBUG :: MainThread : Latest version is 3742f33
2017-01-18 19:02:36 - INFO :: MainThread : PlexPy is up to date

Synology DS1815+ / DSM 6.0.2-8451 Update 8

Any idea how to fix this issue and enable HTTPS support ?

Thanks

The install works fine using the spk but when it tries to start I get an error “Failed to run the package service” Any ideas what might be causing this issue?