title: Puppet: err: Could not retrieve catalog; skipping run
body: <p>I install puppet 2.6.18, test it and it was working  okay.</p>
  
  <p>Then I install Apache and Passenger on the Puppet server.</p>
  
  <p>I run on a puppet agent:</p>
  
  <p>puppet agent —test</p>
  
  <p>And I got the error:</p>
  
  <p>"warning: Not using cache on failed catalog
     err: Could not retrieve catalog; skipping run"</p>
  
  <p>In the puppet server access_log I have:</p>
  
  <p>"GET /production/catalog/puppet.agent.domain?facts=eNqVV2… &amp;facts_format=b64_zlib_yaml HTTP/1.1" 404 343 "-" "-"</p>
  
  <p>And in the error_log I have:</p>
  
  <p>File does not exist: /usr/share/puppet/rack/puppetmasterd/public/production</p>
  
  <p>I check the file /usr/share/puppet/rack/puppetmasterd/public  - is empty. </p>
  
  <p>I just create it as part of the installation.</p>
  
  <p>What I'm missing?</p>