Everything run through without any error messages.
But I can’t connect the the pod - getting 502 Bad Gateway error.
[crit] 1348#1348: *12 connect() to unix:/home/diaspora/diaspora/tmp/diaspora.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.0.1, server: pod.domain.com, request: “GET / HTTP/2.0”, upstream: “http://unix:/home/diaspora/diaspora/tmp/diaspora.sock:/”, host: “pod.domain.com”
I looked at the howto you linked, and i see that the nginx config intentionally uses http:// in front of the unix sock, and that may be normal. I dont often use nginx in that way. I would fall back to my second question though, does that sock exist at the given path?
OK, this is likely the problem. Is the diaspora service started? Looks like the howto has you define a systemd unit for diaspora. if you check the status of that service, is it up?
systemctl status diaspora-web
If it says its running, its possible that the sock file path is just wrong? I don’t run it via a socket, so I don’t know for sure. but if you search /home/diaspora for a .sock file it might show you.
find /home/diaspora -name *.sock
If its there, but in a different location, update the nginx config to point that upstream to the proper location.
I would say try a systemctl restart diaspora-web, then wait a bit and check the status again, see if that timer is going up.
Unless its configured to start as needed (which is possible) it should show a longer up time than that.
A unix socket generally only exists when the service its linked to is running, so it should be there all the time. UNLESS, there’s another service that spawns the socket. Thats possible. But i’d have to leave that to someone with a little more expertise with diaspora to answer.
Hmm - quite other idea: Permission problem… Diaspora can’t write the *.sock file. Why I have this idea? I don’t see any logs which are enabled in diaspora.yml…
Normally diaspora logs in /home/diaspora/diaspora/logs/production.log. If that’s what you’re asking.
In the container that I run mine in, it runs as UID 1000 (diaspora), so i’d make sure that the tmp directory inside of /home/diaspora is chowned to 1000:1000.