Unable to find server from plex account error
rohitsathish opened this issue · comments
Confirmation
- I have read the README.md on the project homepage
- I have checked if identical issue already exists
- I have tried downgrading to find version that can be used as a workaround
The problem
plextraktsync sync errors out with a "machine actively refused connection" error. There seems to be an issue with recognizing my Plex server.
plex-login throughs the following error despite logging in - Error running plex_login command: Unable to find server from Plex account
Error trace / logs
ERROR HTTPSConnectionPool(host='192-168-1-5.6b4969914e134302be4cfe47c0c5e8cc.plex.direct', port=32400): Max retries
exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at
0x000001F0B8C095B0>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because
the connected party did not properly respond after a period of time, or established connection failed because
connected host has failed to respond'))
WARNING Trying with url: http://192-168-1-5.6b4969914e134302be4cfe47c0c5e8cc.plex.direct:32400
ERROR HTTPConnectionPool(host='192.168.1.5', port=32400): Max retries exceeded with url: / (Caused by
NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001F0B8C66550>: Failed to establish a new
connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond
after a period of time, or established connection failed because connected host has failed to respond'))
ERROR HTTPSConnectionPool(host='45-118-133-185.6b4969914e134302be4cfe47c0c5e8cc.plex.direct', port=8443): Max retries
exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at
0x000001F0B8C66EB0>: Failed to establish a new connection: [WinError 10061] No connection could be made because
the target machine actively refused it'))
WARNING Trying with url: http://45-118-133-185.6b4969914e134302be4cfe47c0c5e8cc.plex.direct:8443
ERROR HTTPConnectionPool(host='45.118.133.185', port=8443): Max retries exceeded with url: / (Caused by
NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001F0B8C7C130>: Failed to establish a new
connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
ERROR (401) unauthorized; http://localhost:32400/ <html><head><script>window.location =
window.location.href.match(/(^.+\/)[^\/]*$/)[1] +
'web/index.html';</script><title>Unauthorized</title></head><body><h1>401 Unauthorized</h1></body></html>
ERROR HTTPConnectionPool(host='192-168-1-5.6b4969914e134302be4cfe47c0c5e8cc.plex.direct', port=32400): Max retries
exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at
0x000001F0B8C7C280>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because
the connected party did not properly respond after a period of time, or established connection failed because
connected host has failed to respond'))
ERROR HTTPConnectionPool(host='45-118-133-185.6b4969914e134302be4cfe47c0c5e8cc.plex.direct', port=8443): Max retries
exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at
0x000001F0B8C66AC0>: Failed to establish a new connection: [WinError 10061] No connection could be made because
the target machine actively refused it'))
ERROR No more methods to connect. Giving up.
Expected behavior
Syncing trakt and plex.
Steps to reproduce the behavior
- Login to plex and trakt
- Run plextraktsync sync
Inspect of problematic items
No response
Workarounds
No response
Install method
pipx
Config file contents
No response
Version
0.26.10
Python Version
3.11.0
Operating System and Version
Windows 11
Is 192.168.1.5 a static ip address for your Plex server ?
Can you show your servers.yml
file ?
Connection with 45.118.133.185 seems to be refused by Plex because it is http instead of https.
You can try https or disable Secure connection in Plex settings.
User gone. Closing
This is my server.default.yml file.
servers:
# servers definition
default:
token: ~
urls:
- http://localhost:32400
# vim:ts=2:sw=2:et
I've also disabled secure connections in Plex.
Is it maybe because Plex is pointing to a different URL?
Also running plex-login produces the following critical error -
CRITICAL Error running plex_login command: Unable to find server from Plex account