When customising Workhorse: directory for listen_addr sockets is not created by gitlab-ctl reconfigure
Summary
If gitlab_workhorse['listen_addr']
and gitlab_workhorse['dir']
are reconfigured to use a location other than /var/opt/gitlab
Workhorse will fail to start:
{
"error": "main listener: listen unix /var/opt/gitlab-local/gitlab-workhorse/sockets/socket: bind: no such file or directory",
"level": "fatal",
"msg": "shutting down",
"time": "2021-12-06T16:54:04Z"
}
Steps to reproduce
- single node omnibus is sufficient
- add these settings:
gitlab_workhorse['listen_addr'] = "/var/opt/gitlab-local/gitlab-workhorse/sockets/socket"
gitlab_workhorse['dir'] = "/var/opt/gitlab-local/gitlab-workhorse"
What is the current bug behavior?
dirname gitlab_workhorse['listen_addr']
is not created
In this example: /var/opt/gitlab-local/gitlab-workhorse/sockets
What is the expected correct behavior?
dirname gitlab_workhorse['listen_addr']
is created
In this example: /var/opt/gitlab-local/gitlab-workhorse/sockets
Relevant logs
Relevant logs
Details of package version
- Centos 7
- gitlab-ee-13.12.12-ee.0.el7.x86_64
- gitlab-ee-14.5.1-ee.0.el7.x86_64
Environment details
- Operating System:
REPLACE-WITH-DETAILS
- Installation Target, remove incorrect values:
- Bare Metal Machine
- VM: Digital Ocean, AWS, GCP, Azure, Other
REPLACE-WITH-DETAILS
- Other:
REPLACE-WITH-DETAILS
- Installation Type, remove incorrect values:
- New Installation
- Upgrade from version
REPLACE-WITH-DETAILS
- Other:
REPLACE-WITH-DETAILS
- Is there any other software running on the machine:
REPLACE-WITH-DETAILS
- Is this a single or multiple node installation?
- Resources
- CPU:
REPLACE-WITH-DETAILS
- Memory total:
REPLACE-WITH-DETAILS
- CPU:
Configuration details
Provide the relevant sections of `/etc/gitlab/gitlab.rb`
workaround
create the single missing sockets directory (the rest of the directory tree is present) and set git:git
{
"build_time": "20210922.000625",
"level": "info",
"msg": "Starting",
"time": "2021-12-06T16:59:48Z",
"version": "v13.12.12-ee"
}
{
"error": "main listener: listen unix /var/opt/gitlab-local/gitlab-workhorse/sockets/socket: bind: no such file or directory",
"level": "fatal",
"msg": "shutting down",
"time": "2021-12-06T16:59:48Z"
}
mkdir /var/opt/gitlab-local/gitlab-workhorse/sockets
chown git:git /var/opt/gitlab-local/gitlab-workhorse/sockets
{
"build_time": "20210922.000625",
"level": "info",
"msg": "Starting",
"time": "2021-12-06T16:59:49Z",
"version": "v13.12.12-ee"
}
{
"level": "info",
"msg": "keywatcher: starting process loop",
"time": "2021-12-06T16:59:49Z"
}
Edited by Ben Prescott_