Hello,
I am trying to upgrade GitLab from 15.9.1 to 15.11.5.
The upgrade process hangs, and I can see the following problem in the log:
==> /var/log/gitlab/gitlab-workhorse/current <==
{"error":"keywatcher: pubsub receive: EOF","level":"error","msg":"","time":"2023-05-21T10:18:52Z"}
{"address":"/var/opt/gitlab/redis/redis.socket","level":"info","msg":"redis: dialing","network":"unix","time":"2023-05-21T10:18:52Z"}
After restarting GitLab, I can see Redis coming up:
2023-05-21_10:17:51.56794 3112:M 21 May 2023 10:17:51.567 * The server is now ready to accept connections at /var/opt/gitlab/redis/redis.socket
Running gitlab-redis-cli --stat
shows the following output:
------- data ------ --------------------- load -------------------- - child -
keys mem clients blocked requests connections
1762 4.45M 29 20 17804 (+0) 100
1762 4.26M 29 20 17830 (+26) 100
I also tried to modify the permissions on the redis.sock socket (since a previous error in the upgrade pointed to incorrect permissions on the .ssh/authorized_keys
file (I changed the owner to git:git), so I have this now:
/var/opt/gitlab/redis# ls -al
...
srwxrwxrwx 1 git git 0 May 21 10:09 redis.socket
I un-commented all redis[*]
related lines in the gitlab.rb
file:
redis['enable'] = true
redis['ha'] = false
redis['hz'] = 10
redis['dir'] = "/var/opt/gitlab/redis"
redis['log_directory'] = "/var/log/gitlab/redis"
redis['username'] = "gitlab-redis"
redis['group'] = "gitlab-redis"
redis['maxclients'] = "10000"
redis['maxmemory'] = "0"
redis['maxmemory_policy'] = "noeviction"
redis['maxmemory_samples'] = "5"
redis['tcp_backlog'] = 511
redis['tcp_timeout'] = "60"
redis['tcp_keepalive'] = "300"
redis['uid'] = nil
redis['gid'] = nil
But this didn’t help either…
Any ideas on what else I can try?
Many thanks in advance for your help and suggestions!