2016-10-26 67 views
0

在我們的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), or Excon.defaults[:ssl_verify_peer] = false (less secure).

我想我必須用代碼表示的線,但在什麼文件正是我應該粘貼它們?

+1

檢查你的'gitlab.rb'。 gitlab_rails ['backup_upload_remote_directory']'是否已設置? – Fairy

+0

是的,它是「gitlab_rails ['backup_upload_remote_directory'] ='smartupgitlab'。 似乎找不到它? –

+1

註釋掉並重新運行您的命令備份位置存儲在配置值'gitlab_rails ['backup_path' ]''''smartupgitlab'似乎不是一個有效的位置 – Fairy

回答

1

在您的安裝中配置了備份上傳到遠程位置。但是,指定的位置不存在。註釋gitlab_rails['backup_path']gitlab_rails['backup_upload_connection']應該使其重新工作。一旦註釋運行gitlab-ctl reconfigure和本地備份應該再次工作。

相關問題