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

Closed
Open
Created Jun 21, 2013 by Administrator@rootOwner

[error 500] Cannot delete project, info says repository does not exist and owner deleted

Created by: stetskevych

GitLab 5.2.1 6a868a4c

gitlab-cant-delete-project1

I created a test user, then he created a test project. Then I removed the test user from the project and I also moved the project to the '/' namespace. Then I deleted the test user from gitlab. Trying to delete the test project now, I get the following log entry:

Started DELETE "/test-project" for at 2013-06-21 12:47:59 +0300
Processing by ProjectsController#destroy as HTML
Parameters: {"authenticity_token"=>"XIGFPDYMGzvlIc7muVtcJX1Rjj1fSSx0OsS+/HMD7mg=", "id"=>"test-project"}
Completed 500 Internal Server Error in 53ms
NoMethodError (undefined method `name' for nil:NilClass):
app/services/system_hooks_service.rb:30:in `build_event_data'
app/services/system_hooks_service.rb:3:in `execute_hooks_for'
app/observers/system_hook_observer.rb:9:in `after_destroy'
app/controllers/projects_controller.rb:75:in `destroy'

And here's the output of checks:

root@git:/home/git/gitlab# sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ...

Git configured for git user? ... yes
Has python2? ... yes
python2 is supported version? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.4.0 ? ... OK (1.4.0)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
post-receive hook up-to-date? ... yes
post-receive hooks in repos are links: ... 
Repo1 ... ok
Repo2 ... ok
Test project ... repository is empty

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes

Checking Sidekiq ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
Projects have satellites? ... 
Repo1 ... yes
Repo2 ... yes
Test project ... can't create, repository is empty
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.7.10)

Checking GitLab ... Finished
Assignee
Assign to
Time tracking