Server Version#: 4.147.1
Player Version#: NA (direct web interface from PMS)
The Issue:
Attempting to scan one of my music libraries yields the following, on-screen, error message:
An internet connection is required to scan library files.
Please check this server's connection and try again.
This issue doesn’t occur when scanning my other music library. The only difference I can think is the failing one has new content that hasn’t been scanned yet.
Once I added new content to the other music library that wasn’t having this issue, it started having this same issue.
Background:
I’m about certain I know what the initial cause of this issue is.
I’ve recently started isolating my servers from the internet - they cannot talk outside their respective VLAN/subnet (unless a fw rule is added to allow for specific purposes). For internet access they must use the Squid proxy I had stood up. I’m filtering external domains/endpoints on the proxy to make sure only required resources are accessible. This is just another step in building a zero-trust environment.
I have added the following environment variables to my PMS systemd service file (as an override):
Environment="no_proxy=localhost,127.0.0.1,.int.mydomain.com"
Environment="https_proxy=http://forward-proxy.int.mydomain.com:3128"
Environment="http_proxy=http://forward-proxy.int.mydomain.com:3128"
Adding my proxy config like this works for the most part. PMS is using it to connect back to Plex’s servers as well as other services that are used to populate metadata, etc. I can see this in the proxy access logs.
I do not see any outbound requests in the proxy access logs, from PMS, when telling the server to run a library scan.
Rectification Attempts:
So far I have, mutually exclusively, tried the following:
- Restart the PMS service
- Reboot the entire server
- Remove the proxy env vars, restart, add them back, restart again
- Restoring outbound access, restarting PMS (with the proxy config still in place). This does solve the issue; I can then successfully scan the music library.
Additional Comments:
To me, this acts like whatever system is responsible for scanning libraries isn’t properly utilizing the proxy config env variables, or isn’t built to use a proxy at all.
I’ve enabled debug logging, tried scanning a few times and exported the logs. I’d like to share the logs, but don’t want username and all content if in open. How can I provide my logs securely, to Plex members only (not non-user accessible)?
Is this necessarily a bug or is this because of a lack of forward proxy support?



