If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

PlexPy - Another Plex Monitoring Program

12467322

Comments

  • drzoidberg33drzoidberg33 Posts: 2,565Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    mkennedy2547 wrote on June 30 2015, 7:03 PM: »

    I'm installing as a daemon onto Ubuntu 14.04.2 LTS.  When I install the git, I do not get a directory /opt/plexpy/init-scripts/  

    What am I missing?  

    Sorry about this, was supposed to add these back last week already. I just pushed a new update now which puts them back, please check it out and let me know if it works.

  • mkennedy2547mkennedy2547 Posts: 74Members, Plex Pass Plex Pass

    That worked to put the directory back.  Thank you. 

    I still can't quite get it to work though.  I have ISPConfig installed on the Ubuntu Server LAMP so that will probably be what my issue is.  Any thoughts?  

  • drzoidberg33drzoidberg33 Posts: 2,565Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    mkennedy2547 wrote on June 30 2015, 7:48 PM: »

    That worked to put the directory back.  Thank you. 

    I still can't quite get it to work though.  I have ISPConfig installed on the Ubuntu Server LAMP so that will probably be what my issue is.  Any thoughts?  

    You should be able to just run it by going to the folder and running:

    python PlexPy.py -d

    This will start it as a daemon on port 8181. Then you can just go to http://yourip:8181

    Apache shouldn't conflict with it unless you have another service running on port 8181.

  • mkennedy2547mkennedy2547 Posts: 74Members, Plex Pass Plex Pass

    I guess I'm just going to run it on the same machine as my PMS.  I run PMS on Win7 64, and wanted to put the PlexWatch web UI on my Ubuntu LAMP server so I could view it remotely as a subdirectory of my main domain name.  I'll just do this with port fwds and maybe an apache redirect... 

  • drzoidberg33drzoidberg33 Posts: 2,565Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    mkennedy2547 wrote on June 30 2015, 7:57 PM: »

    I guess I'm just going to run it on the same machine as my PMS.  I run PMS on Win7 64, and wanted to put the PlexWatch web UI on my Ubuntu LAMP server so I could view it remotely as a subdirectory of my main domain name.  I'll just do this with port fwds and maybe an apache redirect... 

    I would suggest you run it on the same machine where PlexWatch is installed, as then database access is a lot simpler.

  • mkennedy2547mkennedy2547 Posts: 74Members, Plex Pass Plex Pass
    DrJohnZoidberg wrote on June 30 2015, 7:55 PM: »

    You should be able to just run it by going to the folder and running:

    python PlexPy.py -d

    This will start it as a daemon on port 8181. Then you can just go to http://yourip:8181

    Apache shouldn't conflict with it unless you have another service running on port 8181.

    I did that.  I also checked the settings in config.ini and made sure they all were correct.   I opened port 8181 in the Ubuntu ufw.  Still get a connection timed out error in my browser when trying to view.

  • hthighwayhthighway Posts: 6,558Members, Plex Pass, Plex Ninja Plex Ninja
    mkennedy2547 wrote on June 30 2015, 7:59 PM: »

    I did that.  I also checked the settings in config.ini and made sure they all were correct.   I opened port 8181 in the Ubuntu ufw.  Still get a connection timed out error in my browser when trying to view.

    Did you enable https access?

    if so make sure you use include https:// and not just xxx.xxx.xxx.xxx:8181 in the browser.

    I forgot this myself the when I enabled https

    • Paul
  • mkennedy2547mkennedy2547 Posts: 74Members, Plex Pass Plex Pass
    hthighway wrote on June 30 2015, 8:04 PM: »

    Did you enable https access?

    if so make sure you use include https:// and not just xxx.xxx.xxx.xxx:8181 in the browser.

    I forgot this myself the when I enabled https

    I didn't change any https settings when I did the config.  Is this required?  

  • hthighwayhthighway Posts: 6,558Members, Plex Pass, Plex Ninja Plex Ninja

    Oh and by the way @DrJohnZoidberg..

    I finally had a chance to try this and it works very well.

    Excellent work !

    • Paul
  • hthighwayhthighway Posts: 6,558Members, Plex Pass, Plex Ninja Plex Ninja
    mkennedy2547 wrote on June 30 2015, 8:06 PM: »

    I didn't change any https settings when I did the config.  Is this required?  

    No not at all, just mentioning that if you had you need to add that in the URL

    • Paul
  • mkennedy2547mkennedy2547 Posts: 74Members, Plex Pass Plex Pass
    edited June 2015

    What all do I have to remove to start over fresh?  I think something with the old config before the init-scripts directory was added may have been incorrect.

    Or just aswer this...

    is the /opt/plexpy/config.ini what determines the settings on daemon run?

  • drzoidberg33drzoidberg33 Posts: 2,565Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    mkennedy2547 wrote on June 30 2015, 7:59 PM: »

    I did that.  I also checked the settings in config.ini and made sure they all were correct.   I opened port 8181 in the Ubuntu ufw.  Still get a connection timed out error in my browser when trying to view.

    Are you certain it is running? If you just run with Python (without -d) can you see output like:

    Starting PlexPy web server on http://0.0.0.0:8181/
  • gjosanggjosang Posts: 30Members, Plex Pass Plex Pass
    edited June 2015
    mkennedy2547 wrote on June 30 2015, 7:59 PM: »

    I did that.  I also checked the settings in config.ini and made sure they all were correct.   I opened port 8181 in the Ubuntu ufw.  Still get a connection timed out error in my browser when trying to view.

    Try telnet the 8181 port on your plexpy host to see if there is any communication on it. 

    Server: Intel i7, 32GB DDR3, 60GB SSD (Fedora 22 Core)

    PMS: Ubuntu 15.04 LTS server, running as vm (KVM) 2 CPU, 4GB 

    Storage: Asustor AS-604T 4x3TB Raid5 (media and vms over nfs)

    Clients: 1x Chromecast, 4x Mobile Devices,  4x WebClients

  • hthighwayhthighway Posts: 6,558Members, Plex Pass, Plex Ninja Plex Ninja

    For the "Most Watch TV" and the "Most Popular TV" I am getting broken images..

    2015-06-30 13:02:09	WARNING	Image proxy queried but errors occured.
    2015-06-30 13:02:09	WARNING	Failed to retrieve image. Status code 404
    

    What should I look for to correct this?

    • Paul
  • drzoidberg33drzoidberg33 Posts: 2,565Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    hthighway wrote on June 30 2015, 8:18 PM: »

    For the "Most Watch TV" and the "Most Popular TV" I am getting broken images..

    2015-06-30 13:02:09	WARNING	Image proxy queried but errors occured.
    2015-06-30 13:02:09	WARNING	Failed to retrieve image. Status code 404
    

    What should I look for to correct this?

    Are those shows still in your library?

  • mkennedy2547mkennedy2547 Posts: 74Members, Plex Pass Plex Pass
    edited June 2015

    When I run "sudo python PlexPy.py" I get this: 

    30-Jun-2015 16:20:26 - INFO :: MainThread : Checking to see if the database has all tables....
    30-Jun-2015 16:20:26 - DEBUG :: MainThread : Trying to execute: "git rev-parse HEAD" with shell in /opt/plexpy
    30-Jun-2015 16:20:26 - DEBUG :: MainThread : Git output: 0a170c20e6b5080906340275242a8cab1aec5123
    30-Jun-2015 16:20:26 - DEBUG :: MainThread : Trying to execute: "git rev-parse --abbrev-ref HEAD" with shell in /opt/plexpy
    30-Jun-2015 16:20:26 - DEBUG :: MainThread : Git output: master
    30-Jun-2015 16:20:26 - INFO :: MainThread : Retrieving latest version information from GitHub
    30-Jun-2015 16:20:26 - DEBUG :: MainThread : Requesting URL via GET method: https://api.github.com/repos/drzoidberg33/plexpy/commits/master
    30-Jun-2015 16:20:26 - DEBUG :: MainThread : Latest version is 0a170c20e6b5080906340275242a8cab1aec5123
    30-Jun-2015 16:20:26 - INFO :: MainThread : PlexPy is up to date
    30-Jun-2015 16:20:26 - INFO :: MainThread : Starting PlexPy web server on http://localhost:8181/
    30-Jun-2015 16:20:26 - INFO :: MainThread : Scheduled background task: Check GitHub for updates
     
     
    Where it stops and I get a blinking cursor.
  • mkennedy2547mkennedy2547 Posts: 74Members, Plex Pass Plex Pass
    edited June 2015

    It is not reading the config.ini file for it's settings.  I have changed it from localhost to its actual IP.  Where does it get the settings to start when it runs as daemon?  

    Scratch that... just how do I remove it all, and start over?

  • hthighwayhthighway Posts: 6,558Members, Plex Pass, Plex Ninja Plex Ninja
    DrJohnZoidberg wrote on June 30 2015, 8:22 PM: »

    Are those shows still in your library?

    Ah, didn't think of that...   

    The plexWatch DB file has data from the previous PMS and while I still have those TV Shows they are in a different location on the new server.  

    So that is the reason, thanks.

    • Paul
  • drzoidberg33drzoidberg33 Posts: 2,565Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    mkennedy2547 wrote on June 30 2015, 8:23 PM: »

    When I run "sudo python PlexPy.py" I get this: 

    30-Jun-2015 16:20:26 - INFO :: MainThread : Checking to see if the database has all tables....
    30-Jun-2015 16:20:26 - DEBUG :: MainThread : Trying to execute: "git rev-parse HEAD" with shell in /opt/plexpy
    30-Jun-2015 16:20:26 - DEBUG :: MainThread : Git output: 0a170c20e6b5080906340275242a8cab1aec5123
    30-Jun-2015 16:20:26 - DEBUG :: MainThread : Trying to execute: "git rev-parse --abbrev-ref HEAD" with shell in /opt/plexpy
    30-Jun-2015 16:20:26 - DEBUG :: MainThread : Git output: master
    30-Jun-2015 16:20:26 - INFO :: MainThread : Retrieving latest version information from GitHub
    30-Jun-2015 16:20:26 - DEBUG :: MainThread : Requesting URL via GET method: https://api.github.com/repos/drzoidberg33/plexpy/commits/master
    30-Jun-2015 16:20:26 - DEBUG :: MainThread : Latest version is 0a170c20e6b5080906340275242a8cab1aec5123
    30-Jun-2015 16:20:26 - INFO :: MainThread : PlexPy is up to date
    30-Jun-2015 16:20:26 - INFO :: MainThread : Starting PlexPy web server on http://localhost:8181/
    30-Jun-2015 16:20:26 - INFO :: MainThread : Scheduled background task: Check GitHub for updates
     
     
    Where it stops and I get a blinking cursor.

    That means it's working. It will stay open in the console if you don't start up with -d. Ctrl+c to shutdown.

  • mkennedy2547mkennedy2547 Posts: 74Members, Plex Pass Plex Pass
    DrJohnZoidberg wrote on June 30 2015, 8:26 PM: »

    That means it's working. It will stay open in the console if you don't start up with -d. Ctrl+c to shutdown.

    It gave no response either as http or telnet to port 8181.  Something in the way I set it up first conflicted with the update you did with the latest git.  If he can get it running that fast, it shouldn't be this difficult.  I just need to start over and do it right from the start.  

    Does it put any config or settings anywhere besides the /opt/plexpy directory?

Sign In or Register to comment.