redmine_git_hosting icon indicating copy to clipboard operation
redmine_git_hosting copied to clipboard

Error with sudo access

Open reyman opened this issue 14 years ago • 7 comments

Hello,

I use stable 1.2.2 redmine with git clone of redmine_git_hosting 0.4.2.

I create a question on serveFault with my problem : http://serverfault.com/questions/337723/redmine-and-gitolite-coupling-i-have-error-with-sudo-access

I have two user : /home/gitolite and /home/redmine The right for /var/www/redmine is chown -R redmine:redmine , i change only the chow for .ssh folder and file into my /var/www/redmine : chown www-data -R .ssh chmod 700 .ssh chmod 600 .ssh/git_gitolite_admin_id_rsa chmod 644 .ssh/git_gitolite_admin_id_rsa.pub

I change the sudoer file with your tutorial, but that's doesn't work :

www-data ALL=(gitolite) NOPASSWD:ALL gitolite ALL=(www-data) NOPASSWD:ALL

But i the plugin, i have no recognition of right between gitolite user and redmine user : http://i.stack.imgur.com/DES7m.png

Thanks a lot, SR

reyman avatar Dec 05 '11 13:12 reyman

Ditto

rposborne avatar Dec 09 '11 21:12 rposborne

Fixed!

chown -R  www-data:www-data /srv/www/chili/

Did it for me.

rposborne avatar Dec 09 '11 22:12 rposborne

If i make that, i have an internal error 500 when i try to acces to the configure page for plugin :/

reyman avatar Dec 09 '11 23:12 reyman

Delete the tmp file

rm -r -f /tmp/redmine_git_hosting

I think that's the right file.

rposborne avatar Dec 10 '11 00:12 rposborne

Thanks, that works :)

reyman avatar Dec 10 '11 10:12 reyman

Hum that's work, all is ok in configuration page, but my existing git repositories doesn't appear on redmine project page :/ I make an update with rake on plugin, but nothing changed.

reyman avatar Dec 10 '11 10:12 reyman

My solution was a total hack. I deleted the repo server side (Make sure the setting is to actually remove the repo when it's deleted) and then I would remake and repush my code from local side.

Hack... but it works.

It's not just that you can't see them the proper hooks for v.4 have to be made as well.

rposborne avatar Dec 13 '11 15:12 rposborne