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

[production][logs#show] AbstractController::DoubleRenderError: Render and/or redirect were called multiple times in this ... #40

Closed
8398a7 opened this issue May 22, 2015 · 0 comments
Labels

Comments

@8398a7
Copy link
Owner

8398a7 commented May 22, 2015

See this exception on Errbit

AbstractController::DoubleRenderError: Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".

Summary

URL

http://iidxas.tk/abilitysheet/logs/6517-9578/iidxme"

Where

logs#show

Occured

May 22 2:52pm

Similar

1

Params

{
  "action" => "show",
  "controller" => "logs",
  "date" => "iidxme",
  "iidxid" => "6517-9578"
}

Session

{
  "_csrf_token" => "JVkz26nMiRaWeTmyb5n2EvF49iK0t2Jeq+8A1c3ifdo=",
  "session_id" => "ccc20023e10489c8ff560b8a060ad171",
  "warden_user_user_key" => "[[\"1\"], \"$2a$10$C.5Q9X16T1ujj.KQdFr63O\"]"
}

Backtrace

15:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_controller/metal/rendering.rb -> **render**
44:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb -> **block (2 levels) in render**
12:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/core_ext/benchmark.rb -> **block in ms**
303:  /usr/local/rbenv/versions/2.2.1/lib/ruby/2.2.0/benchmark.rb -> **realtime**
12:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/core_ext/benchmark.rb -> **ms**
44:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb -> **block in render**
87:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb -> **cleanup_view_runtime**
25:  [GEM_ROOT]/gems/activerecord-4.2.1/lib/active_record/railties/controller_runtime.rb -> **cleanup_view_runtime**
43:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb -> **render**
14:  [GEM_ROOT]/gems/remotipart-1.2.1/lib/remotipart/render_overrides.rb -> **render_with_remotipart**
34:  app/controllers/logs_controller.rb -> **show**
4:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_controller/metal/implicit_render.rb -> **send_action**
198:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/abstract_controller/base.rb -> **process_action**
10:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_controller/metal/rendering.rb -> **process_action**
20:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/abstract_controller/callbacks.rb -> **block in process_action**
117:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/callbacks.rb -> **call**
117:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/callbacks.rb -> **call**
555:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/callbacks.rb -> **block (2 levels) in compile**
505:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/callbacks.rb -> **call**
505:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/callbacks.rb -> **call**
92:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/callbacks.rb -> **_run_callbacks**
776:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/callbacks.rb -> **_run_process_action_callbacks**
81:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/callbacks.rb -> **run_callbacks**
19:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/abstract_controller/callbacks.rb -> **process_action**
29:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_controller/metal/rescue.rb -> **process_action**
32:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb -> **block in process_action**
164:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/notifications.rb -> **block in instrument**
20:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb -> **instrument**
164:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/notifications.rb -> **instrument**
30:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb -> **process_action**
250:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_controller/metal/params_wrapper.rb -> **process_action**
18:  [GEM_ROOT]/gems/activerecord-4.2.1/lib/active_record/railties/controller_runtime.rb -> **process_action**
137:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/abstract_controller/base.rb -> **process**
30:  [GEM_ROOT]/gems/actionview-4.2.1/lib/action_view/rendering.rb -> **process**
196:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_controller/metal.rb -> **dispatch**
13:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_controller/metal/rack_delegation.rb -> **dispatch**
237:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_controller/metal.rb -> **block in action**
74:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb -> **call**
74:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb -> **dispatch**
43:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb -> **serve**
43:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb -> **block in serve**
30:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb -> **each**
30:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb -> **serve**
819:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
12:  [GEM_ROOT]/gems/rack-pjax-0.8.0/lib/rack/pjax.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
30:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/rack/agent_hooks.rb -> **traced_call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
32:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/rack/browser_monitoring.rb -> **traced_call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
35:  [GEM_ROOT]/gems/warden-1.2.3/lib/warden/manager.rb -> **block in call**
34:  [GEM_ROOT]/gems/warden-1.2.3/lib/warden/manager.rb -> **catch**
34:  [GEM_ROOT]/gems/warden-1.2.3/lib/warden/manager.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
24:  [GEM_ROOT]/gems/rack-1.6.0/lib/rack/etag.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
25:  [GEM_ROOT]/gems/rack-1.6.0/lib/rack/conditionalget.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
13:  [GEM_ROOT]/gems/rack-1.6.0/lib/rack/head.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
27:  [GEM_ROOT]/gems/remotipart-1.2.1/lib/remotipart/middleware.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
27:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_dispatch/middleware/params_parser.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
260:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_dispatch/middleware/flash.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
225:  [GEM_ROOT]/gems/rack-1.6.0/lib/rack/session/abstract/id.rb -> **context**
220:  [GEM_ROOT]/gems/rack-1.6.0/lib/rack/session/abstract/id.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
560:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_dispatch/middleware/cookies.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
36:  [GEM_ROOT]/gems/activerecord-4.2.1/lib/active_record/query_cache.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
649:  [GEM_ROOT]/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
29:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_dispatch/middleware/callbacks.rb -> **block in call**
88:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/callbacks.rb -> **call**
88:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/callbacks.rb -> **_run_callbacks**
776:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/callbacks.rb -> **_run_call_callbacks**
81:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/callbacks.rb -> **run_callbacks**
27:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_dispatch/middleware/callbacks.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
78:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_dispatch/middleware/remote_ip.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
17:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_dispatch/middleware/debug_exceptions.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
30:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_dispatch/middleware/show_exceptions.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
38:  [GEM_ROOT]/gems/railties-4.2.1/lib/rails/rack/logger.rb -> **call_app**
22:  [GEM_ROOT]/gems/railties-4.2.1/lib/rails/rack/logger.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
8:  [GEM_ROOT]/gems/request_store-1.1.0/lib/request_store/middleware.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
21:  [GEM_ROOT]/gems/actionpack-4.2.1/lib/action_dispatch/middleware/request_id.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
22:  [GEM_ROOT]/gems/rack-1.6.0/lib/rack/methodoverride.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
18:  [GEM_ROOT]/gems/rack-1.6.0/lib/rack/runtime.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
28:  [GEM_ROOT]/gems/activesupport-4.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
113:  [GEM_ROOT]/gems/rack-1.6.0/lib/rack/sendfile.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
518:  [GEM_ROOT]/gems/railties-4.2.1/lib/rails/engine.rb -> **call**
164:  [GEM_ROOT]/gems/railties-4.2.1/lib/rails/application.rb -> **call**
67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
66:  [GEM_ROOT]/gems/rack-1.6.0/lib/rack/urlmap.rb -> **block in call**
50:  [GEM_ROOT]/gems/rack-1.6.0/lib/rack/urlmap.rb -> **each**
50:  [GEM_ROOT]/gems/rack-1.6.0/lib/rack/urlmap.rb -> **call**
576:  [GEM_ROOT]/gems/unicorn-4.8.3/lib/unicorn/http_server.rb -> **process_client**
52:  [GEM_ROOT]/gems/unicorn-worker-killer-0.4.3/lib/unicorn/worker_killer.rb -> **process_client**
92:  [GEM_ROOT]/gems/unicorn-worker-killer-0.4.3/lib/unicorn/worker_killer.rb -> **process_client**
670:  [GEM_ROOT]/gems/unicorn-4.8.3/lib/unicorn/http_server.rb -> **worker_loop**
525:  [GEM_ROOT]/gems/unicorn-4.8.3/lib/unicorn/http_server.rb -> **spawn_missing_workers**
536:  [GEM_ROOT]/gems/unicorn-4.8.3/lib/unicorn/http_server.rb -> **maintain_worker_count**
294:  [GEM_ROOT]/gems/unicorn-4.8.3/lib/unicorn/http_server.rb -> **join**
209:  [GEM_ROOT]/gems/unicorn-4.8.3/bin/unicorn_rails -> **<top (required)>**
23:  [PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/bin/unicorn_rails -> **load**
23:  [PROJECT_ROOT]/vendor/bundle/ruby/2.2.0/bin/unicorn_rails -> **<main>**

Environment

Key Value
REMOTE_ADDR 127.0.0.1
REQUEST_METHOD GET
REQUEST_PATH /abilitysheet/logs/6517-9578/iidxme
PATH_INFO /logs/6517-9578/iidxme
REQUEST_URI /abilitysheet/logs/6517-9578/iidxme
SERVER_PROTOCOL HTTP/1.0
HTTP_VERSION HTTP/1.0
HTTP_X_REAL_IP 126.255.138.247
HTTP_X_FORWARDED_FOR 126.255.138.247
HTTP_HOST iidxas.tk
HTTP_CONNECTION close
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8,image/webp
HTTP_USER_AGENT Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) CriOS/42.0.2311.47 Mobile/12F70 Safari/600.1.4
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_ACCEPT_LANGUAGE ja,en-US;q=0.8,en;q=0.6
rack_url_scheme http
SERVER_NAME iidxas.tk
SERVER_PORT 80
QUERY_STRING
rack_hijack #<Proc:0x007f76f8724a68@/home/husq/rails/abilitysheet/vendor/bundle/ruby/2.2.0/gems/unicorn-4.8.3/lib/unicorn/http_request.rb:111>
rack_multiprocess true
rack_multithread false
rack_run_once false
rack_version ["1", "2"]
SCRIPT_NAME /abilitysheet
SERVER_SOFTWARE Unicorn 4.8.3
rack_hijack? true
rack_logger #<Logger:0x007f76f3fe6d40>
newrelic_transaction_started true
ORIGINAL_FULLPATH /abilitysheet/logs/6517-9578/iidxme
ORIGINAL_SCRIPT_NAME /abilitysheet
action_dispatch_parameter_filter ["password"]
action_dispatch_redirect_filter []
action_dispatch_show_exceptions true
action_dispatch_show_detailed_exceptions false
action_dispatch_cookies_serializer json
action_dispatch_cookies_digest
ROUTES_70074430897860_SCRIPT_NAME /abilitysheet
action_dispatch_request_id 1062fc11-0233-465f-9b76-e3de6b3bb225
action_dispatch_remote_ip 126.255.138.247
rack_request_query_string
rack_request_query_hash
warden Warden::Proxy:70074475512280 @config={:default_scope=>:user, :scope_defaults=>{}, :default_strategies=>{:user=>[:rememberable, :database_authenticatable]}, :intercept_401=>false, :failure_app=>#<Devise::Delegator:0x007f76f8fbdb48>}
action_dispatch_request_path_parameters {"controller"=>"logs", "action"=>"show", "iidxid"=>"6517-9578", "date"=>"iidxme"}
action_dispatch_request_content_type
action_dispatch_request_request_parameters
action_dispatch_request_query_parameters
action_dispatch_request_parameters {"controller"=>"logs", "action"=>"show", "iidxid"=>"6517-9578", "date"=>"iidxme"}
action_dispatch_request_formats ["text/html"]
action_dispatch_request_flash_hash
@8398a7 8398a7 added the bug label May 24, 2015
@8398a7 8398a7 closed this as completed in 1289a67 May 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant