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

Closed
Open
Created Jul 30, 2014 by Administrator@rootOwner

Updating project path ends in error 500

Created by: fjen

Using gitlab 7.1.0 and gitlab-shell 1.9.6 updating the project path gives error 500. The files are not moved on the server and gitlab shows an empty repo. The old files are no longer accessible under gitlab.

Steps to reproduce:

  1. Create a project
  2. Change project path under "Rename repository"

production.log:

Started GET "/finfadmin/test/edit" for 91.9.213.190 at 2014-07-30 14:59:25 +0200
Processing by ProjectsController#edit as HTML
Parameters: {"id"=>"finfadmin/test"}
Completed 200 OK in 65ms (Views: 52.0ms | ActiveRecord: 3.4ms)
Started PATCH "/finfadmin/test" for 91.9.213.190 at 2014-07-30 14:59:55 +0200
Processing by ProjectsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"2AP1Ex1oXoGSFlL3v9kmSCL5gMhNgRmgiwlaQhRByVw=", "project"=>{"path"=>"test-renamed"}, "id"=>"finfadmin/test"}
Completed 500 Internal Server Error in 373ms
Exception (repository cannot be renamed):
app/models/project.rb:522:in `rename_repo'
app/services/projects/update_service.rb:17:in `execute'
app/controllers/projects_controller.rb:32:in `update'
Assignee
Assign to
Time tracking