Project

General

Profile

[Resolved] - Migrate 1.2.3 to 1.3.0 - Blank page

Added by Edouard POSTEL almost 13 years ago

Hi,
I tried migrate to the Redmine version 1.3.0.
So I upgraded Rails to version 2.3.14.

Change branch in svn (svn switch ...).
It is up to date.

For once against the stage of update done and restart mongrel (cluster), I was a blank page or the html code of my page (not executed at once) ..

In production.log :
Processing WelcomeController#index (for @IP at 2012-01-29 06:36:08) [GET]
Parameters: {"action"=>"index", "controller"=>"welcome"}
Redirected to http://172.21.60.18/login?back_url=http%3A%2F%2F172.21.60.18%2F
Filter chain halted as [:check_if_login_required] rendered_or_redirected.
Completed in 34ms (DB: 2) | 302 Found [@IP]

In mongrel.8000.log :
lun. janv. 30 21:13:11 +0100 2012: Error calling Dispatcher.dispatch #<NoMethodError: undefined method `[]' for nil:NilClass>
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/cgi.rb:108:in `send_cookies'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/cgi.rb:136:in `out'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/http_response.rb:65:in `start'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/cgi.rb:135:in `out'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:81:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:159:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `each'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:282:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `each'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
/usr/bin/mongrel_rails:19:in `load'
/usr/bin/mongrel_rails:19

Thanks for your help.

Edouard.


Replies (9)

RE: Migrate 1.2.3 to 1.3.0 - Blank page - Added by Etienne Massip almost 13 years ago

Mongrel requires some monkey patching with Rails 2.3.11+, please see RedmineInstall.

RE: Migrate 1.2.3 to 1.3.0 - Blank page - Added by Edouard POSTEL almost 13 years ago

Isn't patch in new version ?
I actually recall having done for version 1.2.1.

RE: Migrate 1.2.3 to 1.3.0 - Blank page - Added by Edouard POSTEL almost 13 years ago

In fact I already patched, as I had done for version 1.2.3 (and easily updated via svn switch).

RE: Migrate 1.2.3 to 1.3.0 - Blank page - Added by Etienne Massip almost 13 years ago

Default patch does not include Rails 2.3.14, might need some hand update?

RE: Migrate 1.2.3 to 1.3.0 - Blank page - Added by Edouard POSTEL almost 13 years ago

You mean it takes me to remove the patch at once?

Sorry for my english.. :)

RE: Migrate 1.2.3 to 1.3.0 - Blank page - Added by Etienne Massip almost 13 years ago

I mean that first line of the patch file is a enumeration of Rails versions that require patching, you might need to append 2.3.14 to this enumeration.

RE: Migrate 1.2.3 to 1.3.0 - Blank page - Added by Edouard POSTEL almost 13 years ago

A priori / usr/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/request.rb
The patch is placed (by default I guess).

the patch does contain these lines there:

def reset_session # Session May Be a hash, if so, we do not want to call destroy
Fixed issue # 6440
session and if session.destroy session.respond_to? (: destroy)
self.session = {}
end

RE: Migrate 1.2.3 to 1.3.0 - Blank page - Added by Etienne Massip almost 13 years ago

There must be another patch aside looking like this one.

RE: [Resolve] - Migrate 1.2.3 to 1.3.0 - Blank page - Added by Edouard POSTEL almost 13 years ago

it was this enum. I had forgotten this patch ...
Thank you, really :)

    (1-9/9)