Plexamp: No Music Servers - "server name isn't valid, ignoring."

Hi there,

I’m also getting the No Music Servers error. It sure would be nice to be able to move the music player window when this error is displayed…

Anywho, relevant logs:

Dec 19, 2017 11:43:37.208 INFO - Starting app…
Dec 19, 2017 11:43:39.620 DEBUG - Window bounds is 860 x 480.
Dec 19, 2017 11:43:39.741 INFO - Checking for update
Dec 19, 2017 11:43:41.123 INFO - Generated new staging user ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dec 19, 2017 11:43:41.507 INFO - Update for version 1.0.0 is not available (latest version: 1.0.0, downgrade is disallowed.
Dec 19, 2017 11:43:41.508 DEBUG - Autoupdate: Update is not available.
Dec 19, 2017 11:43:44.623 INFO - METRICS: Initializing.
Dec 19, 2017 11:43:44.623 WARN - METRICS: Cannot start up, no token.
Dec 19, 2017 11:43:44.624 WARN - DEVICE: Cannot initialize, no token.
Dec 19, 2017 11:43:44.798 INFO - APP: Refreshing player/server menu.
Dec 19, 2017 11:44:03.279 INFO - APP: Claiming player…
Dec 19, 2017 11:44:03.280 INFO - DEVICE: Initializing manager.
Dec 19, 2017 11:44:03.281 INFO - DEVICE: Fetching latest provider list from cloud.
Dec 19, 2017 11:44:03.281 INFO - DEVICE: Fetching latest list from cloud.
Dec 19, 2017 11:44:03.281 INFO - DEVICE: Loaded resources.
Dec 19, 2017 11:44:03.281 INFO - DEVICE: No previous data, waiting for cloud data.
Dec 19, 2017 11:44:03.400 INFO - DEVICE: Fetched 2 devices from the cloud.
Dec 19, 2017 11:44:03.401 INFO - DEVICE: Starting connection test.
Dec 19, 2017 11:44:03.402 INFO - DEVICE: Looking for an active server in 2 devices.
Dec 19, 2017 11:44:03.402 INFO - DEVICE: Finding best connection for Media
Dec 19, 2017 11:44:03.404 INFO - HTTP: Issuing request to https://127.0.0.1:32400/
Dec 19, 2017 11:44:03.404 INFO - HTTP: Issuing request to https://172.20.20.31:32400/
Dec 19, 2017 11:44:03.404 INFO - HTTP: Issuing request to https://172.20.20.30:32400/
Dec 19, 2017 11:44:03.404 INFO - HTTP: Issuing request to https://plex.xxxxxxxx.xxxx/
Dec 19, 2017 11:44:04.342 WARN - DEVICE: Server connection https://plex.xxxxxxxx.xxxx didn’t work for Media: plex.xxxxxxxx.xxxx server name isn’t valid, ignoring.
Dec 19, 2017 11:44:04.409 WARN - DEVICE: Server connection https://127.0.0.1:32400 didn’t work for Media: connect ECONNREFUSED 127.0.0.1:32400
Dec 19, 2017 11:44:08.407 WARN - DEVICE: Server connection https://172.20.20.31:32400 didn’t work for Media: timeout of 5000ms exceeded
Dec 19, 2017 11:44:08.408 WARN - DEVICE: Server connection https://172.20.20.30:32400 didn’t work for Media: timeout of 5000ms exceeded
Dec 19, 2017 11:44:08.408 WARN - DEVICE: Connection testing failed for Media
Dec 19, 2017 11:44:08.408 WARN - DEVICE: Did not find a working server.
Dec 19, 2017 11:44:08.409 INFO - DEVICE: Finding best connection for Media
Dec 19, 2017 11:44:08.409 INFO - HTTP: Issuing request to https://127.0.0.1:32400/
Dec 19, 2017 11:44:08.409 INFO - HTTP: Issuing request to https://172.20.20.31:32400/
Dec 19, 2017 11:44:08.410 INFO - HTTP: Issuing request to https://172.20.20.30:32400/
Dec 19, 2017 11:44:08.410 INFO - HTTP: Issuing request to https://plex.xxxxxxxx.xxxx/
Dec 19, 2017 11:44:08.410 INFO - DEVICE: Finding best connection for Galaxy S8
Dec 19, 2017 11:44:08.410 INFO - HTTP: Issuing request to http://192.168.15.50:36160/resources
Dec 19, 2017 11:44:08.411 INFO - DEVICE: Persisting devices.
Dec 19, 2017 11:44:08.416 INFO - DEVICE: Initialization finished in 5135ms.
Dec 19, 2017 11:44:08.416 INFO - APP: Refreshing player/server menu.
Dec 19, 2017 11:44:08.419 INFO - APP: Sign in complete.
Dec 19, 2017 11:44:08.423 INFO - METRICS: Initializing.
Dec 19, 2017 11:44:08.479 WARN - DEVICE: Server connection https://plex.xxxxxxxx.xxxx didn’t work for Media: plex.xxxxxxxx.xxxx server name isn’t valid, ignoring.
Dec 19, 2017 11:44:08.519 INFO - METRICS: Saving latest cloud settings for metrics.
Dec 19, 2017 11:44:09.438 WARN - DEVICE: Server connection https://127.0.0.1:32400 didn’t work for Media: connect ECONNREFUSED 127.0.0.1:32400

https://plex.xxxxxxxx.xxxx does actually work, if a little slowly, it’s a UK residential ADSL connection with only ~1MB upload going via Cloudflare.

Let me know what further troubleshooting I can do to diagnose this issue. Or if it’s possible to length the timeouts.

Cheers,

Steve

this perhaps?

Cheers, I did see that, I should have noted that there was no mention of certificate errors in the logs, and no matching log lines similar to those in that post.
I suppose Plex could be checking to see if the FQDN matches the server name subject in the certificate and forgetting to check the SAN, but that’s be out of the ordinary.

@stedaniels ~ I suspect we’re doing something too simplistic there; can you DM me with exact details about the cert? Should be easy to fix…

The “server name isn’t valid, ignoring” error is from the cert checking code. I think you may have nailed the cause, we’re doing:

servername !== cert.subject.CN

which apparently isn’t enough :sweat_smile: