Closed ternes3 closed 10 years ago
Can you please check /var/log/nginx/error.log
?
it is a bind error:
2014/03/24 14:11:45 [emerg] 10866#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2014/03/24 14:11:45 [emerg] 10866#0: still could not bind()
i know how i can fix it, but i think it is also an misstake in ajenti-v.
Looks like port 80 is taken by other application (check with sudo netstat -tlnp | grep 80
) - maybe it's Apache?
apache is not installed.
root@v22013051598612672:/etc/nginx/conf.d# sudo netstat -tlnp | grep 80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 9634/nginx
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 9498/python
try:
kill 9634
service nginx stop
service nginx start
thanks, this work.
Hi, i have the same problem.
But Nginx starts! When i try service nginx start
, there are no errors in the terminal.
My error.log:
2014/04/18 17:10:06 [emerg] 2983#0: bind() to MY_IP:80 failed (98: Address already in use)
2014/04/18 17:10:06 [emerg] 2983#0: still could not bind()
2014/04/18 17:10:13 [emerg] 2983#0: bind() to MY_IP:80 failed (98: Address already in use)
2014/04/18 17:10:13 [emerg] 2983#0: still could not bind()
Port 80:
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 922/nginx
tcp 0 0 46.38.234.191:8000 0.0.0.0:* LISTEN 027/python
When i try kill 922
, it says: -bash: kill: (922) - No such process
.
When i open the domain:
The following error was encountered while trying to retrieve the URL: http://MY_DOMAIN.TLD/ Unable to determine IP address from host name MY_DOMAIN.TLD The DNS server returned: Server Failure: The name server was unable to process this query. This means that the system was not able to resolve the hostname presented in the URL. Check if the address is correct.
What can I do?
You can search for the right process name with top or just reboot your server
mfg ternes3
2014-04-18 17:37 GMT+02:00 beeep notifications@github.com:
Hi, i have the same problem. But Nginx starts! When i try service nginx start, there are no errors in the terminal. My error.log:
2014/04/18 17:10:06 [emerg] 2983#0: bind() to 46.38.234.191:80 failed (98: Address already in use)
2014/04/18 17:10:06 [emerg] 2983#0: still could not bind()
2014/04/18 17:10:13 [emerg] 2983#0: bind() to 46.38.234.191:80 failed (98: Address already in use)
2014/04/18 17:10:13 [emerg] 2983#0: still could not bind()
Port 80: tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 922/nginx tcp 0 0 46.38.234.191:8000 0.0.0.0:* LISTEN 027/python
When i try kill 922, it says: -bash: kill: (922) - No such process.
What can I do?
— Reply to this email directly or view it on GitHubhttps://github.com/Eugeny/ajenti-v/issues/51#issuecomment-40817912 .
Ok, Nginx is started now, thanks! But my website doesn't work. Same error message.
but why the ip of my computer is in the access log? i can't open the website.
See if there is more than one site with the same IP, for me when I add a specific IP for each site that happens, then I usually leave "*" in the IP configuration of each site in ajenti-v-ngnix.
then restart nginx (you can do the main screen of "websites" in ajenti)
@beeep,
Unable to determine IP address from host name MY_DOMAIN.TLD
means that your DNS entry isn't configured properly (or you're using a wrong URL)
My configuration for the domain in ajenti is:
Host Port SSL SPDY Default (star) * 80 No No Yes
And my configuration for my domain at my domain provider is: x Use my own DNS Service Hostname: my hostname ip: n/a
Does the x
mean that Use my own DNS Service
is selected?
If you use Use my own DNS Service
, you should setup BIND accordingly on your host.
Note (possibly unrelated): I see this if I initiate a new domain and leave "Maintenance Mode" checked. Once I un-check, Nginx restarts gracefully.
@wrrr, you can check for NGINX config errors in the Configuration Tests list
hello @Eugeny I think you should rewrite nginx configuration with 80 not *:80, cmiiw
@raitucarp *:80
is absolutely identical to 80
Ok
hi, when i create a website, i get an error when i restart nginx.
[FAIL] Restarting nginx: nginx failed!
nginx -t:website config:
after i delete the website nginx restart with "ok".