Open BitWuehler opened 2 years ago
Hey @BitWuehler
Do you mind sharing the agent logs with us?
Also have you tried to update the Caddy config to remove the tcp protocol from the Edge specific proxy?
portainer.{$DOMAIN}:8000 {
tls {$EMAIL}
reverse_proxy 192.168.178.3:8111
}
I don't think the tcp bit is actually required as the agent will initiate the communications over web socket.
@deviantony
Do you mind sharing the agent logs with us?
Sure! I added it above.
Yes, I tried it without the tcp://
. Was just the last state, after I tried a lot.
Nobody an Idea? I will add to main as portainer issue too...
https://github.com/portainer/portainer-compose/issues/24#issuecomment-942389178
you should look at this
Since a while I try now to connect my portainer instance at home to the home server at my mothers house. For that I red, the safest way to use is edge agent.
At home I run portainer behind a caddy reverse proxy on a raspberry pi 4. Caddy is configured to route https://portainer.mydomain.de:443 to 192.168.178.3:9233 and tcp://portainer.mydomain.de:8000 to port 192.168.178.3:8111. In Docker I configured, 8111:8000 and 9233:9000 in the portainer compose file on my server. I opened up port 8000 and 443 in my router (tcp and udp). Also in ufw I allowed port 443 and 8000.
Portainer is working well so far.
On my mothers server I opened up port 9001 in the router. Ufw is also configured so far.
Now I tried to set up edge agent. I used:
I now can see a heartbeat under Environments but if I try to connect it says
Failed loading environment Environment is unreachable.
The portainer logs say:
The Agent logs:
I googled a lot, tried a lot but nothing changes something in a better way. Maybe it could be a problem with caddy? Also here I tried a lot. That's my config at the moment:
And for the sake of completeness here also my portainer docker-compose.yml:
Im not sure if it is a problem with the agent, portainer or caddy but I hope some of you has an idea!