Enabling gitlab ci causes nginx error
Created by: DazWorrall
On an omnibus install, I enabled gitlabci in gitlab.rb according to the docs (setting ci_external_url
), ran gitlab-ctl reconfigure
without error but I couldn't reach the CI server. Checking the logs, nginx failed to reload with the following error:
2015-05-11_08:38:52.94967 2015/05/11 09:38:52 [emerg] 937#0: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32
I put server_names_hash_bucket_size 64;
into /var/opt/gitlab/nginx/conf/nginx.conf
and manually sent a HUP
and that solved it. 2 issues then:
- The default bucket size is too small
- The failure to reload nginx didnt raise an error when I ran
gitlab-ctl reconfigure