Back

Problem when upgrading from 1.2.1 to 1.3.0

  • 0
  • Self Hosted
  • Tools
jj_mad
9 Nov, 2023, 21:25

Hello all,

I am trying to migrate from 1.2.1 to 1.3.0 so I am following this steps. https://appwrite.io/docs/advanced/self-hosting/update Problem is that when I try to execute this command: docker run -it --rm
\ --volume /var/run/docker.sock:/var/run/docker.sock
\ --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw
\ --entrypoint="upgrade"
\ appwrite/appwrite:1.4.9

I get the following error docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "upgrade": executable file not found in $PATH: unknown.

I am hosting in a QNAP server

Thank you in advance for your time and help

TL;DR
The user is trying to upgrade from version 1.2.1 to 1.3.0 and encountered an error when executing the upgrade command. The solution is to change "--entrypoint" from "upgrade" to "install" in the command. The user also mentions that the documentation should be updated to clarify the upgrade process for previous versions.
ideclon
10 Nov, 2023, 00:09
  1. That command is to upgrade to 1.4.9, not 1.3.0.
  2. Are you sure you’re in the folder above the appwrite/ folder?
Drake
10 Nov, 2023, 19:17

Also, the upgrade command was first introduced in 1.4. Prior to that, you'll need to use the install command, but please make sure to run it in the PARENT folder of the appwrite folder, like ideclon said.

jj_mad
11 Nov, 2023, 12:06

My bad, I directly copied the code from the support page instead of the one I used docker run -it --rm
\ --volume /var/run/docker.sock:/var/run/docker.sock
\ --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw
\ --entrypoint="upgrade"
\ appwrite/appwrite:1.3.0

jj_mad
11 Nov, 2023, 12:07

I also tried in all the possible folder up and down, and in everyone I get the same error.

jj_mad
11 Nov, 2023, 12:15

Thank you for your reply Steven, so it will not work with previous versions? The thing is that I tried out of curiosity this command

docker compose exec appwrite migrate

and it works, I believe it is migrating from 1.2.1 to 1.2.1 which does not makes sense but I get a positive output saying that the migration was correctly performed. Also the documentation page (https://appwrite.io/docs/advanced/self-hosting/update) does not say anything about the starting at 1.4. Actually, the example says 0.6.x and 0.7.x which suggests that from version 0.6 an update can be made.

Ernest
11 Nov, 2023, 17:08

Yes,the documentation needs to be updated to include a note about the upgrade command prior to 1.4.x. But what you need to do is change --entrypoint="upgrade" to --entrypoint="install"

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more