self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

Failure due to - Redis is loading the dataset in memory

Open klemen-df opened this issue 4 months ago • 5 comments

Self-Hosted Version

24.9.0

CPU Architecture

x86_64

Docker Version

27.3.1

Docker Compose Version

2.29.7

Steps to Reproduce

  1. docker compose up -d

Expected Result

Sentry should start successfully

Actual Result

sentry-self-hosted-web-1 fails with 'sentry.exceptions.InvalidConfiguration: Redis is loading the dataset in memory'

I think this is due to:

  redis:
    <<: *restart_policy
    image: "redis:6.2.14-alpine"
    healthcheck:
      <<: *healthcheck_defaults
      **test: redis-cli ping**

So, in the test, we only test if the redis container is up and there's no check if the data was loaded.

If I do this it's more or less always successfull.

**test: sleep 30; redis-cli ping** Since this is not a proper solution, can the test be improved?

Sometimes it's also ok to do it two steps:

docker compose up redis -d
docker compose up -d

Event ID

No response

klemen-df avatar Oct 07 '24 06:10 klemen-df