2020-09-14 17:18:08 +00:00
---
layout: docs
2021-06-22 18:39:11 +00:00
page_title: Upgrading to 1.8.13
2020-09-14 17:18:08 +00:00
description: >-
Specific versions of Consul may have additional information about the upgrade
process beyond the standard flow.
---
2021-06-22 18:39:11 +00:00
# Upgrading to 1.8.13
2020-09-14 17:18:08 +00:00
## Introduction
2020-09-15 21:03:17 +00:00
This guide explains how to best upgrade a multi-datacenter Consul deployment that is using
2021-06-22 18:39:11 +00:00
a version of Consul >= 1.6.9 and < 1.8.13 while maintaining replication. If you are on a version
2020-09-15 21:03:17 +00:00
older than 1.6.9, please follow the link for the version you are on from [here](/docs/upgrading/instructions).
2020-09-14 17:18:08 +00:00
2020-09-15 21:03:17 +00:00
In this guide, we will be using an example with two datacenters (DCs) and will be
2020-09-14 17:18:08 +00:00
referring to them as DC1 and DC2. DC1 will be the primary datacenter.
## Requirements
2021-06-22 18:39:11 +00:00
- All Consul servers should be on a version of Consul >= 1.6.9 and < 1.8.13.
2020-09-14 17:18:08 +00:00
## Assumptions
This guides makes the following assumptions:
2020-09-15 21:03:17 +00:00
- You have at least two datacenters configured and have ACL replication enabled. If you are
2020-09-14 17:18:08 +00:00
not using multiple datacenters, you can follow along and simply skip the instructions related
to replication.
## Considerations
2020-09-15 21:03:17 +00:00
There are not too many major changes that might cause issues upgrading from 1.6.9, but notable changes
2020-09-14 17:18:08 +00:00
are called out in our [Specific Version Details](/docs/upgrading/upgrade-specific#consul-1-8-0)
page. You can find more granular details in the full [changelog](https://github.com/hashicorp/consul/blob/master/CHANGELOG.md#183-august-12-2020).
Looking through these changes prior to upgrading is highly recommended.
## Procedure
2020-09-15 21:03:17 +00:00
**1.** Check replication status in DC1 by issuing the following curl command from a
2020-09-14 17:18:08 +00:00
consul server in that DC:
```shell
curl -s -H "X-Consul-Token: $MASTER_TOKEN" localhost:8500/v1/acl/replication?pretty
```
2020-09-15 21:03:17 +00:00
You should receive output similar to this:
2020-09-14 17:18:08 +00:00
```json
{
"Enabled": false,
"Running": false,
"SourceDatacenter": "",
"ReplicationType": "",
"ReplicatedIndex": 0,
"ReplicatedRoleIndex": 0,
"ReplicatedTokenIndex": 0,
"LastSuccess": "0001-01-01T00:00:00Z",
"LastError": "0001-01-01T00:00:00Z"
}
```
-> The primary datacenter (indicated by `primary_datacenter`) will always show as having replication
disabled, so this is normal even if replication is happening.
2020-09-15 21:03:17 +00:00
**2.** Check replication status in DC2 by issuing the following curl command from a
2020-09-14 17:18:08 +00:00
consul server in that DC:
```shell
curl -s -H "X-Consul-Token: $MASTER_TOKEN" localhost:8500/v1/acl/replication?pretty
```
2020-09-15 21:03:17 +00:00
You should receive output similar to this:
2020-09-14 17:18:08 +00:00
```json
{
"Enabled": true,
"Running": true,
"SourceDatacenter": "dc1",
"ReplicationType": "tokens",
"ReplicatedIndex": 672,
"ReplicatedRoleIndex": 1,
"ReplicatedTokenIndex": 677,
"LastSuccess": "2020-09-14T17:06:07Z",
"LastError": "2020-09-14T16:53:22Z"
}
```
2021-06-22 18:39:11 +00:00
**3.** Upgrade the Consul agents in all DCs to version 1.8.13 by following our [General Upgrade Process](/docs/upgrading/instructions/general-process).
2020-09-14 17:18:08 +00:00
2020-09-15 21:03:17 +00:00
**4.** Confirm that replication is still working in DC2 by issuing the following curl command from a
2020-09-14 17:18:08 +00:00
consul server in that DC:
```shell
curl -s -H "X-Consul-Token: $MASTER_TOKEN" localhost:8500/v1/acl/replication?pretty
```
2020-09-15 21:03:17 +00:00
You should receive output similar to this:
2020-09-14 17:18:08 +00:00
```json
{
"Enabled": true,
"Running": true,
"SourceDatacenter": "dc1",
"ReplicationType": "tokens",
"ReplicatedIndex": 672,
"ReplicatedRoleIndex": 1,
"ReplicatedTokenIndex": 677,
"LastSuccess": "2020-09-14T17:15:16Z",
"LastError": "0001-01-01T00:00:00Z"
}
```
## Post-Upgrade Configuration Changes
No configuration changes are required for this upgrade.