LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 01-13-2021, 03:00 PM   #1
vovim
Member
 
Registered: Nov 2011
Location: England
Distribution: Slackware64 14.1
Posts: 37

Rep: Reputation: Disabled
Plex Media Server not starting


Hi, I am trying to run the Plex Media Server on my raspberry pi 4 with slackware current.

I have amended both the slackbuild and the info files from the SlackBuild to use the armhf download as described below.

root@pi:/etc/rc.d# diff '/var/lib/sbopkg/SBo-git/multimedia/plexmediaserver/plexmediaserver.SlackBuild' '/var/lib/sbopkg/SBo-git/multimedia/plexmediaserver/plexmediaserver.SlackBuild.sbopkg'
61,63c61,64
< else
< echo "Package for $(uname -m) architecture is not available."
< exit 1
---
> elif [ "$ARCH" = "arm" ]; then
> DEBARCH="armhf"
> LIBDIRSUFFIX=""
> ARCH="arm"

root@pi:/etc/rc.d# diff '/var/lib/sbopkg/SBo-git/multimedia/plexmediaserver/plexmediaserver.info' '/var/lib/sbopkg/SBo-git/multimedia/plexmediaserver/plexmediaserver.info.sbopkg'
4,5c4,5
< DOWNLOAD="https://downloads.plex.tv/plex-media-server-new/1.21.1.3876-3c3adfcb4/debian/plexmediaserver_1.21.1.3876-3c3adfcb4_i386.deb"
< MD5SUM="502193fe104a95aa887ddf1330245858"
---
> DOWNLOAD="https://downloads.plex.tv/plex-media-server-new/1.21.1.3876-3c3adfcb4/debian/plexmediaserver_1.21.1.3876-3c3adfcb4_armhf.deb"
> MD5SUM="b118c6ada17befc5037d85ab15859999"
root@pi:/etc/rc.d#

The package installs O.K. with no errors but it will not start.
I issue the command "/etc/rc.d/rc.plexmediaserver start" and it says "Starting Plex Media Server." and it seems to complete O.K. (it show no errors). However, as soon as the start completes I run "/etc/rc.d/rc.plexmediaserver status" and it says "Plex Media Server is stopped.".

I do have the plex user and plex group setup as described in the README of the SlackBuild. And the slackbuild lists no dependencies.

Any help with this problem would be greatly appreciated.

Thank You.
 
Old 01-14-2021, 09:47 AM   #2
vovim
Member
 
Registered: Nov 2011
Location: England
Distribution: Slackware64 14.1
Posts: 37

Original Poster
Rep: Reputation: Disabled
The above (original post) happens when I start rc.plexmediaserver as root.

If I start rc.plexmediaserver as a normal user the start never completes.

I have run the process as myself (a normal user) under strace and the only clues that I have found is this :

access("/bin/su", R_OK) = -1 EACCES (Permission denied)

I think that this is very strange because I can access the su command as a normal user (myself).
And then a few lines later in the strace it has :

clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb6facee8) = 3072

And if I do a ps -A | grep 3072 it shows the su command :

bash-5.0$ ps -A | grep 3072
3072 pts/0 00:00:00 su
bash-5.0$

And then a few more lines later it goes into "wait4"

And if I look at the /proc entry for this process at the status entry it shows :

bash-5.0$ cat /proc/3050/status
Name: rc.plexmediaser
Umask: 0022
State: S (sleeping)

The strace of starting plexmediaserver as a normal user is in pastebin at https://pastebin.pl/view/54a9e5e3

The strace of starting plexmediaserver as root is in pastebin at https://pastebin.pl/view/51ece6d2

I hope the straces can help someone as I have no real idea about what they are saying.

I am happy to supply any further information that may be required.

Thank You for any help.
 
Old 01-14-2021, 08:20 PM   #3
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 858

Rep: Reputation: 194Reputation: 194
X, virtualbox, samba, apache have logs even if they don't work.

As it seems you've done some diagnostic digging, you've not mentioned anything about plex logs.

I don't use plex but does it log anything anywhere?
 
Old Today, 06:21 AM   #4
vovim
Member
 
Registered: Nov 2011
Location: England
Distribution: Slackware64 14.1
Posts: 37

Original Poster
Rep: Reputation: Disabled
Thanks for your reply glorsplitz.

I have checked online where plex logs to, and it is in the directory "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs".
This directory did not exist. The slackbuild only creates "/var/lib/plexmediaserver/Library/Application Support" so I created the other directories (and chowned them to plexlex). I then tried to start the plex media server as a normal user and it still gets stuck on "Starting Plex Media Server." and there is nothing in the Logs directory that I just created.
I did, however, look at the proc filesystem for the su command that it runs as a child process and specifically at the cmdline part of it and it shows the following :

root@pi:~# cat /proc/1894/cmdline
su-mplex-s/bin/sh-cexec /usr/lib/plexmediaserver/Plex\ Media\ Server &root@pi:~#

So the su command would have failed before because the Slackbuild did not create the "Plex Media Server" subdirectory.

The cmdline looks very strange but I think that the plexmediaserver process has left out the spaces in it and perhaps it should be :

su-m plex -s /bin/sh -c exec /usr/lib/plexmediaserver/Plex\ Media\ Server &

I don't know why the process has missed out the spaces. But then how can it execute a directory ?

I hope that this will help.

Thank You.
 
  


Reply

Tags
arm, plexmediaserver


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Review Plex Media Server For Linux, Sync Media Across All Of Your Devices LXer Syndicated Linux News 0 02-29-2016 01:51 PM
Plex Media Server on Slackware64 Gee Man Slackware 1 10-01-2012 07:12 PM
LXer: Plex Media Server + Roku = Awesome LXer Syndicated Linux News 0 08-27-2012 01:30 PM
LXer: Plex Media Server + Roku = Awesome LXer Syndicated Linux News 0 08-13-2012 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 05:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration