title: Cannot debug.traceTransaction in geth: "missing trie node"
body: <p>I can trace only transactions that where executed in the last 2 - 3 hours with my geth, I get the following errors on transactions executed for 5 hours and more:</p>
  
  <pre><code>&gt; debug.traceTransaction('0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060');
      Error: missing trie node 
      691fc4f4d21d10787902e8f3266711f1d640e75fedbeb406dc0b8d3096128436 (path )
          at web3.js:3143:20
          at web3.js:6347:15
          at web3.js:5081:36
          at &lt;anonymous&gt;:1:1
  
  &gt; debug.traceTransaction('0x19f1df2c7ee6b464720ad28e903aeda1a5ad8780afc22f0b960827bd4fcf656d');
  Error: missing trie node 5412c03b1c22d01fe37fc92d721ab617f94699f9d59a6e68479145412af3edae (path )
      at web3.js:3143:20
      at web3.js:6347:15
      at web3.js:5081:36
      at &lt;anonymous&gt;:1:1
  </code></pre>
  
  <p>Geth node is fullу synced:</p>
  
  <pre><code>&gt; eth.syncing
  false
  </code></pre>
  
  <p>I run it with the following command:</p>
  
  <pre><code>geth --port XXX --datadir XXX --rpcport XXX --rpc --rpcapi admin,debug,miner,shh,txpool,personal,eth,net,web3 console
  </code></pre>
  
  <p>I have tried both geth versions <code>1.7.0</code> and <code>1.7.2</code>. Deleting the blockchain database and resyncing does not help.</p>
  
  <p>How to cope with the problem?</p>