-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Kernel Error From cache:clear After Upgrade #53566
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
Workaround, based on the path info in the error message:
|
Does the issue persist or are you now able to run the |
The workaround is to manually remove the entire cache. The issue does not persist after clearing the cache. However, because the This could be either a console issue or an upgrade documentation issue or both. I doubt the problem is specific to the kernel. |
Upgrading to 7.0 from which version ? |
I'll check the composer.json log for details... 5.4 in January |
this is weird. In 6.4, the generated container should not have The generated cache is not compatible with 2 major versions higher. |
As I mentioned in the top post, this machine is rarely ever in |
I am not convinced that having an application pending over several major versions, but never deploy them to production is a use case common enough to be explicitly mentioned in the upgrade guide. In any case this then doesn't seem to be an actual issue with the code then, but please feel free to open an issue in the docs repository if you thin that the docs can somehow be improved around this topic. |
Slightly off topic but following the best practices from the same docs, the |
Maybe I misunderstand your previous comment then. Having the dev environment locally when debugging and prod on production is of course a common use case and how you should work with your applications. But that doesn't explain why your cache would need to "jump" from 5.4 to 7.0. |
Cache needs to jump based on how often (if ever) the config is changed on the dev machine. Essentially because the dev machine almost never needs to use the prod cache, and because the upgrading instructions don't direct any manual changes to either the config nor the cache itself. And you're saying the console is incompatible with doing it that way, which is just new info from my perspective. |
Symfony version(s) affected
7.0.2
Description
Shortly after upgrading to v7.0 I tried to switch my dev site to the
prod
environment so that I can see things without the verbose messages and profiler. Everything is working fine in thedev
environment. I got some 500 status pages inprod
and then remembered I need to clear the cache first. But now I can't clear the cache either!How to reproduce
All I did was try to use
cache:clear
.Possible Solution
No response
Additional Context
This particular project is rarely in
prod
mode and has been through a few upgrades since installing v5.4 about 10 months ago.The text was updated successfully, but these errors were encountered: