title: Symfony 4 occasionally Compile Error: require(): Failed opening required
body: <p>On occasion in production and not reproducible locally we get these kind of exceptions:</p>
  
  <p><strong>getDoctrine_Orm_DefaultListeners_AttachEntityListenersService</strong>:</p>
  
  <pre><code>{
      "class": "Symfony\\Component\\Debug\\Exception\\FatalErrorException",
      "message": "Compile Error: require(): Failed opening required '\/srv\/api\/var\/cache\/prod\/ContainerWKxhZGH\/getDoctrine_Orm_DefaultListeners_AttachEntityListenersService.php' (include_path='.:\/usr\/local\/lib\/php')",
      "code": 0,
      "file": "\/srv\/api\/var\/cache\/prod\/ContainerWKxhZGH\/srcApp_KernelProdContainer.php:532"
  }
  </code></pre>
  
  <p><strong>getSession_Storage_NativeService</strong>:</p>
  
  <pre><code>{
      "class": "Symfony\\Component\\Debug\\Exception\\FatalErrorException",
      "message": "Compile Error: require(): Failed opening required '\/srv\/api\/var\/cache\/prod\/ContainerAPB4itV\/getSession_Storage_NativeService.php' (include_path='.:\/usr\/local\/lib\/php')",
      "code": 0,
      "file": "\/srv\/api\/var\/cache\/prod\/ContainerAPB4itV\/srcApp_KernelProdContainer.php:532"
  }
  </code></pre>
  
  <p><strong>getApiPlatform_Listener_View_RespondService</strong>:</p>
  
  <pre><code>{
      "class": "Symfony\\Component\\Debug\\Exception\\FatalErrorException",
      "message": "Compile Error: require(): Failed opening required '\/srv\/api\/var\/cache\/prod\/Container8GRzllw\/getApiPlatform_Listener_View_RespondService.php' (include_path='.:\/usr\/local\/lib\/php')",
      "code": 0,
      "file": "\/srv\/api\/var\/cache\/prod\/Container8GRzllw\/srcApp_KernelProdContainer.php:532"
  }
  </code></pre>
  
  <p>We have two instances running and use Symfony as API. We clear the cache when booting which nowadays also warms it up.</p>
  
  <p>Symfony v4.3.4</p>
  
  <p>Anyone got an idea where to start looking for the issue?</p>