WARN - [CERT] TLS connection

Hi - attached is the most current Plex Media Server log after restarting the PMS - similar error as before (DEBUG logging is enabled):

Aug 17, 2025 10:16:10.794 [281473498280160] DEBUG - MyPlex: updating with 36 access tokens
Aug 17, 2025 10:16:10.796 [281473498280160] ERROR - [HttpHeader] invalid ‘X-Plex-Device’ header value (Raspberry Pi 4 Model B Rev 1.4 )
Aug 17, 2025 10:16:10.796 [281473498280160] DEBUG - [HCl#2] HTTP requesting GET https://plex.tv/api/v2/server/users?auth_token=xxxxxxxxxxxxxxxxxxxx
Aug 17, 2025 10:16:10.802 [281473493856480] WARN - [HttpClient/HCl#2] HTTP error requesting GET https://plex.tv/api/v2/server/users?auth_token=xxxxxxxxxxxxxxxxxxxx (6, Couldn’t resolve host name) (Could not resolve host: plex.tv)
Aug 17, 2025 10:16:10.802 [281473491747040] DEBUG - MyPlex: using cached data for request for https://plex.tv/api/v2/server/users?auth_token=xxxxxxxxxxxxxxxxxxxx
Aug 17, 2025 10:16:10.803 [281473491747040] ERROR - [HttpHeader] invalid ‘X-Plex-Device’ header value (Raspberry Pi 4 Model B Rev 1.4 )
Aug 17, 2025 10:16:10.803 [281473491747040] DEBUG - [HCl#3] HTTP requesting GET https://plex.tv/api/v2/server/users/subscriptions?auth_token=xxxxxxxxxxxxxxxxxxxx

Please let me know if additional logs are needed.
J

Plex Media Server.log (321.9 KB)

Aug 17, 2025 10:16:10.794 [281473498280160] DEBUG - MyPlex: updating with 36 access tokens
Aug 17, 2025 10:16:10.796 [281473498280160] ERROR - [HttpHeader] invalid ‘X-Plex-Device’ header value (Raspberry Pi 4 Model B Rev 1.4 )
Aug 17, 2025 10:16:10.796 [281473498280160] DEBUG - [HCl#2] HTTP requesting GET https://plex.tv/api/v2/server/users?auth_token=xxxxxxxxxxxxxxxxxxxx
Aug 17, 2025 10:16:10.802 [281473493856480] WARN - [HttpClient/HCl#2] HTTP error requesting GET https://plex.tv/api/v2/server/users?auth_token=xxxxxxxxxxxxxxxxxxxx (6, Couldn’t resolve host name) (Could not resolve host: plex.tv)
Aug 17, 2025 10:16:10.802 [281473491747040] DEBUG - MyPlex: using cached data for request for https://plex.tv/api/v2/server/users?auth_token=xxxxxxxxxxxxxxxxxxxx
Aug 17, 2025 10:16:10.803 [281473491747040] ERROR - [HttpHeader] invalid ‘X-Plex-Device’ header value (Raspberry Pi 4 Model B Rev 1.4 )
Aug 17, 2025 10:16:10.803 [281473491747040] DEBUG - [HCl#3] HTTP requesting GET https://plex.tv/api/v2/server/users/subscriptions?auth_token=xxxxxxxxxxxxxxxxxxxx

ERROR 6 – Network configuration error to the Gateway (modem/router) and DNS resolver.

Right - but when I resolve plex.tv from the PMS server command line:
nslookup plex.tv

Results:

Server: 192.168.100.1
Address: 192.168.100.1#53

Non-authoritative answer:
Name: plex.tv
Address: 52.209.82.108
Name: plex.tv
Address: 52.213.108.76

so why is Plex reporting that error?

Thanks.
J

My Plex Server is behind a router using unbound and I used the following for configuring this setup (all was working until today):

https://www.reddit.com/r/firewalla/comments/1610c2q/updating_unbound_for_plex/

I confirmed plex.direct is resolving to ‘0.0.0.0’ as well from the Plex Media Server command line with this setup.

John

Hi @ChuckPa - just a follow-on to this - I followed this thread’s test/steps to confirm that plex.tv is reachable:
https://www.reddit.com/r/PleX/comments/177cxcv/plex_web_app_not_claiming_server/

When I ran “wget https://plex.tv/claim”, this is was the output (seems plex.tv was moved to account.plex.tv):

wget https://plex.tv/claim
–2025-08-17 17:45:48-- https://plex.tv/claim
Resolving plex.tv (plex.tv)… 52.213.108.76, 52.209.82.108
Connecting to plex.tv (plex.tv)|52.213.108.76|:443… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: https://www.plex.tv/claim/ [following]
–2025-08-17 17:45:48-- https://www.plex.tv/claim/
Resolving www.plex.tv (www.plex.tv)… 172.64.151.205, 104.18.36.51, 2606:4700:4400::6812:2433, …
Connecting to www.plex.tv (www.plex.tv)|172.64.151.205|:443… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: https://account.plex.tv/claim/ [following]
–2025-08-17 17:45:48-- https://account.plex.tv/claim/
Resolving account.plex.tv (account.plex.tv)… 172.64.147.34, 104.18.40.222, 2606:4700:4400::ac40:9322, …
Connecting to account.plex.tv (account.plex.tv)|172.64.147.34|:443… connected.
HTTP request sent, awaiting response… 403 Forbidden
2025-08-17 17:45:49 ERROR 403: Forbidden.

>>

Any ideas for how I can get this working again, would deleting/reclaiming my server/certificate fix this?

John

  1. wget uses a raw get of the URL given.
  2. The claim endpoint expects a HTTP(s) request and only accepts such as I show here.
[chuck@lizum tv2.2017]$ curl https://plex.tv/claim
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
[chuck@lizum tv2.2018]$ 

Change the Pi’s DNS server IP to directly use 1.1.1.1 or 9.9.9.9
Bypass Unbound. ( bypass everything local and let it query directly )

@ChuckPa - Thanks I confirmed that 1.1.1.1 is being used:

curl https://plex.tv/claim

<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
john@jb
[HttpClient/HCl#45] HTTP error requesting GET https://plex.tv/users/8e8b6b93169eb372/avatar?c=1755485140&size=60 (6, Couldn't resolve host name) (Could not resolve host: plex.tv)

Attached is the current current Plex Media Server log.

Am still unable to access plex.tv

J

Plex Media Server.log (406.4 KB)

Turn off the Wireless adapter..

Use only one with PMS . The multipath will drive it nuts because you’ve defined two subnets.

I would use wired only.
You can bond the two later.

Make eth0 as the default gateway.

Restart the box and try again

HI @ChuckPa - I disabled the wireless interface and restarted Plex. It still did not connect, so I enabled it and restarted it again and my Plex Media server connected for Remote Access. Not sure what made this work, but attached is the most recent Plex Media Server log.

John
Plex Media Server.log (367.6 KB)

There is definitely something whacky with your Ubuntu installation.

I’ve been fighting my way through your logs – which look like this

I have to translate them

Let’s make certain your machine is properly configured.

  1. Check the current locale which should look something like this:
[chuck@lizum ~.2052]$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
[chuck@lizum ~.2053]$ 
  1. If not, confirm you have this file and it’s defined
[chuck@lizum ~.2002]$ cat /etc/default/locale 
#  File generated by update-locale
LANG="en_US.UTF-8"
[chuck@lizum ~.2003]$ 
  1. If this isn’t right for your region and language
sudo update-locale
sudo locale-gen
  1. Restart the entire machine
  2. Pull a fresh set of logs and see if we get readable text

Hi @ChuckPa - that is strange. Here is the output from my Plex server:

LANG=C.UTF-8
LANGUAGE=
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
LC_IDENTIFICATION="C.UTF-8"
LC_ALL=

I do have a locale file in /etc/default/locale →

cat /etc/default/locale
# Default Ubuntu locale
LANG=C.UTF-8

I updated this using update-locale and locale-gen and restarted the machine.
Attached is Media Server Log after restart.
Post restart locale:

cat /etc/default/locale
# Default Ubuntu locale
LANG=en_US.UTF-8

Plex Media Server.log (203.4 KB)

Whatever you are downloading to is blowing it..
Still cannot read the .log

How about making a tar.gz of the Logs directory for me and attaching it ?
I’ll be able to see the rest of the PMS subsystems.

As for the DNS – still totally failing.

  1. look at netstat -rn

  2. It should be pointing to the LAN IP of your modem/router via the ethernet adapter (eth0)

This is mine for br0

[chuck@lizum ~.1998]$ netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 br0

This tells me…

  1. All IP addresses,
  2. Gateway (forwarding IP) 192.168.0.1
  3. All networks not local
  4. It’s a gateway device
  5. MSS & WIndow are 0 (nothing to add)
  6. IRTT (round trip time) 0
  7. Interface br0

If this needs changing, it’s in the Settings - Network - Adapter
but your modem/router (if supplying DHCP) should be providing it.

@ChuckPa - Attached is the PMS logs (.zip). Here is the output of network -rn from the Plex server:

netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.5.1     0.0.0.0         UG        0 0          0 eth0
172.17.0.0      0.0.0.0         255.255.0.0     U         0 0          0 docker0
172.18.0.0      0.0.0.0         255.255.0.0     U         0 0          0 br-06c7660abb93
192.168.5.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.5.1     0.0.0.0         255.255.255.255 UH        0 0          0 eth0

My Plex server is using the 192.168.5.0/1 as the gateway which is the VLAN gateway IP from the router/switch this Plex server is connected to.

I have been disabling the wifi adapter on/off and this seems to allow Remote Access.
Plex Media Server Logs_2025-08-17_23-15-27.zip (1.2 MB)

and with the wireless adapter enabled:

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.5.1     0.0.0.0         UG        0 0          0 eth0
0.0.0.0         192.168.204.1   0.0.0.0         UG        0 0          0 wlan0
172.17.0.0      0.0.0.0         255.255.0.0     U         0 0          0 docker0
172.18.0.0      0.0.0.0         255.255.0.0     U         0 0          0 br-06c7660abb93
192.168.5.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.5.1     0.0.0.0         255.255.255.255 UH        0 0          0 eth0
192.168.204.0   0.0.0.0         255.255.255.0   U         0 0          0 wlan0
192.168.204.1   0.0.0.0         255.255.255.255 UH        0 0          0 wlan0

John

I am still getting the junky logs but

  1. You now have DNS. :partying_face:
  2. I see where you got a new certificate yesterday.
    Did you wipe and rebuild the server instance?
    – If you did not, then we need to confirm it’s saving its certificate.

OTHERWISE

  1. DNS is resolving correctly.
  2. All the requests to Plex.tv have caused the server to be throttled.
    (HTTP 422).
  3. Stop PMS and wait. It will resolve itself in about an hour .
  4. After an hour, start it.

I will be awake for a bit (east coast) .
Let me know how it resolves and we’ll deal with it tomorrow

Hi @ChuckPa - I stopped the Plex Media Server overnight and started it again this morning. Attached are the logs - not sure why they are not encoding correctly - I am using the Upload option(up arrow) in this forum post?
Plex Media Server Logs_2025-08-18_07-52-04.zip (1.2 MB)

FYI - I am seeing this encoding issue on my end as well if I open any of the archived logs from Notepad. However, if I open the log files in Notepad++ - they display in English - not sure what is happening with the encoding of these logs??

J

J,
It connected to Plex.tv without errors.
I can see (on plex.tv) where it connected.

Did you shut it down afterward? (it shows about 13 hours since last contact as I write this)

Hi @ChuckPa - yes, I shut down the Plex server last night around 11:45 PM PST and left it off overnight until around 8:00 AM PST today (08-18). So far, no errors but still unclear what action cleared the original reconnect yesterday evening (wifi adapter in the Plex server is still enabled as of this post). Anything else you can see in the logs (attached current log set)?

Also - any ideas/suggestions for fixing the encoding of the PMS logs - very strange?

Thank you.
J
Plex Media Server Logs_2025-08-18_23-42-24.zip (1.8 MB)

It’s not broken – so let’s not look for trouble (ain’t broke – don’t fix it. haha)

Re why your machine doesn’t like the character set encoding.

AS ‘root’

  1. create /etc/systemd/system/plexmediaserver.service.d/override.conf
    ( A systemd override to tune how PMS starts & runs )

  2. In it, put the following

[Service]
# Add LC_ALL to fix logfile encoding
Environment="LC_ALL=C"
  1. Now restart PMS

My machine has this (which calls out a specific character set)

[chuck@lizum targets.2003]$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Yours does not.

Perhaps play with setting your local to the correct country instead of “C” ?

@ChuckPa - thanks for the locale setting override - I tried creating this using both LC_ALL=C and LC_ALL=en_US.UTF-8 and the logs still show in chinese…very strange. For now, I will leave the configuration as is…I can view the logs in a different editor which renders in English.

For reference here is the current output for locale:

$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.