A portion of nginx config log: 2021/04/17 17:04:28 [error] 28714#100610: *9 connect() to 127.0.0.1:15000 failed (61: Connection refused) while connecting to upstream, client: XXX.XXX.XXX.XXX, server: example.com, request: "GET / HTTP/2.0", upstream: "http://127.0.0.1:15000/", host: "example.com", referrer: "https://example.com/" 2021/04/17 17:04:29 [error] 28714#100610: *9 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 89.205.142.92, server: example.com, request: "GET /favicon.ico HTTP/2.0", upstream: "http://127.0.0.1:15000/favicon.ico", host: "example.com", referrer: "https://example.com/" No config changes for Gitea or Nginx. I also have some similar issues with SOGo https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255124 I have already rebuilt all ports and packages. Unfortunately, no luck.
I'm testing new builds of Gitea in a 13.0-RELEASE VM, and Gitea on its own appears to be working fine. Can you access localhost:15000 with curl/fetch/wget? Is gitea listing on port 15000 (netstat -an|grep LISTEN|grep 15000, or lsof -p with the pid of gitea)? The default port for gitea is 3000.
Sorry, I downgraded https://forums.freebsd.org/threads/escaping-from-13-0-release-hell-and-back-to-12-2-release.79901/ since it also had issues with SOGo Groupware https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255124
And, both Gitea and SOGo are working just fine again on 12.2-RELEASE.
Mohammad, are you still experiencing the issue? Then in order to suggest any solution or workaround, I would need answers to my questions: is Gitea starting up and opening a listening port, and can you talk to it on that port? The error message you've posted indicates that nginx cannot talk to Gitea, but there's no indication why Gitea wouldn't have opened that port in the log you posted. Stefan
Hello Stefan, Unfortunately, I am no on FreeBSD 13.0-RELEASE anymore. I downgraded using these instructions to 12.2-RELEASE https://forums.freebsd.org/threads/escaping-from-13-0-release-hell-and-back-to-12-2-release.79901/ And, without changing any Gitea configuration, everything worked out of the box. This was a production server and I could not afford the downtime. Also, as I mentioned, SOGo also had issues. Fortunately, downgrading solved that one too. I am sure there are some incompatibilities between Gitea, SOGo, and 13.0-RELEASE. That's why I will stick to 12.X-RELEASE until 13.1-RELEASE. Sorry for not being more helpful.
Forgot to mention that I also did not change anything in Nginx, either before or after upgrade/downgrade. Just the usual rebuilding of every port.
Gitea *without* Nginx as a proxy works fine on my FreeBSD 13.0 installation.