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

Closed
Open
Created Nov 28, 2012 by Administrator@rootOwner

Error cloning gitolite-admin repo while attempting to create a project or add ssh key

Created by: edrex

Presumably this will happen with other actions that use the admin repo as well.

When I attempt to create a project or add/remove an ssh key on a user, I am redirected to /errors/githost, with the following showing in the logs:

$ tail logs/githost.log
November 27, 2012 20:15 -> ERROR -> RuntimeError Git commit failed.
November 27, 2012 20:17 -> ERROR -> Pull error ->  unable to clone gitolite-admin repo
$ tail ~git/.gitolite/logs/gitolite-2012-11.log
2012-11-27.20:15:22     12069   ssh     ARGV=gitlab     SOC=git-upload-pack 'gitolite-admin'    FROM=127.0.0.1
2012-11-27.20:15:22     12069           access(gitolite-admin, gitlab, R, 'any'),-> refs/.*
2012-11-27.20:15:22     12069           trigger,Writable,access_1,ACCESS_1,gitolite-admin,gitlab,R,any,refs/.*
2012-11-27.20:15:22     12069   pre_git gitolite-admin  gitlab  R       any     -> refs/.*
2012-11-27.20:15:22     12069           system,git,shell,-c,git-upload-pack '/home/git/repositories/gitolite-admin.git'
2012-11-27.20:15:25     12069   END

The repo clones fine from the commandline and with gitlab:app:status

➜  gitlab  rvmsudo -u gitlab 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
Can clone gitolite-admin?............YES
Can git commit?............YES
UMASK for .gitolite.rc is 0007? ............YES
/home/git/.gitolite/hooks/common/post-receive exists? ............YES

Validating projects repositories:
* example.....post-receive file ok

Finished

Versions:

➜  gitlab  git log --pretty=format:'%ad %h %d' --abbrev-commit --date=short -1
2012-11-22 ced242a  (HEAD, v3.1.0)
➜  gitlab  sudo -u gitlab ssh git@localhost                                   
hello gitlab, this is git@ankh running gitolite3 v3.04-0-gaf437c3 on git 1.7.9.5

 R W    gitolite-admin
 R W    testing

Project creation was working prior to upgrade from 2.9 to 3.1.

Any further troubleshooting steps/ideas? Thanks

Assignee
Assign to
Time tracking