Closed dove-young closed 1 year ago
st2chatops version is
yum info st2chatops
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Installed Packages
Name : st2chatops
Arch : x86_64
Version : 3.2.0
Release : 2
Size : 172 M
Repo : installed
From repo : StackStorm_stable
Summary : St2Chatops - StackStorm ChatOps
URL : https://github.com/stackstorm/st2chatops
License : Apache 2.0
Description : Package providing StackStorm ChatOps functionality: bundled, tested and ready to use Hubot
: with hubot-stackstorm plugin and additional chat adapters
I update my ansible-st2 to the latest, and the failure is the same.
commit 329660b6bb80a2a6cbaf33376c219c525cef2335
Merge: 9710898 c379542
Author: Eugen C <armab@users.noreply.github.com>
Date: Thu Jun 18 21:03:11 2020 +0100
Merge pull request #261 from amanda11/master
Ansible-playbooks to install on Centos8
I found it . It comes after a systemctl daemon-reload
[root@agentavtone-worker2 ansible-st2]# vim /usr/lib/systemd/system/st2chatops.service
[root@agentavtone-worker2 ansible-st2]# systemctl daemon-reload
[root@agentavtone-worker2 ansible-st2]# systemctl status st2chatops
● st2chatops.service - StackStorm service st2chatops
Loaded: loaded (/usr/lib/systemd/system/st2chatops.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Sun 2020-06-21 22:19:49 PDT; 1 day 22h ago
Main PID: 16372 (code=exited, status=0/SUCCESS)
Jun 21 22:19:16 agentavtone-worker2.fyre.ibm.com hubot[16372]: debug: RTMClient initialized
Jun 21 22:19:16 agentavtone-worker2.fyre.ibm.com hubot[16372]: [Sun Jun 21 2020 22:19:16 GMT-0700 (Pacific Daylight Time)] DEBUG RtmClient initialized with options: {"retryConfig":{"retrie...urrency":1}
Jun 21 22:19:16 agentavtone-worker2.fyre.ibm.com hubot[16372]: [Sun Jun 21 2020 22:19:16 GMT-0700 (Pacific Daylight Time)] DEBUG RtmClient#start() with options: {"mpim_aware":true}
Jun 21 22:19:16 agentavtone-worker2.fyre.ibm.com hubot[16372]: verbose: Attempting to connect via the RTM API
Jun 21 22:19:16 agentavtone-worker2.fyre.ibm.com hubot[16372]: debug: BaseAPIClient _makeAPICall end
Jun 21 22:19:16 agentavtone-worker2.fyre.ibm.com hubot[16372]: verbose: BaseAPIClient _callTransport - Retrying [object Object]
Jun 21 22:19:16 agentavtone-worker2.fyre.ibm.com hubot[16372]: debug: BaseAPIClient _callTransport end
Jun 21 22:19:17 agentavtone-worker2.fyre.ibm.com hubot[16372]: info: Rate limited, will retry 60 seconds
Jun 21 22:19:49 agentavtone-worker2.fyre.ibm.com systemd[1]: Stopping StackStorm service st2chatops...
Jun 21 22:19:49 agentavtone-worker2.fyre.ibm.com systemd[1]: Stopped StackStorm service st2chatops.
Hint: Some lines were ellipsized, use -l to show in full.
[root@agentavtone-worker2 ansible-st2]#
After systemctl daemon-reload
, st2chatops
can be found in systemctl status st2chatops
, but it does not work. and it is not found in systemctl list-units
.
[root@ chatops]# systemctl status st2chatops
● st2chatops.service - StackStorm service st2chatops
Loaded: loaded (/usr/lib/systemd/system/st2chatops.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Tue 2020-06-23 22:42:55 PDT; 4min 25s ago
Main PID: 558 (code=exited, status=0/SUCCESS)
Jun 23 22:42:54 agentavtone-worker2.fyre.ibm.com systemd[1]: Started StackStorm service st2chatops.
Jun 23 22:42:54 agentavtone-worker2.fyre.ibm.com hubot[558]: Wed, 24 Jun 2020 05:42:54 GMT body-parser deprecated undefined extended: provide extended option at node_modules/hubot/src/robot.js:445:21
Jun 23 22:42:54 agentavtone-worker2.fyre.ibm.com hubot[558]: [Tue Jun 23 2020 22:42:54 GMT-0700 (Pacific Daylight Time)] DEBUG Loading adapter shell
Jun 23 22:42:54 agentavtone-worker2.fyre.ibm.com hubot[558]: No history available
Jun 23 22:42:54 agentavtone-worker2.fyre.ibm.com hubot[558]: [137B blob data]
Jun 23 22:42:54 agentavtone-worker2.fyre.ibm.com hubot[558]: [Tue Jun 23 2020 22:42:54 GMT-0700 (Pacific Daylight Time)] DEBUG Loading scripts from /opt/stackstorm/chatops/src/scripts
[root@ chatops]#
A additional systemctl enable st2chatops
is required`
[root@agentavtone-worker2 chatops]# systemctl enable st2chatops
[root@agentavtone-worker2 chatops]#
[root@agentavtone-worker2 chatops]# systemctl status st2chatops
● st2chatops.service - StackStorm service st2chatops
Loaded: loaded (/usr/lib/systemd/system/st2chatops.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Tue 2020-06-23 22:42:55 PDT; 4min 25s ago
Main PID: 558 (code=exited, status=0/SUCCESS)
Jun 23 22:42:54 agentavtone-worker2.fyre.ibm.com systemd[1]: Started StackStorm service st2chatops.
Jun 23 22:42:54 agentavtone-worker2.fyre.ibm.com hubot[558]: Wed, 24 Jun 2020 05:42:54 GMT body-parser deprecated undefined extended: provide extended option at node_modules/hubot/src/robot.js:445:21
Jun 23 22:42:54 agentavtone-worker2.fyre.ibm.com hubot[558]: [Tue Jun 23 2020 22:42:54 GMT-0700 (Pacific Daylight Time)] DEBUG Loading adapter shell
Jun 23 22:42:54 agentavtone-worker2.fyre.ibm.com hubot[558]: No history available
Jun 23 22:42:54 agentavtone-worker2.fyre.ibm.com hubot[558]: [137B blob data]
Jun 23 22:42:54 agentavtone-worker2.fyre.ibm.com hubot[558]: [Tue Jun 23 2020 22:42:54 GMT-0700 (Pacific Daylight Time)] DEBUG Loading scripts from /opt/stackstorm/chatops/src/scripts
[root@ chatops]#
[root@ chatops]# systemctl start st2chatops; systemctl status st2chatops
● st2chatops.service - StackStorm service st2chatops
Loaded: loaded (/usr/lib/systemd/system/st2chatops.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2020-06-23 22:47:37 PDT; 11ms ago
Main PID: 1462 (hubot)
Tasks: 1
Memory: 256.0K
CGroup: /system.slice/st2chatops.service
└─1462 /bin/sh /opt/stackstorm/chatops/bin/hubot
Jun 23 22:47:37 agentavtone-worker2.fyre.ibm.com systemd[1]: Started StackStorm service st2chatops.
[root@ chatops]# systemctl start st2chatops; systemctl status st2chatops
Requested more info and waiting for reply in https://github.com/StackStorm/ansible-st2/pull/263#pullrequestreview-436506325
closing as no more info was provided and the issue is not reproducible
Here is my installation command
Ansible-ST2 HEAD is
And installation failed at here
Here is
systemctl list-units
resultHere is
yum list installed | grep st2
result