ericpaulbishop / redmine_git_hosting

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

access denied errors #143

Open levelos opened 12 years ago

levelos commented 12 years ago

When using SSH protocol, I'm getting something along the lines of

W/R access for [repo name] DENIED to [redmine key name]

for any operation. Smart HTTP works great. I had this working and somewhere along the line it stopped and I'm completely stumped.

My configuration:

Any guidance or help would be much appreciated!

kubitron commented 12 years ago

If you hadn't tried my version of the plugin, I might have thought that your config file was out of date with redmine/Chili. With my version of the plugin, have your tried executing a "fetch_changesets" and looked at the resulting log file? The error messages are much clearer and perhaps will show what problems are occurring... If there is something weird there, I would suggest posting it here.

For instance, it is possible that Chili cannot clone the gitolite-admin repository because your .ssh/keys at the root of Chili have the wrong ownership/permissions. (the .ssh directory should be 700 or 500. The private key inside should be 400, public key can be 444).

Another potential problem is if you happened to do a fetch_changesets from the command line using rake and were root at the time (instead of www-data). This can cause problems with synchronizing data; you might try running my version, removing the /tmp/redmine_git_hosting files and execute a fetch_changesets operation correctly. That usually fixes things...

Simple things to verify -- make sure that the ssh link that you are pushing to (look in the .git/config file) matches the one shown at the top of the repository page.... If you moved the project into being a child of another project, it is possible that the path changed.

Simple summary -- use my version and see what error messages pop up with fetch_changesets...

levelos commented 12 years ago

Another potential problem is if you happened to do a fetch_changesets from the command line using rake and were root at the time (instead of www-data). This can cause problems with synchronizing data; you might try running my version, removing the /tmp/redmine_git_hosting files and execute a fetch_changesets operation correctly. That usually fixes things...

Thanks @kubitron. I think I did that at some point which may be my problem. I'm trying to run fetch_changesets() as www-data, but keep having various path not found issues (rake and ruby). Posted a similar question in your queue. Thanks.