Plexpy not starting up

plexpy
bug
terminal
dashboard
install

#1

Ok, I’ve now tried both installing plexpy via the dashboard as well as from terminal “box install plexpy”…

All I get in return is a 503 Service Unavailable…

htop confirms plexpy is running, so any ideas would be awesome… thanks!


#2

14 views and no one is using plexpy or have any ideas?


#3

Hello @DonJuanZA,

Do you access to PlexPy at https://YourServerIP/plexpy ?
Do you have any error in the PlexPy log ? (/opt/plexpy/logs/plexpy.log)

Mine is working well.


#4

Thanks for replying…

[[email protected]]:(2.6kb)~$ tail -f /opt/plexpy/logs/plexpy.log
tail: cannot open '/opt/plexpy/logs/plexpy.log' for reading: Permission denied
tail: no files remaining
[[email protected]]:(2.6kb)~$ cd /opt/plexpy
[[email protected]]:(170.2kb)/opt/plexpy$ ls
API.md        config.ini       init-scripts       logs       pylintrc
backups       contrib          ISSUE_TEMPLATE.md  plexpy     README.md
cache         CONTRIBUTING.md  lib                plexpy.db  version.lock
CHANGELOG.md  data             LICENSE            PlexPy.py
[[email protected]]:(170.2kb)/opt/plexpy$ cd logs
-bash: cd: logs: Permission denied

ok… so we have a permission issue on a default install {both web and terminal} … any ideas on how to sort it in the intended way?

[[email protected]]:(170.2kb)/opt/plexpy$ ls -l
total 236
-rw-r--r--  1 plexpy nogroup 46598 Dec  2 13:07 API.md
drwx------  2 plexpy nogroup  4096 Dec  5 03:25 backups
drwx------  2 plexpy nogroup  4096 Dec  2 13:07 cache
-rw-r--r--  1 plexpy nogroup 31907 Dec  2 13:07 CHANGELOG.md
-rw-------  1 plexpy nogroup 13760 Dec  5 11:48 config.ini
drwxr-xr-x  2 plexpy nogroup  4096 Dec  2 13:07 contrib
-rw-r--r--  1 plexpy nogroup  4418 Dec  2 13:07 CONTRIBUTING.md
drwxr-xr-x  3 plexpy nogroup  4096 Dec  2 13:07 data
drwxr-xr-x  2 plexpy nogroup  4096 Dec  2 13:07 init-scripts
-rw-r--r--  1 plexpy nogroup  1146 Dec  2 13:07 ISSUE_TEMPLATE.md
drwxr-xr-x 28 plexpy nogroup  4096 Dec  2 13:07 lib
-rw-r--r--  1 plexpy nogroup 35147 Dec  2 13:07 LICENSE
drwx------  2 plexpy nogroup  4096 Dec  2 13:07 logs
drwxr-xr-x  2 plexpy nogroup  4096 Dec  2 13:07 plexpy
-rw-------  1 plexpy nogroup 18432 Dec  3 01:40 plexpy.db
-rwxr-xr-x  1 plexpy nogroup  9016 Dec  2 13:07 PlexPy.py
-rw-r--r--  1 plexpy nogroup  9251 Dec  2 13:07 pylintrc
-rw-r--r--  1 plexpy nogroup  4671 Dec  2 13:07 README.md
-rw-------  1 plexpy nogroup    40 Dec  5 11:59 version.lock

seems the permissions is all over the show…

EDIT: added new tags to discussion


#5

Could you use sudo to tail/cat the log file ?
Because Quickbox script creates a non-root user during the installation (master I guess for your case)


#6

master is a forum sudoname… :stuck_out_tongue:

http://pastebin.com/ucjHPCKy


#7

So there is no error in your log file.
I looked into my server and I have the same rights regarding PlexPy directory and PlexPy is working for me.

Maybe some issues with the web server, do you have plexpy.conf in /etc/apache2/sites-enabled ?


#8
[[email protected]]:(4.4kb)/etc/apache2/sites-enabled$ ls
aliases-seedbox.conf  default-ssl.conf  fileshare.conf  plex.conf  plexpy.conf  sickrage.conf  sonarr.conf  master.console.conf
[[email protected]]:(4.4kb)/etc/apache2/sites-enabled$ cat plexpy.conf
<Location /plexpy>
ProxyPass http://localhost:8181/plexpy
ProxyPassReverse http://localhost:8181/plexpy
AuthType Digest
AuthName "rutorrent"
AuthUserFile '/etc/htpasswd'
Require user master
</Location>

seems so…


#9

Yes.

Did you restart the server since the QuickBox installation ?
Your others applications are ok ? (sonarr, sickrage, etc.)


#10

sonarr is playing ping pong with itself, have not yet been able to get that working… plex,rtorrent,irssi,sickrage,webconsole seems to be working fine, some better than others…

and yes, i have restarted server since i installed plexpy, both web and terminal


#11

anyone else have any ideas?


#12

@PastaGringo @dtech @Globber any ideas? People are starting to use my server and I would love to have the stats running…


#13

Do you tried to uninstall PlexPy from the dashboard and reinstall it from shell with : box install plexpy ?


#14

That I have done… Even tried uninstalling and reinstalling from shell on its own…


#15

Strange… Try to reinstall QB on VPS (for free at https://dply.co/) and compare differences between your install and the new fresh one.


#16

no difference, not working…


#17

can someone share all relevant config files so i can compare?


#18

[[email protected]]:(4.2kb)/etc/apache2/sites-enabled$ /etc/init.d/apache2 sto
Usage: apache2 {start|stop|graceful-stop|restart|reload|force-reload}
[email protected]]:(4.2kb)/etc/apache2/sites-enabled$ /etc/init.d/apache2 stop
[…] Stopping apache2 (via systemctl): apache2.serviceFailed to stop apache2.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and ‘systemctl status apache2.service’ for details.
failed!
[[email protected]]:(4.2kb)/etc/apache2/sites-enabled$ /etc/init.d/apache2 start
[…] Starting apache2 (via systemctl): apache2.serviceFailed to start apache2.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and ‘systemctl status apache2.service’ for details.
failed!
[[email protected]]:(4.2kb)/etc/apache2/sites-enabled$ /etc/init.d/apache2 restart
[…] Restarting apache2 (via systemctl): apache2.serviceFailed to restart apache2.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and ‘systemctl status apache2.service’ for details.
failed!
[[email protected]]:(4.2kb)/etc/apache2/sites-enabled$ /etc/init.d/apache2 reload
[…] Reloading apache2 configuration (via systemctl): apache2.serviceFailed to reload apache2.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and ‘systemctl status apache2.service’ for details.
failed!
[[email protected]]:(4.2kb)/etc/apache2/sites-enabled$ systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Mon 2016-12-05 11:46:20 EST; 6 days ago
Docs: man:systemd-sysv-generator(8)
Process: 15974 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS)
CGroup: /system.slice/apache2.service
├─ 426 /usr/sbin/apache2 -k start
├─15998 /usr/sbin/fcgi-pm -k start
├─16000 /usr/sbin/apache2 -k start
├─16012 /usr/sbin/apache2 -k start
├─16089 /usr/sbin/apache2 -k start
├─17491 /usr/sbin/apache2 -k start
├─17494 /usr/sbin/apache2 -k start
└─17519 /usr/sbin/apache2 -k start


#19

Why is apache saying it is bad, is that the problem? I haven’t done any manual changes to anything…


#20

Found one of the issues… the menu link on the left is pointing to /plexpy which doesn’t work… should point to :8181 and then it starts up…

This after more restarts and terminal install/removes and who knows what else… And yes, I did try only :8181 before…

This is a pain in the ass because the absolute definition of madness is doing the same thing over and over and expecting different results, but that is exactly what was needed in this case…