Project

General

Profile

Actions

Defect #11837

closed

Migrating from 1.2 to 2.1 (stable branch)

Added by Tony Georges about 12 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Cant reproduce
Affected version:

Description

Hi

Today I have try to migrate from 1.2 to 2.1 and I was quite lucky until I found that all our project files were inaccessible.

-> Project -> Files -> show :

Page not found

The page you were trying to access doesn't exist or has been removed.

Back

And in the log on the server side

Started GET "/projects/testfiles/files" for 88.167.71.116 at Sat Sep 15 15:47:02 +0200 2012
Processing by FilesController#index as HTML
Parameters: {"project_id"=>"testfiles"}
Completed 500 Internal Server Error in 11ms

ActiveRecord::RecordNotFound (Couldn't find Project with id=27):
app/models/project.rb:271:in `find'
app/controllers/files_controller.rb:34:in `index'

I reproduce it using a new project and old project.
I also found the same problem on 2.0 stable branch.

For the other stuff, all seem to be working.

Database : sqlite
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
rails 3.2.6

Thanks for your help

Actions #1

Updated by Jean-Philippe Lang about 12 years ago

  • Category deleted (Core Plugins)
  • Resolution set to Cant reproduce

There's no call to #find at app/models/project.rb:271 in current 2.1-stable.
Make sure you don't have local changes.

Actions #2

Updated by Tony Georges about 12 years ago

You're right, i send you the log for 2.0 stable (because I test both). Sorry.

Here is the log in 2.1-stable

Started GET "/projects/catmipad0/files" for 88.167.71.116 at Sat Sep 15 15:31:45 +0200 2012
Processing by FilesController#index as HTML
Parameters: {"project_id"=>"catmipad0"}
Current user: tgeorges (id=4)
Completed 500 Internal Server Error in 16ms

ActiveRecord::RecordNotFound (Couldn't find Project with id=12):
app/models/project.rb:272:in `find'
app/controllers/files_controller.rb:34:in `index'

It is line 272 in find method in project.rb (I just verify it on SVN)

Before installing redmine, I get the source from svn...and make no changes.

Actions #3

Updated by Sepp _ about 12 years ago

hint: I found out that he won't read tickets with resolution="Cant reproduce"...

Actions #4

Updated by Etienne Massip about 12 years ago

Tony Georges wrote:

You're right, i send you the log for 2.0 stable (because I test both). Sorry.

Here is the log in 2.1-stable

Which revision? Because latest in branch still does match, the error in log is raised by line 269: source:/branches/2.1-stable/app/models/project.rb#L269.

Actions #5

Updated by Yannick Recht about 12 years ago

Dear Tony,

I had a similar problem during a migration from Redmine 1.2.1 to 2.1.2. It seems that it was coming from some outdated plugins. On my side it was coming from the PluginGraphs.

I have solved the problem by doing the migration again but without PluginGraphs.

I hope this will help you.

Actions #6

Updated by Go MAEDA about 6 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF