Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #3250
Closed
Open
Issue created Oct 28, 2015 by Rodrigo de Avila@rdeavila

Error HTTP 500 when open a MR

Hi!

I'm trying to see a MR, but when I open it, I receive an HTTP 500 error. In the past, this error don't happen in this MR. There's something I need to do?

Maybe the problem is related to ActionController::RoutingError (No route matches [POST] "/api/v1/builds/register.json")

We're using GitLab CE 8.1.2 8c8af7b6, installed with omnibus package on Ubuntu 14.04.

This is the log I get via gitlab-ctl tail:

==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/dsv/syonet-crm/merge_requests/169" for 127.0.0.1 at 2015-10-28 12:18:58 -0200
Processing by Projects::MergeRequestsController#show as HTML
  Parameters: {"namespace_id"=>"dsv", "project_id"=>"syonet-crm", "id"=>"169"}
Started POST "/api/v1/builds/register.json" for 127.0.0.1 at 2015-10-28 12:18:58 -0200

ActionController::RoutingError (No route matches [POST] "/api/v1/builds/register.json"):
  actionpack (4.1.12) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  actionpack (4.1.12) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  railties (4.1.12) lib/rails/rack/logger.rb:38:in `call_app'
  railties (4.1.12) lib/rails/rack/logger.rb:20:in `block in call'
  activesupport (4.1.12) lib/active_support/tagged_logging.rb:68:in `block in tagged'
  activesupport (4.1.12) lib/active_support/tagged_logging.rb:26:in `tagged'
  activesupport (4.1.12) lib/active_support/tagged_logging.rb:68:in `tagged'
  railties (4.1.12) lib/rails/rack/logger.rb:20:in `call'
  request_store (1.2.0) lib/request_store/middleware.rb:8:in `call'
  actionpack (4.1.12) lib/action_dispatch/middleware/request_id.rb:21:in `call'
  rack (1.5.5) lib/rack/methodoverride.rb:21:in `call'
  rack (1.5.5) lib/rack/runtime.rb:17:in `call'
  rack (1.5.5) lib/rack/lock.rb:17:in `call'
  rack (1.5.5) lib/rack/sendfile.rb:112:in `call'
  railties (4.1.12) lib/rails/engine.rb:514:in `call'
  railties (4.1.12) lib/rails/application.rb:144:in `call'
  railties (4.1.12) lib/rails/railtie.rb:194:in `public_send'
  railties (4.1.12) lib/rails/railtie.rb:194:in `method_missing'
  rack (1.5.5) lib/rack/builder.rb:138:in `call'
  rack (1.5.5) lib/rack/urlmap.rb:65:in `block in call'
  rack (1.5.5) lib/rack/urlmap.rb:50:in `each'
  rack (1.5.5) lib/rack/urlmap.rb:50:in `call'
  unicorn (4.8.3) lib/unicorn/http_server.rb:576:in `process_client'
  unicorn-worker-killer (0.4.3) lib/unicorn/worker_killer.rb:52:in `process_client'
  unicorn (4.8.3) lib/unicorn/http_server.rb:670:in `worker_loop'
  unicorn (4.8.3) lib/unicorn/http_server.rb:525:in `spawn_missing_workers'
  unicorn (4.8.3) lib/unicorn/http_server.rb:536:in `maintain_worker_count'
  unicorn (4.8.3) lib/unicorn/http_server.rb:294:in `join'
  unicorn (4.8.3) bin/unicorn:126:in `<top (required)>'
  /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/unicorn:23:in `load'
  /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/unicorn:23:in `<main>'



==> /var/log/gitlab/nginx/gitlab_access.log <==
10.10.1.15 - - [28/Oct/2015:12:18:58 -0200] "POST /api/v1/builds/register.json HTTP/1.1" 404 303 "-" "Go 1.1 package http"

==> /var/log/gitlab/gitlab-rails/production.log <==
Started POST "/api/v1/builds/register.json" for 127.0.0.1 at 2015-10-28 12:18:59 -0200

ActionController::RoutingError (No route matches [POST] "/api/v1/builds/register.json"):
  actionpack (4.1.12) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  actionpack (4.1.12) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  railties (4.1.12) lib/rails/rack/logger.rb:38:in `call_app'
  railties (4.1.12) lib/rails/rack/logger.rb:20:in `block in call'
  activesupport (4.1.12) lib/active_support/tagged_logging.rb:68:in `block in tagged'
  activesupport (4.1.12) lib/active_support/tagged_logging.rb:26:in `tagged'
  activesupport (4.1.12) lib/active_support/tagged_logging.rb:68:in `tagged'
  railties (4.1.12) lib/rails/rack/logger.rb:20:in `call'
  request_store (1.2.0) lib/request_store/middleware.rb:8:in `call'
  actionpack (4.1.12) lib/action_dispatch/middleware/request_id.rb:21:in `call'
  rack (1.5.5) lib/rack/methodoverride.rb:21:in `call'
  rack (1.5.5) lib/rack/runtime.rb:17:in `call'
  rack (1.5.5) lib/rack/lock.rb:17:in `call'
  rack (1.5.5) lib/rack/sendfile.rb:112:in `call'
  railties (4.1.12) lib/rails/engine.rb:514:in `call'
  railties (4.1.12) lib/rails/application.rb:144:in `call'
  railties (4.1.12) lib/rails/railtie.rb:194:in `public_send'
  railties (4.1.12) lib/rails/railtie.rb:194:in `method_missing'
  rack (1.5.5) lib/rack/builder.rb:138:in `call'
  rack (1.5.5) lib/rack/urlmap.rb:65:in `block in call'
  rack (1.5.5) lib/rack/urlmap.rb:50:in `each'
  rack (1.5.5) lib/rack/urlmap.rb:50:in `call'
  unicorn (4.8.3) lib/unicorn/http_server.rb:576:in `process_client'
  unicorn-worker-killer (0.4.3) lib/unicorn/worker_killer.rb:52:in `process_client'
  unicorn (4.8.3) lib/unicorn/http_server.rb:670:in `worker_loop'
  unicorn (4.8.3) lib/unicorn/http_server.rb:525:in `spawn_missing_workers'
  unicorn (4.8.3) lib/unicorn/http_server.rb:536:in `maintain_worker_count'
  unicorn (4.8.3) lib/unicorn/http_server.rb:294:in `join'
  unicorn (4.8.3) bin/unicorn:126:in `<top (required)>'
  /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/unicorn:23:in `load'
  /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/unicorn:23:in `<main>'



==> /var/log/gitlab/nginx/gitlab_access.log <==
10.10.1.15 - - [28/Oct/2015:12:18:59 -0200] "POST /api/v1/builds/register.json HTTP/1.1" 404 303 "-" "Go 1.1 package http"

==> /var/log/gitlab/gitlab-rails/production.log <==
Started POST "/ci/api/v1/builds/register.json" for 127.0.0.1 at 2015-10-28 12:18:59 -0200

==> /var/log/gitlab/nginx/gitlab_access.log <==
10.10.1.15 - - [28/Oct/2015:12:18:59 -0200] "POST /ci/api/v1/builds/register.json HTTP/1.1" 404 58 "-" "Go 1.1 package http"

==> /var/log/gitlab/gitlab-rails/production.log <==
Completed 500 Internal Server Error in 994ms (ActiveRecord: 46.5ms)

ActionView::Template::Error (undefined method `short_id' for nil:NilClass):
     8:     %div
     9:       = link_to_member(@project, note.author, avatar: false)
    10:       started a discussion on commit
    11:       = link_to(note.noteable.short_id, namespace_project_commit_path(note.project.namespace, note.project, note.noteable), class: 'monospace')
    12:     .last-update.hide.js-toggle-content
    13:       - last_note = discussion_notes.last
    14:       last updated by
  app/views/projects/notes/discussions/_commit.html.haml:11:in `_app_views_projects_notes_discussions__commit_html_haml___4438284215760582213_18888820'
  app/views/projects/notes/_discussion.html.haml:13:in `_app_views_projects_notes__discussion_html_haml__4231010905241050535_15406420'
  app/views/projects/notes/_notes.html.haml:7:in `block in _app_views_projects_notes__notes_html_haml__1452075893404223796_106969000'
  app/views/projects/notes/_notes.html.haml:2:in `each'
  app/views/projects/notes/_notes.html.haml:2:in `_app_views_projects_notes__notes_html_haml__1452075893404223796_106969000'
  app/views/projects/notes/_notes_with_form.html.haml:2:in `_app_views_projects_notes__notes_with_form_html_haml__3196133191030728790_106796820'
  app/views/projects/merge_requests/_discussion.html.haml:22:in `_app_views_projects_merge_requests__discussion_html_haml___1650617189336037322_105721820'
  app/views/projects/merge_requests/_show.html.haml:59:in `_app_views_projects_merge_requests__show_html_haml__4243514594298881318_42100420'
  app/views/projects/merge_requests/show.html.haml:1:in `_app_views_projects_merge_requests_show_html_haml__2890091492252800918_41867720'
  app/controllers/projects/merge_requests_controller.rb:49:in `show'



==> /var/log/gitlab/nginx/gitlab_access.log <==
10.10.1.144 - - [28/Oct/2015:12:18:59 -0200] "GET /dsv/syonet-crm/merge_requests/169 HTTP/1.1" 500 415 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7"
10.10.1.144 - - [28/Oct/2015:12:18:59 -0200] "GET /static.css HTTP/1.1" 304 0 "http://git.syonet.com/dsv/syonet-crm/merge_requests/169" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7"
Assignee
Assign to
Time tracking