gitlab 8.15.1 版本 部分项目 web 页面报 404 部分页面报 500 错求助

2018-12-15 11:43:29 +08:00
 kalebroccoli

机房突然断电后 gitlab 服务异常,gitlab 服务器已经运行了 2 年多 具体表现为 1、本地 提交 提示输入用户名和密码 2、404 错误的步骤是,服务器端 web 页面点击项目--再点具体的 http 链接 就报 404 错误 gitlab-ctl tail 日志提示 如下:

==> /var/log/gitlab/gitlab-workhorse/current <== 2018-12-15_03:39:45.37943 172.171.3.200 @ - - [2018-12-15 11:39:45.319377255 +0800 CST] "POST /ci/api/v1/builds/register.json HTTP/1.1" 404 27 "" "Go 1.1 package http" 0.059992 2018-12-15_03:39:48.35456 172.171.3.200 @ - - [2018-12-15 11:39:48.319478391 +0800 CST] "POST /ci/api/v1/builds/register.json HTTP/1.1" 404 27 "" "Go 1.1 package http" 0.035015 2018-12-15_03:39:51.34217 172.171.3.200 @ - - [2018-12-15 11:39:51.320915977 +0800 CST] "POST /ci/api/v1/builds/register.json HTTP/1.1" 404 27 "" "Go 1.1 package http" 0.021163 2018-12-15_03:39:54.33908 172.171.3.200 @ - - [2018-12-15 11:39:54.319917074 +0800 CST] "POST /ci/api/v1/builds/register.json HTTP/1.1" 404 27 "" "Go 1.1 package http" 0.019063 2018-12-15_03:39:57.34063 172.171.3.200 @ - - [2018-12-15 11:39:57.319838653 +0800 CST] "POST /ci/api/v1/builds/register.json HTTP/1.1" 404 27 "" "Go 1.1 package http" 0.020724 2018-12-15_03:40:00.34507 172.171.3.200 @ - - [2018-12-15 11:40:00.320364296 +0800 CST] "POST /ci/api/v1/builds/register.json HTTP/1.1" 404 27 "" "Go 1.1 package http" 0.024610 2018-12-15_03:40:03.34200 172.171.3.200 @ - - [2018-12-15 11:40:03.320454932 +0800 CST] "POST /ci/api/v1/builds/register.json HTTP/1.1" 404 27 "" "Go 1.1 package http" 0.021466 2018-12-15_03:40:06.34277 172.171.3.200 @ - - [2018-12-15 11:40:06.320509472 +0800 CST] "POST /ci/api/v1/builds/register.json HTTP/1.1" 404 27 "" "Go 1.1 package http" 0.022184 2018-12-15_03:40:09.34080 172.171.3.200 @ - - [2018-12-15 11:40:09.320631368 +0800 CST] "POST /ci/api/v1/builds/register.json HTTP/1.1" 404 27 "" "Go 1.1 package http" 0.020098 2018-12-15_03:40:12.34852 172.171.3.200 @ - - [2018-12-15 11:40:12.320874867 +0800 CST] "POST /ci/api/v1/builds/register.json HTTP/1.1" 404 27 "" "Go 1.1 package http" 0.027549

3、500 错误步骤是,服务器端 web 页面点击项目就报 500 错误 错误提示如下 ++++++++++++++++++++++++++++++++++++++++++++++++++++

==> /var/log/gitlab/gitlab-rails/production.log <== Started GET "/admin/projects/SDN-COMPETITION/controller" for 172.171.9.250 at 2018-12-15 11:04:56 +0800 Processing by Admin::ProjectsController#show as HTML Parameters: {"namespace_id"=>"SDN-COMPETITION", "id"=>"controller"} Completed 500 Internal Server Error in 277ms (ActiveRecord: 21.2ms)

ActionView::Template::Error (Failed to inflate loose object.): 66: 67: = render 'shared/outdated_browser' 68: 69: - if @project && !@project.empty_repo? 70: - if ref = @ref || @project.repository.root_ref 71: :javascript 72: var findFileURL = "#{namespace_project_find_file_path(@project.namespace, @project, ref)}"; app/models/repository.rb:768:in local_branches' app/models/repository.rb:541:inbranch_count' app/models/repository.rb:48:in block (2 levels) in cache_method' lib/repository_cache.rb:20:infetch' app/models/repository.rb:1152:in cache_method_output' app/models/repository.rb:48:inblock in cache_method' app/models/repository.rb:88:in has_visible_content?' app/models/repository.rb:1055:inempty_repo?' app/models/project.rb:850:in empty_repo?' app/views/layouts/header/_default.html.haml:69:in_app_views_layouts_header__default_html_haml__1019618398472655816_70250847488020' app/views/layouts/application.html.haml:10:in _app_views_layouts_application_html_haml__2481968966533998274_70250858996420' app/views/layouts/admin.html.haml:5:in_app_views_layouts_admin_html_haml__2532952863642744480_70250894889820' lib/gitlab/middleware/multipart.rb:93:in call' lib/gitlab/request_profiler/middleware.rb:15:incall' lib/gitlab/middleware/go.rb:16:in `call'

请问应该怎么排查,查找 goole 和官方 以及 stackoverflow 都没有头绪

5683 次点击
所在节点    GitLab
1 条回复
wampyl
2018-12-15 11:51:59 +08:00
兄弟,估计你要先贴好日志,这样估计没大神来看的。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/517775

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX