Project

General

Profile

Login on 2.5.1.stable, but Internal error just after...

Added by Marc-Henri Pamiseux about 9 years ago

Hi,

Here is my problem :
--------------------
I can connect to a fresh redmine installation on Debian GNU/Linux 7.8 (wheezy) but immediatly after, i've got an Internal error.

Here is my environment :
------------------------

/usr/share/redmine$ RAILS_ENV=production script/about
SECURITY WARNING: No secret option provided to Rack::Session::Cookie.
This poses a security threat. It is strongly recommended that you
provide a secret to prevent exploits that may be possible from crafted
cookies. This will not be supported in future versions of Rack, and
future versions will even invalidate your existing user cookies.
.
Called from: /usr/lib/ruby/vendor_ruby/action_dispatch/middleware/session/abstract_store.rb:28:in `initialize'.
.
.
sh: 1: darcs: not found
sh: 1: hg: not found
sh: 1: bzr: not found
Environment:
Redmine version 2.5.1.stable
Ruby version 1.9.3-p194 (2012-04-20) [i486-linux]
Rails version 3.2.6
Environment production
Database adapter SQLite
SCM:
Subversion 1.8.10
Cvs 1.12.13
Git 1.9.1
Filesystem
Redmine plugins:
no plugin installed

Here is my OS :
---------------

/usr/share/redmine$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.8 (wheezy)
Release: 7.8
Codename: wheezy
/usr/share/redmine$ uname -a
Linux support 2.6.32-32-pve #1 SMP Thu Aug 21 08:50:19 CEST 2014 i686 GNU/Linux

Here are the log :
------------------

Started POST "/projets/login" for 123.45.67.89 at 2015-01-10 18:34:36 +0100
Processing by AccountController#login as HTML
Parameters: {"utf8"=>"✓","authenticity_token"=>"BI1ZG4ACCYJazEr2NDmQjtdzbVtTgC1pa4DQiqx7DYH=", "back_url"=>"http://www.example.com/projets/", "username"=>"marcori", "password"=>"[FILTERED]", "login"=>"Connexion »"}
Current user: anonymous
Successful authentication for 'marcori' from 123.45.67.89 at 2015-01-10 17:34:36 UTC
Redirected to http://www.example.com/projets/
Completed 302 Found in 14.6ms (ActiveRecord: 1.7ms)
.
NoMethodError (undefined method `options' for {:user_id=>5, :ctime=>1420911276, :atime=>1420911276}:Hash):
rack (1.6.0) lib/rack/session/abstract/id.rb:329:in `commit_session'
rack (1.6.0) lib/rack/session/abstract/id.rb:226:in `context'
rack (1.6.0) lib/rack/session/abstract/id.rb:220:in `call'
/usr/lib/ruby/vendor_ruby/action_dispatch/middleware/cookies.rb:338:in `call'
/usr/lib/ruby/vendor_ruby/active_record/query_cache.rb:64:in `call'
. {...}
Here are my questions :
-----------------------
  • Where can i search the orgigin of this problem ?
  • As i am sure to have a valid authentication, what's the next step ?

Best regards,
Marcori


Replies (1)

RE: Login on 2.5.1.stable, but Internal error just after... - Added by Martin Denizet (redmine.org team member) about 9 years ago

Hello Marc-Henri,

Did you initialize your secret?
In Redmine's root:

rake generate_secret_token

I'm not sure it's your problem but it should get rid of the warning when you run RAILS_ENV=production script/about

Cheers,

    (1-1/1)