I have been attempting a wot relay setup. I have been following the wot GitHub, sett up a digital ocean Ubuntu server connected to my namecheap domain.

I have been working through steps, but I am getting a 502 bad gateway nginx error on my domain when I go to it.

I guess something is not right with my dns… Anyone have any ideas? Where can I learn more about nginx to make sure I have everything set up correctly?

#asknostr

Reply to this note

Please Login to reply.

Discussion

It sounds like a misconfiguration of your nginx?

I’ll look into it.

I ran nginx -t and it was a successful config file but maybe still not right

Yeah, probably a successful configuration with no syntax errors but missing something or something not set properly.

Not familiar with wot, but the nginx upstream is probably down.

Can you curl localhost:3334?

No it returned

curl: (7) Failed to connect to localhost port 3334 after 0 ms: Couldn’t connect to server

something wrong with the service file, run

sudo journalctl -u wot-relay

Should give u good info

I ran that and it returned:

Then I did: sudo systemctl status wot-relay and it returned the second image:

Stop the service and then run the binary manually to see if it starts

that confirms that it's not running or was unable to bind to that address/port

try running

sudo systemctl status

it may give you more information, there is also

sudo journalctl -u .service

Thank you. I tried the systemctl status command and it looks like it’s not running

the journalctl command often shows more context and if you read it carefully you may see something, like "permission denied" on reading or writing some file or folder or binding to an address

I didn’t even know you could open a second terminal and watch everything in real time like that, still very much a noob.

Thank you for your comments!

i'm a log-watching-addict, i even write my own intensive loggers and stare at them for hours

5xx errors mean the proxy is unable to connect to the servers