Closed deploystudios closed 2 years ago
Hello. Same thing is happening to me.
It eventually gets to an IP that it likes.
I enabled DEBUG=1
to get some more info.
Attaching below what I could see.
It seems the serverinfo.json
file does not have the correct information
How does that file refresh itself? Maybe we can test something running docker exec
and see if it helps.
today at 12:46:43 PM2021-12-29 15:46:43+00:00 [DEBUG ] Is service disconnecting: 0
today at 12:46:43 PM2021-12-29 15:46:43+0000 [DEBUG ] Detect IP of connected server from /root/.pvpn-cli/pvpn-cli.cfg
today at 12:46:43 PM2021-12-29 15:46:43+0000 [DEBUG ] Reading /root/.pvpn-cli/serverinfo.json
today at 12:46:43 PM2021-12-29 15:46:43+0000 [DEBUG ] Allowed IPs: ['162.12.206.11']
today at 12:46:43 PM2021-12-29 15:46:43+0000 [DEBUG ] Fetch Public IP from https://api.ipify.org
today at 12:46:44 PM2021-12-29 15:46:44+0000 [DEBUG ] Current IP is 162.12.206.10
today at 12:46:44 PM2021-12-29 15:46:44+0000 [ERROR ] Your current public IP 162.12.206.10, does not match any IPs from server AR#7
today at 12:46:44 PM2021-12-29 15:46:44+00:00 [ERROR ] Healthcheck #1 Failed!
today at 12:46:44 PM2021-12-29 15:46:44+00:00 [ERROR ] Connected to # instead of #
today at 12:46:59 PM2021-12-29 15:46:59+00:00 [DEBUG ] Is service disconnecting: 0
today at 12:46:59 PM2021-12-29 15:46:59+0000 [DEBUG ] Detect IP of connected server from /root/.pvpn-cli/pvpn-cli.cfg
today at 12:46:59 PM2021-12-29 15:46:59+0000 [DEBUG ] Reading /root/.pvpn-cli/serverinfo.json
today at 12:46:59 PM2021-12-29 15:46:59+0000 [DEBUG ] Allowed IPs: ['162.12.206.11']
today at 12:46:59 PM2021-12-29 15:46:59+0000 [DEBUG ] Fetch Public IP from https://api.ipify.org
today at 12:47:00 PM2021-12-29 15:47:00+0000 [DEBUG ] Current IP is 162.12.206.10
today at 12:47:00 PM2021-12-29 15:47:00+0000 [ERROR ] Your current public IP 162.12.206.10, does not match any IPs from server AR#7
today at 12:47:00 PM2021-12-29 15:47:00+00:00 [ERROR ] Healthcheck #2 Failed!
today at 12:47:00 PM2021-12-29 15:47:00+00:00 [ERROR ] Connected to # instead of #
today at 12:47:15 PM2021-12-29 15:47:15+00:00 [DEBUG ] Is service disconnecting: 0
today at 12:47:15 PM2021-12-29 15:47:15+0000 [DEBUG ] Detect IP of connected server from /root/.pvpn-cli/pvpn-cli.cfg
today at 12:47:15 PM2021-12-29 15:47:15+0000 [DEBUG ] Reading /root/.pvpn-cli/serverinfo.json
today at 12:47:15 PM2021-12-29 15:47:15+0000 [DEBUG ] Allowed IPs: ['162.12.206.11']
today at 12:47:15 PM2021-12-29 15:47:15+0000 [DEBUG ] Fetch Public IP from https://api.ipify.org
today at 12:47:15 PM2021-12-29 15:47:15+0000 [DEBUG ] Current IP is 162.12.206.10
today at 12:47:15 PM2021-12-29 15:47:15+0000 [ERROR ] Your current public IP 162.12.206.10, does not match any IPs from server AR#7
today at 12:47:16 PM2021-12-29 15:47:16+00:00 [ERROR ] Healthcheck #3 Failed!
today at 12:47:16 PM2021-12-29 15:47:16+00:00 [ERROR ] Connected to # instead of #
today at 12:47:31 PM2021-12-29 15:47:31+00:00 [DEBUG ] Is service disconnecting: 0
today at 12:47:31 PM2021-12-29 15:47:31+0000 [DEBUG ] Detect IP of connected server from /root/.pvpn-cli/pvpn-cli.cfg
today at 12:47:31 PM2021-12-29 15:47:31+0000 [DEBUG ] Reading /root/.pvpn-cli/serverinfo.json
today at 12:47:31 PM2021-12-29 15:47:31+0000 [DEBUG ] Allowed IPs: ['162.12.206.11']
today at 12:47:31 PM2021-12-29 15:47:31+0000 [DEBUG ] Fetch Public IP from https://api.ipify.org
today at 12:47:31 PM2021-12-29 15:47:31+0000 [DEBUG ] Current IP is 162.12.206.10
today at 12:47:31 PM2021-12-29 15:47:31+0000 [ERROR ] Your current public IP 162.12.206.10, does not match any IPs from server AR#7
today at 12:47:31 PM2021-12-29 15:47:31+00:00 [ERROR ] Healthcheck #4 Failed!
More info found... checking the code, I see that the serverinfo.json
is downlaoded from https://api.protonvpn.ch/vpn/logicals
. If you review the server info for AR#7
it shows the exit IP is the one that the container got correct 162.12.206.11
. And the one that https://api.ipify.org
shows, which is 162.12.206.10
, actually belongs to AR#6
. So maybe what is going on, is that the cli is informing the wrong connected server?
I fixed it in the above PR, love to contribute to this project, use it all the time
Version of
protonvpn-docker
latest
Credential & Plan
System Architecture
x86_64
Running on a NAS?
Yes
Container Runtime
I don't know!
Version of Kubernetes
NA
Version of docker/podman runtime
NA
Relevant log output
Any additional info
It seems like the lookup for the connected IP is not returning correct results. Mine cycled through several IPs until it seemed to work as noted above.
Code of Conduct & PII Redaction