Plexmediaserver trouble after SD card replacement Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
bferd
Posts: 2
Joined: Sun Oct 24, 2021 4:26 am

Plexmediaserver trouble after SD card replacement

Post by bferd »

Looking for some help. After several re-installs and a lot of searching i cannot figure this out. I recently had an SD card failure and replaced the damaged card. Previous installation on the old card worked great. Plex installs fine using dietpi-software. Able to connect to <MY-IP>:32400 but cannot add my media libraries. Clicking "Your Media" prompts me to download plex server. Dietpi-services shows plexmediaserver is running.

Screenshot > No library

Code: Select all

Configuration file '/etc/apt/sources.list.d/plexmediaserver.list'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
 ==> Keeping old config file as default.
PlexMediaServer install: PlexMediaServer-1.24.4.5081-e362dc1ee - Installation starting.
PlexMediaServer install: 
PlexMediaServer install: Now installing based on:
PlexMediaServer install:   Installation Type:   New
PlexMediaServer install:   Process Control:     systemd
PlexMediaServer install:   Plex User:           plex
PlexMediaServer install:   Plex Group:          plex
PlexMediaServer install:   Video Group:         video
PlexMediaServer install:   Metadata Dir:        /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install:   Temp Directory:      /tmp 
PlexMediaServer install:   Lang Encoding:       en_US.UTF-8
PlexMediaServer install:   Nvidia GPU card:     Not Found
PlexMediaServer install:  
PlexMediaServer install: Completing final configuration.
Created symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service → /lib/systemd/system/plexmediaserver.service.
PlexMediaServer install: PlexMediaServer-1.24.4.5081-e362dc1ee - Installation successful.  Errors: 0, Warnings: 0
User avatar
MichaIng
Site Admin
Posts: 3531
Joined: Sat Nov 18, 2017 6:21 pm

Re: Plexmediaserver trouble after SD card replacement

Post by MichaIng »

I guess the web frontend runs but the server backend not. Please check the service status and logs:

Code: Select all

systemctl status plexmediaserver
journalctl -u plexmediaserver
bferd
Posts: 2
Joined: Sun Oct 24, 2021 4:26 am

Re: Plexmediaserver trouble after SD card replacement

Post by bferd »

That's what i thought too. Your suggestion gave me some clues and I have it resolved. Service was disabled and we have enabled it now. also not sure if it was related but ran

Code: Select all

sudo locale-gen
to fix locale issue.

Code: Select all

brad@DietPi:~$ sudo systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
     Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/plexmediaserver.service.d
             └─dietpi-group.conf, dietpi-services_edit.conf
     Active: active (running) since Sun 2021-10-24 20:31:37 EDT; 18s ago
    Process: 723 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: 729 (Plex Media Serv)
      Tasks: 71 (limit: 4532)
        CPU: 12.363s
     CGroup: /system.slice/plexmediaserver.service
             ├─ 729 /usr/lib/plexmediaserver/Plex Media Server
             ├─ 864 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-e362dc1ee/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.24.4.5081-e362dc1ee /usr/lib/plexmediaserver/Resources/Plug-ins-e362dc1ee/System.bundle
             ├─1038 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.24.4.5081-e362dc1ee 32600
             └─1088 Plex Plug-in [com.plexapp.agents.imdb] /usr/lib/plexmediaserver/Resources/Plug-ins-e362dc1ee/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.24.4.5081-e362dc1ee /usr/lib/plexmediaserver/Resources/Plug-ins-e362dc1ee/PlexMovie.bundle

Oct 24 20:31:37 DietPi systemd[1]: Starting Plex Media Server...
Oct 24 20:31:37 DietPi systemd[1]: Started Plex Media Server.
brad@DietPi:~$ sudo journalctl -u plexmediaserver
-- Journal begins at Sun 2021-10-24 20:31:25 EDT, ends at Sun 2021-10-24 20:32:11 EDT. --
Oct 24 20:31:37 DietPi systemd[1]: Starting Plex Media Server...
Oct 24 20:31:37 DietPi systemd[1]: Started Plex Media Server.
Post Reply