[SOLVED] raygun4ruby trying to serialize a UNIXSocket object in request env
jake@trackif.com
Posted on
Aug 09 2014
Looks like I'm having trouble sending exceptions with Rails 3.2.18 and passenger...
I dug deeper and the exception happens when trying to "to_json" on a "Closed for reading" UNIXSocket instance somewhere in the request env variable...
Anyone else see this?
[Raygun] Tracking Exception...
IOError (not opened for reading):
activesupport (3.2.18) lib/active_support/json/encoding.rb:207:in `each'
activesupport (3.2.18) lib/active_support/json/encoding.rb:207:in `to_a'
activesupport (3.2.18) lib/active_support/json/encoding.rb:207:in `as_json'
activesupport (3.2.18) lib/active_support/json/encoding.rb:55:in `block in as_json'
activesupport (3.2.18) lib/active_support/json/encoding.rb:77:in `check_for_circular_references'
activesupport (3.2.18) lib/active_support/json/encoding.rb:54:in `as_json'
activesupport (3.2.18) lib/active_support/json/encoding.rb:242:in `block in as_json'
activesupport (3.2.18) lib/active_support/json/encoding.rb:242:in `each'
activesupport (3.2.18) lib/active_support/json/encoding.rb:242:in `map'
activesupport (3.2.18) lib/active_support/json/encoding.rb:242:in `as_json'
activesupport (3.2.18) lib/active_support/json/encoding.rb:47:in `block in encode'
activesupport (3.2.18) lib/active_support/json/encoding.rb:77:in `check_for_circular_references'
activesupport (3.2.18) lib/active_support/json/encoding.rb:46:in `encode'
activesupport (3.2.18) lib/active_support/json/encoding.rb:252:in `block in encode_json'
activesupport (3.2.18) lib/active_support/json/encoding.rb:252:in `each'
activesupport (3.2.18) lib/active_support/json/encoding.rb:252:in `map'
activesupport (3.2.18) lib/active_support/json/encoding.rb:252:in `encode_json'
activesupport (3.2.18) lib/active_support/json/encoding.rb:48:in `block in encode'
activesupport (3.2.18) lib/active_support/json/encoding.rb:77:in `check_for_circular_references'
activesupport (3.2.18) lib/active_support/json/encoding.rb:46:in `encode'
activesupport (3.2.18) lib/active_support/json/encoding.rb:31:in `encode'
activesupport (3.2.18) lib/active_support/core_ext/object/to_json.rb:16:in `to_json'
json (1.8.1) lib/json/common.rb:223:in `generate'
json (1.8.1) lib/json/common.rb:223:in `generate'
raygun4ruby (1.1.3) lib/raygun/client.rb:130:in `create_entry'
raygun4ruby (1.1.3) lib/raygun/client.rb:25:in `track_exception'
raygun4ruby (1.1.3) lib/raygun.rb:49:in `track_exception'
raygun4ruby (1.1.3) lib/raygun/middleware/rack_exception_interceptor.rb:12:in `rescue in call'
raygun4ruby (1.1.3) lib/raygun/middleware/rack_exception_interceptor.rb:10:in `call'
actionpack (3.2.18) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.18) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.18) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.18) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.18) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.18) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.18) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.5) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.18) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.5) lib/rack/lock.rb:15: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.18) lib/rails/engine.rb:484:in `call'
railties (3.2.18) lib/rails/application.rb:231:in `call'
railties (3.2.18) lib/rails/railtie/configurable.rb:30:in `method_missing'
rack (1.4.5) lib/rack/deflater.rb:13:in `call'
/usr/libexec/passenger/lib/phusion_passenger/rack/request_handler.rb:97:in `process_request'
/usr/libexec/passenger/lib/phusion_passenger/abstract_request_handler.rb:520:in `accept_and_process_next_request'
/usr/libexec/passenger/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
/usr/libexec/passenger/lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler'
/usr/libexec/passenger/lib/phusion_passenger/rack/application_spawner.rb:171:in `block in handle_spawn_application'
/usr/libexec/passenger/lib/phusion_passenger/utils.rb:470:in `safe_fork'
/usr/libexec/passenger/lib/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:180:in `start'
/usr/libexec/passenger/lib/phusion_passenger/rack/application_spawner.rb:129:in `start'
/usr/libexec/passenger/lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
/usr/libexec/passenger/lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
<internal:prelude>:10:in `synchronize'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/libexec/passenger/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
/usr/libexec/passenger/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
/usr/libexec/passenger/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/libexec/passenger/bin/passenger-spawn-server:101:in `<main>'
jake@trackif.com
Posted on
Aug 09 2014
[Raygun] Tracking Exception...
NotImplementedError (Failed to dump 'UNIXSocket' Object (0b)
):
raygun4ruby (1.1.3) lib/raygun/client.rb:131:in `dump'
raygun4ruby (1.1.3) lib/raygun/client.rb:131:in `create_entry'
raygun4ruby (1.1.3) lib/raygun/client.rb:25:in `track_exception'
raygun4ruby (1.1.3) lib/raygun.rb:49:in `track_exception'
raygun4ruby (1.1.3) lib/raygun/middleware/rack_exception_interceptor.rb:12:in `rescue in call'
raygun4ruby (1.1.3) lib/raygun/middleware/rack_exception_interceptor.rb:10:in `call'
actionpack (3.2.18) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.18) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.18) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.18) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.18) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.18) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.18) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.5) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.18) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.5) lib/rack/lock.rb:15:in `call'
rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
rack-cache (1.2) lib/rack/cache/context.rb:143:in `pass'
rack-cache (1.2) lib/rack/cache/context.rb:155:in `invalidate'
rack-cache (1.2) lib/rack/cache/context.rb:71:in `call!'
rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
railties (3.2.18) lib/rails/engine.rb:484:in `call'
railties (3.2.18) lib/rails/application.rb:231:in `call'
railties (3.2.18) lib/rails/railtie/configurable.rb:30:in `method_missing'
rack (1.4.5) lib/rack/deflater.rb:13:in `call'
/usr/libexec/passenger/lib/phusion_passenger/rack/request_handler.rb:97:in `process_request'
/usr/libexec/passenger/lib/phusion_passenger/abstract_request_handler.rb:520:in `accept_and_process_next_request'
/usr/libexec/passenger/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
/usr/libexec/passenger/lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler'
/usr/libexec/passenger/lib/phusion_passenger/rack/application_spawner.rb:171:in `block in handle_spawn_application'
/usr/libexec/passenger/lib/phusion_passenger/utils.rb:470:in `safe_fork'
/usr/libexec/passenger/lib/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:180:in `start'
/usr/libexec/passenger/lib/phusion_passenger/rack/application_spawner.rb:129:in `start'
/usr/libexec/passenger/lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
/usr/libexec/passenger/lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
<internal:prelude>:10:in `synchronize'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/libexec/passenger/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
/usr/libexec/passenger/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
/usr/libexec/passenger/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/libexec/passenger/bin/passenger-spawn-server:101:in `<main>'
jake@trackif.com
Posted on
Aug 19 2014