PMS is username sensitive. PMS runs as user plex on Synology, not as root. All Plex executables must also run as plex to avoid permission problems.
Executables and LD libraries (scanner) are not stored where you think they are. They’re in the appstore under the control of Package Center. /var/packages/Plex Media Server/target
PS: We have a Synology forum (tag). I’ve taken the liberty of moving this thread there where it’s easier for all to see.
Proper admin (root) access to the Syno doesn’t need a password assigned for user Plex. I create a 64 character uuid-gen password for each system as PMS installs
Mind my asking how comfortable you are at the Linux command line?
Eh, I’m not good at it I’m just trying things. The only thing I want to happen is that my library refreshes after my bash script has executed since auto refresh when files have been added/removed doesn’t seem to work.
Anyway, when I try to use it it gives me this:
/var/packages/Plex Media Server/target/Plex Media Scanner: /lib/libstdc++.so.6: no version information available (required by /var/packages/Plex Media Server/target/libgnsdk_dsp.so.3.07.7)
/var/packages/Plex Media Server/target/Plex Media Scanner: /lib/libstdc++.so.6: no version information available (required by /var/packages/Plex Media Server/target/libgnsdk_dsp.so.3.07.7)
/var/packages/Plex Media Server/target/Plex Media Scanner: /lib/libstdc++.so.6: no version information available (required by /var/packages/Plex Media Server/target/libgnsdk_fp.so.3.07.7)
/var/packages/Plex Media Server/target/Plex Media Scanner: /lib/libstdc++.so.6: no version information available (required by /var/packages/Plex Media Server/target/libgnsdk_fp.so.3.07.7)
I wrote it in nano and saved it somewhere. Task scheduler just executes the file. But I tried the command above just in the plex user, not in the script.
You can write the entire command sequence (script) and put it in the task. There is no need to add the extra indirection of a file somewhere else for you to maintain. This way, when you want to make changes, it’s readily and immediately available and uses DSM’s logging of the output
I still get logs in my e-mail. But anyway, when I execute the command it just says the binary stuff and not anything else. I tried --list and it said nothing
When I’m sudoing as ‘plex’ the var/packages/“Plex Media Server” location cannot be found because it starts looking from /volume1/.
Any workaround on this?
"/var/packages/Plex Media Server/target" is a location-independent location which DSM provides (a bind mount) and don’t forget to quote the entire path or escape the spaces.
"/var/packages/Plex Media Server/target"
equivalent to /var/packages/Plex\ Media\ Server/target
Please do avail yourself of bash scripting tutorials?