Hi everyone — I’ve been self-hosting InvoiceNinja for a while now and I think it’s a great piece of software, thank you to everyone who works on it.
I recently updated my docker image using:
docker compose down
docker compose pull
docker compose up
Because I was facing a new error where my InvoiceNinja wouldn’t send emails, it said I needed a Hobby Plan? Even though I’ve been using it and sending emails for a while.
But after updating, I am encountering a 502 Gateway Error on nginx, the logs from my nginx container show:
/docker-entrypoint.sh: Configuration complete; ready for start up
2025/01/24 21:33:33 [notice] 1#1: using the "epoll" event method
2025/01/24 21:33:33 [notice] 1#1: nginx/1.27.3
2025/01/24 21:33:33 [notice] 1#1: built by gcc 13.2.1 20240309 (Alpine 13.2.1_git20240309)
2025/01/24 21:33:33 [notice] 1#1: OS: Linux 6.8.12-4-pve
2025/01/24 21:33:33 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 524288:524288
2025/01/24 21:33:33 [notice] 1#1: start worker processes
2025/01/24 21:33:33 [notice] 1#1: start worker process 20
2025/01/24 21:33:33 [notice] 1#1: start worker process 21
192.168.0.17 - - [24/Jan/2025:21:33:52 +0000] "GET / HTTP/1.1" 502 552 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36" "-"
2025/01/24 21:33:52 [error] 21#21: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.17, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://172.18.0.4:9000", host: "192.168.0.34:8035"
2025/01/24 21:33:53 [error] 21#21: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.17, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://172.18.0.4:9000", host: "192.168.0.34:8035"
192.168.0.17 - - [24/Jan/2025:21:33:53 +0000] "GET / HTTP/1.1" 502 552 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36" "-"
192.168.0.17 - - [24/Jan/2025:21:33:54 +0000] "GET / HTTP/1.1" 502 552 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36" "-"
2025/01/24 21:33:54 [error] 21#21: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.17, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://172.18.0.4:9000", host: "192.168.0.34:8035"
192.168.0.17 - - [24/Jan/2025:21:33:55 +0000] "GET / HTTP/1.1" 502 552 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36" "-"
2025/01/24 21:33:55 [error] 21#21: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.17, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://172.18.0.4:9000", host: "192.168.0.34:8035"
2025/01/24 21:39:46 [error] 20#20: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.17, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://172.18.0.4:9000", host: "192.168.0.34:8035"
192.168.0.17 - - [24/Jan/2025:21:39:46 +0000] "GET / HTTP/1.1" 502 552 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36" "-"
Would anyone be able to help please?