GitLab CE 13.5.1 socket for external server not generated when internal Nginx is disabled
Summary
When the internal Nginx instance of GitLab CE Omnibus 13.5.1 is disabled the /var/opt/gitlab/gitlab-workhorse/socket
socket file our Nginx connects to is no longer generated. I upgraded our instance from 13.3.1 and the settings I use used to work on that version. No changes apart from upgrading GitLab through apt were made.
Steps to reproduce
- Upgrade to GitLab CE 13.5.1
- Make sure the internal Nginx is disabled by changing
/etc/gitlab/gitlab.rb
as outlined in the official documentation https://docs.gitlab.com/omnibus/settings/nginx.html#using-a-non-bundled-web-server
nginx['enable'] = false
web_server['external_users'] = ['www-data']
gitlab_rails['trusted_proxies'] = [ '192.168.1.0/24', '192.168.2.1', '2001:0db8::/32' ]
- Reconfigure the instance
sudo gitlab-ctl reconfigure
- There is no
/var/opt/gitlab/gitlab-workhorse/socket
file
What is the current bug behavior?
When the internal Nginx server of GitLab Omnibus is disabled, there is no /var/opt/gitlab/gitlab-workhorse/socket
socket for the external server.
What is the expected correct behavior?
When the internal Nginx server of GitLab Omnibus is disabled, a /var/opt/gitlab/gitlab-workhorse/socket
socket is created for the external server.
Details of package version
Provide the package version installation details
Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-=========================================================================-=========================================-=========================================-======================================================================================================================================================== ii gitlab-ce 13.5.1-ce.0 amd64 GitLab Community Edition (including NGINX, Postgres, Redis) un gitlab-ee (no description available)
Environment details
- Operating System: Ubuntu 18.04.5
- Installation Target, remove incorrect values:
- VM: Azure
- Installation Type, remove incorrect values:
- Upgrade from version 13.3.1
- Is there any other software running on the machine:
- Nginx 1.14.0
- Is this a single or multiple node installation?
- Single
- Resources
- Memory total: 8Gb
Configuration details
Provide the relevant sections of `/etc/gitlab/gitlab.rb`
external_url 'https://...' gitlab_rails['gitlab_email_from'] = '...' gitlab_rails['gitlab_email_reply_to'] = '...' gitlab_rails['gitlab_default_theme'] = 3 git_data_dirs({ "default" => { "path" => "..." } }) gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "..." gitlab_rails['smtp_port'] = ... gitlab_rails['smtp_user_name'] = "..." gitlab_rails['smtp_password'] = "..." gitlab_rails['smtp_domain'] = "..." gitlab_rails['smtp_authentication'] = "login" gitlab_rails['smtp_enable_starttls_auto'] = true web_server['external_users'] = ['www-data'] nginx['enable'] = false gitlab_rails['trusted_proxies'] = [ '192.168.1.0/24', '192.168.2.1', '2001:0db8::/32' ]