Medusa: SSL Connection error

Created on 16 Oct 2018  路  4Comments  路  Source: pymedusa/Medusa

Describe the bug
I have my plex server configured to Require SSL connections, with no manual certificate set.
In my browser I get a "connection not secure" message.

Medusa returns this error:

2018-10-16 21:45:53 WARNING  Thread_22 :: [4614efc] PLEX: Error while trying to contact Plex Media Server: error b'HTTPSConnectionPool(host='192.168.178.106', port=32400): Max retries exceeded with url: /library/sections (Caused by SSLError(CertificateError("hostname '192.168.178.106' doesn't match '*.<stripped>.plex.direct'",),))'
2018-10-16 21:43:34 WARNING  Thread_5 :: [4614efc] PLEX: Error while trying to contact Plex Media Server: error b'HTTPSConnectionPool(host='192.168.178.106', port=443): Max retries exceeded with url: /library/sections (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x14dd7f20f050>: Failed to establish a new connection: [Errno 111] Connection refused',))'
2018-10-16 21:43:33 WARNING  Thread_10 :: [4614efc] PLEX: Error while trying to contact Plex Media Server: error b'HTTPSConnectionPool(host='192.168.178.106', port=443): Max retries exceeded with url: /library/sections (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x14dd7f20f7d0>: Failed to establish a new connection: [Errno 111] Connection refused',))'
2018-10-16 21:42:29 WARNING  Thread_0 :: [4614efc] PLEX: Error while trying to contact Plex Media Server: error b'('Connection aborted.', BadStatusLine("''",))'

With no way seemingly for me to force the SSL connection to be used anyway.
My previous Sickrage installation (bevore echel0n took it over and I moved to medusa) did not have this issue, though the SSL issue was already present back then.

Medusa (please complete the following information):

  • OS: Ubuntu Server 16.04
  • Branch: master
  • Commit: 4614efc77151ded92ef458a09dec39f8bd5acfc6

Logs:

2018-10-16 21:45:53 WARNING  Thread_22 :: [4614efc] PLEX: Error while trying to contact Plex Media Server: error b'HTTPSConnectionPool(host='192.168.178.106', port=32400): Max retries exceeded with url: /library/sections (Caused by SSLError(CertificateError("hostname '192.168.178.106' doesn't match '*.<stripped>.plex.direct'",),))'
2018-10-16 21:43:34 WARNING  Thread_5 :: [4614efc] PLEX: Error while trying to contact Plex Media Server: error b'HTTPSConnectionPool(host='192.168.178.106', port=443): Max retries exceeded with url: /library/sections (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x14dd7f20f050>: Failed to establish a new connection: [Errno 111] Connection refused',))'
2018-10-16 21:43:33 WARNING  Thread_10 :: [4614efc] PLEX: Error while trying to contact Plex Media Server: error b'HTTPSConnectionPool(host='192.168.178.106', port=443): Max retries exceeded with url: /library/sections (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x14dd7f20f7d0>: Failed to establish a new connection: [Errno 111] Connection refused',))'
2018-10-16 21:42:29 WARNING  Thread_0 :: [4614efc] PLEX: Error while trying to contact Plex Media Server: error b'('Connection aborted.', BadStatusLine("''",))'

triage

Most helpful comment

@ChrisNelsonF5 Appreciate the workaround, however its not really a fix as it disables it for all sites, not just Plex.

All 4 comments

2019-01-09 20:51:15 WARNING Thread_5 :: [918cfe7] PLEX: Error while trying to contact Plex Media Server: Error: MaxRetryError('HTTPSConnectionPool(host=\'192.168.250.12\', port=32400): Max retries exceeded with url: /library/sections (Caused by SSLError(CertificateError("hostname \'192.168.250.12\' doesn\'t match \'*.52fa5b63593447c0ad7d84fda05fa505.plex.direct\'",),))',)

I am reporting the same issue.

I did a clean install it would work on the test but after i save and reboot it fails.

You can fix this by navigating to Settings -> General -> Advanced Settings tab -> uncheck "Verify SSL Certs"

@ChrisNelsonF5 Appreciate the workaround, however its not really a fix as it disables it for all sites, not just Plex.

Get a certificate or disable verification.

Was this page helpful?
0 / 5 - 0 ratings