Replies: 3 comments 1 reply
-
|
Those docs are definitely out of date. We recommend docs.portainer.io as the source of up to date documentation. Portainer uses port |
Beta Was this translation helpful? Give feedback.
-
|
As advised, I've setup a TCP mode reverse proxy for port 8000, created another backend for the portainer host post 8000. It successfully connects, however, after a while the connection closes with this error "Connection error: websocket: close 1006 (abnormal closure): unexpected EOF".
I've also used a direct IP connection for comparison, and I don't have this issue when agent is connected directly to host by IP instead of reverse proxy. |
Beta Was this translation helpful? Give feedback.
-
|
If it works without HAproxy then the issue is clearly in the HAproxy config, so it's just a matter of figuring out the special sauce to get it working. This documentation might help - it suggests setting http-server-close on the backend and setting the tunnel timeout to 1 hour. I don't have a lot of experience with HAproxy myself so I might not be much help, but I'm checking with the wider team to see whether there's anything else we need to be aware of here. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I could not decide where to open this issue but I could not get the agent to connect to the portainer instance behind haproxy.
Portainer 2.18.4
Agent 2.18.4
I deployed portainer with ports 9443 and 8000.
Portainer instance has signed certs which work fine.
Reverse proxy works for the portainer works as expected. I can access the UI through the proxy.
However, when I create the environment for the agent and deploy the agent to another docker instance using the reverse proxy URL, the healthcheck shows fine but fails to establish connection when I try to manage it.
I tried following this guide but it might be outdated.
https://portainer-notes.readthedocs.io/en/latest/faq.html
I get these errors when I try to connect to the portainer host.
10.10.10.10 is the reverse proxy ip.
Agent tries to connect to the port 8000 which is a closed port. Only port 443 is listening on the reverse proxy.
What is wrong here?
Beta Was this translation helpful? Give feedback.
All reactions