ubuntu 10.10 64bits install redmine can't start server
Added by SHEN LAN about 12 years ago
error:
An error occurred on the page you were trying to access. If you continue to experience problems please contact your Redmine administrator for assistance. If you are the Redmine administrator, check your log files for details about the error. Back
server cli:
root@AY1207251006134401117:/var/www/redmine-2.0.3# ruby script/rails server -p 8080 -e production => Booting WEBrick => Rails 3.2.6 application starting in production on http://0.0.0.0:8080 => Call with -d to detach => Ctrl-C to shutdown server [2012-08-30 00:15:39] INFO WEBrick 1.3.1 [2012-08-30 00:15:39] INFO ruby 1.8.7 (2010-06-23) [x86_64-linux] [2012-08-30 00:15:39] INFO WEBrick::HTTPServer#start: pid=5174 port=8080 Started GET "/" for 182.48.111.221 at Thu Aug 30 00:15:45 +0800 2012 ArgumentError (A secret is required to generate an integrity hash for cookie session data. Use config.secret_token = "some secret phrase of at least 30 characters"in config/initializers/secret_token.rb): actionpack (3.2.6) lib/action_dispatch/middleware/cookies.rb:316:in `ensure_secret_secure' actionpack (3.2.6) lib/action_dispatch/middleware/cookies.rb:281:in `initialize' actionpack (3.2.6) lib/action_dispatch/middleware/cookies.rb:228:in `new' actionpack (3.2.6) lib/action_dispatch/middleware/cookies.rb:228:in `signed' actionpack (3.2.6) lib/action_dispatch/middleware/session/cookie_store.rb:53:in `unpacked_cookie_data' actionpack (3.2.6) lib/action_dispatch/middleware/session/abstract_store.rb:55:in `stale_session_check!' actionpack (3.2.6) lib/action_dispatch/middleware/session/cookie_store.rb:51:in `unpacked_cookie_data' rack (1.4.1) lib/rack/session/cookie.rb:98:in `extract_session_id' actionpack (3.2.6) lib/action_dispatch/middleware/session/abstract_store.rb:51:in `extract_session_id' actionpack (3.2.6) lib/action_dispatch/middleware/session/abstract_store.rb:55:in `stale_session_check!' actionpack (3.2.6) lib/action_dispatch/middleware/session/abstract_store.rb:51:in `extract_session_id' rack (1.4.1) lib/rack/session/abstract/id.rb:43:in `send' rack (1.4.1) lib/rack/session/abstract/id.rb:43:in `load_session_id!' rack (1.4.1) lib/rack/session/abstract/id.rb:32:in `[]' rack (1.4.1) lib/rack/session/abstract/id.rb:262:in `current_session_id' rack (1.4.1) lib/rack/session/abstract/id.rb:268:in `session_exists?' rack (1.4.1) lib/rack/session/abstract/id.rb:107:in `send' rack (1.4.1) lib/rack/session/abstract/id.rb:107:in `exists?' rack (1.4.1) lib/rack/session/abstract/id.rb:122:in `load_for_read!' rack (1.4.1) lib/rack/session/abstract/id.rb:64:in `key?' actionpack (3.2.6) lib/action_dispatch/middleware/flash.rb:258:in `call' rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context' rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call' actionpack (3.2.6) lib/action_dispatch/middleware/cookies.rb:338:in `call' activerecord (3.2.6) lib/active_record/query_cache.rb:64:in `call' activerecord (3.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in `call' actionpack (3.2.6) lib/action_dispatch/middleware/callbacks.rb:28:in `call' activesupport (3.2.6) lib/active_support/callbacks.rb:405:in `_run__1542099594__call__4__callbacks' activesupport (3.2.6) lib/active_support/callbacks.rb:405:in `send' activesupport (3.2.6) lib/active_support/callbacks.rb:405:in `__run_callback' activesupport (3.2.6) lib/active_support/callbacks.rb:385:in `_run_call_callbacks' activesupport (3.2.6) lib/active_support/callbacks.rb:81:in `send' activesupport (3.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (3.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (3.2.6) lib/action_dispatch/middleware/remote_ip.rb:31:in `call' actionpack (3.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call' actionpack (3.2.6) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' railties (3.2.6) lib/rails/rack/logger.rb:26:in `call_app' railties (3.2.6) lib/rails/rack/logger.rb:16:in `call' actionpack (3.2.6) lib/action_dispatch/middleware/request_id.rb:22:in `call' rack (1.4.1) lib/rack/methodoverride.rb:21:in `call' rack (1.4.1) lib/rack/runtime.rb:17:in `call' activesupport (3.2.6) lib/active_support/cache/strategy/local_cache.rb:72:in `call' rack (1.4.1) lib/rack/lock.rb:15:in `call' actionpack (3.2.6) lib/action_dispatch/middleware/static.rb:62:in `call' rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward' rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup' rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!' rack-cache (1.2) lib/rack/cache/context.rb:51:in `call' railties (3.2.6) lib/rails/engine.rb:479:in `call' railties (3.2.6) lib/rails/application.rb:220:in `call' rack (1.4.1) lib/rack/content_length.rb:14:in `call' railties (3.2.6) lib/rails/rack/log_tailer.rb:17:in `call' rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in `start' /usr/lib/ruby/1.8/webrick/server.rb:92:in `each' /usr/lib/ruby/1.8/webrick/server.rb:92:in `start' /usr/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/lib/ruby/1.8/webrick/server.rb:82:in `start' rack (1.4.1) lib/rack/handler/webrick.rb:13:in `run' rack (1.4.1) lib/rack/server.rb:265:in `start' railties (3.2.6) lib/rails/commands/server.rb:70:in `start' railties (3.2.6) lib/rails/commands.rb:55 railties (3.2.6) lib/rails/commands.rb:50:in `tap' railties (3.2.6) lib/rails/commands.rb:50 script/rails:6:in `require' script/rails:6
Replies (1)
RE: ubuntu 10.10 64bits install redmine can't start server
-
Added by Viktor Ketipov almost 12 years ago
Had the same issue. Generated secret token (again).
sudo rake generate_secret_token