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.