在我們的Ubuntu服務器中,前合作伙伴安裝了我們的Gitlab。我沒有使用gitlab的經驗。現在,我想創建一個備份。Gitlab備份和「無法驗證證書」
運行後
sudo gitlab-rake gitlab:backup:create
我得到以下錯誤:
Uploading backup archive to remote storage smartupgitlab ... rake aborted! Excon::Errors::SocketError: Unable to verify certificate, please set
Excon.defaults[:ssl_ca_path] = path_to_certs
,ENV['SSL_CERT_DIR'] = path_to_certs
,Excon.defaults[:ssl_ca_file] = path_to_file
,ENV['SSL_CERT_FILE'] = path_to_file
,Excon.defaults[:ssl_verify_callback] = callback
(see OpenSSL::SSL::SSLContext#verify_callback), orExcon.defaults[:ssl_verify_peer] = false
(less secure).
我想我必須用代碼表示的線,但在什麼文件正是我應該粘貼它們?
檢查你的'gitlab.rb'。 gitlab_rails ['backup_upload_remote_directory']'是否已設置? – Fairy
是的,它是「gitlab_rails ['backup_upload_remote_directory'] ='smartupgitlab'。 似乎找不到它? –
註釋掉並重新運行您的命令備份位置存儲在配置值'gitlab_rails ['backup_path' ]''''smartupgitlab'似乎不是一個有效的位置 – Fairy