Closed vikash closed 11 years ago
There seems to be a problem with your private key. Can redmine access the admin private key? Can you manually clone the gitolite-admin repo?
@vikash, can you tell me some additional details?
First, please run ./script/about and tell me that the output is. For instance, if you are using bash:
prompt% cd your/redmine/directory
prompt% export RAILS_ENV=production
prompt% ./script/about
Also, which version of gitolite are you using?
Second, this problem sounds like a configuration issue. When you say "settings page doesn't work if gitolite settings altered", does this mean that it does work otherwise? For instance, have you tried creating a project? Does it create a repository in the gitolite repository?
Can you send me more of your log?
Incidentally, one possibility is what @greizgh suggests, i.e. that your gitolite configuration is not correctly set up. Did you create a new key as described in the README, put it in REDMINE_ROOT/.ssh, and put the proper file names in the settings page? [ Subsection (4) of the step-by-step configuration instructions]
Also, I wonder if you read/followed the README section on the bin directory [ Subsection (8) of the step-by-step configuration instructions]. It looks like the bin directory is getting recreated (which shouldn't happen too frequently). Have you tried creating the scripts explicitly? (i.e. perhaps REDMINE_ROOT/venor/plugins/redmine_git_hosting/bin is not writeable by the plugin?)
@vikash, are you still there? I'm going to close this bug out if I haven't heard from you soon...
(incidentally, you want to update to the latest master commit if still working on Redmine 1.3).
@vikash, I'm closing out this bug. If you still have problems, you can reopen it.
Sorry for abandoning the ship and giving up on the settings page earlier. I upgraded to 0.5.1x today. Now this problem looks fixed partially. As the "/settings" page is getting displayed now. However, there is a red symbol in front of the git - just before "/usr/share/redmine/vendor/plugins/redmine_git_hosting/bin/run_git_as_git_user".
Here is my application environment:
Ruby version 1.8.7 (x86_64-linux) RubyGems version 1.8.15 Rack version 1.3 Rails version 2.3.14 Active Record version 2.3.14 Active Resource version 2.3.14 Action Mailer version 2.3.14 Active Support version 2.3.14 Edge Rails revision unknown Application root /usr/share/redmine Environment production Database adapter mysql Database schema version 20120904060609
About your Redmine plugins Redmine Git Hosting Plugin 0.5.1x
On the project repository page, I get "Repository is empty. Get started by following the instructions below." On the plugin configuration page, 'Git user is able to sudo to Web user' and 'Web user is able to sudo to Git user' is all green.
What can be the reason?
I'm not sure I understand. Where is the red symbol on the settings page? (I don't understand the statement "in front of the git").
I was talking about this page. But, it got fixed after restart.
Does this mean that everything is working now?
Looks like it. Thanks.
Ok. I'm going to close the bug again.
This is the error I am getting:
Even after I reverted everything to pre-plugin state, deleted of /tmp/redmine_git_hosting - this does not work. What kind of 'human intervention' is required?
(Thanks a lot for entertaining the queries and fixing them with lightning speed)