Location of Redis' temp file for replication?

optikfluffel picture optikfluffel · Jul 31, 2012 · Viewed 12.2k times · Source

I tried to set up a Master-Slave sync on a debian machine. I always get that error in my logs and I can't figure out where the temp file should be =/

[9559] 31 Jul 11:48:17 * Connecting to MASTER...
[9559] 31 Jul 11:48:17 * MASTER <-> SLAVE sync started
[9559] 31 Jul 11:48:17 * Non blocking connect for SYNC fired the event.
[9559] 31 Jul 11:48:22 # Opening the temp file needed for MASTER <-> SLAVE synchronization: Permission denied

Hope you guys can help me :)

Answer

Theo picture Theo · Jul 31, 2012

Most likely the user running the redis-server process doesn't have access to the working directory.

Check your redis.conf (in most cases /etc/redis.conf) and find the dir setting (search for "The working directory" to find it and the docs for it), make sure that the directory is writeable by the user running redis-server.