- Q:CI/CD jobs 輸出亂碼
- A:一般是因爲服務器上的字符集與WEB的不一致導致,在.gitlab-ci.yml的script加上
LANG=zh_CN.UTF-8
即可。
- Q:
gitlab-ctl reconfigure
時,服務器上存在舊版gitlab,刪除後,還存在git用戶,新裝gitlab會提示user is currently used by process xxx - A:無傷大雅的話,直接
userdel -r -f git
,再重裝。
- Q:
gitlab-ctl reconfigure
時,安裝自帶的數據庫PostgreSQL,若不支持現有主機的字符集,會提示The encoding you selected (UTF8) and the encoding that the selected locale…… - A:臨時
export LANG=en_US.UTF-8
就行,安裝完再export LANG=xxx
回來。
- Q:截止提出該問題時, gitlab暫不支持以中文命名的分支往英文分支進行合併時,如果出現版本衝突,進行衝突解決。
- A:其實就是字符集問題,沒有去嘗試其他語言會不會有同樣問題。把中文改英文可以先跳過該問題。
- Q:頁面返回502異常,
production.log
輸出Redis::CommandError (MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.):
錯誤。 - A:請查看redis官網上的常見問題。