Project

General

Profile

Repository - 404 Entry or Revision not found; Entries are shown under "Activity"

Added by Jan Thurau over 12 years ago

Hi,

I'm using redmine 1.3.0stable with mysql @ debian squeeze.

I've configured my project to use a git repository with a local checkout of the branch master. The commits are well shown under "Activity" in my project, but if I try to diff a commit or go directly to the repository, I get 404: The entry or revision was not found in the repository.

I configured redmine as follows:
SCM: git
Path to repository: /path_to_checked_out_repo/.git

My production.log says this:

Processing RepositoriesController#show (for 94.23.165.3 at 2011-12-21 23:23:40) [GET]
Parameters: {"action"=>"show", "id"=>"v2", "controller"=>"repositories"}
Rendering template within layouts/base
Rendering common/error (404)
Completed in 371ms (View: 254, DB: 20) | 404 Not Found [http://XXXXX/projects/XX/repository]

I already tried to truncate these tables: changes,changeset_parents,changesets,changesets_issues
and I executed this: /usr/bin/ruby1.8 script/runner "Repository.fetch_changesets" -e production
a few times, but always the same result.

If I try to view a specifiy file, I get the same:
http://XXXX/projects/XX/repository/revisions/5f604b4fb61da5f338b51a38901307895fd1f557/entry/XX/....

Processing RepositoriesController#entry (for 94.23.165.3 at 2011-12-21 23:25:39) [GET]
Parameters: {"rev"=>"5f604b4fb61da5f338b51a38901307895fd1f557", "action"=>"entry", "id"=>"v2", "path"=>["XX", "XX", "XX", "XX", "XX", "XX.tpl"], "controller"=>"repositories"}
Rendering template within layouts/base
Rendering common/error (404)
Completed in 91ms (View: 30, DB: 2) | 404 Not Found [http://XXXX/projects/v2XXrepository/revisions/5f604b4fb61da5f338b51a38901307895fd1f557/entry/XX/XX/XX/XX.tpl]

In the console, git show 5f604b4fb61da5f338b51a38901307895fd1f557 shows the revision.

Is there any possibility to get a more exactly error why it fails or do you have any idea of what I could try?

*:**# RAILS_ENV=production script/about
About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.4.1
Rack version 1.1.2
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 /home/
*****
Environment production
Database adapter mysql
Database schema version 20110902000000