nginx down after updating gitlab-ce
Summary
Updated to the latest version of gitlab and the nginx component is no longer working.
Relevant logs and/or screenshots
nginx: [emerg] invalid number of arguments in "server_name" directive in /var/opt/gitlab/nginx/conf/nginx-status.conf:3
Output of checks
sudo gitlab-ctl status
sudo: unable to resolve host smart-appi-gitlab
run: gitlab-workhorse: (pid 27983) 307s; run: log: (pid 1066) 11342s
run: logrotate: (pid 27991) 307s; run: log: (pid 1056) 11342s
down: nginx: 0s, normally up, want up; run: log: (pid 1064) 11342s
run: postgresql: (pid 28013) 301s; run: log: (pid 1068) 11342s
run: redis: (pid 28021) 301s; run: log: (pid 1055) 11342s
run: sidekiq: (pid 28030) 298s; run: log: (pid 1058) 11342s
run: unicorn: (pid 28052) 297s; run: log: (pid 1069) 11342s
Results of GitLab application Check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)
Checking GitLab Shell ...
GitLab Shell version >= 3.6.6 ? ... OK (3.6.6)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
2/2 ... ok
2/3 ... ok
2/4 ... ok
2/5 ... ok
2/6 ... ok
2/7 ... ok
2/8 ... ok
2/9 ... ok
2/12 ... ok
2/13 ... ok
1/14 ... ok
2/15 ... ok
2/16 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
Send ping to redis server: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
projects have namespace: ...
2/2 ... yes
2/3 ... yes
2/4 ... yes
2/5 ... yes
2/6 ... yes
2/7 ... yes
2/8 ... yes
2/9 ... yes
2/12 ... yes
2/13 ... yes
1/14 ... yes
2/15 ... yes
2/16 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.1)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? ... yes (2.7.4)
Active users: 5
Checking GitLab ... Finished
Results of GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info
)
System information
System: Ubuntu 14.04
Current User: git
Using RVM: no
Ruby Version: 2.3.1p112
Gem Version: 2.6.6
Bundler Version:1.13.5
Rake Version: 10.5.0
Sidekiq Version:4.2.1
GitLab information
Version: 8.13.0
Revision: 053a0a2
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://my-gitlab.org
HTTP Clone URL: https://gitlab.smartappi.tssg.org/some-group/some-project.git
SSH Clone URL: git@gitlab.smartappi.tssg.org:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 3.6.6
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git