Project

General

Profile

Subversion error: The entry or revision was not found in the repository.

Added by Fernando Souza over 15 years ago

I'm getting this error when trying to browse the subversion repo:
"The entry or revision was not found in the repository."

As you can see in the log below, the whole request spends about 0.3sec, however if I try manually:
svn list --xml 'http://svn-repo:8080/svn.pi/nf-e/trunk//'@HEAD --username 'fernandos' --password 'svn-passwd'
the svn host spends at least 0.3sec but even more.

Since I don't have control over the svn repo, is there a way to make redmine wait the proper time until the svn-repo
response?

Processing RepositoriesController#show (for ..**.*** at 2009-06-03 10:12:21) [GET]
Session ID: 7802cdf4dc97021da24a7b8e72c61ebb
Parameters: {"action"=>"show", "id"=>"nf-e", "controller"=>"repositories"}
SQL (0.000225) SELECT max(`settings`.updated_on) AS max_updated_on FROM `settings`
User Load (0.000227) SELECT * FROM `users` WHERE (`users`.`id` = 2) AND (users.status = 1)
Project Load (0.000245) SELECT * FROM `projects` WHERE (`projects`.`identifier` = 'nf-e') LIMIT 1
Repository Load (0.000207) SELECT * FROM `repositories` WHERE (`repositories`.project_id = 1) LIMIT 1
EnabledModule Load (0.000179) SELECT * FROM `enabled_modules` WHERE (`enabled_modules`.project_id = 1)
Shelling out: svn info --xml 'http://svn-repo:8080/svn.pi/nf-e/trunk//' --username 'fernandos'
--password 'svn-passwd'
Shelling out: svn list --xml 'http://svn-repo:8080/svn.pi/nf-e/trunk//'@HEAD --username 'fernandos'
--password 'svn-passwd'
Changeset Load (0.000296) SELECT * FROM `changesets` WHERE (`changesets`.repository_id = 1) ORDER BY committed_on
DESC, changesets.committed_on DESC, changesets.id DESC LIMIT 10
Rendering template within layouts/base
Rendering repositories/show
UserPreference Load (0.000200) SELECT * FROM `user_preferences` WHERE (`user_preferences`.user_id = 2) LIMIT 1
Rendered repositories/_revisions (0.00424)
Token Load (0.000186) SELECT * FROM `tokens` WHERE (`tokens`.user_id = 2 AND (action='feeds')) LIMIT 1
SQL (0.000191) SELECT count(DISTINCT `members`.id) AS count_all FROM `members` LEFT OUTER JOIN `projects` ON
`projects`.id = `members`.project_id LEFT OUTER JOIN `roles` ON `roles`.id = `members`.role_id WHERE (`members`.user_id = 2 AND (projects.status=1))
Project Load Including Associations (0.000306) SELECT `projects`.`id` AS t0_r0, `projects`.`name` AS t0_r1,
`projects`.`description` AS t0_r2, `projects`.`homepage` AS t0_r3, `projects`.`is_public` AS t0_r4, `projects`.
`parent_id` AS t0_r5, `projects`.`projects_count` AS t0_r6, `projects`.`created_on` AS t0_r7, `projects`.`updated_on`
AS t0_r8, `projects`.`identifier` AS t0_r9, `projects`.`status` AS t0_r10, `parents_projects`.`id` AS t1_r0,
`parents_projects`.`name` AS t1_r1, `parents_projects`.`description` AS t1_r2, `parents_projects`.`homepage` AS t1_r3,
`parents_projects`.`is_public` AS t1_r4, `parents_projects`.`parent_id` AS t1_r5, `parents_projects`.`projects_count`
AS t1_r6, `parents_projects`.`created_on` AS t1_r7, `parents_projects`.`updated_on` AS t1_r8, `parents_projects`.
`identifier` AS t1_r9, `parents_projects`.`status` AS t1_r10 FROM `projects` LEFT OUTER JOIN `projects` parents_projects
ON `parents_projects`.id = `projects`.parent_id INNER JOIN members ON projects.id = members.project_id WHERE
((`members`.user_id = 2) AND ((projects.status=1)))
Rendered layouts/_project_selector (0.00211)
SQL (0.000162) SELECT count() AS count_all FROM `versions` WHERE (`versions`.project_id = 1)
SQL (0.000207) SELECT count(
) AS count_all FROM `boards` WHERE (`boards`.project_id = 1)
Completed in 0.03327 (30 reqs/sec) | Rendering: 0.01341 (40%) | DB: 0.00263 (7%) | 200 OK
[http://my-host/pro/repositories/show/nf-e]


Replies (2)

RE: Subversion error: The entry or revision was not found in the repository. - Added by Joe Clarke over 15 years ago

Normally when I see this error it is due to the fact that rails can't find the svn command.

Try adding the following to your environment.rb:
ENV['PATH'] = "#{ENV['PATH']}:/usr/local/bin"

Also, double check that you have entered in the correct username and password. You can also change the log level in the environment.rb to debug and see if any other errors are returned.

RE: Subversion error: The entry or revision was not found in the repository. - Added by Fernando Souza over 15 years ago

Joe, I did exactly what you said and it's working fine now! Thank you!

    (1-2/2)