redis does not shutdown properly

2,521 views
Skip to first unread message

Raghava Mutharaju

unread,
Nov 2, 2011, 4:10:33 PM11/2/11
to redi...@googlegroups.com
Hello all,

I am using start-stop-daemon to start and stop redis-server. When I am trying to shut it down, I get the following messages on redis-server console

[21324] 02 Nov 15:59:35 # SIGTERM received but errors trying to shut down the server, check the logs for more information
[21324] 02 Nov 15:59:36 # User requested shutdown...
[21324] 02 Nov 15:59:36 * Saving the final RDB snapshot before exiting.
[21324] 02 Nov 15:59:36 # Failed saving the DB: Permission denied
[21324] 02 Nov 15:59:36 # Error trying to save the DB, can't exit.

I found the following link https://github.com/mxcl/homebrew/issues/4805 and tried changing the permissions of redis/src and dump.rdb. But that didn't work.

Is there a way to avoid this error?

Thank you.

Regards,
Raghava.

Josiah Carlson

unread,
Nov 2, 2011, 6:37:13 PM11/2/11
to redi...@googlegroups.com
The solution is to have proper permissions on the paths and files
before Redis starts up. Older versions of Redis used to fail if they
were started with bad permissions. You may be in that situation.

If you are okay with losing the data you have in Redis, and you just
want to close it down, you can try a 'kill -9 <redis pid>'.

Regards,
- Josiah

> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to
> redis-db+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/redis-db?hl=en.
>

Raghava Mutharaju

unread,
Nov 3, 2011, 12:42:56 AM11/3/11
to redi...@googlegroups.com
Thank you. I would try that and check it out.

Regards,
Raghava.
Reply all
Reply to author
Forward
0 new messages