Gitolite Error
Application cant get access to your gitolite system.
Check 'config/gitlab.yml' for correct settings.Make sure web server user has access to gitolite. Setup tutorialTry:sudo chmod -R 770 /home/git/repositories/sudo chown -R git:git /home/git/repositories/
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
please add app version in issue description like sample in wiki https://github.com/gitlabhq/gitlabhq/wiki/Issue-format
also can you share output of
sudo -u gitlab bundle exec rake gitlab:app:status RAILS_ENV=production ?
By Administrator on 2012-08-16T07:17:53 (imported from GitLab project)
By Administrator on 2012-08-16T07:17:53 (imported from GitLab)
wyh770406,
check you have ssh properly working on host. I had the same issue couple days ago after I introduced wrong params into ssh_config. ssh login worked fine but ssh login using public key didn't. The best way is to identify the issue is to get status of application by running command specified by randx above.
By Administrator on 2012-08-16T11:24:09 (imported from GitLab project)
By Administrator on 2012-08-16T11:24:09 (imported from GitLab)
hate to say - same here on Gentoo 3.2.1 - Gitlab 2.7 and now 2.8.
Same log entries:
August 28, 2012 01:19 -> ERROR -> No such file or directory - /home/gitlab/gitlab/tmp/gitlabhq-gitolite-1346109596/gitolite/keydir/austermann_klimagipfel_de_1346109596.pubAugust 28, 2012 01:37 -> ERROR -> /home/gitlab/gitlab/tmp/gitlabhq-gitolite-1346110664/gitolite
Just after (re-)installation it works for a while for the first user(s?) - but after some time (after re-login or maybe the next day) it breaks again. Compared against my own server running on a freebsd-jail i just can't find a difference. Checked all processes (redis, resque, unicorn, nginx) up and running, compare group configuration, gitlab user permissions, you name it... all match.
i just talked a customer into replacing his boring gitweb with fancy gitlab - so any help in identifying the root cause of this is highly appreciated. Are there any other logs we could look at?
By Administrator on 2012-08-28T00:19:44 (imported from GitLab project)
By Administrator on 2012-08-28T00:19:44 (imported from GitLab)
All of them are present, all of them have permissions set like this:
drwxr-xr-x 2 gitlab gitlab 4096 28. Aug 01:37 gitlabhq-gitolite-1346110664
@pomozoff Regarding your solution above: I realised when trying to clone gitolite-admin it gave access for gitolite-admin DENIED to rails, so i added a user "rails" to the gitolite config files - all working now ... BUT:
What could be the reason that it tries to use rails as user instead of gitlab, and where would this be configured?
By Administrator on 2012-08-29T21:42:30 (imported from GitLab project)
By Administrator on 2012-08-29T21:42:30 (imported from GitLab)
I was getting this problem when trying to add myself in the admin console to a project as a Developer.
I am using gitlab 3.1 (originally installed as 2.7, upgraded to 3.1) with gitolite v2 on ubuntu server 12.04, if that helps.
I was trouble shooting and trying to gather some log data, and I was submitting the page over and over. Eventually it just worked. Not sure what changed.
I had ran sudo -u gitlab bundle exec rake gitlab:app:status RAILS_ENV=production and it reported all was okay and it could get the gitolite-admin repository.
I had run
sudo -u gitolite ssh -T git@localhost
Which returned an appropriate list of projects.
I also cloned the gitolite-admin repository into it's own folder to inspect the conf, and, strange enough, I saw my account listed under the project that I was trying to add it to, with the expected permissions. So it seems that my first error happened sometime after the gitolite-admin repo was updated, but, perhaps before gitlab was appropriately updated?
Here are some of the errors I received from various logs:
gitlab/gitlab/logs/githost.log
December 04, 2012 14:12 -> ERROR -> Pull error -> unable to clone gitolite-admin repo
gitlab/gitlab/logs/unicorn.std.err
fatal: Could not get current working directory: No such file or directory
gitlab/gitlab/logs/resue.log
(not sure when these were reported as there is no date on them, but they were on the tail of the log)
Host key verification failed.fatal: The remote end hung up unexpectedly
By Administrator on 2012-12-06T20:42:17 (imported from GitLab project)
By Administrator on 2012-12-06T20:42:17 (imported from GitLab)