You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
I'm exposing Portainer Master instance behind Cloudflare Tunnel and the trying to make the remote Edge Agent connects to it.
After troubleshooting, I found that the default request timeout of 10 seconds is not sufficient for high latency environment.
I noticed that the timeout is set to 10 second and cannot be changed from outside.
yassineselmi
changed the title
EdgeAgent: Insufficient hardcoded Timeout to perform polling
EdgeAgent: Insufficient Timeout to perform polling
Nov 18, 2022
Bug description
I'm exposing Portainer Master instance behind Cloudflare Tunnel and the trying to make the remote Edge Agent connects to it.
After troubleshooting, I found that the default request timeout of 10 seconds is not sufficient for high latency environment.
I noticed that the timeout is set to 10 second and cannot be changed from outside.
From edge.go#L107
Same issue in the healthcheck process:
Expected behavior
A valid response from the Portainer Server when calling the api endpoints
/api/endpoints/5/edge/status
or/api/status
Portainer Logs
Steps to reproduce the issue:
PS: It is hard to reproduce the problem in another environment. Please consider low latency connections.
I wrote a small Go script that calls the same HTTP request (same Endpoint, headers, and timeout of 10 seconds), and I was able to reproduce the issue.
By increasing the timeout to 30 seconds, everything worked fine and I was able to get a valid response from the API (
api/endpoints/5/edge/status
Technical details:
docker run -p 9443:9443 portainer/portainer
): Docker composeAdditional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: