ericpaulbishop / redmine_git_hosting

A ChiliProject/Redmine plugin which makes configuring your own git hosting easy.
185 stars 37 forks source link

Error with sudo access #129

Open reyman opened 12 years ago

reyman commented 12 years ago

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

rposborne commented 12 years ago

Ditto

rposborne commented 12 years ago

Fixed!

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

Did it for me.

reyman commented 12 years ago

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

rposborne commented 12 years ago

Delete the tmp file

rm -r -f /tmp/redmine_git_hosting

I think that's the right file.

reyman commented 12 years ago

Thanks, that works :)

reyman commented 12 years ago

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.

rposborne commented 12 years ago

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.