Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #4994

Closed
Open
Created Sep 05, 2013 by Administrator@rootOwner

Gitlab 6.0: Post-receive hooks go instable

Created by: ghost

Hello,

I've been relying Gitlab post-receive hooks for auto-deployment. Since upgrading from 5.x to 6.0 however, the hooks are not stable anymore. Sometimes they fire, and sometimes they just don't.

Checking the sidekiq.log file gives this hint:

2013-09-05T08:54:52Z 5791 TID-ps5ck WARN: {"class"=>"PostReceive", "args"=>["/home/git/repositories/me/my-project.git", "79163986e4334ba3685229334b751ddd0adf35f4", "63336d81e5d9a4f7123a1637e73ec9de3c77837a", "refs/heads/master", "user-13"]}
2013-09-05T08:54:52Z 5791 TID-ps5ck WARN: Mysql2::Error: Unknown column 'merge_requests.project_id' in 'where clause': SELECT `merge_requests`.* FROM `merge_requests`  WHERE `merge_requests`.`project_id` = 31 AND (`merge_requests`.`state` IN ('opened')) AND (source_branch LIKE 'master' OR target_branch LIKE 'master')
2013-09-05T08:54:52Z 5791 TID-ps5ck WARN: /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query'

So, looks like there's something wrong with the merge_requests table. But since I'm not a RoR guy, I can't dive in deeper.

Any of you guys have an idea what's going on here? Thanks in advance.

Assignee
Assign to
Time tracking