Hide Forgot
Description of problem: Encountered" Node execution failure (invalid exit code from node). If the problem persists please contact Red Hat support" while trying to thread dump ruby app with ruby client Version-Release number of selected component (if applicable): rhc-cartridge-rack-1.1-0.85.12-1.el6_2.noarc rhc-0.85.11-1.el6_2.noarch Current stage How reproducible: Always Steps to Reproduce: 1.Create a ruby app with rhc app create -a appstage0 -t ruby-1.8 2.Try to thread dump it with rhc app threaddump -a appstage0 Actual results: Failed to thread dump but said the application is stopped(see debug info below) Expected results: Thread dump ruby app successfully Additional info: Debug info via #rhc app threaddump -a appstage0 -d DEBUG: Application is stopped Cartridge return code: 1 Exit Code: 1 broker_c: namespacerhloginsshapp_uuiddebugaltercartridgecart_typeactionapp_nameapi api_c: placeholder API version: 1.1.2 Broker version: 1.1.1 RESULT: Node execution failure (invalid exit code from node). If the problem persists please contact Red Hat support. But actually the app is active not stopped
Very funny that after waiting for a long time(about 2 or 3 hours), this issue does not exist any more, we could thread dump ruby app successfully now with the same steps ,not sure the reason, leave the bug open for you to check if something wrong happened in stage during this period.
See comments for bug 786759, I suspect these are related. Perhaps if the app hasn't been started to allow for a thread dump, we could provide a more friendly message to the client.
Good suggestion. I'll add details for the app not being started to the error message.
added "Application is stopped. Ruby/Rack applications must be started by accessing the URL for a thread dump" message to failure.
verified with rhc-cartridge-rack-1.1-0.86.1-1.el6_2.noarch on devenv_1581, addition information can be found in the output.