The documentation you're currently reading is for version 3.5.0. Click here to view documentation for the latest stable version.
This section contains information on how to troubleshoot MongoDB database-related issues.
The StackStorm installation script automatically creates two new MongoDB users,
stackstorm is granted the readWrite
role on the
st2 database. The user
admin is granted the
dbAdmin role on the admin db.
The script generates a random password, and assigns it to both users. The password is stored in the
[database] section of
[database] username = stackstorm password = ZXqvqSRejrY6gKO9wvYgJFdh
Here’s an example of using that username and password to authenticate using the Mongo CLI:
[[email protected] ~]$ mongo -u stackstorm -p ZXqvqSRejrY6gKO9wvYgJFdh st2 MongoDB shell version: 3.2.16 connecting to: st2 >