Defect #11837
closedMigrating from 1.2 to 2.1 (stable branch)
0%
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
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.
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.
Updated by Sepp _ about 12 years ago
hint: I found out that he won't read tickets with resolution="Cant reproduce"...
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.
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.