我正在为我的组织设置 GitLab 企业版。我们使用 AWS EFS 存储 repo 数据,并使用两个实例通过 AWS ELB 提供 SSH 和 HTTP/HTTPS 流量。EFS 卷在两个实例之间共享。但是当我在服务重启后访问项目主页时,我们会看到 500 错误页面。我们尝试跑步gitlab-ctl reconfigure && gitlab-ctl restart
但没有帮助。
- GitLab EE 版本 - 8.12.1-ee
- 2 * Centos 7(AWS EC2 实例 - m4.xlarge)
- AWS ELB 负载平衡 ssh 和 http/https 流量
日志中的错误
==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/itops/docker" for 10.0.4.246 at 2016-09-26 07:58:58 +0000
Processing by ProjectsController#show as HTML
Parameters: {"namespace_id"=>"itops", "id"=>"docker"}
Completed 500 Internal Server Error in 145ms (ActiveRecord: 14.2ms)
OpenSSL::Cipher::CipherError (bad decrypt):
app/models/project.rb:531:in `import_url'
app/models/project.rb:567:in `external_import?'
app/models/project.rb:559:in `import?'
app/models/project.rb:575:in `import_in_progress?'
app/controllers/projects_controller.rb:95:in `show'
lib/gitlab/request_profiler/middleware.rb:15:in `call'
lib/gitlab/middleware/go.rb:16:in `call'
lib/gitlab/middleware/readonly_geo.rb:29:in `call'
==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/itops/docker/refs/master/logs_tree/?offset=50&_=1474877373459" for 10.0.9.106 at 2016-09-26 08:09:40 +0000
Processing by Projects::RefsController#logs_tree as JS
Parameters: {"offset"=>"50", "_"=>"1474877373459", "namespace_id"=>"itops", "project_id"=>"docker", "id"=>"master"}
Started GET "/itops/docker/commits/master" for 10.0.4.246 at 2016-09-26 08:09:40 +0000
Processing by Projects::CommitsController#show as HTML
Parameters: {"namespace_id"=>"itops", "project_id"=>"docker", "id"=>"master"}
Completed 500 Internal Server Error in 176ms (ActiveRecord: 16.8ms)
ActionView::Template::Error (bad decrypt):
1: - if @project.mirror?
2: .prepend-top-default.gray-content-block.second-block.clearfix
3: - import_url = @project.safe_import_url
4: .oneline.project-mirror-text
5: This project is mirrored from #{link_to import_url, import_url}.
6:
app/models/project.rb:531:in `import_url'
app/models/project.rb:587:in `safe_import_url'
app/views/projects/commits/_mirror_status.html.haml:3:in `_app_views_projects_commits__mirror_status_html_haml___2300853211630423479_63495260'
app/views/projects/commits/show.html.haml:35:in `_app_views_projects_commits_show_html_haml___2695203885719227520_58528080'
app/controllers/projects/commits_controller.rb:27:in `show'
lib/gitlab/request_profiler/middleware.rb:15:in `call'
lib/gitlab/middleware/go.rb:16:in `call'
lib/gitlab/middleware/readonly_geo.rb:29:in `call'
我从 GitHub 导入了 Docker 项目。所有其他页面都工作正常(树/主、活动、图表、管道、问题)只有项目主页和 docker/commits/master 显示错误。