Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
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 10 years ago by Administrator@rootOwner
  • New issue

  • Report abuse

  • New issue

  • Report abuse

Upgrade to 7.3.1 fails, Migration problem, rename:permission denied

Closed

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.

Linked issues
0


  • Administrator
    Administrator @root · 10 years ago
    Owner

    Created by: philippzentner

    Solved via

    chown -R git:git /home/git*

    By Administrator on 2014-09-28T17:43:27 (imported from GitLab project)

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
0 Assignees
None
Assign to
Milestone
No milestone
None
None
Time tracking
Due date
None
None
0
Labels
None
Assign labels
  • No matching results
  • Manage project labels
Confidentiality
Not confidential

You are going to turn on confidentiality. Only team members with at least Reporter access will be able to see and leave comments on the issue.

Lock issue
Unlocked
participants
Reference:

Menu

Projects Groups Snippets
Help