Cannot add server-raspberry-pi

Hello,

When I try to claim the pi pms , I get allways the start page (Download pms, etc). I tried claim it via ssh tunel, in the same subnet, with the same result.

Please help.

Snapshot: https://ibb.co/nLOye9
Server Version#: 1.13.8.5388-509720743 on raspbian 9 stretch
Player Version#: Firefox
Logs:
root@raspberrypi:/home/pi # service plexmediaserver status
● plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-09-22 09:55:47 CEST; 11min ago
Process: 18849 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: 18853 (sh)
CGroup: /system.slice/plexmediaserver.service
├─18853 /bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver “/usr/lib/plexmediaserver/Plex Media Server”
├─18854 /usr/lib/plexmediaserver/Plex Media Server
├─18866 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.13.8.5388-509720743 /usr/lib/plexmediaserver
├─18915 /usr/lib/plexmediaserver/Plex DLNA Server
├─18918 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.13.8.5388-509720743 32600 /waitmutex
├─19342 Plex Plug-in [com.plexapp.agents.localmedia] /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.13.8.5388-509720743 /usr/lib/plex
├─19347 Plex Plug-in [com.plexapp.agents.lastfm] /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.13.8.5388-509720743 /usr/lib/plexmedi
└─19349 Plex Plug-in [com.plexapp.agents.plexmusic] /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.13.8.5388-509720743 /usr/lib/plexm

sep 22 09:56:09 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/TheMovieDB.bundle.
sep 22 09:59:08 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/Fanart-TV.bundle.
sep 22 09:59:10 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/TheTVDB.bundle.
sep 22 09:59:11 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/PlexMovie.bundle.
sep 22 10:02:07 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/MoviePosterDB.bundle.
sep 22 10:02:07 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/PersonalMedia.bundle.
sep 22 10:02:07 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/HTbackdrops.bundle.
sep 22 10:05:09 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/PlexMusic.bundle.
sep 22 10:05:09 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/LastFM.bundle.
sep 22 10:05:11 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/LocalMedia.bundle.

The package was not correctly installed. Please reinstall with sudo apt-get install --reinstall plexmediaserver-installer and do not interrupt the installation. It takes time.

And please use systemctlto manage the services. service is not correct anymore. e.g. systemctl status plexmediaserver.

Hi,

I reinstalled, purged, hand purged… from the https://dev2day.de/pms/ repository and doing a dpkg -i from download repository.

Really I formated and installed to another sd card.
Nothing of this didn’t the trick.

systemctl status plexmediaserver Output:
pi@raspberrypi:~ $ systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server for Linux
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-09-22 09:55:47 CEST; 9h ago
Process: 18849 ExecStartPre=/bin/sh -c /usr/bin/test -d “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” || /bin/mkdir -p “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” (code
Main PID: 18853 (sh)
CGroup: /system.slice/plexmediaserver.service
├─18853 /bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver “/usr/lib/plexmediaserver/Plex Media Server”
├─18854 /usr/lib/plexmediaserver/Plex Media Server
├─18866 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py
├─18915 /usr/lib/plexmediaserver/Plex DLNA Server
└─18918 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.13.8.5388-50

sep 22 09:59:10 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/TheTVDB.bundle.
sep 22 09:59:11 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/PlexMovie.bundle.
sep 22 10:02:07 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/MoviePosterDB.bundle.
sep 22 10:02:07 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/PersonalMedia.bundle.
sep 22 10:02:07 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/HTbackdrops.bundle.
sep 22 10:05:09 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/PlexMusic.bundle.
sep 22 10:05:09 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/LastFM.bundle.
sep 22 10:05:11 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/LocalMedia.bundle.
sep 22 10:08:07 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/PlexThemeMusic.bundle.
sep 22 10:11:11 raspberrypi sh[18853]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-509720743/PlexMovie.bundle.

https://dev2day.de/pms/

Please post the server logs. On Linux, they will be in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/.

https://support.plex.tv/articles/200250417-plex-media-server-log-files/

Here are:
pms-server.log (305.8 KB) or https://pastebin.com/tLHxGLUQ
All logs All-Logs.zip (74.6 KB)

What are your Linux file permissions for /var/lib/plexmediaserver/Library?

E.g. ls -ahl /var/lib/plexmediaserver/Library?

How much free space do you have on your root drive?

E.g. df -h

Which Raspberry Pi do you use? Please post the output of cat /proc/cpuinfo and uname -a.

pi@raspberrypi:~ $ ls -ahl /var/lib/plexmediaserver/Library
total 12K
drwxr-xr-x 3 plex plex 4,0K sep 23 10:39 .
drwxr-xr-x 3 plex plex 4,0K sep 23 10:39 ..
drwxr-xr-x 3 plex plex 4,0K sep 23 10:39 Application Support
pi@raspberrypi:~ $ df -h
S.ficheros     Tamaño Usados  Disp Uso% Montado en
/dev/root        7,1G   1,9G  4,9G  28% /
devtmpfs         460M      0  460M   0% /dev
tmpfs            464M   8,0K  464M   1% /dev/shm
tmpfs            464M    13M  452M   3% /run
tmpfs            5,0M   4,0K  5,0M   1% /run/lock
tmpfs            464M      0  464M   0% /sys/fs/cgroup
/dev/mmcblk0p1    42M    22M   20M  54% /boot
/dev/sda1        932G   425G  508G  46% /mnt/media
tmpfs             93M      0   93M   0% /run/user/1000
pi@raspberrypi:~ $ cat /proc/cpuinfo                                                                               
processor       : 0                                                                                                
model name      : ARMv7 Processor rev 4 (v7l)                                                                      
BogoMIPS        : 38.40                                                                                            
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32          
CPU implementer : 0x41                                                                                             
CPU architecture: 7                                                                                                
CPU variant     : 0x0                                                                                              
CPU part        : 0xd03                                                                                            
CPU revision    : 4                                                                                                
                                                                                                                   
processor       : 1                                                                                                
model name      : ARMv7 Processor rev 4 (v7l)                                                                      
BogoMIPS        : 38.40                                                                                            
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32          
CPU implementer : 0x41                                                                                             
CPU architecture: 7                                                                                                
CPU variant     : 0x0                                                                                              
CPU part        : 0xd03                                                                                            
CPU revision    : 4                                                                                                
                                                                                                                   
processor       : 2                                                                                                
model name      : ARMv7 Processor rev 4 (v7l)                                                                      
BogoMIPS        : 38.40                                                                                            
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32          
CPU implementer : 0x41                                                                                             
CPU architecture: 7                                                                                                
CPU variant     : 0x0                                                                                              
CPU part        : 0xd03                                                                                            
CPU revision    : 4                                                                                                
                                                                                                                   
processor       : 3                                                                                                
model name      : ARMv7 Processor rev 4 (v7l)                                                                      
BogoMIPS        : 38.40                                                                                            
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32          
CPU implementer : 0x41                                                                                             
CPU architecture: 7                                                                                                
CPU variant     : 0x0                                                                                              
CPU part        : 0xd03                                                                                            
CPU revision    : 4                                                                                                
                                                                                                                   
Hardware        : BCM2835                                                                                          
Revision        : a02082                                                                                           
Serial          : 000000005*********                                                                                 
pi@raspberrypi:~ $ uname -a                                                                                        
Linux raspberrypi 4.14.70-v7+ #1144 SMP Tue Sep 18 17:34:46 BST 2018 armv7l GNU/Linux

Do you use a firewall or VPN on your RPi?

The pi has not any fw, in the lan only have isp router.
I have a Openvpn server installed on the pi. But I don’y use it.

Did you first install a very old version of the plexmediaserver-installer package? All the database migrations are a little strange. Please do the following:

(1) stop pms sudo systemctl stop plexmediaserver
(2) clear PMS data (I assume that is OK, right? sudo rm -r /var/lib/plexmediaserver/Library
(3) sudo systemctl start plexmediaserver

Hi,
The version package is:
plexmediaserver-installer 1.13.5.5332-21ab172de-1 armhf Plex Media Server for Linux

After cleaning /var/lib/plexmediaserver/Library I got this:

pi@raspberrypi:~ $ sudo systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server for Linux
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2018-09-24 08:24:40 CEST; 19s ago
  Process: 18648 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: 18653 (sh)
   CGroup: /system.slice/plexmediaserver.service
           ├─18653 /bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver "/usr/lib/plexmediaserver/Plex Media Server"
           └─18655 /usr/lib/plexmediaserver/Plex Media Server

sep 24 08:24:40 raspberrypi systemd[1]: Started Plex Media Server for Linux.
sep 24 08:24:43 raspberrypi sh[18653]: Error in command line:the argument for option '--serverUuid' should follow immediately after the equal sign
sep 24 08:24:43 raspberrypi sh[18653]: Crash Uploader options (all are required):
sep 24 08:24:43 raspberrypi sh[18653]:   --directory arg       Directory to scan for crash reports
sep 24 08:24:43 raspberrypi sh[18653]:   --serverUuid arg      UUID of the server that crashed
sep 24 08:24:43 raspberrypi sh[18653]:   --userId arg          User that owns this product
sep 24 08:24:43 raspberrypi sh[18653]:   --platform arg        Platform string
sep 24 08:24:43 raspberrypi sh[18653]:   --url arg             URL to upload to
sep 24 08:24:43 raspberrypi sh[18653]:   --help                show help message
sep 24 08:24:43 raspberrypi sh[18653]:   --version arg         Version of the product
sep 24 08:28:58 raspberrypi sh[18653]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-21ab172de/Fanart-TV.bundle.
sep 24 08:29:01 raspberrypi sh[18653]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-21ab172de/TheTVDB.bundle.
sep 24 08:29:02 raspberrypi sh[18653]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-21ab172de/PlexMovie.bundle.
sep 24 08:31:58 raspberrypi sh[18653]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-21ab172de/MoviePosterDB.bundle.
sep 24 08:31:58 raspberrypi sh[18653]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-21ab172de/HTbackdrops.bundle.
sep 24 08:31:58 raspberrypi sh[18653]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-21ab172de/PersonalMedia.bundle.
sep 24 08:34:59 raspberrypi sh[18653]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-21ab172de/LastFM.bundle.
sep 24 08:35:00 raspberrypi sh[18653]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-21ab172de/PlexMusic.bundle.
sep 24 08:35:02 raspberrypi sh[18653]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-21ab172de/LocalMedia.bundle.
sep 24 08:37:58 raspberrypi sh[18653]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-21ab172de/PlexThemeMusic.bundle.

I really have only seen this with a firewall. Please check the status of ufw: sudo ufw status.

Relevant thread: [solved] Errors PMS on the debian9

Also please check your IP configuration. Please post sudo ip addr.

Edit: A little bit more context. Every OpenVPN tutorial tells you to setup some iptables rules or edit the ufw configuraiton. I’m 99% sure that something you did during OpenVPN setup causes your current problems. So, please, besides checking ufw, also review any iptables rules you might have added, disable them and reboot your RPi afterwards.

Hi, yes it is really strange, but i have no fw configured.
Is it possible a sd card corruption?

root@raspberrypi:/etc # iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
f2b-sshd   tcp  --  anywhere             anywhere             multiport dports ssh

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain f2b-sshd (1 references)
target     prot opt source               destination
RETURN     all  --  anywhere             anywhere
root@raspberrypi:/etc # ufw status
bash: ufw: no se encontró la orden

sudo ip addr

root@raspberrypi:/etc # ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether b8:27:eb:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet 10.xxx.xxx.250/24 brd 10.xxx.xxx.255 scope global eth0
       valid_lft forever preferred_lft forever
3: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 100
    link/none
    inet 10.xxx.xxx.1 peer 10.xxx.xxx.2/32 scope global tun0
       valid_lft forever preferred_lft forever

The issue here might be your tun0 interface with. Please shut it down, restart PMS and try again.

The same behavior after a ip link set dev tun0 down
Somthing related to my account?

Nope. It’s the local network. For whatever reason, the main PMS service is unable to talk to the plugins via tcp.

Please show me ip route.

Edit: Can you temporarily switch to the 192.168.1.x subnet for your ethernet interface? Sometimes, PMS does not like 10.x.x.x. PMS also considers requests on this IP as WAN connections according to your logs.

ip route
default via 10.123.123.1 dev eth0 src 10.123.123.250 metric 202
10.123.123.0/24 dev eth0 proto kernel scope link src 10.123.123.250 metric 202

Now I’m changing th dhcp options give me a minute.

And please restart PMS afterwards: sudo systemctl restart plexmediaserver.

Changed to 192.168.1.0/24 network but still showing the same plugins errors. Checked inet connectivity, dns OK, but pms don’t work.
:sob:

I just saw that you use fail2ban. Can you please review the fail2ban logs and check for bans for 127.0.0.1 or something like that?

Please temporarily disable all those services that write iptables rules, e.g. sudo systemctl disable fail2ban, restart your RPi and try again.

Other than that, I am out of ideas right now :confused: All threads I have found with the same issue were caused by wrong iptables rules. I suppose some software on your system adds iptables rules essentially blocking PMS access to its plugins on 127.0.0.1.

1 Like