title: Graphite's Carbon-Cache returning 0 datapoints for > 7 days view
body: <p>I've setup Graphite + Carbon + Graphina in order to collect data about my home automations and various states of devices in my apartment. Everything was working well up until recently where at least one of my metrics collections doesn't seem to be migrating data from the week view into the 30 day view (as the retention rates dictate).</p>
  
  <p>All of my retention setups were configured exactly the same, so I don't understand why the retention policy wouldn't work for just one sensor.</p>
  
  <p>Here is the state.wsp for the problematic graph:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>maxRetention: 315360000
  xFilesFactor: 0.5
  aggregationMethod: average
  fileSize: 523252
  
  Archive 0
  retention: 604800
  secondsPerPoint: 60
  points: 10080
  size: 120960
  offset: 52
  
  Archive 1
  retention: 2592000
  secondsPerPoint: 600
  points: 4320
  size: 51840
  offset: 121012
  
  Archive 2
  retention: 315360000
  secondsPerPoint: 10800
  points: 29200
  size: 350400
  offset: 172852</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here is the state.wsp for a working graph:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>maxRetention: 315360000
  xFilesFactor: 0.5
  aggregationMethod: average
  fileSize: 523252
  
  Archive 0
  retention: 604800
  secondsPerPoint: 60
  points: 10080
  size: 120960
  offset: 52
  
  Archive 1
  retention: 2592000
  secondsPerPoint: 600
  points: 4320
  size: 51840
  offset: 121012
  
  Archive 2
  retention: 315360000
  secondsPerPoint: 10800
  points: 29200
  size: 350400
  offset: 172852</code></pre>
  </div>
  </div>
  </p>
  
  <p>So as far as my research goes, both graphs should be archiving the data the same way, but once I move away from the &lt;=7 day view, I get a blank graph:</p>
  
  <p><a href="https://imgur.com/a/gWSJK" rel="nofollow noreferrer">http://imgur.com/a/gWSJK</a> (apologies for the imgur link - not sure of the best way to paste an image here)</p>
  
  <p>Any and all help is appreciated! If there is some information that might help with debugging, please let me know.</p>