#Plex Auth Failing

1 messages · Page 1 of 1 (latest)

olive obsidian
#

It is 100% possible this has been happening since the data breach, but I am getting the following in my PMM logs and I have updated my token in the config.yml file, anything else I need to look at? I am using unraid:

                                                             | plexapi.exceptions.Unauthorized: (401) unauthorized; (redacted)/ <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>
                                                             | 
                                                             | During handling of the above exception, another exception occurred:
                                                             | 
                                                             | Traceback (most recent call last):
                                                             |   File "/modules/config.py", line 842, in __init__
                                                             |     library = Plex(self, params)
                                                             |   File "/modules/plex.py", line 428, in __init__
                                                             |     raise Failed("Plex Error: Plex token is invalid")
                                                             | modules.util.Failed: Plex Error: Plex token is invalid
                                                             | 

[2022-09-26 04:00:20,499] [config.py:852] [ERROR] | Plex Error: Plex token is invalid
[2022-09-26 04:00:20,499] [config.py:853] [INFO] |
[2022-09-26 04:00:20,500] [config.py:854] [INFO] | Movies Library Connection Failed
[2022-09-26 04:00:20,500] [config.py:600] [INFO] |

scarlet crestBOT
#

Please complete #938455615741775902 and someone from the community or one of our <@&938443185347244033> members will respond when they're available.

Including the meta.log from the beginning is a huge help use !logs for more information.

verbal dew
#

Plex is responding with a 401; really the only reason that would happen is that your token is incorrect [or the URL is pointing to the wrong plex server, which is still basically an incorrect token].

olive obsidian
#

so i notived i wasn't using the proper docker and figured I would clear it out and restart, now its completely hosed haha. Its not creating logs, and if I put it in a different app folder and copy in the ymls it says it cant find the config folder

#

one steps forward, ten back

verbal dew
#

How are you running the container?

olive obsidian
verbal dew
#

Is your config file in that directory?

olive obsidian
#

it appears so, unless im mucking something up (fyi, I changed the directory to cache from user to see if it mattered, but it didnt)

verbal dew
#

So the setting is /mnt/user but the file is in /mnt/cache?

olive obsidian
#

sorry, I added confusion. /mnt/user/apps is a share from /mnt/cache/apps. I tried both methods but they produce the same issue

verbal dew
#

If you open a shell into the container, what does ls /config show you?

olive obsidian
#

i also have no idea what the UUID file is, but I don't believe it was there before and now it keeps getting made.

verbal dew
#

PMM creates that itself.

#

Could this be a permissions issue?

#

In that console, can you touch /config/logs/test?

olive obsidian
#

so i nuked the logs folder and let PMM create one. still empty.

#

if i rename the config to xconfig.yml it fails saying it cant find the config and crashes the container. if i rename it back it loads fine but nothing is logging

verbal dew
#

How do you know it loads fine? Is there output somewhere?

solemn magnet
#

I would say it’s probably not “loading just fine”. There should be logs telling you what is happening.

verbal dew
#

If you're seeing the "waiting until 4AM" messages, and that's what's telling you that it loads fine, then a log isn't going to be created until PMM fires up at 4AM. That is correct and expected.

#

That status message isn't sent to the log.

solemn magnet
verbal dew
#

If you change the docker container config to run it immediately, the log should show up immediately.

olive obsidian
#

so the 4am thing was definitely an issue (I assumed it logged stuff like docker starting, my bad. now i have 1 different issue, back to plex.

[2022-09-27 04:00:48,782] [plex.py:432] [DEBUG] | Traceback (most recent call last): |
| File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
| httplib_response = self._make_request(
| File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
| self._validate_conn(conn)
| File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
| conn.connect()
| File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 467, in connect
| _match_hostname(cert, self.assert_hostname or server_hostname)
| File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 540, in _match_hostname
| match_hostname(cert, asserted_hostname)
| File "/usr/local/lib/python3.10/site-packages/urllib3/util/ssl_match_hostname.py", line 155, in match_hostname
| raise CertificateError("hostname %r doesn't match %r" % (hostname, dnsnames[0]))
| urllib3.util.ssl_match_hostname.CertificateError: hostname '10.10.1.78' doesn't match '*.67290b99bb1a408eaf211971b5625b57.plex.direct'

#

and yes. the IP is correct (it hasnt been changed in a year. I re-grabbed my token again as well, still no luck

spare quail
#

whats the full error trace\