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
  • #7890

Closed
Open
Created Sep 28, 2014 by Administrator@rootOwner

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.

Assignee
Assign to
Time tracking