blacktwin / JBOPS

Just a Bunch Of Plex Scripts
1.67k stars 307 forks source link

Running Tautulli in Unraid via reverse proxy and nginx - Script throwing errors #161

Closed VanCityGuy closed 5 years ago

VanCityGuy commented 5 years ago

I've been trying to run this kill script but for the life of me I can't figure it out. Judging by the logs there I imagine it has something to do with the reverse proxy I'm running Tautulli through but I can't seem to find what settings to change. I'm at work right now so I don't have access to the actual script or my tautulli .conf file.

I've tried searching this error and for others who might have the same issue but to no avail. I can post more info tonight, but just wanted to start this thread to see if I was missing something obvious or if you guys have any suggestions I can try before we really dive deeply into troubleshooting this.

2019-05-14 12:07:22 | INFO | Tautulli Notifiers :: Script notification sent.
2019-05-14 12:07:22 | DEBUG | Tautulli Notifiers :: Script returned:     Tautulli  request failed for cmd 'get_activity'. Invalid Tautulli URL? Error:  HTTPSConnectionPool(host='localhost', port=8181): Max retries exceeded  with url:  /api/v2?apikey=********92&cmd=get_activity&session_id=e401d57aad227903-com-plexapp-android  (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines',  'ssl3_get_record', 'wrong version number')],)",),))     Session 'e401d57aad227903-com-plexapp-android'  from user 'None' is no longer active on the server, stopping monitoring.
2019-05-14 12:07:22 | DEBUG | Tautulli Notifiers :: Subprocess returned with status code 0.
2019-05-14 12:07:22 | DEBUG | Tautulli Notifiers :: Executing script in a new thread.
2019-05-14 12:07:22 | DEBUG | Tautulli  Notifiers :: Full script is: ['python',  u'/config/scripts/kill_stream.py', '--jbop', 'paused', '--interval',  '15', '--limit', '300', '--sessionId',  'e401d57aad227903-com-plexapp-android', '--killMessage', 'Your stream  was paused for over 5 minutes and has been automatically stopped for  you.']
2019-05-14 12:07:22 | DEBUG | Tautulli  Notifiers :: Trying to run notify script, action: pause, arguments:  [u'--jbop', u'paused', u'--interval', u'15', u'--limit', u'300',  u'--sessionId', u'e401d57aad227903-com-plexapp-android',  u'--killMessage', u'Your stream was paused for over 5 minutes and has  been automatically stopped for you.']
2019-05-14 12:07:22 | INFO | Tautulli NotificationHandler :: Preparing notification for notifier_id 5.
VanCityGuy commented 5 years ago

This has been fixed. I had the enable HTTP Proxy and enable HTTPS settings in Tautulli checked but they didn't need to be since all of the encryption is being done outside of Tautulli.

After unchecking those settings and restarting Tautulli the script is working as expect.

Thanks!