Anyone use Plex in Tumblewed?

Hi,
Longtime plex and opensuse user. I recently had to reinstall. I downloaded the lateswt TW last night, and boy does it look different. very nice, love the graphics and my system booted great (som ebugs like usb errors on first mount).
I also noticed some major changes under the hood eg. susefirewall to firewalld , some new security stuff (more on this later maybe)…

anyway to shorten the story, I have installed and ran plex on opensuse for years. But last night I could not get it running at all (latest version: plexmediaserver-1.12.1.4885-1046ba85f.x86_64) , I tried old versions of plex (plexmediaserver-1.12.0.4829-6de959918.x86_64) that i have had running before, and could not get them running on the new tumbleweed:

ID=opensuse
ID_LIKE="suse"
VERSION_ID="20180316"
PRETTY_NAME="openSUSE Tumbleweed"

SO I reinstalled this morning as i have in the past, fresh and new to try again (as I am sure my random trying things did not help the situation at all)
This is how I installed:

**grabbed latest from: **https://www.plex.tv/downloads/
**install by right click →yast, say ok to problem integrity.
**
systemctl start plexmediaserver
systemctl start plexmediaserver.service
systemctl enable plexmediaserver.service

Can anyone help me get is running?

error:


linux-ngbh:/home/kilbert # systemstl start plexmediaserver
linux-ngbh:/home/kilbert # systemctl start plexmediaserver
Failed to start plexmediaserver.service: Unit plexmediaserver.service not found.
linux-ngbh:/home/kilbert # which plexmediaserver
which: no plexmediaserver in (/home/kilbert/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/lib/mit/sbin)
linux-ngbh:/home/kilbert # systemctl start plexmediaserver.service 
Failed to start plexmediaserver.service: Unit plexmediaserver.service not found.
linux-ngbh:/home/kilbert # systemctl enable plexmediaserver.service
Synchronizing state of plexmediaserver.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable plexmediaserver
Created symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service → /lib/systemd/system/plexmediaserver.service.
linux-ngbh:/home/kilbert # systemctl start plexmediaserver.service 
Job for plexmediaserver.service failed because the control process exited with error code.
See "systemctl status plexmediaserver.service" and "journalctl -xe" for details.                                                                                                                                                                                                                                                                             
linux-ngbh:/home/kilbert # systemctl status plexmediaserver.service                                                                                                                                                                                                                              
● plexmediaserver.service - Plex Media Server for Linux                                                                                                                                                                                                                                          
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: disabled)                                                                                                                                                                                                
   Active: failed (Result: exit-code) since Thu 2018-03-22 18:04:47 EDT; 5s ago                                                                                                                                                                                                                  
  Process: 4368 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=216/GROUP)                                                                                          
                                                                                                                                                                                                                                                                                                 
Mar 22 18:04:46 linux-ngbh systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.                                                                                                                                                                                  
Mar 22 18:04:46 linux-ngbh systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.                                                                                                                                                                                  
Mar 22 18:04:47 linux-ngbh systemd[1]: Stopped Plex Media Server for Linux.                                                                                                                                                                                                                      
Mar 22 18:04:47 linux-ngbh systemd[1]: plexmediaserver.service: Start request repeated too quickly.                                                                                                                                                                                              
Mar 22 18:04:47 linux-ngbh systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.                                                                                                                                                                                                  
Mar 22 18:04:47 linux-ngbh systemd[1]: Failed to start Plex Media Server for Linux.                                                                                                                                                                                                              
linux-ngbh:/home/kilbert # 



.

Any help is appreciated - thanks so much
J Kilbert

Sorry hit post limit:
continued
JOurnal:

● plexmediaserver.service - Plex Media Server for Linux                                                                                                                                                                                                                                              
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled;  vendor preset: disabled)                                                                                                                                                                                                  
   Active: failed (Result: exit-code) since Thu 2018-03-22 18:04:47 EDT;  5s ago                                                                                                                                                                                                                    
  Process: 4368 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=216/GROUP)                                                                                           
                                                                                                                                                                                                                                                                                                     
Mar 22 18:04:46 linux-ngbh systemd[1]: plexmediaserver.service: Service  hold-off time over, scheduling restart.                                                                                                                                                                                    
Mar 22 18:04:46 linux-ngbh systemd[1]: plexmediaserver.service:  Scheduled restart job, restart counter is at 3.                                                                                                                                                                                     
Mar 22 18:04:47 linux-ngbh systemd[1]: Stopped Plex Media Server for  Linux.                                                                                                                                                                                                                         
Mar 22 18:04:47 linux-ngbh systemd[1]: plexmediaserver.service: Start  request repeated too quickly.                                                                                                                                                                                                 
Mar 22 18:04:47 linux-ngbh systemd[1]: plexmediaserver.service: Failed  with result 'exit-code'.                                                                                                                                                                                                     
Mar 22 18:04:47 linux-ngbh systemd[1]: Failed to start Plex Media Server  for Linux.                                                                                                                                                                                                                
linux-ngbh:/home/kilbert # journalctl -xe
Mar 22 18:04:41 linux-ngbh systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Mar 22 18:04:41 linux-ngbh systemd[1]: plexmediaserver.service:  Scheduled restart job, restart counter is at 2.                                                                                                                                                                                     
-- Subject: Automatic restarting of a unit has been scheduled                                                                                                                                                                                                                                       
-- Defined-By: systemd                                                                                                                                                                                                                                                                               
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel                                                                                                                                                                                                                             
--                                                                                                                                                                                                                                                                                                   
-- Automatic restarting of the unit plexmediaserver.service has been  scheduled, as the result for                                                                                                                                                                                                   
-- the configured Restart= setting for the unit.                                                                                                                                                                                                                                                     
Mar 22 18:04:41 linux-ngbh systemd[1]: Stopped Plex Media Server for  Linux.                                                                                                                                                                                                                         
-- Subject: Unit plexmediaserver.service has finished shutting down                                                                                                                                                                                                                                 
-- Defined-By: systemd                                                                                                                                                                                                                                                                               
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel                                                                                                                                                                                                                             
--                                                                                                                                                                                                                                                                                                   
-- Unit plexmediaserver.service has finished shutting down.                                                                                                                                                                                                                                         
Mar 22 18:04:41 linux-ngbh systemd[1]: Starting Plex Media Server for  Linux...                                                                                                                                                                                                                      
-- Subject: Unit plexmediaserver.service has begun start-up                                                                                                                                                                                                                                         
-- Defined-By: systemd                                                                                                                                                                                                                                                                               
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel                                                                                                                                                                                                                             
--                                                                                                                                                                                                                                                                                                   
-- Unit plexmediaserver.service has begun starting up.                                                                                                                                                                                                                                               
Mar 22 18:04:41 linux-ngbh systemd[4368]: plexmediaserver.service:  Failed to determine group credentials: No such process                                                                                                                                                                           
Mar 22 18:04:41 linux-ngbh systemd[4368]: plexmediaserver.service:  Failed at step GROUP spawning /bin/sh: No such process                                                                                                                                                                           
-- Subject: Process /bin/sh could not be executed                                                                                                                                                                                                                                                   
-- Defined-By: systemd                                                                                                                                                                                                                                                                               
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel                                                                                                                                                                                                                             
-- 
-- The process /bin/sh could not be executed and failed.
-- 
-- The error number returned by this process is 3.
Mar 22 18:04:41 linux-ngbh systemd[1]: plexmediaserver.service: Control process exited, code=exited status=216
Mar 22 18:04:41 linux-ngbh systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Mar 22 18:04:41 linux-ngbh systemd[1]: Failed to start Plex Media Server for Linux.
-- Subject: Unit plexmediaserver.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit plexmediaserver.service has failed.
-- 
-- The result is RESULT.
Mar 22 18:04:46 linux-ngbh systemd[1]: plexmediaserver.service: Service hold-off time over, scheduling restart.
Mar 22 18:04:46 linux-ngbh systemd[1]: plexmediaserver.service: Scheduled restart job, restart counter is at 3.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Automatic restarting of the unit plexmediaserver.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Mar 22 18:04:47 linux-ngbh systemd[1]: Stopped Plex Media Server for Linux.
-- Subject: Unit plexmediaserver.service has finished shutting down
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit plexmediaserver.service has finished shutting down.
Mar 22 18:04:47 linux-ngbh systemd[1]: plexmediaserver.service: Start request repeated too quickly.
Mar 22 18:04:47 linux-ngbh systemd[1]: plexmediaserver.service: Failed with result 'exit-code'.
Mar 22 18:04:47 linux-ngbh systemd[1]: Failed to start Plex Media Server for Linux.
-- Subject: Unit plexmediaserver.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit plexmediaserver.service has failed.
-- 
-- The result is RESULT.
Mar 22 18:05:11 linux-ngbh chronyd[866]: Selected source 162.210.111.4
Mar 22 18:05:24 linux-ngbh plasmashell[2035]: QXcbConnection: XCB error:  2 (BadValue), sequence: 29297, resource id: 60817414, major code: 142  (Unknown), minor code: 3
Mar 22 18:05:24 linux-ngbh plasmashell[2035]: QXcbConnection: XCB error:  2 (BadValue), sequence: 29300, resource id: 73400325, major code: 142  (Unknown), minor code: 3
Mar 22 18:05:25 linux-ngbh plasmashell[2035]: QXcbConnection: XCB error:  2 (BadValue), sequence: 29365, resource id: 67108881, major code: 142  (Unknown), minor code: 3

Seems it could not spawn /bin/bash
could not get group credentials etc… which is how I found the security center mentioned earlier
thanks

I have been running it for a while without any issues other than the service occasionally not starting after a reboot. I am running the latest version. I can’t remember where I got my original rpm file, but all of the updates have been downloaded from the link provided by the plex web app.

The plexmediaplayer.service link in /etc/systemd/mult-user.target.wants points to /lib/systemd/system (and in case is the only link there) which contains:

[Unit]
Description=Plex Media Server for Linux
After=network.target

[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application Support"
Environment=PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
Environment=PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
Environment=PLEX_MEDIA_SERVER_TMPDIR=/tmp
Environment=LC_ALL=en_US.UTF-8
Environment=LANG=en_US.UTF-8
ExecStartPre=/bin/sh -c '/usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"'
ExecStart=/bin/sh -c 'LD_LIBRARY_PATH=/usr/lib/plexmediaserver "/usr/lib/plexmediaserver/Plex Media Server"'
Type=simple
User=plex
Group=plex
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3

[Install]
WantedBy=multi-user.target

Do you still have a plex user and a plex group?

The service status shows:

dos@DOS1:~> sudo systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server for Linux
   Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2018-03-22 19:50:45 ADT; 3min 52s ago
 Main PID: 14556 (Plex Media Serv)
    Tasks: 126 (limit: 4915)
   CGroup: /system.slice/plexmediaserver.service
           ├─14556 /usr/lib/plexmediaserver/Plex Media Server
           ├─14571 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-1046ba85f/Framework.bundl
           ├─14618 /usr/lib/plexmediaserver/Plex DLNA Server
           ├─14619 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/p
           ├─14782 Plex Plug-in [com.plexapp.agents.opensubtitles] /usr/lib/plexmediaserver/Resources/Plug-ins-1046ba85f/F
           ├─14846 Plex Plug-in [com.plexapp.agents.plexthememusic] /usr/lib/plexmediaserver/Resources/Plug-ins-1046ba85f/
           ├─14886 Plex Plug-in [com.plexapp.agents.themoviedb] /usr/lib/plexmediaserver/Resources/Plug-ins-1046ba85f/Fram
           ├─14889 Plex Plug-in [com.plexapp.agents.plexmusic] /usr/lib/plexmediaserver/Resources/Plug-ins-1046ba85f/Frame
           ├─14891 Plex Plug-in [com.plexapp.agents.thetvdb] /usr/lib/plexmediaserver/Resources/Plug-ins-1046ba85f/Framewo
           ├─14956 Plex Plug-in [com.plexapp.agents.imdb] /usr/lib/plexmediaserver/Resources/Plug-ins-1046ba85f/Framework.
           └─14985 /usr/lib/plexmediaserver/Plex Relay -p 443 -N -R 0:localhost:32401 -o StrictHostKeyChecking=yes -o User

Mar 22 19:50:45 DOS1 systemd[1]: Starting Plex Media Server for Linux...
Mar 22 19:50:45 DOS1 systemd[1]: Started Plex Media Server for Linux.

I believe even without a firewall port open the service should start.

It may be a permissions issue. See the SuSE section

https://support.plex.tv/articles/200273978-linux-user-and-storage-configuration/

Thanks for the pointers.

I got it running was permission error, i messed up step 4 below.

for anyone else this is what I did:

  1. Download Here: https://www.plex.tv/downloads
  2. install right click →yast, say ok to problem integrity.
  3. Change user in these 2 locations: (for plex/subzero to work)
  • /etc/sysconfig/PlexMediaServer change user to your username
  • /lib/systemd/system/plexmediaserver.service change the user from plex to your user name/users group
  1. change the ownership of plex files: chown -R yourusename /var/lib/plexmediaserver
  2. Reload to make changes current without reboot & Make plex auto start, and start now
  • systemctl daemon-reload
  • systemctl start plexmediaserver.service
  • systemctl start plexmediaserver
  • systemctl enable plexmediaserver.service
  1. goto localhost:32400/web/index.html on browser (make sure allow scripts if using no script

sorry i give up on formatting… :confused:

You may find the following useful to avoid future breakage on updates.

https://forums.plex.tv/discussion/286395/customizing-your-plex-configuration

Thanks for sharing. Had exactly the same experience at a friends 2 days ago. Solved it about the same way. IIRC we forced Plex to run as the webuser wwwrun, to support some upload option.

Hopefully this is somewhat what you had in mind. Figured since this post helped me I’ll try to make it a little bit friendlier for new users and fix the formatting.

[ol]
[li]Download Plex - https://www.plex.tv/downloads [/li][li]Open with YaST Software Management and install (Click ignore when it gives an error about integrity of the file)[/li][li]Change user in these 2 locations for Plex/Sub-Zero to work [/li][list=A]
[li]Change the value of PLEX_USER to your username [/li]```
KDESU kate /etc/sysconfig/PlexMediaServer


[li]Take  ownership of /lib/systemd/system/plexmediaserver.service by running  (replace USERNAME with your username):[/li]```
sudo chown -R USERNAME  /lib/systemd/system/plexmediaserver.service

[/ol]

[li]Change the ownership of plex files: [/li]```
sudo chown -R USERNAME /var/lib/plexmediaserver


Now to apply the changes without rebooting and to make Plex start automatically execute the following commands

systemctl daemon-reload
systemctl start plexmediaserver.service
systemctl start plexmediaserver
systemctl enable plexmediaserver.service


[li]Visit localhost:32400/web/index.html  in your browser (make sure to allow Javascript if using no-script) and get cracking on using Plex![/li][/list]

And let's throw in this keyword for Google: tumbleweed (it was misspelled in the thread title)