> For the complete documentation index, see [llms.txt](https://help.security.gallagher.com/knowledge-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.security.gallagher.com/knowledge-hub/products/cc-software/troubleshoot/command-centre-errors/upgrade-fails-with-an-always-on-availability-group.md).

# Upgrade fails when the database is in an Always On availability group

Resolve a Command Centre upgrade that fails because the database is in an Always On availability group.

If the Gallagher SQL Server instance is configured for an Always On availability group, the site may fail the Command Centre upgrade and see the following error during the upgrade process:

```
2024-06-13 11:23:09:699, Setup[2a6c:2220], Setup, ExecuteSqlScript failed with error 0xc1000143 'UpdateCollation.sql' needs the database to be altered. Database can not be altered since it is in an Availability Group
```

### Cause

An Always On availability group is a feature of SQL Server that creates a highly available and resilient environment for databases. It creates one or more copies (replicas) of the databases on different servers and automatically fails over to a replica if the primary database becomes unavailable. Microsoft's overview: [What is an Always On availability group?](https://learn.microsoft.com/en-us/sql/database-engine/availability-groups/windows/overview-of-always-on-availability-groups-sql-server?view=sql-server-ver16)

High Availability (HA) is managed at the SQL level and is not configured or controlled through any Command Centre settings.

### Resolution

The site or database administrator needs to disable the high availability set-up before the upgrade, then re-enable it when the upgrade is complete.

For the SQL Always On Compatibility paper, see the [Technical Information Papers (TIP) index](https://help.security.gallagher.com/knowledge-hub/deployment-resources/technical-information-papers-tip-index.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.security.gallagher.com/knowledge-hub/products/cc-software/troubleshoot/command-centre-errors/upgrade-fails-with-an-always-on-availability-group.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
