redis-master slave setup failing -


i have started server port 6001 master persistence aof turned off,slave port 6002 master of 6001.however on startup of slave getting below error in infinite loop note able find error logs of same..

slave infinite loop logs :   [5556] 20 aug 21:34:28.499 # server started, redis version 3.2.100 [5556] 20 aug 21:34:28.500 * db loaded disk: 0.001 seconds [5556] 20 aug 21:34:28.500 * server ready accept connections on port 6002 [5556] 20 aug 21:34:28.501 * connecting master localhost:6001 [5556] 20 aug 21:34:28.513 * master <-> slave sync started [5556] 20 aug 21:34:29.513 * non blocking connect sync fired event. [5556] 20 aug 21:34:29.513 # sending command master in replication handshake: -writing master: unknown error [5556] 20 aug 21:34:29.516 * connecting master localhost:6001 [5556] 20 aug 21:34:29.517 * master <-> slave sync started 

issue resolved,redis.conf contained 127.0.0.1 bind value,and slave redis.conf file ,i had slave of localhost .replacing localhost 127.0.0.1 resolved issue


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -