Crash report

MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled.

Why I get this error in every few hour ? I create place for data to be stored " CONFIG SET dir "/var/lib/redis" " but after few hour everything disappear... So I have to create folder again.

Comment From: itamarhaber

Hello @cedoburic1

Unexplained behavior is most likely the result of leaving the server open to the internet, thereby leading to hijack attempts. Is your server password-protected?

Comment From: cedoburic1

@itamarhaber First of all thank you for quick replay. I`m using AWS EC2 (ubuntu) and my server is password protected...

Also I want to mention that I use REDIS with my nodeJS so maybe in this line of code I made mistake ( but I`m not sure that can be error)

client.setex("people", 172800, JSON.stringify(people));

Comment From: itamarhaber

server is password protected

Meaning, the redis-server process requires a password to connect and its port is not open to the entire world via security groups?

Comment From: cedoburic1

@itamarhaber Well all configuration that I do is maxmemory 128mb maxmemory-policy allkeys-lru on conf file

But redis-server password I did not create. Since I`m new at REDIS , is there any chance to tell me how I can make it ?

Comment From: itamarhaber

Have a look at https://redis.io/topics/security :)

Comment From: cedoburic1

@itamarhaber Before you send me this link i google a little bit so I need to change # requirepass foobared to

requirepass (my password goes here) ?

Comment From: itamarhaber

Yep, and restart the server for the change to take affect. If you don't want to restart, send a CONFIG SET requirepass (your password) via the cli or similar.

Comment From: cedoburic1

@itamarhaber I make changes and after few hour, problem is still the same I had to write "CONFIG SET dir "/var/lib/redis" " again so I can get my data cashed... Is there any other suggest ?

Comment From: oranagra

@cedoburic1 please upload the redis log file, it will probably include an indication as to why redis can't persist. it might also help to see your config (CONFIG GET *) and info (INFO ALL) to reduce ping-pong on this chat. please remove any sensitive details before posting in public.