ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

"The entry or revision was not found in the repository." error message

Added by Thibaut Cuvelier at 2011-05-11 02:44 pm

Hello,

I just tried upgrading to CP 1.3, after trying one month ago to get to CP 1.2, with exactly the same issue.

What am I doing? I'm installing a new CP installation following https://www.chiliproject.org/projects/chiliproject/wiki/Installation, then putting the right config files following https://www.chiliproject.org/projects/chiliproject/wiki/Upgrade (with database upgrade). I do not copy any other file (no new plugin or theme or anything else).

Then, I go to a project's homepage, to its Repository space... then find that annoying message:

The entry or revision was not found in the repository.

Then I come back to CP 1.1, and see everything working properly, i.e. showing the repo's contents. In the log, I could find there had been a 404 error, and that's...

What's wrong? I am using the same config file, and I did not see any documented change about it... Here is the full log (with :debug in configuration.rb):

# Logfile created on Wed May 11 16:42:51 +0200 2011  SQL (0.2ms)   SET NAMES 'utf8'
  SQL (0.2ms)   SET SQL_AUTO_IS_NULL=0
  SQL (0.2ms)   SET NAMES 'utf8'
  SQL (0.2ms)   SET SQL_AUTO_IS_NULL=0

Processing RepositoriesController#show (for 81.247.42.99 at 2011-05-11 16:42:53) [GET]
  Parameters: {"action"=>"show", "id"=>"castor3d", "controller"=>"repositories"}
  Setting Columns (0.5ms)   SHOW FIELDS FROM `settings`
  SQL (0.4ms)   SELECT max(`settings`.updated_on) AS max_updated_on FROM `settings` 
  User Columns (0.5ms)   SHOW FIELDS FROM `users`
  User Load (0.3ms)   SELECT * FROM `users` WHERE (`users`.`id` = 254882) AND (users.status = 1) AND ( (`users`.`type` = 'User' OR `users`.`type` = 'AnonymousUser' ) ) 
  Project Columns (0.5ms)   SHOW FIELDS FROM `projects`
  Project Load (0.4ms)   SELECT * FROM `projects` WHERE (`projects`.`identifier` = 'castor3d') LIMIT 1
  Repository Load (0.3ms)   SELECT * FROM `repositories` WHERE (`repositories`.project_id = 84) LIMIT 1
  Repository Columns (0.3ms)   SHOW FIELDS FROM `repositories`
  Repository::Subversion Columns (0.3ms)   SHOW FIELDS FROM `repositories`
  EnabledModule Load (0.2ms)   SELECT name FROM `enabled_modules` WHERE (`enabled_modules`.project_id = 84) 
  EnabledModule Columns (0.2ms)   SHOW FIELDS FROM `enabled_modules`
  Setting Load (0.2ms)   SELECT * FROM `settings` WHERE (`settings`.`name` = 'autofetch_changesets') LIMIT 1
Shelling out: '/usr/local/bin/svn --config-dir /home/www/redmine/config/svn' info --xml 'http://svn.com/projets/Castor3D/' --no-auth-cache --non-interactive
Shelling out: '/usr/local/bin/svn --config-dir /home/www/redmine/config/svn' list --xml 'http://svn.com/projets/Castor3D/'@HEAD --no-auth-cache --non-interactive
Error parsing svn output: undefined method `name' for nil:NilClass
Output was:

Rendering template within layouts/base
Rendering common/error (404)
  Setting Load (0.4ms)   SELECT * FROM `settings` WHERE (`settings`.`name` = 'app_title') LIMIT 1
  Setting Load (0.3ms)   SELECT * FROM `settings` WHERE (`settings`.`name` = 'ui_theme') LIMIT 1
  Setting Load (0.3ms)   SELECT * FROM `settings` WHERE (`settings`.`name` = 'text_formatting') LIMIT 1
  Project Load (0.3ms)   SELECT `projects`.* FROM `projects` INNER JOIN `members` ON `projects`.id = `members`.project_id WHERE ((`members`.user_id = 254882) AND ((projects.status=1))) 
  Project Load (0.3ms)   SELECT * FROM `projects` WHERE (projects.`lft` <= 19 AND projects.`rgt` >= 30) ORDER BY `lft` LIMIT 1
  CACHE (0.0ms)   SELECT * FROM `projects` WHERE (projects.`lft` <= 19 AND projects.`rgt` >= 30) ORDER BY `lft` LIMIT 1
  Version Columns (0.3ms)   SHOW FIELDS FROM `versions`
  SQL (0.3ms)   SELECT count(DISTINCT `versions`.id) AS count_all FROM `versions` LEFT OUTER JOIN `projects` ON `projects`.id = `versions`.project_id WHERE (projects.id = 84 OR (projects.status = 1 AND ( versions.sharing = 'system' OR (projects.lft >= 19 AND projects.rgt <= 30 AND versions.sharing = 'tree') OR (projects.lft < 19 AND projects.rgt > 30 AND versions.sharing IN ('hierarchy', 'descendants')) OR (projects.lft > 19 AND projects.rgt < 30 AND versions.sharing = 'hierarchy')))) 
  Wiki Load (0.3ms)   SELECT * FROM `wikis` WHERE (`wikis`.project_id = 84) LIMIT 1
  Board Columns (0.4ms)   SHOW FIELDS FROM `boards`
  SQL (0.3ms)   SELECT count(*) AS count_all FROM `boards` WHERE (`boards`.project_id = 84) 
Completed in 138ms (View: 30, DB: 7) | 404 Not Found [http://redmine.svn.com/projects/castor3d/repository]

Thanks!


Replies (8)

RE: "The entry or revision was not found in the repository." error message - Added by Muntek Singh at 2011-05-11 03:07 pm

You are getting a 404 when CP tries to grab your svn from where you have it set - http://redmine.svn.com/projects/castor3d/repository http://svn.com/projets/Castor3D

Check the repository settings so that the path/url is correct.

RE: "The entry or revision was not found in the repository." error message - Added by Thibaut Cuvelier at 2011-05-11 03:11 pm

Well, the same URL does work with 1.1 but not with 1.2 and 1.3... I can access it through my browser, and on the server with a svn co, I'm afraid this is not the origin of the problem...

RE: "The entry or revision was not found in the repository." error message - Added by Thibaut Cuvelier at 2011-05-17 03:07 pm

Just retried to reinstall completely ChiliProject (completely meaning that the only thing shared with the current installation is the server and the folder Apache is pointing to, new database - well, I used SQLite this time, not MySQL, that should not be too much... -, new Git export, no plugin), created a new project, copy-pasting an SVN URL in it, that did the trick... So the SVN executable is not to blame. Comparing the two repositories tables from each installation, they were exactly the same (I hope I would have got another error if the column did not exist; I was checking if the repo's column have not been changed between 1.1 and 1.2 and the migration did not play its role by renaming it, just creating a new empty column).

I tried to launch the script/about, but it just outputs errors (script/about RAILS_ENV=production):

/usr/lib64/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:589:in `real_connect': Access denied for user 'test_user'@'localhost' (using password: NO) (Mysql::Error)

What can I do?

RE: "The entry or revision was not found in the repository." error message - Added by Muntek Singh at 2011-05-18 12:18 am

This error is saying that the production environment is trying to connect to a mysql database and is unable to do so with the test_user credentials provided in the database configuration. Are you actually using sqlite or mysql? You need to adjust your configuration accordingly.

RE: "The entry or revision was not found in the repository." error message - Added by Thibaut Cuvelier at 2011-05-18 12:26 pm

In the newer installation, I'm using SQLite, and I don't experience the problem with this installation; on the current one, I'm using MySQL; the thing I just cannot understand is: why is CP working with the same configuration, why can I update my database in the very production environment, where as about outputs errors with the production environment... I'm using the same shell syntax for both calls from the same shell, what can go wrong?

RE: "The entry or revision was not found in the repository." error message - Added by Thibaut Cuvelier at 2011-05-28 08:05 pm

Too bad, I switched back to Redmine 1.1.3, everything working properly.

RE: "The entry or revision was not found in the repository." error message - Added by Thibaut Cuvelier at 2011-07-25 08:31 am

Just after trying to migrate to CP 2.0 following the guide https://www.chiliproject.org/projects/chiliproject/wiki/Upgrade with a Git installation, I still get the same problem. Is there anywhere I could get any bit of help?

RE: "The entry or revision was not found in the repository." error message - Added by Felix Schäfer at 2011-08-20 10:32 pm

Thibaut, was the error you have on CP 2.0 the one related to the DB or the one related to the repo? Was that on a clean install or an upgrade?

(1-8/8)