Symfony Cache doctrine/orm/Proxies failed to open stream /Proxy/AbstractProxyFactory.php on line 209
<p>I'm try to move symfony to shared host.</p>

<p>I moved symfony structure to / and my web folder is /public_html.</p>

<blockquote>
  <p>Warning: require(/home/user/app/cache/prod/doctrine/orm/Proxies/__CG__UserBundleEntityUser.php): failed to open stream: No such file or directory in /home/user/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 209</p>
  
  <p>Warning: require(/home/user/app/cache/prod/doctrine/orm/Proxies/__CG__UserBundleEntityUser.php): failed to open stream: No such file or directory in /home/user/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 209</p>
  
  <p>Fatal error: require(): Failed opening required '/home/user/app/cache/prod/doctrine/orm/Proxies/__CG__UserBundleEntityUser.php' (include_path='.:/opt/php55/lib/php') in /home/user/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 209</p>
</blockquote>

<p>This error occurs only in the <code>prod</code> environment. The exception is not thrown in the <code>dev</code> environment. </p>

<p>I tried the following:</p>

<pre><code>rm -rf /app/cache + chmod 777
app/console cache:warmup
</code></pre>

<p>I use Symfony 2.8.3. The following directories are present locally and on the server:</p>

<p>LOCAL CACHE:
- /annotations, /twig, /vich_uploader + /doctrine, /translations</p>

<p>SERVER CACHE:
- /annotations, /twig, /vich_uploader</p>

<p>If I upload my local cache to the server, the exception disappears.</p>