service-security in the way it is described in the Cognigy.AI installation process article,
for example,
because service-security service was restarted several times,
or you have deleted and recreated Cognigy.AI installation,
you need to drop service-security database to generate new initial credentials.
Attention: Loss of Data
Attention: Loss of Data
All Organizations and Users will be lost as a result of this operation. Perform this process only during initial Cognigy.AI setup.To generate new initial user credentials, run the following commands:
- Drop the collections in
service-securitydatabase by connecting to the primary node of MongoDB. To determine the primary node, executers.status():
- Connect to the primary node, for example, if
mongodb-0is the primary node, and drop the collections inservice-securitydatabase:
- Restart the
service-securitydeployment:
- Obtain the newly generated initial credentials from the logs of
service-securitydeployment as usual: