突然发现gitlab不能访问了,报错505
1),查看gitlab的状态,发现redis的状态是down
gitlab-ctl status
down: redis: 0s, normally up, want up; run: log
解决:启动redis,重启gitlab
gitlab-ctl start redis
gitlab-ctl restart
gitlab-ctl status
发现redis还是down。
2),查看redis 的日志
gitlab-ctl tail # 查看gitlab的日志
gitlab-ctl tail redis # 查看redis 的日志
tail -100f /var/log/gitlab/redis/current
报错:
2023-07-02_09:43:50.17090 *** FATAL CONFIG FILE ERROR ***
2023-07-02_09:43:50.17090 Reading the configuration file, at line 677
2023-07-02_09:43:50.17090 >>> 'io-threads 1'
2023-07-02_09:43:50.17090 Bad directive or wrong number of arguments
解决注销 677 行《io-threads 1》,再查看日志,
再注销报错678行,查看日志redis正常,
登录gitlab正常。