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

Closed
Open
Created Oct 18, 2012 by Administrator@rootOwner

New project doesn't create repo.

Created by: jozefvaclavik

Hi,

I'm having very strange issue. Since I installed gitlab, I created several projects. Since then, nothing changed on a server. If I create new project, repository is not created. It creates new project, I can see it in a list of projects in Admin area. I can see that I'm set as an owner (but not as a team member). This is status of a app when I erased the badly created project.

USER@SERVER: /opt/gitlabhq $ bundle exec rake gitlab:app:status RAILS_ENV=production
Starting diagnostics
config/database.yml............exists
config/gitlab.yml............exists
/home/git/repositories/............exists
/home/git/repositories/ is writable?............YES
remote: Counting objects: 156, done.
remote: Compressing objects: 100% (121/121), done.
Receiving objects: 100% (156/156), 12.29 KiB, done.
remote: Total 156 (delta 46), reused 0 (delta 0)
Resolving deltas: 100% (46/46), done.
Can clone gitolite-admin?............YES
UMASK for .gitolite.rc is 0007? ............YES
/home/git/.gitolite/hooks/common/post-receive exists? ............YES
Validating projects repositories:
PROJECT1.....post-receive file ok
PROJECT2.....post-receive file ok
PROJECT3.....post-receive file ok
PROJECT4.....post-receive file ok
PROJECT5.....post-receive file ok
PROJECT6.....post-receive file ok

Finished

When I create it, it automatically redirects me to project page /admin/projects/PROJECT, but that crashes with error 500 with this message:

Started GET "/admin/projects/web" for IP_ADDRESS at 2012-10-18 14:14:24 +0200
Processing by Admin::ProjectsController#show as HTML
  Parameters: {"id"=>"web"}
  Rendered admin/shared/_projects_head.html.haml (0.8ms)
  Rendered admin/projects/show.html.haml within layouts/admin (2.2ms)
Completed 500 Internal Server Error in 6ms

ActionView::Template::Error (/home/git/repositories/web.git):
    5:     %i.icon-edit
    6:     Edit
    7: 
    8: - if !@admin_project.has_post_receive_file? && @admin_project.commit
    9:   %br
    10:   .alert.alert-error
    11:     %span
  app/roles/repository.rb:78:in `new'
  app/roles/repository.rb:78:in `repo'
  app/roles/repository.rb:16:in `commit'
  app/views/admin/projects/show.html.haml:8:in `_app_views_admin_projects_show_html_haml___4581997492097932484_7518600'

and the app status is (with --trace):

USER@SERVER: /opt/gitlabhq $ bundle exec rake gitlab:app:status RAILS_ENV=production --trace
** Invoke gitlab:app:status (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gitlab:app:status
Starting diagnostics
config/database.yml............exists
config/gitlab.yml............exists
/home/git/repositories/............exists
/home/git/repositories/ is writable?............YES
remote: Counting objects: 160, done.
remote: Compressing objects: 100% (124/124), done.
remote: Total 160 (delta 47), reused 0 (delta 0)
Receiving objects: 100% (160/160), 12.65 KiB, done.
Resolving deltas: 100% (47/47), done.
Can clone gitolite-admin?............YES
UMASK for .gitolite.rc is 0007? ............YES
/home/git/.gitolite/hooks/common/post-receive exists? ............YES
Validating projects repositories:
PROJECT1.....post-receive file ok
PROJECT2.....post-receive file ok
PROJECT3.....post-receive file ok
PROJECT4.....post-receive file ok
PROJECT5.....post-receive file ok
PROJECT6.....post-receive file ok
Web.....post-receive file missing
rake aborted!
unexpected return
/opt/gitlabhq/lib/tasks/gitlab/status.rake:80:in `block (4 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:21:in `block (2 levels) in find_each'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:21:in `each'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:21:in `block in find_each'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:72:in `find_in_batches'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/relation/batches.rb:20:in `find_each'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/querying.rb:8:in `find_each'
/opt/gitlabhq/lib/tasks/gitlab/status.rake:74:in `block (3 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/usr/local/rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p0/bin/rake:19:in `load'
/usr/local/rvm/gems/ruby-1.9.3-p0/bin/rake:19:in `<main>'
Tasks: TOP => gitlab:app:status

if I list the folder with repositories /home/git/repositories the web.git repository is not there. I also tried to update the gitlab source code to latest master. It didnt help. Same error. Oh and my project limit is 10000. Any ideas what could go wrong?

Assignee
Assign to
Time tracking