2016-09-22 35 views
0

在一個非常舊的項目中,在我的新gitlab-ce服務器中恢復備份後,我總是在網頁中出現500錯誤。在備份恢復後的項目中出現Gitlab-ce 500錯誤

原木:

==> /var/log/gitlab/gitlab-rails/production.log < == 發起者GET 「/根/ licenciamiento-β」 爲84.126.154.63在2016- 09-22 17:17:36 +0000 處理ProjectsController#顯示爲HTML 參數:{「namespace_id」=>「root」,「id」=>「licenciamiento-ss」} 在402毫秒內完成500次內部服務器錯誤(ActiveRecord:19.3ms)

OpenSSL :: Cipher :: CipherError(壞解密): app/models/project.rb:497:在import_url' app/models/project.rb:533:in external_import?' app/models/project.rb:525:in import?' app/models/project.rb:541:in import_in_progress?' 應用程序/控制器/ projects_controller.rb:94:在show' lib/gitlab/request_profiler/middleware.rb:15:in呼叫 ' LIB/gitlab /中間件/ go.rb:16:在`呼叫'

==>的/ var /日誌/ gitlab/gitlab-workhorse/current < == 2016-09-22_17:17:36.88358 2016/09/22 17:17:36 ErrorPage:服務預定義的錯誤頁面:500 2016-09-22_17:17:36.88686 vps2。 「[/ url] [/ url] [/ url] [/ url] [/ url] [/ url] AppleWebKit/537.36(KHTML,如Gecko)Chrome/53.0.2785.116 Saf ARI/537.36" 0.536080

==> /var/log/gitlab/nginx/gitlab_access.log < == 84.126.154.63 - - [22 /月/ 2016:17:17: 36 +0000]「GET/root/licenciamiento-ss HTTP/1.1」500 2408「http://vps2.inforfenix.com:8888/」「Mozilla/5.0(X11; Linux的x86_64的)爲AppleWebKit/537.36(KHTML,例如Gecko)Chrome瀏覽器/ Safari瀏覽器53.0.2785.116/537.36"

==> /var/log/gitlab/gitlab-workhorse/current <== 
2016-09-22_17:17:37.12826 2016/09/22 17:17:37 Send static file "/opt/gitlab/embedded/service/gitlab-rails/public/favicon.ico" ("") for GET "/favicon.ico" 
2016-09-22_17:17:37.13234 vps2.inforfenix.com:8888 @ - - [2016-09-22 17:17:37.127819932 +0000 UTC] "GET /favicon.ico HTTP/1.1" 200 5430 "http://vps2.inforfenix.com:8888/root/licenciamiento-ss" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36" 0.004461 

==> /var/log/gitlab/nginx/gitlab_access.log <== 
84.126.154.63 - - [22/Sep/2016:17:17:37 +0000] "GET /favicon.ico HTTP/1.1" 200 5430 "http://vps2.inforfenix.com:8888/root/licenciamiento-ss" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36" 

備份還原操作後,我可以正常訪問幾乎所有的回購協議,但3個老不可用

+0

不一個簡單的'gitlab-ctl reconfigure'幫助? – Fairy

回答

0

複製db_key_base在/etc/gitlab/gitlab-secrets.json從舊的實例到新的

然後運行:

sudo gitlab-rails runner "Project.where.not(import_url: nil).each { |p| p.import_data.destroy if p.import_data }"