简体   繁体   中英

Rails Stack Level too deep

How can I get more information from an error like this?

=> Booting WEBrick
=> Rails 3.1.1 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
script/rails:6: stack level too deep (SystemStackError)

The error was only occurring in production.

When changing settings inside config/environments/production.rb , I found that setting config.cache_classes = false let me boot the app in production. Upon reviewing the commit I found the offending class.

I had created a model called Object which seemed to have interfered with the way caching works, likely overwriting a core ruby Object class.

It's a loop. To have more details of this, you et "config.log_level = :debug" in the config/environments/production.rb and restart your server

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM