==> /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:in
branch_count'
app/models/repository.rb:48:in block (2 levels) in cache_method' lib/repository_cache.rb:20:in
fetch'
app/models/repository.rb:1152:in cache_method_output' app/models/repository.rb:48:in
block in cache_method'
app/models/repository.rb:88:in has_visible_content?' app/models/repository.rb:1055:in
empty_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:in
call'
lib/gitlab/middleware/go.rb:16:in `call'
请问应该怎么排查,查找 goole 和官方 以及 stackoverflow 都没有头绪
1
wampyl 2018-12-15 11:51:59 +08:00
兄弟,估计你要先贴好日志,这样估计没大神来看的。
|