Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Location of Redis' temp file for replication?

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 :)

like image 496
optikfluffel Avatar asked Jul 31 '12 09:07

optikfluffel


People also ask

Where is the Redis config file?

The Redis configuration file is located at installdir/redis/etc/redis. conf.


1 Answers

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.

like image 126
Theo Avatar answered Sep 19 '22 14:09

Theo