Upgrade to 1.2.1 and getting page not found
Added by Russell Rose almost 13 years ago
Hi there
I have just upgraded to 1.2.1 from 0.93 and I am getting a page not found error.
I followed the upgrade path in the wiki. This included copying the following files:
database.yml, email.yml (added to configuration.yml) and also modified the environment.rb file to include the line:
Redmine::Utils::relative_url_root = "/proglog"
if I go to http://passfield.net:8080/proglog/login, the login page appears, but when I log in I get an internal error.
If I go to http://passfield.net:8080/proglog I get page not found.
Production.log gives the following info for login error:
Processing AccountController#login (for 95.147.75.39 at 2011-10-27 19:24:49) [POST]
Parameters: {"action"=>"login", "authenticity_token"=>"69OEorDJLhqIRIBSueKqw10b3w0+Z44qo4htOnSBG34=", "username"=>"xxxxxxx", "controller"=>"account", "password"=>"[FILTERED]", "login"=>"Login \302\273"}
NoMethodError (undefined method `destroy' for {}:Hash):
app/controllers/application_controller.rb:92:in `logged_user='
app/controllers/account_controller.rb:203:in `successful_authentication'
app/controllers/account_controller.rb:155:in `password_authentication'
app/controllers/account_controller.rb:142:in `authenticate_user'
app/controllers/account_controller.rb:30:in `login'
Rendering C:/Webserver/railsapps/redmine-1.2.1/public/500.html (500 Internal Server Error)
and the following for page not found:
Processing WelcomeController#index (for 95.147.75.39 at 2011-10-27 19:26:09) [GET]
Parameters: {"action"=>"index", "controller"=>"welcome"}
Redirected to http://passfield.net:8080/proglog/login?back_url=http%3A%2F%2Fpassfield.net%3A8080%2Fproglog%2F
Filter chain halted as [:check_if_login_required] rendered_or_redirected.
Completed in 7ms (DB: 1) | 302 Found [http://passfield.net/]
Replies (3)
RE: Upgrade to 1.2.1 and getting page not found
-
Added by Russell Rose almost 13 years ago
I have now installed the patches:
rails_6440_patch.rb and patch_for_mongrel.rb and I now get different errors.
On http://passfield.net:8080/proglog I get a blank page
and when I use the login page I get 'Internet Explorer cannot display the page'
production.log gives me:
Processing WelcomeController#index (for 95.147.75.39 at 2011-10-27 20:39:27) [GET]
Parameters: {"action"=>"index", "controller"=>"welcome"}
Redirected to http://passfield.net:8080/proglog/login?back_url=http%3A%2F%2Fpassfield.net%3A8080%2Fproglog%2F
Filter chain halted as [:check_if_login_required] rendered_or_redirected.
Completed in 37ms (DB: 30) | 302 Found [http://passfield.net/]
Processing WelcomeController#index (for 95.147.75.39 at 2011-10-27 20:39:34) [GET]
Parameters: {"action"=>"index", "controller"=>"welcome"}
Redirected to http://passfield.net:8080/proglog/login?back_url=http%3A%2F%2Fpassfield.net%3A8080%2Fproglog%2F
Filter chain halted as [:check_if_login_required] rendered_or_redirected.
Completed in 52ms (DB: 43) | 302 Found [http://passfield.net/]
Processing AccountController#login (for 95.147.75.39 at 2011-10-27 20:39:43) [GET]
Parameters: {"action"=>"login", "controller"=>"account"}
Rendering template within layouts/base
Rendering account/login
Completed in 600ms (View: 504, DB: 87) | 200 OK [http://passfield.net/login]
Processing AccountController#login (for 95.147.75.39 at 2011-10-27 20:39:49) [POST]
Parameters: {"action"=>"login", "authenticity_token"=>"BBDb9vAXMxptNb/mW93RkptJjXv+0p5/TNCA9PFYGK4=", "username"=>"xxxxxx", "controller"=>"account", "password"=>"[FILTERED]", "login"=>"Login \302\273"}
Redirected to http://passfield.net:8080/proglog/my/page
Completed in 500ms (DB: 53) | 302 Found [http://passfield.net/login]
Processing AccountController#login (for 95.147.75.39 at 2011-10-27 20:40:02) [POST]
Parameters: {"action"=>"login", "authenticity_token"=>"BBDb9vAXMxptNb/mW93RkptJjXv+0p5/TNCA9PFYGK4=", "username"=>"xxxxxx", "controller"=>"account", "password"=>"[FILTERED]", "login"=>"Login \302\273"}
Redirected to http://passfield.net:8080/proglog/my/page
Completed in 175ms (DB: 81) | 302 Found [http://passfield.net/login]
RE: Upgrade to 1.2.1 and getting page not found
-
Added by Mischa The Evil almost 13 years ago
What server are you running? Mongrel? Where do the two patches come from and what do they do? Any plugins?
RE: Upgrade to 1.2.1 and getting page not found
-
Added by Russell Rose almost 13 years ago
I am running on Windows Server using Apache and MySQL. The patches are:
http://www.redmine.org/attachments/6146/rails_6440_patch.rb
http://www.redmine.org/attachments/4699/patch_for_mongrel.rb
taken because of: http://www.redmine.org/issues/7857
- LOCAL GEMS ***
actionmailer (2.3.11)
actionpack (2.3.11)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (2.3.11)
cgi_multipart_eof_fix (2.5.0)
gem_plugin (0.2.3)
i18n (0.4.2)
mongrel (1.1.5)
mongrel_service (0.3.4)
mysql (2.8.1)
rack (1.1.1)
rails (2.3.11)
rake (0.8.7)
win32-service (0.5.2)
The only additional plugin is the Redmine Stealth plugin which I have tried not including