gpt4 book ai didi

gitlab 套接字连接 : Connection refused

转载 作者:行者123 更新时间:2023-12-05 06:10:02 27 4
gpt4 key购买 nike

当我尝试重新配置我的 gitlab 实例时,出现了这个错误。sudo gitlab-ctl reconfigure 工作正常但是当我尝试启动 gitlab 时我看到 502 错误并且当我跟踪日志时我看到这个 -

==> /var/log/gitlab/gitlab-workhorse/current <==
{"correlation_id":"xWNXeQFn6Ua","duration_ms":0,"error":"badgateway: failed to receive response: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: connection refused","level":"error","method":"GET","msg":"error","time":"2020-10-28T23:22:16Z","uri":"/favicon.ico"}
{"correlation_id":"xWNXeQFn6Ua","duration_ms":1,"host":"gitlab.systems","level":"info","method":"GET","msg":"access","proto":"HTTP/1.1","referrer":"https://gitlab.systems/users/sign_in","remote_addr":"127.0.0.1:0","remote_ip":"127.0.0.1","status":502,"system":"http","time":"2020-10-28T23:22:16Z","uri":"/favicon.ico","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36","written_bytes":2940}

我已经检查过,套接字文件确实存在于/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket 位置。我不知道出了什么问题,但它之前工作正常,突然停止工作。是否与权限问题有关?

root@gitlab-serv # pwd
/var/opt/gitlab/gitlab-rails/sockets
root@gitlab-serv # ls -lrt
total 0
srwxrwxrwx. 1 git git 0 Oct 28 23:25 gitlab.socket
root@gitlab-serv #

Gitlab 版本 -版本:13.3.6-ee

感谢任何指导,因为我完全被困在这里。

最佳答案

我修好了。基本上,当我更改权限时,我使用 -R 选项递归地执行了它,因此 2 个文件 puma.idpuma.state 由 root 拥有,但理想情况下它们应该由用户管理 git 我们运行 Gitlab,这就是为什么无法访问这些文件的原因。我更改了权限并重新配置它并且它起作用了。只是张贴它,这样如果其他人遇到问题,他们应该知道要寻找什么

关于gitlab 套接字连接 : Connection refused,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64589918/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com