dorgan

Community Developer
  • Posts

    351
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by dorgan

  1. 2 hours ago, mangavalk said:

    after the last update i cant add a plex token anymore.

    when using the get plex token button and login in i get the following error in console

    
    plex.js:16 Uncaught TypeError: Cannot read property 'split' of undefined
        at getServers (plex.js:16)
        at Object.success (plex.js:206)
        at i (dynamix.js?v=1583697979:4)
        at Object.fireWith [as resolveWith] (dynamix.js?v=1583697979:4)
        at z (dynamix.js?v=1583697979:4)
        at XMLHttpRequest.<anonymous> (dynamix.js?v=1583697979:4)

     

    ps: before the update i could add the token but the plugin would never load the server.

    This is now fixed by version 2020.06.20

  2. 43 minutes ago, mangavalk said:

    after the last update i cant add a plex token anymore.

    when using the get plex token button and login in i get the following error in console

    
    plex.js:16 Uncaught TypeError: Cannot read property 'split' of undefined
        at getServers (plex.js:16)
        at Object.success (plex.js:206)
        at i (dynamix.js?v=1583697979:4)
        at Object.fireWith [as resolveWith] (dynamix.js?v=1583697979:4)
        at z (dynamix.js?v=1583697979:4)
        at XMLHttpRequest.<anonymous> (dynamix.js?v=1583697979:4)

     

    ps: before the update i could add the token but the plugin would never load the server.

    Ok I will look into this today

  3. 12 hours ago, Nomad347 said:

    Feature request: Could you add all/selectable servers to the Display Dashboard Widget instead of just the one?

    Amazing work so far.

    Thank you...

    Yeah, now that I have it pulling devices the right way and not slowing down loading of the dashboard and streams page, let me see about displaying streams from any combination of servers.

     

    Keep the feedback and suggests coming!

  4. 1 minute ago, bunkermagnus said:

     

    Well the lockup happened a couple of hours ago with the version that was new yesterday when I installed it. I notice you published a new version just recently but I haven't tried it again, as I said, it's no biggie but I suppose it could cause problems for someone who don't know about this. I just realized this on chance while searching for "Crashed webui interface" on google, someone mentioned that pausing certain Docker containers could cause this so I quickly had to learn the CLI commands for listing and unpausing dockers. :)

    Just to be clear, it happened when Plex container was paused, not stopped, I'm guessing a paused container confuses the TCP/IP stack in this case.

     

    Maybe, honestly i never thought about pausing a docker container, i think that just introduces too much risk

  5. 1 minute ago, dorgan said:

    So a couple of things, are you running the most recent version?  Does it still happen?  I did adjust some timeout.  Second the ajax.php file is called every 5 seconds when you are on the dashboard so technically the longer you sit on the dashboard the more hits you'll see.  Unfortunately I recently moved to having my plex install run on a different dedicated machine, but let me see what happens when i shut down the plex server.

    @bunkermagnus did a quick stop of plexmediaserver on the dedicated server and unraid still operates as expected.  Let me know if you experience the problem with the latest version.

  6. 34 minutes ago, bunkermagnus said:

    Hi there and thanks for a great plugin. 

    Now I'm sorry if this has been covered before but I believe this plugin can hang the whole UnRAID WebUI if the Plex docker container is paused for too long, around 1 hrs or so. I just recently paused my Plex docker while using the UnBalance plugin to consolidate some media folders, after letting the plex container sit in a "paused" state for about an hour, my UnRAID Web UI was completely unreachable.

     

    Extract from syslog, this was spammed repeatedly until I ssh'ed into the server and unpaused the plex docker, then everything unlocked and started working again. I can't see any other connection between the webUI and the plex container than this plugin that I recently installed. This is not a major problem as I'll just turn off the plex container instead. Just thought I'd give you a heads up. It is also entirely possible that I am wrong about this, if so I apologize.

    
    Jun 11 19:41:44 Sauron nginx: 2020/06/11 19:41:44 [error] 11020#11020: *516793 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.200, server: , request: "GET /plugins/plexstreams/ajax.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.1.250", referrer: "http://192.168.1.250/Dashboard"

     

    So a couple of things, are you running the most recent version?  Does it still happen?  I did adjust some timeout.  Second the ajax.php file is called every 5 seconds when you are on the dashboard so technically the longer you sit on the dashboard the more hits you'll see.  Unfortunately I recently moved to having my plex install run on a different dedicated machine, but let me see what happens when i shut down the plex server.

  7. 1 hour ago, Pducharme said:

    Sent in a PM.

    OK was able to track this down and make it work the way that Tautulli works. Version 2020.06.10 should be other there now.  Once installed,  go to plex stream settings if Use SSL Connection is not set to "On" set it hit save, then select a server and hit save again.  I'll eventually circle back to this to not require the second save...

  8. 9 hours ago, Pducharme said:

    Good news and bad news :)

     

    The Good News is that there is no more an error when going on the PLEX_STREAMS tab.  It display "There are currently no active streams". On the Dashboard, it says "0 active stream(s)".

     

    The bad news is that it doesn't see the active streams because they were 1 running.  I also compared with Tautulli and it sees the stream just fine in there, so there is still something not working in the plugin.

    Can you send me a screenshot of your Tautulli plex settings??

  9. 8 hours ago, Pducharme said:

    http://192.168.2.211:32400/status/sessions?X-Plex-Token=9MyTokenRedacted&_m=1591731373 = ERR_EMPTY_RESPONSE in Google Chrome.

    https://192.168.2.211:32400/status/sessions?X-Plex-Token=9MyTokenRedacted&_m=1591731373 = SSL Warning, then when i accept, it displays a XML file. 

     

    I can see the XML is actually the list of currently playing media with a bunch of details.  When I stop the stream, the XML says MediaContainer Size = 0.

    I pushed out 2020.06.09c which has a setting to force https.  You'll need to select this, hit save and then select a default server from the list and hit save again.  I have been unable to recreate this issue locally, so this is kind of a guess.  Do you know if you have Plex requiring secure connections?

  10. 1 hour ago, Hoopster said:

    Cool, thanks for the reply. 

     

    I don't use the Plex Live TV function except when traveling.  I use the native HDHomeRun app instead.  However, I do a lot of OTA recording through the Plex DVR. 

     

    Showing both Live TV and DVR recording streams would be a great addition if there is an easy way to do that, but, don't break what is working for the sake of that functionality (not that you would ever intentionally break anything) 😀

    Live Streaming is fix with 2020.06.09b.  I will now look into DVR recordings...

    • Like 1
  11. 3 minutes ago, Pducharme said:

    Settings page of what? your plugin? or Plex server settings? it doesn't output a plex.tv URL, only the one I display here ?  Maybe i'm not understanding where to look :)

    in the Plex Nav click settings, then click Plex Streams under the Network Services section287755446_ScreenShot2020-06-09at5_15_11PM.thumb.png.70c3d565311229e257fdf3e3d95d5d17.png

  12. 19 minutes ago, Pducharme said:

    http://192.168.2.211:32400/status/sessions?X-Plex-Token=9MyTokenRedacted&_m=1591731373 = ERR_EMPTY_RESPONSE in Google Chrome.

    https://192.168.2.211:32400/status/sessions?X-Plex-Token=9MyTokenRedacted&_m=1591731373 = SSL Warning, then when i accept, it displays a XML file. 

     

    I can see the XML is actually the list of currently playing media with a bunch of details.  When I stop the stream, the XML says MediaContainer Size = 0.

    Interesting, can you please show me your settings page.  I pull the list of servers from Plex, also besides the screenshot of the Settings page, add ?dbg=1 to that URL as well and then navigate to the plex.tv URL that it outputs, and could you DM me the output of that file??

  13. 42 minutes ago, Pducharme said:

    Here it is :

     

    
    string(90) "http://192.168.2.211:32400/status/sessions?X-Plex-Token=9MyTokenRedacted&_m=1591731373"
    
    Warning: file_get_contents(http://192.168.2.211:32400/status/sessions?X-Plex-Token=9MyTokenRedacted&_m=1591731373): failed to open stream: HTTP request failed! in /usr/local/emhttp/plugins/plexstreams/includes/common.php on line 103
    string(61) "https://plex.tv/devices.xml?X-Plex-Token=9MyTokenRedacted"
    Change Server: 
    SharedPlex.tv (http://192.168.2.211:32400)
     
    There are currently no active streams

    If I use the URL in the file_get_contents and change it for https, then it return an XML...  My Unraid WebUI is http only, but plex does requires https.

    So http url returns no content, but https returns content?

  14. 12 minutes ago, Hoopster said:

    I apologize if this question has been asked and answered. I did a quick scan of thread and may have missed it.

     

    Does this plugin only show the count of playing streams? 

     

    I am using the Live TV and DVR functionality and currently have two recordings going.  Reported streams is 0.  That is accurate if the plugin only shows if something is playing.

     

    EDIT:  I assume this is close to an answer

     

    Movies only.  No indication if music is playing, Photos are being viewed through Plex, recording with the DVR is going on, etc. if I am reading into this correctly.  That would be a big ask.

     

    It's a good plugin, I just want to make sure I understand what it can and cannot do correctly.

    It does currently support Movies, TV & Audio.  Hadnt thought about Live TV, so since i Have a tuner and utilize this functionality from time time, let me debug this.

  15. 13 minutes ago, Pducharme said:

    @dorgan That doesn't fix it.  Try selecting the External IP, Then Apply.,  Then tried selecting Internal IP, then Apply.  That doesn't change anything, same error and Warning about file.

    yeah looks like its having a problem identifying the server as that /status/ url should have an IP in front of it....What version of Plex are you running?

  16. 15 minutes ago, Pducharme said:

    Hi, I upgraded to 2020.06.09, still errors.  Now dashboard is at 503 stream(s), also, if I click at the top the PLEX_STREAMS, I got this :

     

    
    
    Streams
    
    Warning: file_get_contents(/status/sessions?X-Plex-Token=REDACTEDTOKEN&_m=1591727486): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/plexstreams/includes/common.php on line 103
    Change Server: 
    SharedPlex.tv (http://192.168.2.211:32400)
     
    There are currently no active streams

     

    I also tried removing the Plugin, deleting files on the USB stick related to the plugin, and reinstall the last version.  

    Go so settings page and try changing/setting the server.

  17. On 6/6/2020 at 1:04 PM, robbert de boer said:

    Sure, but it's the same, just one. It had two before but I removed an old server from my plex. Reinstalled this plugin after I did that btw. 

    Schermafbeelding 2020-06-06 om 19.02.55.png

    This is fixed with version 2020.06.09

  18. 1 hour ago, Pducharme said:

    It return File Not Found.   But, my WebUI is on Port 90 and my Https is disabled, it will give this output if I put this URL :

     

    http://192.168.2.211:90/plugins/plexstreams/ajax.php

     

    Return is :

     

    
    Warning: file_get_contents(http://192.168.2.211:32400/status/sessions?X-Plex-Token=9egdfhgdfg55ijpP3J&_m=1591720835): failed to open stream: HTTP request failed! in /usr/local/emhttp/plugins/plexstreams/includes/common.php on line 92
    
    Warning: Cannot modify header information - headers already sent by (output started at /usr/local/emhttp/plugins/plexstreams/includes/common.php:92) in /usr/local/emhttp/plugins/plexstreams/ajax.php on line 14
    []

     

    This is fixed with version 2020.06.09

  19. 56 minutes ago, NeXuS93 said:

    Ha! I had remote access disabled. Just enabled it and now I can choose between my external or internal IP address for the server. It works now, no matter which one I choose.

    Ok thanks, I will try to recreate this locally and get a fix out there.