invalid number of arguments in "server_name" directive in nginx-status.conf
This is the CentOS package, gitlab-ce.x86_64 8.13.0-ce.0.el6, upgraded automatically some time over the weekend.
/opt/gitlab/embedded/sbin/nginx -t -c /var/opt/gitlab/nginx/conf/gitlab-http.conf nginx: [alert] could not open error log file: open() "/opt/gitlab/embedded/logs/error.log" failed (2: No such file or directory) 2016/10/24 15:53:54 [emerg] 5483#0: "upstream" directive is not allowed here in /var/opt/gitlab/nginx/conf/gitlab-http.conf:33 nginx: configuration file /var/opt/gitlab/nginx/conf/gitlab-http.conf test failed
/opt/gitlab/embedded/sbin/nginx -t -c /var/opt/gitlab/nginx/conf/nginx.conf nginx: [alert] could not open error log file: open() "/opt/gitlab/embedded/logs/error.log" failed (2: No such file or directory) 2016/10/24 16:00:13 [emerg] 6925#0: invalid number of arguments in "server_name" directive in /var/opt/gitlab/nginx/conf/nginx-status.conf:3 nginx: configuration file /var/opt/gitlab/nginx/conf/nginx.conf test failed
/var/opt/gitlab/nginx/conf/nginx-status.conf:
server {
listen *:8060;
server_name ;
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
gitlab-ctl reconfigure overwrites this file, but manually filling in server_name localhost & a gitlab-ctl restart seem to get things started.