Back

docker: Error response from daemon: failed to create task for container: failed to create shim task:

  • 0
  • Self Hosted
Issadmin
28 Feb, 2024, 19:21

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

TL;DR
Developers are discussing upgrading their Appwrite version from 1.3.8 to 1.4.13 using Docker. They share commands like `docker compose exec appwrite migrate` and `docker run -it --rm ... --entrypoint="upgrade" appwrite/appwrite:1.4.13` for upgrading. They also encounter errors like "failed to create shim task" and "'upgrade' executable not found." One developer suggests running the command from the parent directory if facing that issue.
Binyamin
28 Feb, 2024, 19:23

How are you upgrading?

Issadmin
28 Feb, 2024, 19:25

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

Binyamin
28 Feb, 2024, 19:26

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

Issadmin
28 Feb, 2024, 19:26

ok

Issadmin
28 Feb, 2024, 19:28

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:~#

Binyamin
28 Feb, 2024, 19:29

Interesting

Binyamin
28 Feb, 2024, 19:29

Can you show the output of docker ps -a

Issadmin
28 Feb, 2024, 19:29
Binyamin
28 Feb, 2024, 19:32

The upgrade binary was added later try this command in the folder I told you

TypeScript
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
Issadmin
28 Feb, 2024, 19:33

ok

Binyamin
28 Feb, 2024, 19:36

When it's done remember to run migrates

TypeScript
root@TestEnv:~/appwrite# docker compose exec appwrite migrate
Binyamin
28 Feb, 2024, 19:37

That go without saying that is good to have backup

Issadmin
28 Feb, 2024, 19:39

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?

Binyamin
28 Feb, 2024, 19:39

Yes

Binyamin
28 Feb, 2024, 19:39

From minor to minor you can upgrade to last one

Issadmin
28 Feb, 2024, 19:40

but now I have upgraded from :1.3.8 to 1.4.13

Issadmin
28 Feb, 2024, 19:41

will there any issues

Issadmin
28 Feb, 2024, 19:42
Binyamin
28 Feb, 2024, 19:43

It should work

Issadmin
28 Feb, 2024, 19:46

ok so do I need to run

cd appwrite/ docker compose exec appwrite migrate

Binyamin
28 Feb, 2024, 19:46

Yes

Issadmin
28 Feb, 2024, 19:46

ok

Issadmin
28 Feb, 2024, 19:49

Thank you

Binyamin
28 Feb, 2024, 19:53

👍

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