2021-05-13 23:48:51 +00:00
---
title: Google Cloud Platform
---
2025-01-19 07:50:04 +00:00
< Collapsible title = "Important: Upgrading to v2.x from v1.16.0 or older" type = "info" >
MongoDB major version was upgraded from `v5.x` to `6.x` . Please note that if your current ClearML Server version is older than
`v1.17` (where MongoDB `v5.x` was first used), you'll need to first upgrade to ClearML Server v1.17.
2025-02-13 11:21:35 +00:00
First upgrade to ClearML Server v1.17 following the procedure below and using [this `docker-compose` file ](https://github.com/clearml/clearml-server/blob/2976ce69cc91550a3614996e8a8d8cd799af2efd/upgrade/1_17_to_2_0/docker-compose.yml ). Once successfully upgraded,
2025-01-19 07:50:04 +00:00
you can proceed to upgrade to v2.x.
< / Collapsible >
2021-05-13 23:48:51 +00:00
**To upgrade ClearML Server Docker deployment:**
1. Shut down the docker containers with the following command:
2024-06-30 06:16:11 +00:00
```
docker-compose -f docker-compose.yml down
```
2022-02-13 16:54:59 +00:00
2021-05-13 23:48:51 +00:00
1. If upgrading from **Trains Server** version 0.15 or older to **ClearML Server** , do the following:
2022-02-13 16:54:59 +00:00
1. Follow these [data migration instructions ](clearml_server_es7_migration.md ),
2021-05-13 23:48:51 +00:00
and then continue this upgrade.
2024-07-21 12:19:32 +00:00
1. Rename `/opt/trains` and its subdirectories to `/opt/clearml` :
2021-05-13 23:48:51 +00:00
2024-06-30 06:16:11 +00:00
```
sudo mv /opt/trains /opt/clearml
```
2022-02-13 17:40:04 +00:00
1. If upgrading from ClearML Server version older than 1.2, you need to migrate your data before upgrading your server. See instructions [here ](clearml_server_mongo44_migration.md ).
2022-05-19 06:59:10 +00:00
1. [Backing up data ](clearml_server_gcp.md#backing-up-and-restoring-data-and-configuration ) is recommended, and if the configuration folder is
2021-05-13 23:48:51 +00:00
not empty, backing up the configuration.
2024-07-21 12:19:32 +00:00
1. Download the latest `docker-compose.yml` file:
2021-05-13 23:48:51 +00:00
2024-06-30 06:16:11 +00:00
```
curl https://raw.githubusercontent.com/allegroai/clearml-server/master/docker/docker-compose.yml -o /opt/clearml/docker-compose.yml
```
2022-05-19 06:59:10 +00:00
1. Startup ClearML Server. This automatically pulls the latest ClearML Server build.
2021-05-13 23:48:51 +00:00
2024-06-30 06:16:11 +00:00
```
docker-compose -f /opt/clearml/docker-compose.yml pull
docker-compose -f /opt/clearml/docker-compose.yml up -d
```
2021-05-13 23:48:51 +00:00
2024-07-21 12:19:32 +00:00
If issues arise during your upgrade, see the FAQ page, [How do I fix Docker upgrade errors? ](../faq.md#common-docker-upgrade-errors )