-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Symfony in Docker Swarm - ContextErrorException in Kernel.php cache/dev/classes.map failed to open stream: No such file or directory #23443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I tried to debug, and this is where the compiler crash when processing the PassConfig array . The entry concerned by the crash is the following :: object(Symfony\Component\HttpKernel\DependencyInjection\AddClassesToCachePass)#299 (1) { Any idea about what happening here, because the same project works fine with Docker engine version 17.06.0-ce, build 02c1d87, the latest stable Docker release. But no chance with swarm mode, the cache:clear command throws the warning message above. |
OK, I managed to generate the cache. I was not able to write to the cache directory even when I change the permission to the 777. So, I just remove the following lines from the docker start script - which is recommended by the symfony doc :-( : HTTPDUSER= |
I get this error when I tried to deploy symfony in a Docker swarm node
I tried to remove the cache manually, I remove the vendor directory and I generate a new one with composer, but still give the same error.
Notice that the same config works fine with only docker engine
OS : CentOS 7.3
Virtualization : Docker swarm
The text was updated successfully, but these errors were encountered: