Sometimes tempest-web service on Ops Manager server needs to be restarted to fix some issue. However it's been found occasionally accessing Ops Manager web UI would return "502 Bad Gateway" after the service is restarted with command "service tempest-web restart".
Following error message could be seen in
/var/log/opsmanager/error.log
2020/08/11 12:42:53 [crit] 1059#1059: *245039 connect() to unix:/tmp/tempest-web.sock failed (2: No such file or directory) while connecting to upstream, client: 10.0.0.2, server: , request: "GET / HTTP/1.1", upstream: "http://unix:/tmp/tempest-web.sock:/", host: "opsmgr-03.example.io"`/tmp/tempest-web.sock
And file
/tmp/tempest-web.sock doesn't exist on the server.
$ ls -l /tmp/tempest-web.sock
ls: cannot access '/tmp/tempest-web.sock': No such file or directory