Ansible Version: 2.9.2
CentOS Linux release 7.7.1908 (Core)
https://github.com/StackStorm/ansible-st2.git
|
Greetings,
I have deployed StackStorm using your provided ansible playbook. However after deployment and configuring hubot to integrate with Slack I noticed the chatbot service wasnt online and I was unable to start it.
I ran your self-check script as per your troubleshooting guide and noticed that the API key was also not set “StackStorm client couldn’t connect to StackStorm.”. I solved this temporarily by manually “export ST2_API_KEY…”. However the check then fails on “Step 1 failed: Hubot is not running on this machine.”. This prompted me to rerun the ansible script and check for any failures. This is what I found.
TASK [StackStorm.st2chatops : Check if API key already exist in st2chatops.env]
******************************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “cmd”: [“grep”, “-e”, “^export ST2_API_KEY=”\{ST2_API_KEY}\"", “/opt/stackstorm/chatops/st2chatops.env”], “delta”:
“0:00:00.004789”, “end”: “2020-01-20 16:34:40.465620”, “msg”: “non-zero return code”, “rc”: 1, “start”:
“2020-01-20 16:34:40.460831”, “stderr”: “”, “stderr_lines”: [], “stdout”: “”, “stdout_lines”: []}
…ignoring
I am wondering if this is something that has been seen before and if you could help in diagnose the problem. I believe it is failing this task and it is having a knock on effect skipping subsequent tasks.
Much Appreciated
Matthew