Gitlab error 502 , gitlab-workhorse socket file doesn't exist
Hello, I have been looking for several days now on the gitlab forums to find out where my bug comes from. After several searches I have more or less found the cause . But I still can’t solve it
Summary
After updating gitlab to its latest version ( I follow the updates every time ) I realized that our gitlab was displaying error 502 nginx .We changed the nginx vhost from /var/opt/gitlab/gitlab-workhorse/socket to /var/opt/gitlab/gitlab-workhorse/sockets/socket like this : https://docs.gitlab.com/omnibus/settings/nginx.html#vhost-server-block
Steps to reproduce
- apt upgrade
- Reconfigure gitlab
- Restart nginx server
What is the current bug behavior?
I got in my external url a 502 Bad Gateway from nginx
What is the expected correct behavior?
To be able to connect to the login portal etc..
Relevant logs
Relevant logs
connect() to unix://var/opt/gitlab/gitlab-workhorse/sockets/socket failed (2: No such file or directory) while connecting to upstream
Details of package version
Provide the package version installation details
For Debian, Ubuntu based systems, paste the output of: gitlab-ee 13.5.3-ee.0
For RHEL based systems (CentOS, RHEL, OL, Scientific, OpenSUSE, SLES), paste the output of:
Debian 9
Environment details
- Operating System:
Debian 9
- Installation Target: /
- Installation Type, remove incorrect values:
- Upgrade from version
from previous version
- Upgrade from version
- Is there any other software running on the machine:
website , docker
- Is this a single or multiple node installation?
- Resources
- CPU: /
- Memory total: 32G
Configuration details
Provide the relevant sections of `/etc/gitlab/gitlab.rb`
external_url 'https://gitlab.mydomain.fr' 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' ] gitlab_workhorse['enable'] = true gitlab_workhorse['ha'] = false gitlab_workhorse['listen_network'] = "tcp" gitlab_workhorse['listen_addr'] = "127.0.0.1:8181" gitlab_workhorse['log_directory'] = "/var/log/gitlab/gitlab-workhorse" puma['socket'] = '/var/tmp/gitlab-rails/sockets/gitlab.socket'