Back

[SOLVED] Redis Error, lack of memory or disk space

  • 0
  • Self Hosted
Ponguta_
24 Mar, 2023, 15:24

Hello, I'm getting this in appwrite docker container logs.

I'm getting this when I try to delete a collection, or while creating an attribute.

TL;DR
User was experiencing a Redis Error due to lack of memory or disk space. They initially thought it was HDD related but later realized they were checking the wrong file. The issue was identified in the `docker-compose.yml` file, specifically in the Redis configuration. The user's VM ran out of HDD space, which caused the problem. The solution involved checking the Redis configuration in the compose file and looking at the logs for the `appwrite-worker-databases` container. It was also suggested to ensure that enough memory was available and to check if any modifications were made to the compose file after installation.
Drake
24 Mar, 2023, 15:26

I think i've seen this sometimes if the machine doesn't have enough memory

Drake
24 Mar, 2023, 15:27

did you install appwrite using the install command? Did you tweak the compose file after?

Ponguta_
24 Mar, 2023, 15:30

I don't think I have touched redis configs. Probably because I'm using a Virtualbox VM?

Ponguta_
24 Mar, 2023, 15:44

what

Drake
24 Mar, 2023, 16:29

you'll have to look at the logs for the appwrite-worker-databases container for this

Drake
24 Mar, 2023, 16:29

so your compose file has this in redis config:

TypeScript
      --maxmemory            512mb
      --maxmemory-policy     allkeys-lru
      --maxmemory-samples    5
```?
Ponguta_
24 Mar, 2023, 17:43

Sorry Steven, seems like my VM ran out of HDD. So I think that was the problem

Ponguta_
24 Mar, 2023, 17:46

btw, my docker-compose file only has:

TypeScript
_APP_REDIS_HOST=redis
_APP_REDIS_PORT=6379
_APP_REDIS_USER=
_APP_REDIS_PASS=

As REDIS env variables

Ponguta_
24 Mar, 2023, 17:47

where can I find this?

Drake
24 Mar, 2023, 18:11

wait what? That shouldn't be in your docker-compose.yml file...

Drake
24 Mar, 2023, 18:11

in your docker-compose.yml file...

Ponguta_
24 Mar, 2023, 19:21

haha sorry, I was confused checking .env

God, im so tired.

Let me check again!

Ponguta_
24 Mar, 2023, 19:30

seems like I have those. I think my problem was HDD related

Ponguta_
26 Mar, 2023, 21:06

[SOLVED] Redis Error, lack of memory or disk space

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