Just did an apt-get update and upgrade on my ubuntu LEMP:
First got messages that it wanted to overwrite default and nginx.conf files, which I refused. Which resulted in
Code:
2012/03/15 20:36:05 [emerg] 19842#0: unknown "https" variable
Got this error previous time as well. Then I had to add the following to the nginx.conf:
Code:
map $scheme $server_https {
default off;
https on;
}
After which my server run happily ever after, until now.
This time I had to comment the https variable in the fastcig_params file to get past this. But now my nginx refuses to restart because of this:
Code:
2012/03/15 21:09:58 [emerg] 9599#0: bind() to [::]:80 failed (98: Address already in use)
2012/03/15 21:09:58 [emerg] 9599#0: bind() to [::]:80 failed (98: Address already in use)
2012/03/15 21:09:58 [emerg] 9599#0: bind() to [::]:80 failed (98: Address already in use)
2012/03/15 21:09:58 [emerg] 9599#0: bind() to [::]:80 failed (98: Address already in use)
2012/03/15 21:09:58 [emerg] 9599#0: bind() to [::]:80 failed (98: Address already in use)
2012/03/15 21:09:58 [emerg] 9599#0: still could not bind()
I don't have apache running. There are no nginx processes running. This is really annoying, second time that nginx breaks during upgrade.
The command netstat -ltnp returned following output:
Code:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2181/mysqld
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2053/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2458/master
tcp6 0 0 :::4949 :::* LISTEN 2186/munin-node
tcp6 0 0 :::22 :::* LISTEN 2053/sshd
What is going on?