OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • 21.1.8 - nginx doesn't start
« previous next »
  • Print
Pages: [1]

Author Topic: 21.1.8 - nginx doesn't start  (Read 2490 times)

GreenMatter

  • Full Member
  • ***
  • Posts: 166
  • Karma: 1
    • View Profile
21.1.8 - nginx doesn't start
« 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...
« Last Edit: July 07, 2021, 02:12:58 pm by GreenMatter »
Logged
OPNsense on:
Intel(R) Xeon(R) E-2278G CPU @ 3.40GHz (4 cores)
8 GB RAM
50 GB HDD
and plenty of vlans ;-)

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: 21.1.8 - nginx doesn't start
« Reply #1 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.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • 21.1.8 - nginx doesn't start
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2