KB Article #178161

Cannot connect to the configured database with your current topology because the database already contains data from a different topology.

Problem

When starting up, you receive an error connecting to Analytics like the following:

java.sql.SQLException: Cannot connect to the configured database with your current topology because the database already contains data from a different topology.

Resolution

This can happen for many reasons, such as trying to connect to an Analytics database that belongs to another topology, rebuilding the gateway topology without rebuilding the Analytics DB, or similar items.

If this is to be a new group, you should create a new database schema for it. If your gateways were intended to use this schema, then you will have to use dbpurger to archive the existing metrics data and dbsetup to reinitialize it so that your gateways can use it.

Both commands are documented in the Installation Guide. You can also run dbpurger -h or dbsetup -h to make them print usage information.