Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with redis #254

Open
bormaa opened this issue Apr 14, 2024 · 2 comments
Open

Issue with redis #254

bormaa opened this issue Apr 14, 2024 · 2 comments
Labels
question Further information is requested

Comments

@bormaa
Copy link

bormaa commented Apr 14, 2024

Suddenly The data in redis becomes empty and karton dashboard looks like new however their were tasks their.
I use this docker configuration for redis

image: redis/redis-stack-server:latest
ports:
  - "6379:6379"
restart: always
healthcheck:
  test: ["CMD", "redis-cli", "ping"]
  interval: 10s
  timeout: 3s
  retries: 10

I checked part of the logs and found this if it can help

209144:C 14 Apr 2024 20:47:31.079 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
8:M 14 Apr 2024 20:47:31.168 * Background saving terminated with success
8:M 14 Apr 2024 20:52:14.504 * DB saved on disk
8:M 14 Apr 2024 20:52:15.174 * <redisgears_2> Got a flush started event
8:M 14 Apr 2024 20:52:15.178 * DB saved on disk
8:M 14 Apr 2024 20:52:17.505 * DB saved on disk
8:M 14 Apr 2024 20:52:18.172 * DB saved on disk
8:M 14 Apr 2024 20:52:18.512 * <redisgears_2> Got a flush started event
8:M 14 Apr 2024 20:52:18.524 * DB saved on disk
8:M 14 Apr 2024 20:52:20.861 * DB saved on disk
8:M 14 Apr 2024 20:57:22.039 * 100 changes in 300 seconds. Saving...
8:M 14 Apr 2024 20:57:22.045 * Background saving started by pid 209492
209492:C 14 Apr 2024 20:57:22.053 * DB saved on disk
209492:C 14 Apr 2024 20:57:22.055 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB

@psrok1
Copy link
Member

psrok1 commented Apr 15, 2024

If that's complete Docker configuration, you probably lacked volume on /data, so Redis database was stored directly in the container which may have been lost during restart.

See also:

@psrok1 psrok1 added the question Further information is requested label Apr 15, 2024
@bormaa
Copy link
Author

bormaa commented Apr 18, 2024

I edited my docker config to be

image: redis/redis-stack-server:latest
ports:
  - "6379:6379"
restart: always
healthcheck:
  test: ["CMD", "redis-cli", "ping"]
  interval: 10s
  timeout: 3s
  retries: 10
volumes:
  - ./redis-data:/data

The issue is still their suddenly finds the dashboard is empty however I am sure their is too many tasks that should take too much time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants