Gitlab

更新後 Gitlab 關閉(正在部署)

  • July 31, 2019

在我自己管理的 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,沒有產生任何錯誤。

最後,我找到了解決方案。真的很尷尬,但是:

gitlab-ctl deploy-page status報告部署頁面已啟動。明顯地。

之後,我只是跑了gitlab-ctl deploy-page down,一切都恢復了正常。😐

引用自:https://serverfault.com/questions/973313