Project

General

Profile

Can't login - You are being redirected or Internal Error, redmine is running

Added by Alex Guzun almost 13 years ago

I was adding time tracking plugin, fired migration cmd.. plugin didn't worked so i removed it, fired migration, session clear and session + created session store, rebooted.

I was logged in as Admin and still can view redmine, some guys were logged out and now ther can't loging, after loging process they are getting You are being redirected. and nothing redirects. When i press the URL link i'm getting to home page and still not logged in :(

Processing AccountController#login (for 10.0.0.185 at 2012-01-16 11:26:39) [POST]
  Parameters: {"back_url"=>"http%3A%2F%2Fmercury.domain.com%3A3000%2F", "action"=>"login", "authenticity_token"=>"JrTzXAHDG9OpBhsZWNSU4ueZSGXlrs271pdJ/WtWQhk=", "username"=>"user1", "autologin"=>"1", "controller"=>"account", "password"=>"[FILTERED]", "login"=>"Login »"}
Redirected to http://mercury.domain.com:3000/
Completed in 126ms (DB: 32) | 302 Found [http://mercury.domain.com/login]

Some parts of the projects rendering as Internal Error

Processing ProjectsController#show (for 10.0.0.147 at 2012-01-16 11:26:58) [GET]
  Parameters: {"action"=>"show", "id"=>"nadcas", "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/show

ActionView::TemplateError (No route matches {:controller=>"redcase", :action=>"index", :project_id=>#<Project id: 51, name: "Nadcas", description: "", homepage: "", is_public: true, parent_id: 18, created_on: "2011-06-22 07:37:08", updated_on: "2011-06-22 07:37:08", identifier: "nadcas", status: 1, lft: 10, rgt: 11>}) on line #56 of app/views/layouts/base.html.erb:
53: 
54:     <% if display_main_menu?(@project) %>
55:     <div id="main-menu">
56:         <%= render_main_menu(@project) %>
57:     </div>
58:     <% end %>
59: </div>

    lib/redmine/menu_manager.rb:150:in `render_single_menu_node'
    lib/redmine/menu_manager.rb:102:in `render_menu_node'
    lib/redmine/menu_manager.rb:91:in `render_menu'
    lib/redmine/menu_manager.rb:168:in `menu_items_for'
    lib/redmine/menu_manager.rb:165:in `each'
    lib/redmine/menu_manager.rb:165:in `menu_items_for'
    lib/redmine/menu_manager.rb:90:in `render_menu'
    lib/redmine/menu_manager.rb:80:in `render_main_menu'
    app/views/layouts/base.html.erb:56
    app/controllers/projects_controller.rb:168:in `show'

Rendering c:/redmine/public/500.html (500 Internal Server Error)

Some are ok

Processing ProjectsController#show (for 10.0.0.147 at 2012-01-16 11:27:02) [GET]
  Parameters: {"action"=>"show", "id"=>"sign", "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/show
Completed in 386ms (View: 92, DB: 252) | 200 OK [http://mercury.domain.com/projects/sign]

and i can't logout.. it gives me redirect url and after pressing it i'm going to home page while still logged in.

Processing AccountController#logout (for 10.0.0.147 at 2012-01-16 11:27:07) [GET]
  Parameters: {"action"=>"logout", "controller"=>"account"}
Redirected to http://mercury.domain.com:3000/
Completed in 6ms (DB: 2) | 302 Found [http://mercury.domain.com/logout]

What is wrong? I remember i ahde something like this while back using 0.x version, but can't find it in archives of the forum.


Replies (8)

RE: Can't login - You are being redirected or Internal Error, redmine is running - Added by Alex Guzun almost 13 years ago

Forgot to post System info

Redmine 1.3.0.devel.8656 (MySQL)

C:\redmine>gem list

*** LOCAL GEMS ***

actionmailer (2.3.14)
actionpack (2.3.14)
activerecord (2.3.14)
activeresource (2.3.14)
activesupport (2.3.14)
cgi_multipart_eof_fix (2.5.0)
gem_plugin (0.2.3)
mongrel (1.1.5 x86-mingw32)
mongrel_service (0.4.0)
mysql (2.8.1 x86-mingw32)
rack (1.1.1)
rails (2.3.14)
rake (0.8.7)
rdoc (2.4.2)
rubygems-update (1.3.7)
win32-api (1.4.8 x86-mingw32)
win32-service (0.7.2 x86-mingw32)
windows-api (0.4.0)
windows-pr (1.2.1)

RE: Can't login - You are being redirected or Internal Error, redmine is running - Added by Alex Guzun almost 13 years ago

Strange thing is, i made a restore of redmine folder and mysql db dated one week ago and it still won't login
But if i enter wrong password, redmine check it and gives Wrong Password message

?

RE: Can't login - You are being redirected or Internal Error, redmine is running - Added by Etienne Massip almost 13 years ago

You should have errors in your mongrel log file in relation with what's pointed by RedmineInstall, Mongrel part.

RE: Can't login - You are being redirected or Internal Error, redmine is running - Added by Alex Guzun almost 13 years ago

Indeed :) this helped me to loging
http://www.redmine.org/attachments/6901/mongrel.rb

but some projects giving me Internal Error, when i logout i can see them (read only).
What else could it be, please?

RE: Can't login - You are being redirected or Internal Error, redmine is running - Added by Alex Guzun almost 13 years ago

Chrome gives me this instead of Internal Error

ActionController::RoutingError in Projects#show

Showing app/views/layouts/base.html.erb where line #56 raised:

No route matches {:controller=>"redcase", :project_id=>#<Project id: 51, name: "Nadcas", description: "", homepage: "", is_public: true, parent_id: 18, created_on: "2011-06-22 07:37:08", updated_on: "2011-06-22 07:37:08", identifier: "nadcas", status: 1, lft: 10, rgt: 11>, :action=>"index"}
Extracted source (around line #56):

53: 
54:     <% if display_main_menu?(@project) %>
55:     <div id="main-menu">
56:         <%= render_main_menu(@project) %>
57:     </div>
58:     <% end %>
59: </div>
RAILS_ROOT: c:/redmine

Application Trace | Framework Trace | Full Trace
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:420:in `generate'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/url_rewriter.rb:218:in `rewrite_path'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/url_rewriter.rb:197:in `rewrite_url'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/url_rewriter.rb:175:in `rewrite'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:625:in `url_for'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/url_helper.rb:85:in `send'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/url_helper.rb:85:in `url_for'
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view/helpers/url_helper.rb:228:in `link_to'
c:/redmine/lib/redmine/menu_manager.rb:150:in `render_single_menu_node'
c:/redmine/lib/redmine/menu_manager.rb:102:in `render_menu_node'
c:/redmine/lib/redmine/menu_manager.rb:91:in `render_menu'
c:/redmine/lib/redmine/menu_manager.rb:168:in `menu_items_for'
c:/redmine/lib/redmine/menu_manager.rb:165:in `each'
c:/redmine/lib/redmine/menu_manager.rb:165:in `menu_items_for'
c:/redmine/lib/redmine/menu_manager.rb:90:in `render_menu'
c:/redmine/lib/redmine/menu_manager.rb:80:in `render_main_menu'
c:/redmine/app/views/layouts/base.html.erb:56:in `_run_erb_app47views47layouts47base46html46erb'
c:/redmine/app/controllers/projects_controller.rb:168:in `show'
Request

Parameters:

{"id"=>"nadcas"}
Show session dump

Response

Headers:

{"Content-Type"=>"text/html",
 "Cache-Control"=>"no-cache"}

RE: Can't login - You are being redirected or Internal Error, redmine is running - Added by Etienne Massip almost 13 years ago

Looks like an issue with Redcase plugin, try without it?

RE: Can't login - You are being redirected or Internal Error, redmine is running - Added by Alex Guzun almost 13 years ago

Done :)
i think all is working now (i remember i deleted redcase long time ago :( )

Thank you a lot
Alex

    (1-8/8)