Cloud service goes offline after restoring a template
Resolve Cloud service errors that appear after a template or backup is restored on another server.
Applies to: sites that restored a template or backup from another server (a different serial) and use the Gallagher API Gateway
The Command Centre Cloud goes offline with a "keyHash … already in use" error after a template (or a backup) from one server was restored on another.
Symptom
A site created a template on one server and restored it on another server with a different serial. If the Mobile Command Centre was configured to communicate through the Cloud, the Cloud Service may then have issues. The same can happen with Web Clients, REST clients and mobile devices.
On the Command Centre Cloud item, Status and Overrides shows:
ApiGatewayClientAuthInfo update failed, client with keyHash …… and AuthenticationMode 'Mobile' already in useAPI Gateway Error: The remote server returned an error: (401) Unauthorized.This is a different issue. Handle it as a connection problem between the Gallagher server and the API Gateway: see Cloud service is not accepting registrations.

A similar example, for a REST client:

How to reproduce it
On Site A, register a mobile device or Web Client through the Gallagher API Gateway.
Create a template on Site A.
Restore the template on Site B.
On Site B, create a Command Centre Cloud and enable the Gallagher API Gateway. The Cloud Service goes offline and returns the error above.
Cause
When these clients connect to the API Gateway, each is given a unique key hash. If the site takes a backup and restores it to a test system, or takes a template, those key hashes are no longer unique. The Cloud blocks them, so that the new system does not interfere with the original one.
Workaround
Delete the Mobile client, REST client or mobile device named in the error, most probably the one added during or after the backup or the template migration.
Delete and re-create the Cloud Service (the Command Centre Cloud item), and enable the API Gateway in Command Centre on Site B.
If this does not work, contact Gallagher Technical Support.
Last updated
Was this helpful?
