Hi All i was wondering if anyone could take a look at my output or has experienced this issue before? I have been running the following one-line install with --unstable flag.
curl -sSL https://raw.githubusercontent.com/StackStorm/st2-packages/master/scripts/st2bootstrap-deb.sh | bash -s – --unstable --user=st2admin --password=‘Ch@ngeMe’
My issue seems to be stemmign from st2chatops.service not being downloaded from the mongodb repo. I am concerned the problem lies somewhere in logging in to there with user “stackstorm”, or with the st2 3.2dev-1 version, or with pymongo. I am also not totally sure what part of the install script is failing, as it says Failed on Install st2 but the magic appears to lie in what is happening with the mongodb “stackstorm” login that i dont have the visibility to see right now. Any help would be much appreciated!
Here are 2 partial command outputs:
- when i run “sudo st2ctl start”:
/apps [1061]$ sudo st2ctl start
Failed to start st2chatops.service: Unit st2chatops.service not found.
st2 components status
st2actionrunner is not running.
st2api PID: 35935
st2api PID: 35988
st2stream is not running.
st2auth PID: 35941
st2auth PID: 35982
st2garbagecollector is not running.
st2notifier is not running.
st2resultstracker is not running.
st2rulesengine is not running.
st2sensorcontainer is not running.
st2chatops is not running.
st2timersengine PID: 36005
st2workflowengine PID: 36004
st2scheduler PID: 36140
/apps [1062]$
- when i run the one-line install command above:
[omitted]
mongodb-org is already the newest version (4.0.10).
The following packages were automatically installed and are no longer required:
linux-azure-cloud-tools-4.15.0-1037 linux-azure-cloud-tools-4.18.0-1011
linux-azure-cloud-tools-4.18.0-1013 linux-azure-cloud-tools-4.18.0-1014
linux-azure-cloud-tools-4.18.0-1018 linux-azure-cloud-tools-4.18.0-1019
linux-azure-headers-4.15.0-1037 linux-azure-headers-4.18.0-1011 linux-azure-headers-4.18.0-1013
linux-azure-headers-4.18.0-1014 linux-azure-headers-4.18.0-1018 linux-azure-headers-4.18.0-1019
linux-azure-tools-4.15.0-1037
linux-azure-tools-4.18.0-1011 linux-azure-tools-4.18.0-1013 linux-azure-tools-4.18.0-1014
linux-azure-tools-4.18.0-1018 linux-azure-tools-4.18.0-1019 python3-virtualenv
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 99 not upgraded.
MongoDB shell version v4.0.10
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
Implicit session: session { “id” : UUID(“33a02a88-8dd6-4ab8-9abd-73a7f4aa4d6d”) }
MongoDB server version: 4.0.10
switched to db admin
2019-07-02T21:16:24.886+0000 E QUERY [js] Error: couldn’t add user: command createUser requires
authentication :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
DB.prototype.createUser@src/mongo/shell/db.js:1491:15
@(shell):1:1
MongoDB shell version v4.0.10
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
Implicit session: session { “id” : UUID(“4937c74d-bf61-4668-a718-51ba187e8615”) }
MongoDB server version: 4.0.10
switched to db st2
2019-07-02T21:16:25.001+0000 E QUERY [js] Error: couldn’t add user: command createUser requires
authentication :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
DB.prototype.createUser@src/mongo/shell/db.js:1491:15
@(shell):1:1
Detected operating system as Ubuntu/bionic.
Checking for curl…
Detected curl…
Checking for gpg…
Detected gpg…
Running apt-get update… done.
Installing apt-transport-https… done.
Installing /etc/apt/sources.list.d/StackStorm_unstable.list…done.
Importing packagecloud gpg key… done.
Running apt-get update… done.
The repository is setup! You can now install packages.
Reading package lists… Done
Building dependency tree
Reading state information… Done
st2 is already the newest version (3.2dev-1).
The following packages were automatically installed and are no longer required:
linux-azure-cloud-tools-4.15.0-1037 linux-azure-cloud-tools-4.18.0-1011
linux-azure-cloud-tools-4.18.0-1013 linux-azure-cloud-tools-4.18.0-1014
linux-azure-cloud-tools-4.18.0-1018 linux-azure-cloud-tools-4.18.0-1019
linux-azure-headers-4.15.0-1037 linux-azure-headers-4.18.0-1011 linux-azure-headers-4.18.0-1013
linux-azure-headers-4.18.0-1014 linux-azure-headers-4.18.0-1018 linux-azure-headers-4.18.0-1019
linux-azure-tools-4.15.0-1037
linux-azure-tools-4.18.0-1011 linux-azure-tools-4.18.0-1013 linux-azure-tools-4.18.0-1014
linux-azure-tools-4.18.0-1018 linux-azure-tools-4.18.0-1019 python3-virtualenv
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 99 not upgraded.
Failed to start st2chatops.service: Unit st2chatops.service not found.
st2 components status
st2actionrunner is not running.
st2api PID: 76126
st2api PID: 76232
st2stream PID: 74810
st2stream PID: 74898
st2auth PID: 74914
st2auth PID: 75004
st2garbagecollector PID: 74786
st2notifier PID: 74928
st2resultstracker PID: 74945
st2rulesengine PID: 75115
st2sensorcontainer PID: 75039
st2chatops is not running.
st2timersengine PID: 74873
st2workflowengine PID: 74844
st2scheduler PID: 74965
Registering content…[flags = --config-file /etc/st2/st2.conf --register-all]
2019-07-02 21:16:33,860 INFO [-] Connecting to database “st2” @ “127.0.0.1:27017” as user
“stackstorm”.
2019-07-02 21:16:39,876 INFO [-] Successfully connected to database “st2” @ “127.0.0.1:27017” as user
“stackstorm”.
Traceback (most recent call last):
[omitted]
File “/opt/stackstorm/st2/lib/python3.6/site-packages/pymongo/helpers.py”, line 155, in
_check_command_response
raise OperationFailure(msg % errmsg, code, response)
pymongo.errors.OperationFailure: Authentication failed.
st2 components status
st2actionrunner is not running.
st2api PID: 76126
st2api PID: 76232
st2stream PID: 74810
st2stream PID: 74898
st2auth PID: 74914
st2auth PID: 75004
st2garbagecollector PID: 74786
st2notifier is not running.
st2resultstracker PID: 74945
st2rulesengine PID: 75115
st2sensorcontainer PID: 75039
st2chatops is not running.
st2timersengine PID: 74873
st2workflowengine is not running.
st2scheduler is not running.
############### ERROR ###############
Failed on Install st2
#####################################
/apps [1202]$