title: redis slave won't sync with master
body: <p>The redis slave won't sync with the master.</p>
  
  <h1>Connectivity:</h1>
  
  <p>I can connect to the master when I issue</p>
  
  <pre><code>HOST_NAME=fakehost
  redis-cli -h $HOST_NAME
  </code></pre>
  
  <p>and check the master status using a command like <code>INFO</code>, so connectivity is not an issue.</p>
  
  <h1>Settings:</h1>
  
  <p>From the slave box, I issued</p>
  
  <pre><code>SLAVEOF $HOST_NAME 6379
  </code></pre>
  
  <p>And received an <code>OK</code>.</p>
  
  <p>When I issue the <code>INFO</code> command on the slave, I get</p>
  
  <pre><code># Replication
  role:slave
  master_host:&lt;removed&gt;
  master_port:6379
  master_link_status:down
  master_last_io_seconds_ago:-1
  master_sync_in_progress:0
  master_link_down_since_seconds:1379450797
  slave_priority:100
  slave_read_only:1
  connected_slaves:0
  </code></pre>
  
  <p>On the master box, I issue <code>info</code> and get</p>
  
  <pre><code># Replication
  role:master
  connected_slaves:0
  </code></pre>
  
  <p>So obviously I'm not connected.</p>
  
  <h1>Logs</h1>
  
  <pre><code>[11225] 17 Sep 14:31:33.225 * Connecting to MASTER...
  [11225] 17 Sep 14:31:33.226 * MASTER &lt;-&gt; SLAVE sync started
  [11225] 17 Sep 14:31:33.226 * Non blocking connect for SYNC fired the event.
  [11225] 17 Sep 14:31:33.226 * Master replied to PING, replication can continue...
  [11225] 17 Sep 14:31:33.227 # MASTER aborted replication with an error: ERR Unable to perform background save
  </code></pre>
  
  <h1>Tests</h1>
  
  <p>Test that dump.rdb is created on BGSAVE</p>
  
  <pre><code>BGSAVE
  &gt; OK
  </code></pre>
  
  <p>Test that dump.rdb is created on SAVE</p>
  
  <pre><code>SAVE
  &gt; OK
  </code></pre>
  
  <p>Thanks in advance.</p>