V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
kalebroccoli
V2EX  ›  GitLab

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

  •  
  •   kalebroccoli · 2018-12-15 11:43:29 +08:00 · 5405 次点击
    这是一个创建于 1930 天前的主题,其中的信息可能已经有所发展或是发生改变。

    机房突然断电后 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 && [email protected]_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 都没有头绪

    1 条回复    2018-12-15 11:51:59 +08:00
    wampyl
        1
    wampyl  
       2018-12-15 11:51:59 +08:00
    兄弟,估计你要先贴好日志,这样估计没大神来看的。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1198 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 23:16 · PVG 07:16 · LAX 16:16 · JFK 19:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.