之前創建了項目之後,今天重啓了服務器,點擊項目URL報錯404
谷歌了很多資料,最後覺得靠譜的還是緩存問題,按照下面小哥的方法清了下緩存,就可以了
A gitlab-rake cache:clear solves this issue immediately, so the problem is apparently an incoherent cache.
It is reproducible, a formerly renamed or deleted project triggers the cached 404.
原文的連接如下:
https://gitlab.com/gitlab-com/support-forum/issues/561
解決方法:
運行:
#gitlab-rake cache:clear
立即解決了這個問題,因此問題顯然是緩存不一致。
它是可重現的,以前重命名或刪除的項目會觸發緩存的404。
重新配置gitlab
gitlab-ctl reconfigure
gitlab-ctl restart