Gitlab 更新后关闭(正在部署)

Gitlab 更新后关闭(正在部署)

在我自己管理的 CentOS 7 机器上,我正在/曾经运行 Gitlab 12.0.1。

在几次更新之前,一切都非常顺利,但是一次更新破坏了我的安装,每当我进入我的首页时,我都会收到消息Deploy in progress

我做了一些调试。gitlab-ctl status表明除了之外一切都正常运转alertmanager

我重新启动了,gitlab-ctl restart结果显示一切都已重新启动,但之后再次检查状态时,alertmanager却发现系统再次处于关闭状态。

我做了一个:

  • gitlab-ctl stop
  • gitlab-ctl reconfigure
  • gitlab-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"

因此,显然,这里存在一些问题,但是问题到底是什么呢?

ps 另外,应该注意的是,我没有使用 gitlab-ce 附带的 Nginx 安装,因为它无论如何都是禁用的,但我在 Apache 安装上运行我的 gitlab 实例。我在此过程中也重新启动了 Apache,但没有出现任何错误。

答案1

最后,我找到了解决办法。虽然很尴尬,但是:

gitlab-ctl deploy-page status报告说部署页面已经启动。显然。

之后我只是跑步gitlab-ctl deploy-page down,一切就恢复正常了。

相关内容