Skip to content

Debug mode

Marcus Klemm edited this page May 25, 2017 · 2 revisions

In debug mode, the ActionHandler does not detach itself from the terminal, so in case of an uncaught exception, logging and backtrace information will be printed to stderr.

Starting an ActionHandler in Debug mode:

  • Switch to user arago: su arago

  • If it is an older version of the ActionHandler, still based on virtualenv, activate the virtualenv: source /opt/autopilot/engine/python-actionhandler/bin/activate

  • If it is a newer version, based on SCL, activate the SCL: scl enable hiro_integration bash

  • If you installed from RPMs, then it is definitively the newer, SCL-based version. The virtualenv versions were installed from .whl files.

  • Start the Actionhandler, for example the WinRM ActionHandler: hiro-winrm-actionhandler.py --debug start

  • To keep it running in the background, use nohup: nohup hiro-winrm-actionhandler.py --debug start &, in this case, the logging information can be found in nohup.out

Clone this wiki locally