I am trying to setup plex media server on my raspbian raspberry pi but am having an issue when starting the service
Jan 02 18:28:53 raspberrypi systemd[1]: Starting Plex Media Server for Linux...
Jan 02 18:28:53 raspberrypi systemd[1]: Started Plex Media Server for Linux.
Jan 02 18:28:53 raspberrypi sh[755]: /usr/lib/plexmediaserver/Plex Media Server: error while loading shared libraries: libboost_atomic.so.1.59.0: cannot open shared object file: No such file or directory
Jan 02 18:28:53 raspberrypi systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=127/n/a
Jan 02 18:28:53 raspberrypi systemd[1]: plexmediaserver.service: Unit entered failed state.
Jan 02 18:28:53 raspberrypi systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Jan 02 18:28:58 raspberrypi systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Jan 02 18:28:58 raspberrypi systemd[1]: Stopped Plex Media Server for Linux.
Jan 02 18:28:58 raspberrypi systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Jan 02 18:28:58 raspberrypi systemd[1]: Failed to start Plex Media Server for Linux.
Jan 02 18:28:58 raspberrypi systemd[1]: plexmediaserver.service: Unit entered failed state.
Jan 02 18:28:58 raspberrypi systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Jan 02 18:37:09 raspberrypi systemd[1]: Starting Plex Media Server for Linux...
I noticed that in the log it states
/usr/lib/plexmediaserver/Plex Media Server: error while loading shared libraries: libboost_atomic.so.1.59.0: cannot open shared object file: No such file or directory
The following are my directories:
pi@raspberrypi:/usr/lib/plexmediaserver $ ls -lah
total 40M
drwxrwxrwx 3 pi pi 4.0K Jan 2 17:00 .
drwxr-xr-x 89 root root 4.0K Jan 2 16:58 ..
-rwxrwxrwx 1 pi pi 1.3M Dec 14 20:48 CrashUploader
-rwxrwxrwx 1 pi pi 9.2K Dec 19 00:37 MigratePlexServerConfig.sh
-rwxrwxrwx 1 pi pi 265K Dec 14 20:48 Plex Commercial Skipper
-rwxrwxrwx 1 pi pi 3.6M Dec 14 20:47 Plex DLNA Server
-rwxrwxrwx 1 pi pi 4.3M Dec 14 20:48 Plex Media Scanner
-rwxrwxrwx 1 pi pi 13M Dec 14 20:48 Plex Media Server
-rwxrwxrwx 1 pi pi 916K Dec 14 20:47 Plex Relay
-rwxrwxrwx 1 pi pi 3.6K Dec 14 20:48 Plex Script Host
-rwxrwxrwx 1 pi pi 12M Dec 14 20:48 Plex Transcoder
-rwxrwxrwx 1 pi pi 4.5M Dec 14 20:47 Plex Tuner Service
drwxrwxrwx 6 pi pi 4.0K Dec 14 20:48 Resources
pi@raspberrypi:/usr/lib/plexmediaserver $ cd Resources/
pi@raspberrypi:/usr/lib/plexmediaserver/Resources $ ls -lah
total 544K
drwxrwxrwx 6 pi pi 4.0K Dec 14 20:48 .
drwxrwxrwx 3 pi pi 4.0K Jan 2 17:00 ..
-rwxrwxrwx 1 pi pi 752 Dec 14 20:45 black-h264.ts
-rwxrwxrwx 1 pi pi 6.1K Dec 14 20:45 comskip.ini
-rwxrwxrwx 1 pi pi 424 Dec 14 20:45 dh512.pem
-rwxrwxrwx 1 pi pi 9 Dec 14 20:48 distribution.txt
-rwxrwxrwx 1 pi pi 56 Dec 14 20:45 empty-map.vtt
-rwxrwxrwx 1 pi pi 188 Dec 14 20:45 empty.ts
-rwxrwxrwx 1 pi pi 7 Dec 14 20:45 empty.vtt
drwxrwxrwx 2 pi pi 4.0K Dec 14 20:47 English.lproj
drwxrwxrwx 2 pi pi 4.0K Dec 14 20:47 Fonts
drwxrwxrwx 3 pi pi 4.0K Dec 14 20:47 Graphics
-rwxrwxrwx 1 pi pi 221 Dec 14 20:45 lastfm-combiner-artists.xml
-rwxrwxrwx 1 pi pi 120 Dec 14 20:45 localmedia-combiner-shows.xml
-rwxrwxrwx 1 pi pi 164 Dec 14 20:45 none-combiner-movies.xml
drwxrwxrwx 4 pi pi 4.0K Dec 14 20:47 Python
-rwxrwxrwx 1 pi pi 427K Dec 14 20:45 RegionProviders.xml
-rwxrwxrwx 1 pi pi 48K Dec 14 20:45 StatusItemTemplate.png
I set it up following this guide: Removed Link to broken guide by mod
My plexmediaserver.prev
# default script for Plex Media Server
# the number of plugins that can run at the same time
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
# ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE
PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000
# where the mediaserver should store the transcodes
PLEX_MEDIA_SERVER_TMPDIR=/tmp
# uncomment to set it to something else
# PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application\ Support"
# the user that PMS should run as, defaults to 'plex'
# note that if you change this you might need to move
# the Application Support directory to not lose your
# media library
PLEX_MEDIA_SERVER_USER=pi
Please use our official guide. The io guide is wrong in some points. Moreover, there are files missing in /usr/lib/plexmediaserver. I suspect you somehow interrupted the installer. Just reinstall PMS with sudo apt-get install --reinstall plexmediaserver-installer and patiently wait for the completion of the installation. Please post the output of this command if there are any errors.
pi@raspberrypi:~ $ sudo apt-get install --reinstall plexmediaserver-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/7,680 B of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 133278 files and directories currently installed.)
Preparing to unpack .../plexmediaserver-installer_1.14.1.5488-cc260c476-1_armhf.deb ...
Synchronizing state of plexmediaserver.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable plexmediaserver
Plex Media Server is not running (no process found)...
Unpacking plexmediaserver-installer (1.14.1.5488-cc260c476-1) over (1.14.1.5488-cc260c476-1) ...
Setting up plexmediaserver-installer (1.14.1.5488-cc260c476-1) ...
Adding user plex to group video
Downloading synology package ...
######################################################################## 100.0%
Passed checksum test.
Extracting synology.tar ...
gzip: stdin: invalid compressed data--format violated
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
Synchronizing state of plexmediaserver.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable plexmediaserver
Processing triggers for systemd (232-25+deb9u6) ...
That error appeared on reinstall.
The journalctl output now hcanged the library from libbost to libswscale.so.5 (in the error)
I then tried re-running all the commands in the guide rather than just the reinstall. And i ended up noticing that there was some corruption in the partition related to a directory that plex was using. I cleaned that up using a
sudo touch /forcefcsk && sudo reboot
Then reinstalled and now there were no errors during installation but starting the service still fails this time like so:
Jan 02 22:51:58 raspberrypi systemd[1]: Starting Plex Media Server for Linux...
Jan 02 22:51:58 raspberrypi systemd[1]: Started Plex Media Server for Linux.
Jan 02 22:52:04 raspberrypi sh[847]: Illegal instruction
Jan 02 22:52:04 raspberrypi systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=132/n/a
Jan 02 22:52:04 raspberrypi systemd[1]: plexmediaserver.service: Unit entered failed state.
Jan 02 22:52:04 raspberrypi systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Jan 02 22:52:09 raspberrypi systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Jan 02 22:52:09 raspberrypi systemd[1]: Stopped Plex Media Server for Linux.
Jan 02 22:52:09 raspberrypi systemd[1]: Starting Plex Media Server for Linux...
Jan 02 22:52:10 raspberrypi systemd[1]: Started Plex Media Server for Linux.
Jan 02 22:52:14 raspberrypi sh[869]: Illegal instruction
Jan 02 22:52:14 raspberrypi systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=132/n/a
Jan 02 22:52:14 raspberrypi systemd[1]: plexmediaserver.service: Unit entered failed state.
Jan 02 22:52:14 raspberrypi systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Jan 02 22:52:19 raspberrypi systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Jan 02 22:52:19 raspberrypi systemd[1]: Stopped Plex Media Server for Linux.
Jan 02 22:52:19 raspberrypi systemd[1]: Starting Plex Media Server for Linux...
Jan 02 22:52:21 raspberrypi systemd[1]: Started Plex Media Server for Linux.
Jan 02 22:52:25 raspberrypi sh[879]: Illegal instruction
Jan 02 22:52:25 raspberrypi systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=132/n/a
Jan 02 22:52:25 raspberrypi systemd[1]: plexmediaserver.service: Unit entered failed state.
Jan 02 22:52:25 raspberrypi systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Jan 02 22:52:30 raspberrypi systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Jan 02 22:52:30 raspberrypi systemd[1]: Stopped Plex Media Server for Linux.
Jan 02 22:52:30 raspberrypi systemd[1]: Starting Plex Media Server for Linux...
Jan 02 22:52:30 raspberrypi systemd[1]: Started Plex Media Server for Linux.
Jan 02 22:52:33 raspberrypi sh[891]: Illegal instruction
Jan 02 22:52:33 raspberrypi systemd[1]: plexmediaserver.service: Main process exited, code=exited, status=132/n/a
Jan 02 22:52:33 raspberrypi systemd[1]: plexmediaserver.service: Unit entered failed state.
Jan 02 22:52:33 raspberrypi systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Jan 02 22:52:38 raspberrypi systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Jan 02 22:52:38 raspberrypi systemd[1]: Stopped Plex Media Server for Linux.
Jan 02 22:52:38 raspberrypi systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Jan 02 22:52:38 raspberrypi systemd[1]: Failed to start Plex Media Server for Linux.
Jan 02 22:52:38 raspberrypi systemd[1]: plexmediaserver.service: Unit entered failed state.
Jan 02 22:52:38 raspberrypi systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Not entirely sure what all those “Illegal instruction” are.
from the tuorial i followed the armhf / ARMv7 (e.g. Raspbian for RPi 2/3) part as my uname -m gave armv6l
which i’m not sure which to use.
My raspberry pi information if it matters:
pi@raspberrypi:~ $ cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 697.95
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
Hardware : BCM2835
Revision : 000d
Serial : 00000000c1033e97