Issues with syncthing rev proxy 502 gateway error

I was running my caddy setup untouched in my old flat. Today in the new house I plugged all in and everything (in terms of caddy) is running as expected and before. But syncthing is showing a 502 Bad Gateway error.

This is the part in my Caddyfile for syncthing:

sync.homer-s.my-wan.de {
#Syncthing
 proxy / 192.168.100.10:8384 {
transparent    }    
basicauth / XYZ ZXY`
errors /etc/log/sync_errors.log
  gzip
tls mymail@yahoo.de
timeouts {
 read none
 write none
header none
}
}

error log:

21/Apr/2019:19:17:31 +0000 [ERROR 502 /] read tcp 172.17.0.9:41874->192.168.100.10:8384: read: connection reset by peer
21/Apr/2019:19:17:32 +0000 [ERROR 502 /favicon.ico] EOF

any ideas what could be wrong or where to search?

Thanks

Hi @Homer-Sim, try running curl -ILH "Host:sync.homer-s.my-wan.de" 192.168.100.10:8384 from the Caddy host to test whether the Syncthing server is responding healthily to HTTP requests.

curl: (7) Failed to connect to 192.168.100.10 port 8384: Verbindungsaufbau abgelehnt

Thanks this hint brought me to the right log and I found the error it was’nt n Caddy issue.

Sorry but thanks so much!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.