Hi,
I have looked a bit more into why I cant install Plex on OMV v. 4.1.8.2-1 (Arrakis)..
Plex has been downloaded with wget directly from Plex..
wget https://downloads.plex.tv/plex….5271-200287a06_amd64.deb
Installation is started with "sudo dpkg -i ./plexmediaserver_1.13.4.5271-200287a06_amd64.deb" but fails with the error:
Created symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service → /lib/systemd/system/plexmediaserver.service.
Job for plexmediaserver.service failed because the control process exited with error code.
See "systemctl status plexmediaserver.service" and "journalctl -xe" for details.
dpkg: error processing package plexmediaserver (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (232-25+deb9u4) ...
Processing triggers for mime-support (3.60) ...
Errors were encountered while processing:
plexmediaserver
root@omv:~#
"journalctl -xe" gives following message:
-- Unit plexmediaserver.service has begun starting up.
Jul 24 13:25:14 omv sh[9462]: /bin/mkdir: cannot create directory ‘/var/lib/plexmediaserver’: Permission denied
Jul 24 13:25:14 omv systemd[1]: plexmediaserver.service: Control process exited, code=exited status=1
Jul 24 13:25:14 omv systemd[1]: Failed to start Plex Media Server for Linux.
-- Subject: Unit plexmediaserver.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit plexmediaserver.service has failed.
Looks like root, as well with "sudo" fails to create the folder "/var/lib/plexmediaserver". Dont know why the sub process cant create it when called by root / sudo.
Creating the folder manually and settings the full access (...) to it, changes the result:
sudo mkdir /var/lib/plexmediaserver && sudo chmod 777 /var/lib/plexmediaserver
Running "sudo dpkg -i ./plexmediaserver_1.13.4.5271-200287a06_amd64.deb" again, gives:
root@omv:~# sudo dpkg -i ./plexmediaserver_1.13.4.5271-200287a06_amd64.deb
(Reading database ... 94048 files and directories currently installed.)
Preparing to unpack .../plexmediaserver_1.13.4.5271-200287a06_amd64.deb ...
Removed /etc/systemd/system/multi-user.target.wants/plexmediaserver.service.
Unpacking plexmediaserver (1.13.4.5271-200287a06) over (1.13.4.5271-200287a06) ...
Setting up plexmediaserver (1.13.4.5271-200287a06) ...
Created symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service → /lib/systemd/system/plexmediaserver.service.
Processing triggers for systemd (232-25+deb9u4) ...
Processing triggers for mime-support (3.60) ...
root@omv:~#
No error!
As well does "journalctl -xe" not give any error.
-- Unit plexmediaserver.service has begun starting up.
Jul 24 13:29:59 omv systemd-logind[1194]: Watching system buttons on /dev/input/event5 (Power Button)
Jul 24 13:29:59 omv systemd[1]: Started Plex Media Server for Linux.
-- Subject: Unit plexmediaserver.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit plexmediaserver.service has finished starting up.
--
"sudo systemctl stop plexmediaserver.service" and "sudo systemctl start plexmediaserver.service" also dont give any negative feedback.
Thou, if I redo it all but with less access, like 755, the installation will fail..
I have not tried to change access to e.g. 755 after a successfull installation.
Anyway, I dont know what is causing it to fail. Dont take it proper solution, but instead as a limited workaround due to the 777 access..
My Plex is running now!
Regards, KVL