-
-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Manually curated server list bound to /gluetun/servers.json gets overwritten #2357
Comments
@qdm12 is more or less the only maintainer of this project and works on it in his free time.
|
What servers are you missing? See my response #2332 (comment) as well.
This is by design, the servers.json you have bind mounted is a merge of the the most recent data between your local servers.json and the built-in servers.json. You probably didn't change the timestamp for protonvpn, hence the override. On the other hand, the next servers update will then throw away your local servers data, so you should avoid changing it manually. Let's figure this out together and I can add it in the updating code so it's bundled now and in the future. Are the servers you are missing present in https://api.protonmail.ch/vpn/logicals ? |
Let's please continue the conversation on (now re-opened) issue #2332 to figure out what servers are missing and how we can automatically add them to the list. Closing this since the behavior or servers.json is as expected. |
Closed issues are NOT monitored, so commenting here is likely to be not seen. This is an automated comment setup because @qdm12 is the sole maintainer of this project |
Just wanted to share my findings, as I was having this same issue. The solution that worked for me was to ensure the provider 'version' in my hardcoded servers.json file was the same as the original servers.json file, then update (in my hardcoded server.json file) the provider's timestamp to be greater than the provider's timestamp value in the original servers.json file. You can see here [1] in the code that it only reads hardcoded values with the same server version and here in the code [2] that it does the timestamp comparison.
I was originally incrementing, in my custom servers.json, both the provider version and timestamp but after updating (incrementing) only the provider timestamp, my custom server.json loaded up just fine and my 'SERVER_HOSTNAMES' env var was recognized and all worked as expected. |
Is this urgent?
None
Host OS
Ubuntu 22.04
CPU arch
x86_64
VPN service provider
ProtonVPN
What are you using to run the container
docker-compose
What is the version of Gluetun
Running version latest built on 2024-07-12T19:57:02.146Z (commit 9d50c23)
What's the problem 🤔
ProtonVPN server list is outdated even after update following https://github.com/qdm12/gluetun-wiki/blob/main/setup/servers.md#update-the-vpn-servers-list. (As was also noted in #2332).
Attempted fix: manually create a servers.json and bind to /gluetun/servers.json
Expected behaviour: Gluetun runs with the manually created servers.json.
Observed behaviour: Gluetun overwrites the manual servers.json and then can't find specified hostname, because servers.json was overwritten.
Attempted fix 2: manually create a servers.json and bind to /gluetun/servers.json, read-only
Expected behaviour: Gluetun runs with the manually created servers.json, doesn't overwrite file
Observed behaviour: Gluetun cannot overwrite file and quits.
Share your logs (at least 10 lines)
Share your configuration
No response
The text was updated successfully, but these errors were encountered: