-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
Unable to set configuration parameter "save" through the command line. #2366
Comments
Yeah, it's broken for input arguments. Redis checks for 2 arguments after The issue is here: https://github.com/antirez/redis/blob/2ac7b5a8b41bb71fce52c86f9ba420769663609e/src/config.c#L154-L164 — I guess if |
Well the simple solution is just to run it like this:
Then it seems to work properly:
That being said, it probably should work even if the argument is quoted. Properly supporting it though (in a non hacky way) probably involves a more formalized argv processing mechanism. |
That's a really good point. I think I was remembering the docs for CONFIG SET where it mentions things should be quoted:
|
Thanks a lot for all the feedback. I think not quoting is OK, I was just focused on quoting because the documentation said so. |
Hi, I have created a new Redis. I have configured AWS Lambda functions which will update the Redis key every 5 mins. But in this process, Redis is removing all the keys and replacing those keys with named backup1, backup2, backup3 and backup4 Any know the solution for this? I am trying to resolve this; it has already been half a day spent and no improvement. |
There's nothing in Redis that would do that automatically. Are you sure it isn't another client making the changes? I'd try using the Is the server open to the world? This looks like a known Redis exploit: |
What.... Hacked. Man. Really thanks for helping out. Yes, Redis is not yet protected it is open. I created it today only. Let me protect it first and try. |
Hi @michael-grunder . It worked. As you said Redis is compromised I assume. After I protected the Redis with a password, the issue was resolved. Thanks for your help. You saved my day. |
I've started a Redis instance without a config file, with all parameters passed through command line. One of those parameters was the
save
parameter. The instance is not reporting the values I've set through the command line. Is this expected?The text was updated successfully, but these errors were encountered: