Upgrade

URL:
https://<site-url>/upgrade
Methods:
POST
Required Capability:
Access allowed only with the default administrator role
Version Introduced:
10.5

Description

The upgrade operation is the first operation that must be invoked during an ArcGIS Server upgrade. Once the new software version has been installed and the setup has completed, the upgrade operation will be available. A successful run of this operation will complete the upgrade of ArcGIS Server. This operation is available only when a server machine is currently being upgraded. It will not be available after a successful upgrade of a server machine.

Request parameters

ParameterDetails

runAsync

A flag that indicates whether the operation must be run asynchronously. If submitted synchronously, the response will be returned once the upgrade process completes successfully or if the request fails. If submitted asynchronously, the upgrade operation can be polled by making a request to the root resource. The default value is false (synchronously).

Values: true | false

enableDebug

Introduced at 11.0. This parameter sets the log level for the upgrade process. If true, the log level is set to DEBUG during the upgrade, which can aid in troubleshooting issues related to the upgrade process. If false, the log level is set to VERBOSE during the upgrade process. The default value is false.

Values: true | false

f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

The following is a sample POST request for the upgrade operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /webadaptor/admin/upgrade HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

runAsync=false&enableDeubg=false&f=pjson

JSON Response examples

Below are the possible responses that can be returned when performing an upgrade.

Synchronous upgrade JSON response example

The following example demonstrates the response returned when the upgrade completes successfully.

Use dark colors for code blocksCopy
1
  {"status": "success"}

Asynchronous upgrade JSON response examples

While the upgrade is in progress, the root resource can be polled to return the upgrade's current status. The following sample demonstrates the updated response.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
  "status": "In Progress",
  "upgradeFromVersion": "11.2.0",
  "upgradeToVersion": "11.4.0",
  "stages": [
  {
  "startTime": 1723216666222,
  "lastUpdated": 1723216666303,
  "name": "Initialize upgrade and check licenses",
  "state": "Succeeded"
  },
  {
  "startTime": 1723216666222,
  "lastUpdated": 1723216667598,
  "name": "Upgrade site configurations",
  "state": "Succeeded"
  },
  {
  "startTime": 1723216666222,
  "lastUpdated": 1723216667607,
  "name": "Upgrade and start System and Utility services",
  "state": "In Progress"
  },
  {
  "startTime": 1723216666222,
  "lastUpdated": 1723216666222,
  "name": "Synchronize local machine with site",
  "state": "Not Started"
  },
  {
  "startTime": 1723216666222,
  "lastUpdated": 1723216666222,
  "name": "Configure Extensions and data providers",
  "state": "Not Started"
  },
  {
  "startTime": 1723216666222,
  "lastUpdated": 1723216666222,
  "name": "Generate SSL Certificate and Enable SSL",
  "state": "Not Started"
  },
  {
  "startTime": 1723216666222,
  "lastUpdated": 1723216666222,
  "name": "Final checks and cleanup",
  "state": "Not Started"
  }
  ],
  "messages": "",
  "warnings": []
  }

Once the upgrade has successfully completed, the root resource will return the following success response.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  {
  "status": "Success",
  "upgradeFromVersion": "11.2.0",
  "upgradeToVersion": "11.4.0",
  "stages": [
  {
  "startTime": 1723216666222,
  "lastUpdated": 1723216666303,
  "name": "Initialize upgrade and check licenses",
  "state": "Succeeded"
  },
  {
  "startTime": 1723216666222,
  "lastUpdated": 1723216667598,
  "name": "Upgrade site configurations",
  "state": "Succeeded"
  },
  {
  "startTime": 1723216666222,
  "lastUpdated": 1723216749624,
  "name": "Upgrade and start System and Utility services",
  "state": "Succeeded"
  },
  {
  "startTime": 1723216666222,
  "lastUpdated": 1723216790931,
  "name": "Synchronize local machine with site",
  "state": "Succeeded"
  },
  {
  "startTime": 1723216666222,
  "lastUpdated": 1723216791243,
  "name": "Configure Extensions and data providers",
  "state": "Succeeded"
  },
  {
  "startTime": 1723216666222,
  "lastUpdated": 1723216791268,
  "name": "Generate SSL Certificate and Enable SSL",
  "state": "Succeeded"
  },
  {
  "startTime": 1723216666222,
  "lastUpdated": 1723216794061,
  "name": "Final checks and cleanup",
  "state": "Succeeded"
  }
  ],
  "messages": "",
  "warnings": []
  }

If the upgrade is complete, but there are action items that must be performed, the root resource will return a success response with a warnings property that will contain information about those action items.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  {
  "status": "Success with warnings",
  "upgradeFromVersion": "10.9.1",
  "upgradeToVersion": "11.4.0",
  "stages": [
  {
  "startTime": 1724279351022,
  "lastUpdated": 1724279351494,
  "name": "Initialize upgrade and check licenses",
  "state": "Succeeded"
  },
  {
  "startTime": 1724279351022,
  "lastUpdated": 1724279355450,
  "name": "Upgrade site configurations",
  "state": "Succeeded"
  },
  {
  "startTime": 1724279351022,
  "lastUpdated": 1724279646570,
  "name": "Upgrade and start System and Utility services",
  "state": "Succeeded"
  },
  {
  "startTime": 1724279351022,
  "lastUpdated": 1724279694488,
  "name": "Synchronize local machine with site",
  "state": "Succeeded"
  },
  {
  "startTime": 1724279351022,
  "lastUpdated": 1724279695934,
  "name": "Configure Extensions and data providers",
  "state": "Succeeded"
  },
  {
  "startTime": 1724279351022,
  "lastUpdated": 1724279696940,
  "name": "Generate SSL Certificate and Enable SSL",
  "state": "Succeeded"
  },
  {
  "startTime": 1724279351022,
  "lastUpdated": 1724279701608,
  "name": "Final checks and cleanup",
  "state": "Succeeded with warnings"
  }
  ],
  "messages": "",
  "warnings": ["Found mismatch in the .NET Extension Support installation on machines in the site. All machines in a site are required to have the same .NET Extension Support configuration. Information on how to resolve this issue is available in the help topic 'About multiple-machine ArcGIS Server sites'."]
  }

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.