Hello @ChuckPa, thank you for answering!
First: no, this is not Synology, it’s a “bare metal” install on a server of mine.
After what you said I checked this and indeed as you said I was missing the rest of the request. Unfortunately, manually sending the correct information and getting a new authentication-token that I then added to Preferences.xml does not fix the issue.
What I have noticed:
- I had to remove
PlexOnline* from Preferences.xml so that the server shows up as unclaimed.
- Sent the correct request (with the claim code) to
https://plex.tv/api/claim/exchange and got the authentication-token back.
- Added
PlexOnlineToken="<token>" back to the XML file, restarted the process.
- Now I get the error “You do not have access to this server” error, which now that I google it seems fairly common.
- If I remove
PlexOnline* tags, it shows up as unclaimed again.
I have also tried to claim as the web UI does using curl -vvv -X POST http://localhost:32400/myplex/claim\?token=claim-<token>, and after 30 seconds I get:
* Trying 127.0.0.1:32400...
* Connected to localhost (127.0.0.1) port 32400 (#0)
> POST /myplex/claim?token=claim-<token> HTTP/1.1
> Host: localhost:32400
> User-Agent: curl/7.85.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 500 Internal Server Error
< X-Plex-Protocol: 1.0
< Content-Length: 109
< Content-Type: text/html
< Connection: Keep-Alive
< Keep-Alive: timeout=20
< Cache-Control: no-cache
< Date: Sun, 18 Sep 2022 16:43:27 GMT
<
* Connection #0 to host localhost left intact
<html><head><title>Internal Server Error</title></head><body><h1>500 Internal Server Error</h1></body></html>
I am out of ideas at this point. In the log (com.plexapp.system.log) I only see one error:
2022-09-18 18:41:06,680 (7f57d67f8b30) : DEBUG (networking:143) - Requesting 'http://resources-cdn.plexapp.com/hashes.json'
2022-09-18 18:41:11,706 (7f57d67f8b30) : CRITICAL (runtime:1299) - Exception getting hosted resource hashes (most recent call last):
File "/usr/lib/plexmediaserver/Resources/Plug-ins-914ddd2b3/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 1291, in get_resource_hashes
json = self._core.networking.http_request("http://resources-cdn.plexapp.com/hashes.json", timeout=5).content
File "/usr/lib/plexmediaserver/Resources/Plug-ins-914ddd2b3/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 242, in content
return self.__str__()
File "/usr/lib/plexmediaserver/Resources/Plug-ins-914ddd2b3/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 220, in __str__
self.load()
File "/usr/lib/plexmediaserver/Resources/Plug-ins-914ddd2b3/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 158, in load
f = self._opener.open(req, timeout=self._timeout)
File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 447, in _open
'_open', req)
File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 1228, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py", line 1198, in do_open
raise URLError(err)
URLError: <urlopen error [Errno -3] Try again>
That doesn’t look related to this issue, but I don’t know.
Do you have any suggestions? Considering the amount of similar questions I hope there is a solution to this.