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: {
 proxy / {
transparent    }    
basicauth / XYZ ZXY`
errors /etc/log/sync_errors.log
timeouts {
 read none
 write none
header none

error log:

21/Apr/2019:19:17:31 +0000 [ERROR 502 /] read tcp> 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?


Hi @Homer-Sim, try running curl -ILH "" from the Caddy host to test whether the Syncthing server is responding healthily to HTTP requests.

curl: (7) Failed to connect to 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.