bborn/communityengine — Issue #36: Stack level too deep in production mode
Author: lorentrogers
Created: 2011-12-03 19:41:26+00:00
State: open

Hi all,

I've run across a strange situation in Ubuntu 11.10. Whenever I run CE in debug mode, it works just fine. But when I switch over to production mode, it throws an error on every page:

Started GET "/" for 127.0.0.1 at Sat Dec 03 00:40:01 -0500 2011
Processing by BaseController#site_index as HTML
Completed 500 Internal Server Error in 13ms

SystemStackError (stack level too deep):

I even get this error on a fresh install. I'm using rails 3.1.2, ruby 1.8.7, and gem 1.8.11.
Here's a full stack trace:

activesupport (3.1.2) lib/active_support/core_ext/class/attribute.rb:81:in `acts_as_authentic_config'
authlogic (3.1.0) lib/authlogic/session/foundation.rb:21:in `rw_config'
authlogic (3.1.0) lib/authlogic/session/foundation.rb:22:in `rw_config'
authlogic (3.1.0) lib/authlogic/session/password.rb:90:in `login_field'
authlogic (3.1.0) lib/authlogic/session/password.rb:213:in `login_field'
authlogic (3.1.0) lib/authlogic/session/password.rb:118:in `initialize'
authlogic (3.1.0) lib/authlogic/session/activation.rb:48:in `initialize'
authlogic (3.1.0) lib/authlogic/session/klass.rb:55:in `initialize'
authlogic (3.1.0) lib/authlogic/session/scopes.rb:79:in `initialize'
authlogic (3.1.0) lib/authlogic/session/persistence.rb:37:in `new'
authlogic (3.1.0) lib/authlogic/session/persistence.rb:37:in `find'
community_engine (2.0.0.beta2) lib/community_engine/authenticated_system.rb:57:in `current_user_session'
community_engine (2.0.0.beta2) lib/community_engine/authenticated_system.rb:20:in `current_user'
community_engine (2.0.0.beta2) lib/community_engine/authenticated_system.rb:14:in `logged_in?'
community_engine (2.0.0.beta2) app/controllers/base_controller.rb:18:in `cache_action?'
community_engine (2.0.0.beta2) app/controllers/base_controller.rb:15:in `_callback_around_131'
activesupport (3.1.2) lib/active_support/callbacks.rb:205:in `_conditional_callback_around_2580'
activesupport (3.1.2) lib/active_support/callbacks.rb:444:in `_run__398473761__process_action__407076457__callbacks'
activesupport (3.1.2) lib/active_support/callbacks.rb:207:in `_conditional_callback_around_2579'
community_engine (2.0.0.beta2) lib/community_engine/localized_application.rb:25:in `set_locale'
activesupport (3.1.2) lib/active_support/callbacks.rb:206:in `_conditional_callback_around_2579'
activesupport (3.1.2) lib/active_support/callbacks.rb:425:in `_run__398473761__process_action__407076457__callbacks'
activesupport (3.1.2) lib/active_support/callbacks.rb:386:in `send'
activesupport (3.1.2) lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
activesupport (3.1.2) lib/active_support/callbacks.rb:81:in `send'
activesupport (3.1.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.1.2) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.1.2) lib/action_controller/metal/rescue.rb:17:in `process_action'
actionpack (3.1.2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
activesupport (3.1.2) lib/active_support/notifications.rb:53:in `instrument'
activesupport (3.1.2) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.1.2) lib/active_support/notifications.rb:53:in `instrument'
actionpack (3.1.2) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.1.2) lib/action_controller/metal/params_wrapper.rb:201:in `process_action'
activerecord (3.1.2) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (3.1.2) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.1.2) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.1.2) lib/action_controller/metal.rb:193:in `dispatch'
actionpack (3.1.2) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.1.2) lib/action_controller/metal.rb:236:in `action'
actionpack (3.1.2) lib/action_dispatch/routing/route_set.rb:65:in `call'
actionpack (3.1.2) lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
actionpack (3.1.2) lib/action_dispatch/routing/route_set.rb:29:in `call'
rack-mount (0.8.3) lib/rack/mount/route_set.rb:152:in `call'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:96:in `recognize'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:75:in `optimized_each'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:95:in `recognize'
rack-mount (0.8.3) lib/rack/mount/route_set.rb:141:in `call'
actionpack (3.1.2) lib/action_dispatch/routing/route_set.rb:532:in `call'
rakismet (1.1.2) lib/rakismet/middleware.rb:10:in `call'
sass (3.1.11) lib/sass/./sass/plugin/rack.rb:54:in `call'
actionpack (3.1.2) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.3.5) lib/rack/etag.rb:23:in `call'
rack (1.3.5) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.1.2) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.1.2) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.1.2) lib/action_dispatch/middleware/flash.rb:247:in `call'
rack (1.3.5) lib/rack/session/abstract/id.rb:195:in `context'
rack (1.3.5) lib/rack/session/abstract/id.rb:190:in `call'
actionpack (3.1.2) lib/action_dispatch/middleware/cookies.rb:331:in `call'
activerecord (3.1.2) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.1.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call'
actionpack (3.1.2) lib/action_dispatch/middleware/callbacks.rb:29:in `call'
activesupport (3.1.2) lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
activesupport (3.1.2) lib/active_support/callbacks.rb:81:in `send'
activesupport (3.1.2) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.1.2) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
rack (1.3.5) lib/rack/sendfile.rb:101:in `call'
actionpack (3.1.2) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.1.2) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
railties (3.1.2) lib/rails/rack/logger.rb:13:in `call'
rack (1.3.5) lib/rack/methodoverride.rb:24:in `call'
rack (1.3.5) lib/rack/runtime.rb:17:in `call'
activesupport (3.1.2) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.3.5) lib/rack/lock.rb:15:in `call'
rack-cache (1.1) lib/rack/cache/context.rb:132:in `forward'
rack-cache (1.1) lib/rack/cache/context.rb:241:in `fetch'
rack-cache (1.1) lib/rack/cache/context.rb:181:in `lookup'
rack-cache (1.1) lib/rack/cache/context.rb:65:in `call!'
rack-cache (1.1) lib/rack/cache/context.rb:50:in `call'
railties (3.1.2) lib/rails/engine.rb:456:in `call'
rack (1.3.5) lib/rack/content_length.rb:14:in `call'
railties (3.1.2) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.3.5) 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.3.5) lib/rack/handler/webrick.rb:13:in `run'
rack (1.3.5) lib/rack/server.rb:265:in `start'
railties (3.1.2) lib/rails/commands/server.rb:70:in `start'
railties (3.1.2) lib/rails/commands.rb:54
railties (3.1.2) lib/rails/commands.rb:49:in `tap'
railties (3.1.2) lib/rails/commands.rb:49
script/rails:6:in `require'
script/rails:6