在我自己管理的CentOS 7机器上,我正在/正在运行GitLab12.0.1。
在几次更新之前,一切都很顺利,但是一次更新破坏了我的安装,每当我访问我的首页时,我就会收到Deploy in progress消息。
我做了一些调试。gitlab-ctl status声明,除了alertmanager之外,一切都已启动和运行。
我重新启动了gitlab-ctl restart,它声明一切都已重新启动,但之后再次检查状态,alertmanager可以再次显示为下降。
我做了一个:
gitlab-ctl stopgitlab-ctl reconfiguregitlab-ctl start按照这个顺序,一切都进行得很好;然而,alertmanager又立即下降了。
gitlab-ctl tail alertmanager声明如下:
2019-06-27_09:04:19.75237 level=warn ts=2019-06-27T09:04:19.751036139Z caller=cluster.go:154 component=cluster err="couldn't deduce an advertise address: no private IP found, explicit advertise addr not provided"
2019-06-27_09:04:19.75630 level=error ts=2019-06-27T09:04:19.756225537Z caller=main.go:202 msg="unable to initialize gossip mesh" err="create memberlist: Failed to get final advertise address: No private IP address found, and explicit IP not provided"
2019-06-27_09:04:20.79887 level=info ts=2019-06-27T09:04:20.798268353Z caller=main.go:177 msg="Starting Alertmanager" version="(version=0.16.2, branch=master, revision=)"
2019-06-27_09:04:20.79890 level=info ts=2019-06-27T09:04:20.798339248Z caller=main.go:178 build_context="(go=go1.11.10, user=GitLab-Omnibus, date=)"
2019-06-27_09:04:20.80945 level=warn ts=2019-06-27T09:04:20.806462267Z caller=cluster.go:154 component=cluster err="couldn't deduce an advertise address: no private IP found, explicit advertise addr not provided"
2019-06-27_09:04:20.81497 level=error ts=2019-06-27T09:04:20.814894348Z caller=main.go:202 msg="unable to initialize gossip mesh" err="create memberlist: Failed to get final advertise address: No private IP address found, and explicit IP not provided"
2019-06-27_09:04:21.85821 level=info ts=2019-06-27T09:04:21.857774453Z caller=main.go:177 msg="Starting Alertmanager" version="(version=0.16.2, branch=master, revision=)"
2019-06-27_09:04:21.85823 level=info ts=2019-06-27T09:04:21.857842577Z caller=main.go:178 build_context="(go=go1.11.10, user=GitLab-Omnibus, date=)"
2019-06-27_09:04:21.86780 level=warn ts=2019-06-27T09:04:21.865566339Z caller=cluster.go:154 component=cluster err="couldn't deduce an advertise address: no private IP found, explicit advertise addr not provided"
2019-06-27_09:04:21.87528 level=error ts=2019-06-27T09:04:21.8751892Z caller=main.go:202 msg="unable to initialize gossip mesh" err="create memberlist: Failed to get final advertise address: No private IP address found, and explicit IP not provided"所以,很明显,除了它是什么,还有什么不对劲。
附注:另外,应该注意的是,我没有使用gitlab-ce附带的Nginx安装,它无论如何都是禁用的,但我正在Apache安装上运行我的gitlab实例。在此过程中,我也重新启动了Apache,没有出现任何错误。
发布于 2019-07-31 11:19:23
最后,我找到了解决办法。这真的很尴尬,但是:
gitlab-ctl deploy-page status报告说部署页面已经启动。很明显。
之后,我只运行了gitlab-ctl deploy-page down,一切都恢复了正常。
https://serverfault.com/questions/973313
复制相似问题