突然发现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
报错:文章来源:https://www.toymoban.com/news/detail-529267.html
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正常。文章来源地址https://www.toymoban.com/news/detail-529267.html
到了这里,关于gitlab down: redis: 0s, normally up, want up; run:log的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!