I am stumped. I am running Ubuntu 22.04, xwiki 15.1, with nginx as a reverse proxy and mysql all on the same host. nginx error log is telling me it can’t connect to xwiki running on localhost:8080:
2023/03/21 05:01:21 [error] 1057#1057: *2366 connect() failed (111: Unknown error) while connecting to upstream, client: 54.183.255.133, server: wiki.swansway.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "wiki.swansway.com"
2023/03/21 05:01:22 [error] 1057#1057: *2367 connect() failed (111: Unknown error) while connecting to upstream, client: 177.71.207.165, server: wiki.swansway.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "wiki.swansway.com"
2023/03/21 05:01:23 [error] 1057#1057: *2370 connect() failed (111: Unknown error) while connecting to upstream, client: 54.252.79.165, server: wiki.swansway.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "wiki.swansway.com"
2023/03/21 05:01:25 [error] 1057#1057: *2372 connect() failed (111: Unknown error) while connecting to upstream, client: 54.232.40.69, server: wiki.swansway.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "wiki.swansway.com"
2023/03/21 05:03:08 [error] 1057#1057: *2414 upstream timed out (110: Unknown error) while reading response header from upstream, client: 158.247.68.206, server: wiki.swansway.com, request: "GET /xwiki/bin/view/Main/ HTTP/1.1", upstream: "http://127.0.0.1:8080/xwiki/bin/view/Main/", host: "wiki.swansway.com", referrer: "https://wiki.swansway.com/xwiki/bin/view/Main/Wiki%20Updates/"
I am not seeing anything error-related in catalina.out
. When I run netstat -tunlp
I see a big backup in recv-q:
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
[...snip...]
tcp6 101 0 :::8080 :::* LISTEN 3430/java
I have no idea where to go for the next clue. I have upgraded everything I can upgrade. Can anyone point me at the next debug step? Or give me a clue what could be going on? It is like linux itself is just not routing the traffic from nginx to xwiki. The weirdest thing is this just started happening out of nowhere in the late evening on a Sunday. Extremely unexpected for our use case. Any advice would be very welcome. Thanks!
edit: note that I tried forcing Java to use the ipv4 network and it didn’t seem to help anything. No system changes would have (should have) happened with this stopped working.