[Git Repository Error] Git commits are showing in Activity but not in Repository
Added by 志岩 段 over 13 years ago
Hi Guys,
I'm setting up a site with Redmine and Git.
I installed Redmine according to the installation manual and it is now up and running fine with Apache2 and passenger.
The problem I've got here is, when I assign a Git repo to a project, I can not browse the repo under the Repository tab. I've tried the following:
- Check the GIT_BIN variable in lib/redmine/scm/adapters/git_adapter.rb and make sure it points to the correct Git binary (it's pointing to /usr/bin/git, that's correct)
- Check the repo is readable by the user which runs Redmine ( I've chmod the repo to 777 )
- Make sure the repo is a bare one ( I created a bare repo for testing purpose )
After confirmed all above, it is still not working.
Then I tried to run this command :
ruby script/runner "Repository.fetch_changesets" -e production
After running this command, the commits are showing in the Activity tab, but I still can not browse the repo under Repository tab. The error message remains:
The entry or revision was not found in the repository.
I've checked the log/production.log, but nothing is recorded except the init message:
# Logfile created on Mon Apr 11 15:19:55 +0800 2011
I'm wondering if anyone has experienced the same problem? What can I do to solve it or what should I do so that I can find more information on it to help investigate?
Replies (6)
RE: [Git Repository Error] Git commits are showing in Activity but not in Repository
-
Added by 志岩 段 over 13 years ago
Here is the system info:
OS : CentOS 5.5 DB : Mysql 5.0 Server : Apache2 with passenger
Here is the about info of my app:
About your application's environment Ruby version 1.8.7 (i686-linux) RubyGems version 1.3.5 Rack version 1.0 Rails version 2.3.5 Active Record version 2.3.5 Active Resource version 2.3.5 Action Mailer version 2.3.5 Active Support version 2.3.5 Edge Rails revision unknown Application root /var/www/html/redmine-1.1.2 Environment production Database adapter mysql Database schema version 20101114115359
RE: [Git Repository Error] Git commits are showing in Activity but not in Repository
-
Added by Felix Schäfer over 13 years ago
志岩 段 wrote:
I've checked the log/production.log, but nothing is recorded except the init message:
[…]
That might be related to your running the fetch commit job as root, the log is then created as root and the user running Redmine can't write to it. Make sure the user running redmine has write permissions to those folders and files therein: tmp
, log
, public/plugin_assets
and files
. Once you have done that, have a look at the logs when you visit the repository tab. (also note: visiting the repository will per default make Redmine fetch commits for that repo).
RE: [Git Repository Error] Git commits are showing in Activity but not in Repository
-
Added by 志岩 段 over 13 years ago
Thank you, I'll do that and get back with more info.
Felix Schäfer wrote:
That might be related to your running the fetch commit job as root, the log is then created as root and the user running Redmine can't write to it. Make sure the user running redmine has write permissions to those folders and files therein:
tmp
,log
,public/plugin_assets
andfiles
. Once you have done that, have a look at the logs when you visit the repository tab. (also note: visiting the repository will per default make Redmine fetch commits for that repo).
RE: [Git Repository Error] Git commits are showing in Activity but not in Repository
-
Added by 志岩 段 over 13 years ago
I've chmod the production.log and it is now recording more info.
But It seems the log didn't provide some valuable info, it just gives a 404 Not Found error, with no detailed error message.
The log is something like this:
Parameters: {"action"=>"show", "id"=>"hoj", "controller"=>"repositories"}
Rendering template within layouts/base
Rendering common/error (404)
Completed in 52ms (View: 13, DB: 2) | 404 Not Found
Anyone can suggest what should I do next to find out more useful info to solve this?
RE: [Git Repository Error] Git commits are showing in Activity but not in Repository
-
Added by Felix Schäfer over 13 years ago
Do you maybe have an outdated plugin or some files from different versions of Redmine?
RE: [Git Repository Error] Git commits are showing in Activity but not in Repository
-
Added by Baraba Daraba over 13 years ago
Hi,
Did you manage to find solution for the problem. I'm experiencing exactly the same issue.
Any help is much appreciated!
Thanks!