OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: GreenMatter on July 07, 2021, 01:39:56 pm

Title: 21.1.8 - nginx doesn't start
Post by: GreenMatter on July 07, 2021, 01:39:56 pm
After upgrading to 21.1.8 and reboot, nginx can't be run. When I try to do it manually I get:
Quote
root@OPNsense:~ # service nginx start
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Starting nginx.
nginx: [emerg] bind() to unix:/var/run/nginx_status.sock failed (48: Address already in use)
nginx: [emerg] bind() to unix:/var/run/nginx_status.sock failed (48: Address already in use)
nginx: [emerg] bind() to unix:/var/run/nginx_status.sock failed (48: Address already in use)
nginx: [emerg] bind() to unix:/var/run/nginx_status.sock failed (48: Address already in use)
nginx: [emerg] bind() to unix:/var/run/nginx_status.sock failed (48: Address already in use)
nginx: [emerg] still could not bind()
/usr/local/etc/rc.d/nginx: WARNING: failed to start nginx
It must be related to update since I had changed nothing in nginx setup...
sockstat output doesn't show "/var/run/nginx_status.sock", socket doesn't exist???

EDIT:
Strange enough, after additional, post-update reboot nginx is up and running...
Title: Re: 21.1.8 - nginx doesn't start
Post by: fabian on July 07, 2021, 09:40:58 pm
There was likely an old process so the socket was not free. However you could have just deleted the socket file as well and restarted nginx afterwards.