[solved] Plex nit systemd how to stop and start

Post Reply
Message
Author
User avatar
dirkme
Posts: 22
Joined: Sat Jan 14, 2017 9:47 pm

[solved] Plex nit systemd how to stop and start

#1 Post by dirkme »

Alright, Plex is installed at rc.d, how would one stop and start the plexmediaserver.

By default it gets started at system start.
Last edited by dirkme on Sun Jun 25, 2017 11:51 pm, edited 1 time in total.

User avatar
dolphin_oracle
Developer
Posts: 19926
Joined: Sun Dec 16, 2007 1:17 pm

Re: PLex nit systemd how to stop and start

#2 Post by dolphin_oracle »

plexmediaserver can be started and stop like this

Code: Select all

sudo service plexmediaserver stop

Code: Select all

sudo service plexmediaserver start

Code: Select all

sudo service plexmediaserver status

Code: Select all

sudo service plexmediaserver restart
example

Code: Select all

dolphin@mx1:~
$ sudo service plexmediaserver stop
[sudo] password for dolphin: 
Killing Plex Media Server: done
dolphin@mx1:~
$ sudo service plexmediaserver status
It seems that Plex Media Server isn't running (no process found).
dolphin@mx1:~
$ sudo service plexmediaserver start
Starting Plex Media Server: done
dolphin@mx1:~
$ sudo service plexmediaserver status
Plex Media Server process running.
dolphin@mx1:~
$ sudo service plexmediaserver restart
Killing Plex Media Server: done
Starting Plex Media Server: done
dolphin@mx1:~
$ sudo service plexmediaserver status
Plex Media Server process running.
dolphin@mx1:~
$ 
if you want to permanently disable from autostart,

Code: Select all

sudo update-rc.d plexmediaserver disable
or to enable

Code: Select all

sudo update-rc.d plexmediaserver enable

example

Code: Select all

dolphin@mx1:~
$ sudo update-rc.d plexmediaserver disable
insserv: warning: current start runlevel(s) (empty) of script `plexmediaserver' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `plexmediaserver' overrides LSB defaults (0 1 6).
dolphin@mx1:~
$ sudo update-rc.d plexmediaserver enable
dolphin@mx1:~
$ 
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
dirkme
Posts: 22
Joined: Sat Jan 14, 2017 9:47 pm

Re: PLex nit systemd how to stop and start

#3 Post by dirkme »

sorry for the late reply, but thanks a lot that does the trick dolphin_oracle ;-)

kb50
Posts: 20
Joined: Sun Nov 26, 2017 9:51 pm

Re: [solved] Plex nit systemd how to stop and start

#4 Post by kb50 »

None of this works for me, all I get is that the plexmediaserver service is not running.
PERIOD
I downloaded the deb from plex and it installs, and you even get the Manage Plex Media Server in the apps.
But nothing. It simply isn't running and never shows in the boot process.

Cannot start, there is no script, and nothing shown in the autostart app.

Also using keyring fails on root terminal. It says it cannot get the password from the keyring. I have no password set for the keyring, so root terminal fails. I can just use the normal one however.

I just cannot find any configuration of it anywhere, but it is there, just not properly installed.

Since it is not in the repos, I cannot just use Symantec or Package manager to install it. IT IS NOT LISTED


I do think I once had it working. Now that I know how to keep my automounting of my sda drive, although it does change if I unmount them, so just DONT unmount them after checking them off in the Disks Utility.

These are the things that still plague all Linux distros, not just MX-17 or MX-16.

kb50
Posts: 20
Joined: Sun Nov 26, 2017 9:51 pm

Re: [solved] Plex nit systemd how to stop and start

#5 Post by kb50 »

Its not working from MX Package Manager again.

Its the one thing I need working, to be able to watch my movie collection online.

I would be happy if I could get it to completely uninstall but It will not.
Does the purge command no longer work?

I tried completely remove from Synaptic, but that will not remove it.

So without the server loading and running, it is a useless package.
I think it is the updates that seem to kill it. The maintainer of the repro must not be in sync or something.
I am sure it has to do with a bad script, that fails to allow it to run after a restart, so your stuck with no service or any means to launch the service.

A usage message seems to come up during the boot process showing it is not being accessed correctly.

User avatar
dolphin_oracle
Developer
Posts: 19926
Joined: Sun Dec 16, 2007 1:17 pm

Re: [solved] Plex nit systemd how to stop and start

#6 Post by dolphin_oracle »

kb50 wrote:Its not working from MX Package Manager again.

Its the one thing I need working, to be able to watch my movie collection online.

I would be happy if I could get it to completely uninstall but It will not.
Does the purge command no longer work?

I tried completely remove from Synaptic, but that will not remove it.

So without the server loading and running, it is a useless package.
I think it is the updates that seem to kill it. The maintainer of the repro must not be in sync or something.
I am sure it has to do with a bad script, that fails to allow it to run after a restart, so your stuck with no service or any means to launch the service.

A usage message seems to come up during the boot process showing it is not being accessed correctly.
found the problem...in an effort to make the init script survive an update, I missed passing a parameter.

fixed in the next update of mx-packageinstaller-pkglist.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

kb50
Posts: 20
Joined: Sun Nov 26, 2017 9:51 pm

Re: [solved] Plex nit systemd how to stop and start

#7 Post by kb50 »

Ok so I was just at the wrong time and so it got messed up.

I ended up a full restore from Macrium Backup, and then I was able to put in Kernel 4.15 just fine.
So I also see you got the Automatic Updater in. I have not seen it work yet, unless we need to check the history log?
Does it indicate the update is running when they come along?
It's ok, now all working fine.

So Plex is all back and working fine.
I also have it running in Windows and so it keeps in sync with each other. You can use the same account between the 2 of them with no apparent problems, as they are sharing the same folders anyhow.
What is seperate is the database, which I am sure the Windows database is not the same format as the Linux one, so you cannot share databases, but it does share the server account online.

kb50
Posts: 20
Joined: Sun Nov 26, 2017 9:51 pm

Re: [solved] Plex nit systemd how to stop and start

#8 Post by kb50 »

2020-02-24 01:42:48.057 DBG default: mx-packageinstaller version: 20.2
2020-02-24 01:42:48.307 DBG default: +++ void MainWindow::setProgressDialog() +++
2020-02-24 01:42:48.310 DBG default: +++ void MainWindow::setup() +++
2020-02-24 01:42:48.314 DBG default: dpkg-query -f '${Version}' -W flatpak
2020-02-24 01:42:48.444 DBG default: "1.2.5-0+deb10u1"
2020-02-24 01:42:48.462 DBG default: cat /etc/debian_version | cut -f1 -d'.'
2020-02-24 01:42:48.485 DBG default: "10"
2020-02-24 01:42:48.485 DBG default: grep -q '^deb.* test' /etc/apt/sources.list.d/mx.list
2020-02-24 01:42:48.663 DBG default: +++ void MainWindow::loadPmFiles() +++
2020-02-24 01:42:48.849 DBG default: +++ void MainWindow::refreshPopularApps() +++
2020-02-24 01:42:48.849 DBG default: +++ QStringList MainWindow::listInstalled() +++
2020-02-24 01:42:48.849 DBG default: dpkg --get-selections | grep -v deinstall | cut -f1
2020-02-24 01:42:48.896 DBG default: +++ void MainWindow::displayPopularApps() const +++
2020-02-24 01:43:01.288 DBG default: +++ void MainWindow::displayInfo(const QTreeWidgetItem*, int) +++
2020-02-24 01:43:03.523 DBG default: +++ void MainWindow::on_buttonInstall_clicked() +++
2020-02-24 01:43:03.524 DBG default: +++ void MainWindow::on_tabWidget_currentChanged(int) +++
2020-02-24 01:43:03.525 DBG default: +++ bool MainWindow::installPopularApps() +++
2020-02-24 01:43:03.896 DBG default: +++ bool MainWindow::update() +++
2020-02-24 01:43:03.897 DBG default: apt-get update -o=Dpkg::Use-Pty=0 -o Acquire::http:Timeout=10 -o Acquire::https:Timeout=10 -o Acquire::ftp:Timeout=10
2020-02-24 01:43:04.232 DBG default: "Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease"
2020-02-24 01:43:04.336 DBG default: "Ign:2 http://dl.google.com/linux/musicmanager/deb stable InRelease"
2020-02-24 01:43:04.422 DBG default: "Hit:3 https://repo.skype.com/deb stable InRelease"
2020-02-24 01:43:04.423 DBG default: "Hit:4 http://dl.google.com/linux/chrome/deb stable Release\nHit:5 http://mxrepo.com/mx/repo buster InRelease"
2020-02-24 01:43:04.467 DBG default: "Hit:6 http://deb.debian.org/debian buster-updates InRelease"
2020-02-24 01:43:04.518 DBG default: "Hit:7 http://deb.debian.org/debian buster InRelease"
2020-02-24 01:43:04.552 DBG default: "Get:8 http://dl.google.com/linux/musicmanager/deb stable Release [941 B]"
2020-02-24 01:43:04.564 DBG default: "Hit:9 http://deb.debian.org/debian-security buster/updates InRelease"
2020-02-24 01:43:04.611 DBG default: "Get:11 http://dl.google.com/linux/musicmanager/deb stable Release.gpg [819 B]"
2020-02-24 01:43:05.223 DBG default: "Hit:10 https://packagecloud.io/AtomEditor/atom/any any InRelease"
2020-02-24 01:43:05.720 DBG default: "Ign:11 http://dl.google.com/linux/musicmanager/deb stable Release.gpg"
2020-02-24 01:43:05.920 DBG default: "Reading package lists..."
2020-02-24 01:43:08.088 DBG default: ""
2020-02-24 01:43:08.116 WRN default: "W: GPG error: http://dl.google.com/linux/musicmanager/deb stable Release: The following signatures were invalid: EXPKEYSIG 6494C6D6997C215E Google Inc. (Linux Packages Signing Authority) <linux-packages-keymaster@google.com>\nE: The repository 'http://dl.google.com/linux/musicmanager/deb stable Release' is not signed."
problem updating sources

So because of the sources not working I cannot install Plex itself.

kb50
Posts: 20
Joined: Sun Nov 26, 2017 9:51 pm

Re: [solved] Plex nit systemd how to stop and start

#9 Post by kb50 »

404. That’s an error.

That’s all we know.

So until this is resolved I cannot proceed any further.

User avatar
dolphin_oracle
Developer
Posts: 19926
Joined: Sun Dec 16, 2007 1:17 pm

Re: [solved] Plex nit systemd how to stop and start

#10 Post by dolphin_oracle »

You will need to either disable the Google music manager repo or update it's signature. You can Google for that.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

Post Reply

Return to “Software / Configuration”