|
| 1 | +--- |
| 2 | +title: Mandatory checkpoint at v0.14.0 • Community Edition |
| 3 | +sidebarTitle: For versions before v0.14.0 |
| 4 | +--- |
| 5 | + |
| 6 | +If you’re upgrading from `v0.13.2` or below, there are some additional migration steps due to significant changes in the self-hosting setup. Follow these instructions to migrate your data to the new volume structure in `v0.14.0`. |
| 7 | + |
| 8 | +1. First, stop the running `v0.13-2` (or older) instance of Plane. If it's still running, you might hit a "ports not available" error, which will prevent the `v0.14-0` containers from starting up correctly. |
| 9 | + ```bash |
| 10 | + docker compose down |
| 11 | + ``` |
| 12 | + |
| 13 | +2. Create a new folder for `v0.14-0` to ensure a clean installation. |
| 14 | + |
| 15 | + ```bash |
| 16 | + mkdir plane-selfhost |
| 17 | + cd plane-selfhost |
| 18 | + ``` |
| 19 | + |
| 20 | +3. Set up the environment variable for the `RELEASE` variable, then download and prepare the installation script: |
| 21 | + ```bash |
| 22 | + export RELEASE=v0.14-dev |
| 23 | + curl -fsSL https://raw.githubusercontent.com/makeplane/plane/master/deploy/selfhost/install.sh | sed -e 's@BRANCH=${BRANCH:-master}@BRANCH='"$RELEASE"'@' -e 's@APP_RELEASE="stable"@APP_RELEASE='"$RELEASE"'@' > setup.sh |
| 24 | + chmod +x setup.sh |
| 25 | + ``` |
| 26 | + |
| 27 | +4. Execute the script to install Plane: |
| 28 | + ```bash |
| 29 | + ./setup.sh install |
| 30 | + ``` |
| 31 | + |
| 32 | +5. Start up your new v0.14-0 Plane instance: |
| 33 | + ```bash |
| 34 | + ./setup.sh start |
| 35 | + ``` |
| 36 | + |
| 37 | +6. Now stop the instance to initialize the new Docker volumes: |
| 38 | + ```bash |
| 39 | + ./setup.sh stop |
| 40 | + ``` |
| 41 | + |
| 42 | +7. Download the migration script: |
| 43 | + ```bash |
| 44 | + curl -fsSL -o migrate.sh https://raw.githubusercontent.com/makeplane/plane/master/deploy/selfhost/migration-0.13-0.14.sh |
| 45 | + chmod +x migrate.sh |
| 46 | + ``` |
| 47 | + |
| 48 | +8. Run the migration script: |
| 49 | + ```bash |
| 50 | + ./migrate.sh |
| 51 | + ``` |
| 52 | + |
| 53 | + You’ll see the following instructions: |
| 54 | + |
| 55 | + ``` |
| 56 | + ****************************************************************** |
| 57 | +
|
| 58 | + This script is solely for the migration purpose only. |
| 59 | + This is a 1 time migration of volume data from v0.13.2 => v0.14.x |
| 60 | +
|
| 61 | + Assumption: |
| 62 | + 1. Postgres data volume name ends with _pgdata |
| 63 | + 2. Minio data volume name ends with _uploads |
| 64 | + 3. Redis data volume name ends with _redisdata |
| 65 | +
|
| 66 | + Any changes to this script can break the migration. |
| 67 | +
|
| 68 | + Before you proceed, make sure you run the below command |
| 69 | + to know the docker volumes |
| 70 | +
|
| 71 | + docker volume ls -q | grep -i "_pgdata" |
| 72 | + docker volume ls -q | grep -i "_uploads" |
| 73 | + docker volume ls -q | grep -i "_redisdata" |
| 74 | +
|
| 75 | + ******************************************************* |
| 76 | +
|
| 77 | + Given below list of REDIS volumes, identify the prefix of source and destination volumes leaving "_redisdata" |
| 78 | + --------------------- |
| 79 | + plane-app_redisdata |
| 80 | + v0132_redisdata |
| 81 | +
|
| 82 | + Provide the Source Volume Prefix : |
| 83 | + ``` |
| 84 | + |
| 85 | +9. Open a second terminal and run the commands shown above to identify your source and destination volume prefixes. For example, if you run `docker volume ls -q | grep -i "_pgdata"`, you might see something like: |
| 86 | + |
| 87 | + <Frame></Frame> |
| 88 | + |
| 89 | + In this example, `plane-013-dev` is the prefix for `v0.13.2`, and `plane-app` is the prefix for `v0.14.0`. |
| 90 | + |
| 91 | +10. Return to the original terminal, enter the source volume prefix `v0132` and destination volume prefix `plane-app`, and press ENTER: |
| 92 | + ```bash |
| 93 | + Provide the Source Volume Prefix : plane-013-dev |
| 94 | + Provide the Destination Volume Prefix : plane-app |
| 95 | + ``` |
| 96 | + |
| 97 | + If there are any issues, an error will appear. For a successful migration, there will be no error, and the process will exit quietly. |
| 98 | + |
| 99 | +  |
| 100 | + |
| 101 | +11. Restart the upgraded v0.14.0 instance with: |
| 102 | + ```bash |
| 103 | + ./setup.sh restart |
| 104 | + ``` |
| 105 | + |
| 106 | +12. Login as instance admin by appending `/god-mode` to your domain. |
| 107 | + |
| 108 | +13. Once logged in, just click **Save Changes** to finalize your setup. |
| 109 | + |
| 110 | +14. You’re all set! Log in to your updated `v0.14-0` instance to check if all of your data has migrated successfully. |
| 111 | + |
| 112 | +15. Now, [update to the latest version](/self-hosting/manage/upgrade-plane#community-edition). |
0 commit comments