Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

  1. ApiGatewayClientAuthInfo update failed, client with keyHash …… and AuthenticationMode 'Mobile' already in use

  2. API 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.

Command Centre Cloud Properties, Status and Overrides: Receive Online, Send Offline, API Gateway Offline; error 1, ApiGatewayClientAuthInfo update failed, client with keyHash (covered) and AuthenticationMode Mobile already in use; error 2, API Gateway Error: The remote server returned an error: (401) Unauthorized.

A similar example, for a REST client:

Command Centre Cloud Properties, Status and Overrides: API Gateway Online, Send Offline, and the error ApiGatewayClientAuthInfo update failed, client with keyHash (covered) and AuthenticationMode Rest already in use

How to reproduce it

  1. On Site A, register a mobile device or Web Client through the Gallagher API Gateway.

  2. Create a template on Site A.

  3. Restore the template on Site B.

  4. 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

  1. 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.

  2. 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?