Plex Media Server for armhf (arm64) Debian / Ubuntu: Beta Packages

Just got back from holiday :slight_smile: Here is 1.8.2.

You are awesome! Thank you!

I finally got around to add the systemd support. I tested it quite thoroughly, but you never know :# So please test 1.8.4 with systemd, especially the migration from the ā€œoldā€ package in my repo. I will push the changes to my git repo as soon as I have the go from @ChuckPA .

Looks around

What did I do?

:smiley:

I just downloaded the 1.8.4 package with systemd support, followed the same installation with dpkg as before. However Plex does not start up :frowning:
I changed the user in /etc/default/plexmediaserver.prev

Let me know where to look / what to do

[EDIT] I just tried to downgrade in order to not have a complete loss. However that was worse. I have downloaded 1.8.2 but now I have lost my libraries… and they were huge…

Please Help!

@spanishu Do not worry, nothing is deleted. Please reinstall 1.8.4 with systemd and check the settings in /etc/systemd/system/plexmediaserver.service.d/override.conf. Please tell me what setting was wrongly migrated so I can fix this.

@uglymagoo I did that . There is no /etc/systemd/system/plexmediaserver.service.d/override.conf on raspberry pi jessie

@spanishu said:
@uglymagoo I did that . There is no /etc/systemd/system/plexmediaserver.service.d/override.conf on raspberry pi jessie

Same on my Raspberry-Pi 3, with Stretch…

@spanishu said:
@uglymagoo I did that . There is no /etc/systemd/system/plexmediaserver.service.d/override.conf on raspberry pi jessie

Ah. I think I know what went wrong. During the package installation you were asked if would like to install the new /etc/default/plexmediaserver config file. You must have accidentally said yes, so your /etc/default/plexmediaserver was reset to the default settings and therefore also no /etc/systemd/system/plexmediaserver.service.d/override.conf was created.

/etc/default/plexmediaserver.prev is just the backup of the old settings and not used.

Solution: Just install the non-systemd 1.8.4 version and reconfigure your /etc/default/plexmediaserver (correct user and library dir). Afterwords just say no, when you are asked to update /etc/default/plexmediaserver during the installation of the systemd package.

I will rework the package, so you are not asked to overwrite `/etc/default/plexmediaserver" anymore in the next package revision (3).

Here is the version that will not ask to replace /etc/default/plexmediaserver . I also updated the above post.

@uglymagoo I did the steps you have indicated to recover my libraries,… they are still there thanks !!! However I have then tried to do the new install of 1.8.4 and said NO. The PlexMediaServer does not seem to start now… :frowning:

@spanishu said:
@uglymagoo I did the steps you have indicated to recover my libraries,… they are still there thanks !!! However I have then tried to do the new install of 1.8.4 and said NO. The PlexMediaServer does not seem to start now… :frowning:

Please try the following commands:

  1. sudo systemctl stop plexmediaserver
  2. sudo systemctl start plexmediaserver
  3. sudo systemctl status plexmediaserver and post the output

Also check /etc/systemd/system/plexmediaserver.service.d/override.conf. It should be there now.

@uglymagoo
here we go when running the stop command I got initially
Warning: Unit file of plexmediaserver.service changed on disk, 'systemctl daemon-reload' recommended
executed systemctl daemon-reload
and then ran the stop command again.
ran start command
and here is the result of the status

plexmediaserver.service - Plex Media Server for Linux
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled)
  Drop-In: /etc/systemd/system/plexmediaserver.service.d
           └─override.conf
   Active: active (running) since Fri 2017-09-08 13:26:33 CEST; 34s ago
  Process: 1000 ExecStartPre=/bin/sh -c /usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" (code=exited, status=0/SUCCESS)
 Main PID: 1004 (sh)
   CGroup: /system.slice/plexmediaserver.service
           ā”œā”€1004 /bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver "/usr/lib/plexmediaserver/P...
           └─1008 /usr/lib/plexmediaserver/Plex Media Server

Sep 08 13:26:33 raspplex systemd[1]: Started Plex Media Server for Linux.

I cannot access my plex media server yet. Thanks for the help and support

@spanishu said:
I cannot access my plex media server yet. Thanks for the help and support

Thanks for your help :slight_smile: The status output is OK. Are you still unable to access the server?

Hi
no I cannot, however when I look at this…
/system.slice/plexmediaserver.service
ā”œā”€5217 /bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver ā€œ/usr/lib/plexmediaserver/Plex Media Serverā€
└─5218 /usr/lib/plexmediaserver/Plex Media Server

I am wondering if that might be the cause. The ā€œapplicationā€ support is in my case under the user pi. /home/pi/Library/Application Support…

Maybe that is where the trick is…

Also when I look at in htop there is no reference to plexmediaserver or any of its plugins… a bit bizarre

@spanishu said:
I am wondering if that might be the cause. The ā€œapplicationā€ support is in my case under the user pi. /home/pi/Library/Application Support…

No, that’s OK. It’s the path of the binaries.

Also when I look at in htop there is no reference to plexmediaserver or any of its plugins… a bit bizarre

That’s indeed strange. Can you please show me the contents of /etc/default/plexmediaserver.prev and of the override file? You can also PM me, if you are concerned with privacy.

Hey gang.

In light of what you’re doing here, as well as the growing need in general, I created the ā€˜how to’ / help for customizing PMS.
This explains how to use /etc/systemd/system/plexmediaserver.service.d/override.conf and how to interact with systemd

For the moment I have reverted to 1.8.2 Will give it another run next week. Thanks a lot for the help and support!

@uglymagoo and @ChuckPA I’ve got it working. After a reboot, and manually creating the override.conf file.
Thanks for the great work!!!

Howto: {package-..*} is the full package name on disk…
Reverted back to 1.8.2: dpkg -i {package-1.8.2}
Edited /etc/default/plexmediaserver back to the working-state
mkdir -p /etc/systemd/system/plexmediaserver.service.d/ && vim /etc/systemd/system/plexmediaserver.service.d/override.conf
Put the content of the example in https://forums.plex.tv/discussion/286395/customizing-your-plex-configuration in to it and modified
dpkg -i {package-1.8.4}
reboot

Working

@ Everyone_reading_this

Please be aware… If cat /proc/1/comm returns systemd, the file /etc/default/plexmediaserver isn’t used. It was abandoned as of August 2016