徵兆:
1. CI/CD runner 無法連線
2. issue區域,無法正常上傳圖片
說明:
應該是因為gitlab的網頁引擎nginx在權限出現問題。進入runner看log是報出:
這邊讓gitlab自行重建該資料夾比較快
方法步驟:
解決辦法主要假設是透過container架起服務。
1. 進入到container中(docker exec -it xxx bash),中止服務。
gitlab-ctl stop
2. 備份nginx資料夾,這邊建議改為"nginx-old"。位置在:
root@gitlab-gitlab-ce-1:/var/opt/gitlab# mv nginx nginx-old
3. 重構一次gitlab,之後再重新啟用gitlab
gitlab-ctl reconfigure
gitlab-ctl start
references:
https://gitlab.com/gitlab-org/gitlab-runner/-/issues/29395
https://gitlab.com/gitlab-org/gitlab/-/issues/428329
沒有留言:
張貼留言