Welcome! Log In Create A New Profile

Advanced

98: Address already in use

April 14, 2011 08:04AM
Hi all,

Nginx has been working fine for months on my server. Recently, however, I see that "service nginx configtest" reports the following:

the configuration file /etc/nginx/nginx.conf syntax is ok
[emerg]: listen() to 0.0.0.0:17942, backlog 511 failed (98: Address already in use)
configuration file /etc/nginx/nginx.conf test failed


I believe nginx has been updated recently, but I'm not sure. It's currently at version 0.8.53. I've ran configtest before and have never seen this error. I need to add a new site in conf.d, but I fear that reloading or restarting afterwards will fail and my live sites will be down.

netstat -tlnp lists 0.0.0.0:17942 as in use by Program name "nginx.conf" (which seems weird, shouldn't this just say "nginx"). Also, if I rename the conf.d/site.conf file that includes the 17942 port entry, it just fails on the next conf down the line on the following ip/port.

Now that I've typed out the entire problem, it occurs to me that the problem could be the misnamed Program name. Maybe nginx thinks that a different program is occupying those ports because the name is not "nginx". Does that seem likely? Also, was there a bug fixed somewhere that resolved/caused the name change? I have a hunch that restarting nginx will solve the problem, but I don't want to risk it since it's a live server.

Any ideas? Thank you for reading.
SubjectAuthorPosted

98: Address already in use

slowgaryApril 14, 2011 08:04AM

Re: 98: Address already in use

Maxim DouninApril 14, 2011 10:00AM

Re: 98: Address already in use

slowgaryApril 14, 2011 10:20AM

Re: 98: Address already in use

slowgaryApril 14, 2011 11:14AM

Re: 98: Address already in use

Hüseyin MertApril 14, 2011 01:48PM

Re: 98: Address already in use

slowgaryApril 14, 2011 02:19PM

Re: 98: Address already in use

slowgaryApril 14, 2011 02:21PM

Re: 98: Address already in use

António P. P. AlmeidaApril 14, 2011 02:42PM

Re: 98: Address already in use

Igor SysoevApril 15, 2011 02:32AM

Re: 98: Address already in use

slowgaryApril 15, 2011 05:18AM

Re: 98: Address already in use

Maxim DouninApril 15, 2011 12:18PM

Re: 98: Address already in use

slowgaryApril 18, 2011 01:22PM

Re: 98: Address already in use

slowgaryApril 19, 2011 09:14AM

Re: 98: Address already in use

Maxim DouninApril 19, 2011 11:22AM

Re: 98: Address already in use

PelekeOctober 11, 2013 02:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 93
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready