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’
@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.
@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:
Have you tested with DSM 6.0-7321 Update 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
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!
@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
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
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
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
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.
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.
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?