After my new installation of erpnext I tried to restart nginx but it failed.
However, erpnext itself seems to be running fine.
I can reload the nginx configuration file with command “sudo service nginx reload” which give me success.
But nginx itself won’t run. I have checked the configuration file using command “sudo nginx -t” and it shows that the configuration file doesn’t contain any error.
So can erpnext run even if nginx is not running? How can I make it run?
When I run command
“sudo service nginx start”
it doesn’t give me any message.
But when I use the command
“sudo service nginx status”
It says the nginx is not running.
A yesterdays entry says “a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/default:21”
But after that I have removed the file named “default” from sites-enabled and have also regenerated the config file using bench setup nginx and replaced the config file.
Now it is not giving any error. But nginx won’t start.
Ok. I think I changed the log file location. So now the error I am getting is 90: Address already in use.
There is nothing else listening on port 80. The output I get with ‘sudo netstat -tupln’ shows nginx listening on Local address tcp 0.0.0.0:80 and tcp6 :::80
I have tried several times by reloading the configuration and restarting the system. But I am getting the same error every time.