Upgrade to 7.3.1 fails, Migration problem, rename:permission denied
Created by: philippzentner
Hi,
upgrade script failed while trying to migrate the database. I also tried it manually via
sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production
Result:
== 20140903115954 MigrateToNewShell: migrating ================================
/usr/local/lib/ruby/2.0.0/fileutils.rb:519:in `rename': Permission denied - (/home/git/repositories//myproject/web.git/hooks, /home/git/repositories//myproject/web.git/hooks.old.1411919928) (Errno::EACCES)
from /usr/local/lib/ruby/2.0.0/fileutils.rb:519:in `block in mv'
from /usr/local/lib/ruby/2.0.0/fileutils.rb:1552:in `block in fu_each_src_dest'
from /usr/local/lib/ruby/2.0.0/fileutils.rb:1568:in `fu_each_src_dest0'
from /usr/local/lib/ruby/2.0.0/fileutils.rb:1550:in `fu_each_src_dest'
from /usr/local/lib/ruby/2.0.0/fileutils.rb:508:in `mv'
from /home/git/gitlab-shell/lib/gitlab_projects.rb:25:in `create_hooks'
from /home/git/gitlab-shell//bin/create-hooks:12:in `block in <main>'
from /home/git/gitlab-shell//bin/create-hooks:10:in `each'
from /home/git/gitlab-shell//bin/create-hooks:10:in `<main>'
rake aborted!
StandardError: An error has occurred, all later migrations canceled:
Seems that there is a permission problem.