Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.2.0.beta2 doesnt load in dev mode. #31313

Closed
XenorPLxx opened this issue Dec 2, 2017 · 2 comments
Closed

5.2.0.beta2 doesnt load in dev mode. #31313

XenorPLxx opened this issue Dec 2, 2017 · 2 comments

Comments

@XenorPLxx
Copy link

XenorPLxx commented Dec 2, 2017

Steps to reproduce

I've just upgraged project to 5.2.0.beta2 and it doesn't work in dev mode.

I sincerely don't have a clue where to start my investigation, but I think it's connected somehow to assets - it works fine in production configuration with precompiled assets.

I tried setting config.assets.debug = false for development, but it didn't work either.

My sidekiq jobs work correctly in dev mode.

Expected behavior

Something should load.

Actual behavior

Application explodes with stack overflow.

System configuration

Rails version: 5.2.0.beta2 / master@4c4d092

Ruby version: 4.2.1

Stacktrace:

14:17:58 rails.1       | Cannot render console from 192.168.2.7! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
14:17:58 rails.1       |    (0.5ms)  SET NAMES utf8,  @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'),  @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483
14:17:58 rails.1       |    (1.0ms)  SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
14:17:58 rails.1       | Processing by MainController#application as HTML
14:17:58 rails.1       | Redirected to http://192.168.2.7:3000/login
14:17:58 rails.1       | Filter chain halted as :authorize rendered or redirected
14:17:58 rails.1       | Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
14:17:58 rails.1       |
14:17:58 rails.1       |
14:17:58 rails.1       |
14:17:58 rails.1       | SystemStackError (stack level too deep):
14:17:58 rails.1       |
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:152:in `initialize_copy'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:152:in `initialize_dup'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:152:in `dup'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:152:in `block in as_json'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:152:in `map'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:152:in `as_json'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:171:in `block in as_json'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:171:in `each'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:171:in `map'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:171:in `as_json'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:171:in `block in as_json'
[REPEATING LOG CUT OUT HERE]
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:152:in `map'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:152:in `as_json'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:152:in `block in as_json'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:152:in `map'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:152:in `as_json'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:134:in `as_json'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/json/encoding.rb:35:in `encode'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/json/encoding.rb:22:in `encode'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/core_ext/object/json.rb:41:in `to_json'
14:17:58 rails.1       | meta_request (0.4.3) lib/meta_request/event.rb:38:in `block in json_encodable'
14:17:58 rails.1       | meta_request (0.4.3) lib/meta_request/event.rb:58:in `block in transform_hash'
14:17:58 rails.1       | meta_request (0.4.3) lib/meta_request/event.rb:52:in `each'
14:17:58 rails.1       | meta_request (0.4.3) lib/meta_request/event.rb:52:in `inject'
14:17:58 rails.1       | meta_request (0.4.3) lib/meta_request/event.rb:52:in `transform_hash'
14:17:58 rails.1       | meta_request (0.4.3) lib/meta_request/event.rb:36:in `json_encodable'
14:17:58 rails.1       | meta_request (0.4.3) lib/meta_request/event.rb:13:in `initialize'
14:17:58 rails.1       | meta_request (0.4.3) lib/meta_request/app_notifications.rb:56:in `new'
14:17:58 rails.1       | meta_request (0.4.3) lib/meta_request/app_notifications.rb:56:in `block in subscribe'
14:17:58 rails.1       | meta_request (0.4.3) lib/meta_request/app_notifications.rb:68:in `block in subscribe'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/notifications/fanout.rb:129:in `finish'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/notifications/fanout.rb:48:in `block in finish'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/notifications/fanout.rb:48:in `each'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/notifications/fanout.rb:48:in `finish'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/notifications/instrumenter.rb:44:in `finish_with_state'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/notifications/instrumenter.rb:29:in `instrument'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/notifications.rb:168:in `instrument'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_controller/metal/instrumentation.rb:32:in `process_action'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
14:17:58 rails.1       | activerecord (5.2.0.beta2) lib/active_record/railties/controller_runtime.rb:24:in `process_action'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/abstract_controller/base.rb:134:in `process'
14:17:58 rails.1       | actionview (5.2.0.beta2) lib/action_view/rendering.rb:32:in `process'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_controller/metal.rb:191:in `dispatch'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_controller/metal.rb:254:in `dispatch'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/routing/route_set.rb:34:in `serve'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/journey/router.rb:52:in `block in serve'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/journey/router.rb:35:in `each'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/journey/router.rb:35:in `serve'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/routing/route_set.rb:830:in `call'
14:17:58 rails.1       | meta_request (0.4.3) lib/meta_request/middlewares/app_request_handler.rb:13:in `call'
14:17:58 rails.1       | meta_request (0.4.3) lib/meta_request/middlewares/meta_request_handler.rb:13:in `call'
14:17:58 rails.1       | rack (2.0.3) lib/rack/etag.rb:25:in `call'
14:17:58 rails.1       | rack (2.0.3) lib/rack/conditional_get.rb:25:in `call'
14:17:58 rails.1       | rack (2.0.3) lib/rack/head.rb:12:in `call'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/http/content_security_policy.rb:16:in `call'
14:17:58 rails.1       | rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context'
14:17:58 rails.1       | rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/middleware/cookies.rb:663:in `call'
14:17:58 rails.1       | activerecord (5.2.0.beta2) lib/active_record/migration.rb:558:in `call'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/callbacks.rb:98:in `run_callbacks'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/middleware/executor.rb:14:in `call'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
14:17:58 rails.1       | rack-contrib (2.0.0) lib/rack/contrib/response_headers.rb:17:in `call'
14:17:58 rails.1       | meta_request (0.4.3) lib/meta_request/middlewares/headers.rb:16:in `call'
14:17:58 rails.1       | web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app'
14:17:58 rails.1       | web-console (3.5.1) lib/web_console/middleware.rb:20:in `block in call'
14:17:58 rails.1       | web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch'
14:17:58 rails.1       | web-console (3.5.1) lib/web_console/middleware.rb:18:in `call'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
14:17:58 rails.1       | railties (5.2.0.beta2) lib/rails/rack/logger.rb:38:in `call_app'
14:17:58 rails.1       | railties (5.2.0.beta2) lib/rails/rack/logger.rb:26:in `block in call'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/tagged_logging.rb:71:in `block in tagged'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/tagged_logging.rb:28:in `tagged'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/tagged_logging.rb:71:in `tagged'
14:17:58 rails.1       | railties (5.2.0.beta2) lib/rails/rack/logger.rb:26:in `call'
14:17:58 rails.1       | sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/middleware/request_id.rb:27:in `call'
14:17:58 rails.1       | rack (2.0.3) lib/rack/method_override.rb:22:in `call'
14:17:58 rails.1       | rack (2.0.3) lib/rack/runtime.rb:22:in `call'
14:17:58 rails.1       | activesupport (5.2.0.beta2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/middleware/executor.rb:14:in `call'
14:17:58 rails.1       | actionpack (5.2.0.beta2) lib/action_dispatch/middleware/static.rb:127:in `call'
14:17:58 rails.1       | rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
14:17:58 rails.1       | railties (5.2.0.beta2) lib/rails/engine.rb:524:in `call'
14:17:58 rails.1       | puma (3.8.2) lib/puma/configuration.rb:224:in `call'
14:17:58 rails.1       | puma (3.8.2) lib/puma/server.rb:600:in `handle_request'
14:17:58 rails.1       | puma (3.8.2) lib/puma/server.rb:435:in `process_client'
14:17:58 rails.1       | puma (3.8.2) lib/puma/server.rb:299:in `block in run'
14:17:58 rails.1       | puma (3.8.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread'```
@XenorPLxx
Copy link
Author

XenorPLxx commented Dec 2, 2017

I've tracked down problem to meta_request gem and posted an issue in gem's repo.
dejan/rails_panel#137

@kaspth
Copy link
Contributor

kaspth commented Dec 3, 2017

Great! I'll close this since the issue seems to be with the gem and not Rails 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants