We had a problem today and no clue, where it came from. There was no way to reproduce it locally.
PHP Fatal error: Cannot declare interface Doctrine\DBAL\Driver\Connection, because the name is already in use in /var/www/ingo-maurer2.stage.winkelwagen.de/releases/20211122094005/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Connection.php on line 13
This happens, because we wanted to share the caching directory between deployments. Don’t do that. Maybe this is fixed in 6.4 🤷
A little background: We did that, because we have the problem, that in 6.3 (yes we know, we need to update!) the caching has a memory leak and we write about 100GB of cache a week and no end in sight. Therefore we clean the cache once a week, but today the server stopped working, because the disk was full.
You ask why? Because on every deployment we created a new directory and didn’t delete the cache of the old deployment. So the disk was a lot faster full than expected.