redis-exporter config is hard-coded to connect to Redis via a UNIX socket
Summary
Redis master configuration does not create local socket file. This has the implication that the redis-exporter is not able to connect to it without further configuration if the socket file is not present
Steps to reproduce
Reconfigure with the following config:
redis['master_ip'] = "165.227.209.6"
redis['bind'] = "165.227.209.6"
redis['master_name'] = "gitlab-redis"
redis['master_password'] = "password"
redis['password'] = "password"
redis['port'] = 6379
And then notice that the redis.socket
file is not created:
find /var/ -name redis.socket
What is the current bug behavior?
Redis socket file is not created
What is the expected correct behavior?
Redis socket file should be created
Relevant logs
Relevant logs
(Paste any relevant logs.) (Live log output can be found with `sudo gitlab-ctl tail`.) (Log files live in `/var/log/gitlab` by default.)
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 +++-==============-============-============-================================= un gitlab-ce (no description available) un gitlab-ci-mult (no description available) un gitlab-ci-mult (no description available) ii gitlab-ee 11.8.0-ee.0 amd64 GitLab Enterprise Edition (includ ii gitlab-runner 11.7.0 amd64 GitLab Runner un gitlab-runner- (no description available)
Environment details
- Operating System:
Ubuntu 18.04.1 LTS
- Installation Target, remove incorrect values:
- VM: Digital Ocean
- Installation Type, remove incorrect values:
- Other: My test installation
- Is there any other software running on the machine: no
- Is this a single or multiple node installation: usually I use it as a single node, changed the config above to try replicate the issue
- Resources
- CPU: 4
- Memory total: 8GB
Configuration details
Provide the relevant sections of `/etc/gitlab/gitlab.rb`
redis['master_ip'] = "165.227.209.6" redis['bind'] = "165.227.209.6" redis['master_name'] = "gitlab-redis" redis['master_password'] = "password" redis['password'] = "password" redis['port'] = 6379
ZD https://gitlab.zendesk.com/agent/tickets/115904 (internal)
Workaround
See comment #4200 (comment 152170970)
Edited by Anton Smith