Server Version#: 1.41.1.9057-72009057
Player Version#: 4.141.0
Synology Model#: DS1019+
DSM Version#: 7.2.2-72806 Update 1
Note: PMS is installed as a native DSM application.
I was recently performing maintenance on my Synology DS1019+ when I noticed a rogue ‘Library’ subdirectory in my /root directory. Thankfully its only 354 KB in size, because the /root on a Synology is limited in space.
This directory appears to have been created recently:
In this case, it was an update installed via the michealespinola/syno.plexupdate script which runs as ‘root’. Looking back at logs, and I apologize for not adding this to the original post, this was likely created by version 1.41.2.9134 (beta). The installation dates appear to coincide.
This is all native Synology DSM, and not Docker involved.
the script runs as root (not a problem when you’re careful)
the script calls dpkg (debian package manger) … Don’t use that in DSM 7.
the correct utility to use on DSM 7 is synopkg
chuck@ds418:/usr/bin$ synopkg
usage: synopkg <command> [...]
command:
start <package> Start a package.
stop <package> Stop a package.
restart [--service] <package|searvice> Restart one package/one or more services.
resume <package> Start a package without change its systemd enable status.
It will do nothing if package is disable or already active.
pause <package> Stop a package without change its systemd enable status.
It will do nothing if package is already inactive.
start-depend <service> Start all packages depend on specific service.
stop-depend <service> Stop all packages depend on specific service.
onoffall start|stop [event] [param] Start or stop all the packages.
install <spk> Install a package through local spk.
install_from_server <package> [volume] [user] [beta] Install a package from server.
uninstall <package>... Uninstall one or more package.
upgradeall [limitonly] [lang] [user] Upgrade all upgradable package.
chkupgradepkg [lang] Find all upgradable packages from server, and decide whether to
upgrade accorting to user settings.
checkupdateall [lang] [user] Find all upgradable packages from server (use cache first), and
decide whether to upgrade accorting to user settings.
status <package> Get status of an installed package.
is_onoff <package> Check if a package is installed and active.
version <package> Get version of an installed package.
query <spk> Get a package's basic information from the spk.
list [--name] [--depend-on <package>] List installed package.
checkupdate <package> [lang] Check if a package is updatable.
show [--beta] [--lang <lang>] <package> Show package details.
showall [--beta] [--no-filter] [--lang <lang>] Show all packages details.
chuck@ds418:/usr/bin$
bash-4.4# synopkg version PlexMediaServer
1.41.0.8930-72008930
bash-4.4#
When synopkg is used to install PMS, the PlexMediaServer system internal user is used.
You should use (as example) - synopkg install PlexMediaServer-version_info_here_.dsm72.spk
You can see synopkg being used for stop/install/start here:
If you don’t mind a side-question: Has the distribution.txt file always located at the following location, and has it always contained Plex’s [what I am referring to as] version identifier?
Indeed. I was very hesitant to make this post because I figured it had to be a mistake that I made at some point, but I haven’t been able to otherwise wrap my head around how it may have happened.
I still haven’t deleted it the hierarchy, in case there is something from it could be of use to you.