KB Article #178730

Could not contact a KPS Cassandra store. Response code: 500; java.lang.IllegalStateException: The store is in admin mode

Problem

During initial setup of an instance, the following errors were thrown when trying to setup API Manager with ./setup-apimanager:

Error: Could not contact a KPS Cassandra store. Response code: 500

Please make sure the Cassandra External configuration is correct

and that the Cassandra Cluster is available to the API Gateway

ERROR 12/Jul/2017:12:34:32.461 [0dea:28ed655913011e9961242ac2] java exception:

java.lang.IllegalStateException: The store is in admin mode. This is becasue a type change or a passphrase change occurred. Run kpsadmin migrate or re-encrypt option to address this issue.


Resolution

The configuration of Cassandra for this instance is not yet completed.

Open Policy Studio and connect to the instance; open Server/Setting/Cassandra.

Go to Authentication and update with user and password for Cassandra; default ones are cassandra/cassandra.

Save, deploy, and run again ./setup-apimanager.