docker: Error response from daemon: failed to create task for container: failed to create shim task:
- 0
- Self Hosted

Im getting error while upgrading appwrite:1.3.8 to appwrite:1.4.0

How are you upgrading?

I'm running under appwrite directory where the docker.yml and .env file recides
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.1

Try to run it in the folder above
So if your appwrite folder is at /root/home/appwrite
Run it from /root/home

ok

root@TestEnv:~/appwrite# ll
drwxr-xr-x 2 root root 4096 Feb 28 19:39 appwrite/
-rw-r--r-- 1 root root 18130 Feb 28 19:01 docker-compose.yml
-rw-r--r-- 1 root root 2847 Feb 28 19:01 .env
root@TestEnv:/appwrite# pwd
/root/appwrite
root@TestEnv:/appwrite# cd ..
root@TestEnv:# pwd
/root
root@TestEnv:# 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.0
docker: Error response from daemon: failed to create task for container: 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. root@TestEnv:~#

Interesting

Can you show the output of docker ps -a


The upgrade
binary was added later try this command in the folder I told you
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.13

ok

When it's done remember to run migrates
root@TestEnv:~/appwrite# docker compose exec appwrite migrate

That go without saying that is good to have backup

is it ok to directly upgrade to 1.4.13 version since your guide shows it only supports migration only to the immediately higher versions?

Yes

From minor to minor you can upgrade to last one

but now I have upgraded from :1.3.8 to 1.4.13

will there any issues


It should work

ok so do I need to run
cd appwrite/ docker compose exec appwrite migrate

Yes

ok

Thank you

👍
Recommended threads
- PKCE, Etsy, OIDC, External OAuth provide...
first, thanks for creating and maintaining this software. I'm almost glad i couldn't convince my (wise and wonderful) senior devs to try pocketbase on productio...
- Still an issue? On user deletion, target...
This has been mentioned here: https://discord.com/channels/564160730845151244/1295830646039515146 and as a Github issue here: https://github.com/appwrite/appwri...
- Appwrite database is rounding int values
Hi, i just noticed that appwrite is rounding the value 608542412536545279 to 608542412536545300 in my int array. It seems to somewhat relate to this github iss...
