-
Notifications
You must be signed in to change notification settings - Fork 58
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
Port Forwarding Randomly Stops Working #69
Comments
Logs of this happening would be really helpful. The container's port forwarding script sends a request to their API every 15 mins to keep the forwarded port alive, so if something goes wrong API-wise then it should be showing up in the container's logs. If this has been happening regularly on a specific server then let me know and I'll spin up a container and see if I can catch it in action. |
Sure I'm running with location as:
Happened a few days ago, then a week before that, then two weeks before that. |
Same problem here. Here are my logs:
|
The port forwarding script does an API call every 15mins to keep the port alive. It looks like its timing out when this happens and then failing after several retries. Is the vpn connection itself still working when it happens? If the underlying connection itself is no longer working then there's not much that the script can be done to recover. |
I am connected to the same server and I see the same timeouts even when everything is running successfully. For example mine has this error three times since my container started last week and port forwarding and the VPN are still working. I don't have the bindPort error (yet). |
The port forwarding script is set to retry each request 5 times before dying, so as long as those curl timeout messages aren't clumped together time-wise and followed by a bindPort error then it should still be working. I think I might've managed to catch something similar happening on one of their
|
My timestamps seems to match up with @Maubil and the container was also connected to |
Ok happened again.. looks like it's getting "FATAL ERROR" in bind_port() Click me For Logs
|
If the connection itself is still working, then I wonder if it might be worth tweaking the curl timeout/retry options to be a bit more lenient before giving up in case its just a temporary issue with the port forwarding api. I'm not sure if restarting the port forwarding script would help, as the (unresponsive) port forwarding api endpoint would remain the same. Having the container optionally exit if port forwarding fails could probably then be done as a final resort. |
Ok as an experiment I edited pf.sh and changed the retry to 3000 will see what happens. |
Temporary curl errors aren't shown in the log anymore - the odd timeout seems to be common enough and is generally fixed on the first retry. Any curl errors are only now printed once its given up altogether, so with 3000 retires it might take a while before anything shows up in the log. I've bumped up the normal timeouts/retries a bit anyway. I figure the only downside would be that it would take longer before showing an error when something goes wrong. The upside being that its given more of a chance to recover before giving up. I think it should've gone from about 3mins worth of retries to about 10mins now before giving up. |
I think this is a problem on PIA's end but it seems like after a week or two (but way before the PF is supposed to expire) the port forwarding stops working until I reset the container. I'll post a log next time I see this.
Currently trying this as a health check since I'm using qbittorrent:
The text was updated successfully, but these errors were encountered: