Back

[SOLVED] a lot of volumes in docker for appwrite after update from 1.3 to 1.4 and 1.4.1

  • 0
  • General
WuGGu
11 Sep, 2023, 14:53
TypeScript
[root@rocky-docker ~]# docker volume ls
DRIVER    VOLUME NAME
local     appwrite_appwrite-builds
local     appwrite_appwrite-cache
local     appwrite_appwrite-certificates
local     appwrite_appwrite-config
local     appwrite_appwrite-functions
local     appwrite_appwrite-influxdb
local     appwrite_appwrite-mariadb
local     appwrite_appwrite-redis
local     appwrite_appwrite-uploads
TypeScript
[root@rocky-docker volumes]# du -sh *
8.0K    appwrite_appwrite-builds
472K    appwrite_appwrite-cache
32K    appwrite_appwrite-certificates
12K    appwrite_appwrite-config
8.0K    appwrite_appwrite-functions
19M    appwrite_appwrite-influxdb
447M    appwrite_appwrite-mariadb
304K    appwrite_appwrite-redis
59M    appwrite_appwrite-uploads
0    backingFsBlockDev
60K    metadata.db

Ok thanks for the hint. this was not a volume it was all cache in overlay2. docker system prune --all --volumes --force cleand just 61GB of space 😄

TL;DR
After updating from version 1.3 to 1.4 and 1.4.1 in Appwrite, a user experienced an increase in volumes in Docker. They asked for help regarding the issue. Another user suggested using the command mentioned in the Appwrite documentation for upgrading. The solution provided was to run the following commands: 1. Backup the data. 2. Revert to version 1.3.8. 3. Run the upgrade command: `docker run -it --rm --volume /var/run/docker.sock:/var/run/docker.sock --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:
Screentapper
11 Sep, 2023, 14:56

I also find the output of docker system df very helpful

WuGGu
11 Sep, 2023, 14:58

ah nice thanks for the hint.

Binyamin
11 Sep, 2023, 14:59

Great

WuGGu
11 Sep, 2023, 15:01

Do you have any idea why Container appwrite-executor Starting never stops starting with docker compose up -d Appwrite is runing but I have to close the terminal and log in again.

Binyamin
11 Sep, 2023, 15:03

You have version 1.4 right? appwrite-executor should be replaced with openruntimes-executor

Binyamin
11 Sep, 2023, 15:03

What are the results of

TypeScript
docker ps -a
WuGGu
11 Sep, 2023, 15:04
TypeScript
CONTAINER ID   IMAGE                     COMMAND                  CREATED         STATUS          PORTS                                                                      NAMES
2212eb71ac6b   traefik:2.7               "/entrypoint.sh --pr…"   2 minutes ago   Up 2 minutes    0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp   appwrite-traefik
0b75a836bdd3   appwrite/appwrite:1.4.2   "worker-databases"       2 minutes ago   Up 2 minutes    80/tcp                                                                     appwrite-worker-databases
d46269af28c4   appwrite/appwrite:1.4.2   "worker-messaging"       2 minutes ago   Up 2 minutes    80/tcp                                                                     appwrite-worker-messaging
10cf93cddab9   appwrite/appwrite:1.4.2   "worker-mails"           2 minutes ago   Up 2 minutes    80/tcp                                                                     appwrite-worker-mails
17755d7d0bf8   appwrite/appwrite:1.4.2   "schedule"               2 minutes ago   Up 17 seconds   80/tcp                                                                     appwrite-schedule
2c464fc635f4   appwrite/appwrite:1.4.2   "worker-certificates"    2 minutes ago   Up 2 minutes    80/tcp                                                                     appwrite-worker-certificates
80289e51b84e   appwrite/appwrite:1.4.2   "docker-php-entrypoi…"   2 minutes ago   Up 2 minutes    80/tcp                                                                     appwrite
c46f5124cf41   appwrite/appwrite:1.4.2   "worker-builds"          2 minutes ago   Up 2 minutes    80/tcp                                                                     appwrite-worker-builds
6cbbe2d7f985   appwrite/appwrite:1.4.2   "usage"                  2 minutes ago   Up 2 minutes    80/tcp                                                                     appwrite-usage
                                    appwrite-influxdb
WuGGu
11 Sep, 2023, 15:04
TypeScript
3640cd2e94e3   appwrite/appwrite:1.4.2   "worker-deletes"         2 minutes ago   Up 2 minutes    80/tcp                                                                     appwrite-worker-deletes
c2f296cd308b   appwrite/appwrite:1.4.2   "worker-webhooks"        2 minutes ago   Up 2 minutes    80/tcp                                                                     appwrite-worker-webhooks
ea091bf92140   appwrite/appwrite:1.4.2   "realtime"               2 minutes ago   Up 2 minutes    80/tcp                                                                     appwrite-realtime
22b95eb2273f   appwrite/appwrite:1.4.2   "maintenance"            2 minutes ago   Up 2 minutes    80/tcp                                                                     appwrite-maintenance
13b2c105c1ec   appwrite/appwrite:1.4.2   "worker-audits"          2 minutes ago   Up 2 minutes    80/tcp                                                                     appwrite-worker-audits
f726095d917e   appwrite/telegraf:1.4.0   "/entrypoint.sh tele…"   2 minutes ago   Up 2 minutes    8092/udp, 8125/udp, 8094/tcp                                               appwrite-telegraf
6297f32f1777   redis:7.0.4-alpine        "docker-entrypoint.s…"   2 minutes ago   Up 2 minutes    6379/tcp                                                                   appwrite-redis
6390b32eaf8d   mariadb:10.7              "docker-entrypoint.s…"   2 minutes ago   Up 2 minutes    3306/tcp                                                                   appwrite-mariadb
7eb1e2616514   appwrite/influxdb:1.5.0   "/entrypoint.sh infl…"   2 minutes ago   Up 2 minutes    8086/tcp                          ```
WuGGu
11 Sep, 2023, 15:04

so my docker compose file is old ?

Binyamin
11 Sep, 2023, 15:05

How you've did the upgrade?

WuGGu
11 Sep, 2023, 15:05

just change the docker image version to 1.4.2 for all appwrite images

Binyamin
11 Sep, 2023, 15:05

Gotcha

Binyamin
11 Sep, 2023, 15:07

So in version 1.4.0 Appwrite introduced a new docker-compose structure and it's best to go the automate way What I suggest to do is

  1. backup
  2. revert all to version 1.3.8
  3. Run upgrade
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.2
  1. Run migrate
WuGGu
11 Sep, 2023, 15:09

so no need for my docker compose file anymore?

Binyamin
11 Sep, 2023, 15:11

You need

Binyamin
11 Sep, 2023, 15:11

But this command will upgrade it to the next version

WuGGu
11 Sep, 2023, 15:11

check

Binyamin
11 Sep, 2023, 15:12

Run the command folder above your docker-compose.yml file, like you can see here

WuGGu
11 Sep, 2023, 15:14

everything worked out. Thank you very much for doing this! I really appreciate the help!

Binyamin
11 Sep, 2023, 15:14

<:appwritefire:823999000330895380> Sure

Guille
11 Sep, 2023, 15:15

[SOLVED] a lot of volumes in docker for appwrite after update from 1.3 to 1.4 and 1.4.1

iStornZ
11 Sep, 2023, 16:01

How much space appwrite is taking on your Hetzner server ? I had the CX21 offer with 2 vCPU, 4gb Ram & 20Gb disk & after a prune appwrite seems to take 10Gb.

Thanks for your reply 🙂

WuGGu
11 Sep, 2023, 16:21
TypeScript
21G    /var/lib/docker/overlay2

I have a CPX21 with 3vCPU 4GB RAM and 80GB storage. I use this machine also as GitLab Runner Build Server for my CI/CD. So not all 21GB should be appwrite.

iStornZ
11 Sep, 2023, 16:22

Thanks a lot !

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