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

@ChuckPA said:
It sounds like @uglymagoo has a small migration bug in the installer.

o:) maybe a very small one B)

if [ ! -f /usr/lib/plexmediaserver/.migrated ]; then
  # migrate this puppy :)
  /usr/lib/plexmediaserver/MigratePlexConfig
  touch /usr/lib/plexmediaserver/.migrated
fi

That small ? :smiley:

@ChuckPA

thanks for the feedback:

If PMS says a file is unavailable, it means it can no longer see the file but it still exists in the database (the trash hasn’t been emptied yet). Inaccessible means it’s gone out to look and can’t access it

The latter is the point I am trying to make. When I am on the movie and try to look into the info tab. I see inaccessible. However login in with ssh I can see all the files and the access rights are probably more than enough.

In a further post you are saying the ownership should be Plex:plex. in my case the user that I am running on is pi. Should I chance the ownership to pi?
Thanks and sorry for nooby questions!

Unless you have changed the username PMS runs as (which you do in the override.conf file), it should be running as user plex with all files and directories under /var/lib/plexmediaserver owned by plex. This is the default configuration.

Here is the fixed 1.9.0 systemd package. It adds the missing plex group and calls systemctl daemon-reload once more at a very crucial time.

This package just hangs on the ā€œSetting up plexmediaserver-installerā€ step on my pi. Had to revert back to 1.8.2 and then up to 1.8.4 again.

@asheahen said:
This package just hangs on the ā€œSetting up plexmediaserver-installerā€ step on my pi. Had to revert back to 1.8.2 and then up to 1.8.4 again.

It changes the group of any file in /var/lib/plexmediaserver from nogroup to plex. So this might take a while on an SD card. Just be patient.

ok, will try again - I feel like I waited about 10 mins though - does that seem right?

@asheahen said:
ok, will try again - I feel like I waited about 10 mins though - does that seem right?

Hm. 10 minutes is a lot, but it all depends on the size of your library and the performance of your sd card. Can you please take a look at the files / directories in /var/lib/plexmediaserver and check if some now have the group plex while others still have the group nogroup?

During package upgrade, can you please also take a look at htop or ps aux to see which process in the installer script causes the lockup? If it is adduser, addgroup or usermod everything is fine.

Strange… I rebooted before the second attempt at the 1.9 upgrade and this time the ā€˜hang time’ was only about 15 seconds then it finished normally. I rebooted again and everything seems to be working properly on 1.9.

In /var/lib/plexmediaserver/Library/Application Support/Plex Media Server there are 6 directories that are still in the ā€˜no group’ group (Crash Reports, Logs, Media, Metadata, Plug-ins, and Thumbnails) and 7 directories/files that are now in the ā€˜plex’ group (Cache, Codecs, plexmediaserver.pid, Plug-in Support, Preferences.xml, Scanners, and Updates).

Is that an issue? Everything seems to be working ok.

going down a bit in the directory structure, under /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata I have Albums in ā€˜nogroup’ while Artists, Movies, and TV Shows directories are in the ā€˜plex’ group

@asheahen said:
Strange… I rebooted before the second attempt at the 1.9 upgrade and this time the ā€˜hang time’ was only about 15 seconds then it finished normally. I rebooted again and everything seems to be working properly on 1.9.

That’s because the primary group of user plex is now already plex and the migration is not started again.

In /var/lib/plexmediaserver/Library/Application Support/Plex Media Server there are 6 directories that are still in the ā€˜no group’ group (Crash Reports, Logs, Media, Metadata, Plug-ins, and Thumbnails) and 7 directories/files that are now in the ā€˜plex’ group (Cache, Codecs, plexmediaserver.pid, Plug-in Support, Preferences.xml, Scanners, and Updates).

My theory was right, I suppose. You stopped the change group process before it was finished. However, I believe it is not relevant for a correct PMS atm. You can finish the job at any time with sudo chgrp -R plex /var/lib/plexmediaserver.

If I may add?

sudo chgrp -R plex /var/lib/plexmediaserver & (put it in the background and forget it)

Got it - makes sense that I borked the group changes by terminating the install process early. I guess with a large library it’s just going to take a while…

Thanks!

can anyone enlighten whats the difference between old builds vs recent build with systemd? i got an old builds with rpi2 and rpi3 and im planning to update them with latest plex build. thanks in advance for the explanation.

@esmarq said:
can anyone enlighten whats the difference between old builds vs recent build with systemd? i got an old builds with rpi2 and rpi3 and im planning to update them with latest plex build. thanks in advance for the explanation.

I just added support for the systemd process manager. Thus, my package is now in line with the official Plex packages and tutorials => future proof and better support. Non-systemd support is still included in the package, so there won’t be a non-systemd package. I use this beta forum and the Plex beta releases here to fix all the bugs :slight_smile: The next public release will also include the systemd support.

So folks, I just pushed the public 1.9.1 to my repo. Thanks again for all brave testers here, you were a great help and I know I caused some trouble for some of you. Sorry for that :#

Thanks for all your hard work!

Hey so I just pulled down 1.9.1. I updated and then I attempted to launch the media server. I keep getting the ā€œSafari can’t connectā€ message. I can ssh into the pi from my MacBook and ping it, so it’s not that it can’t connect. I can even connect to my PlexPy monitor, but it displays a message that it can’t connect to the Plex Server.

Running ā€œsudo service plexmediaserver statusā€ displays the following:

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 Wed 2017-09-20 23:15:48 EDT; 25min ago
Process: 1202 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: 1206 (sh)
CGroup: /system.slice/plexmediaserver.service
ā”œā”€1206 /bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver ā€œ/usr/lib/plexmediaserver/Plex Media Serverā€
└─1207 /usr/lib/plexmediaserver/Plex Media Server

Sep 20 23:15:48 raspberrypi systemd[1]: Started Plex Media Server for Linux.

Thoughts on why it shows it’s running but I can’t even connect at all from my MacBook?

MacOS isn’t my thing but if you just upgraded to 11 try firefox. A number of folks are reporting issues with MacOS 11 and iOS 11 . Apple changed a policy on something for 11 and it’s causing issues we’re trying to figure out.