-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Container] cache:warmup failed to produce route cache, cache:clear works #57429
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
This is especially dangerous when deploying to a readonly file system (e.g. AWS Lambda), as the router will try to generate the file on-demand but fails to write then. Currently this keeps me from upgrading to 7.1. |
@umulmrum this is exactly why I've noticed this, but as noted, |
|
#57554 should be the fix. I missed that it wasn’t already linked when closing this issue. |
Symfony version(s) affected
7.1.1
Description
While upgrading from 7.0 to 7.1, my app started saying no routes exist.
I was doing
RUN bin/console cache:warmup --no-interaction -vvv
in my Dockerfile, cache folder doesn't exist before the command runs.
How to reproduce
Possible Solution
Have warmup behave exactly like clear would if it's running without a prior cache being present.
Alternatively, if this is impossible, have warmup throw it if notices there's no prior cache present because this is way too subtle of a change.
Additional Context
#53450 intended to fix this, but was closed.
The text was updated successfully, but these errors were encountered: