Symfony "Cache directory does not exist and cannot be created"

Hello,

Facing a strange issue that suddenly appeared after a deploy : cache folder can’t be removed.
Error sayings that it doesn’t exist (but I actually see it in the filesystem) and it can’t be created.

App logs saying :
Fatal error: Uncaught Symfony\Component\Cache\Exception\InvalidArgumentException: Cache directory does not exist and cannot be created: "/app/var/cache/prod/doctrine/orm"

and it gives a 500

During deploy :

W: + symfony-deploy
W: + symfony-start
W: + rm -rf var/cache/prod 'app/cache/*'
W: rm: cannot remove 'var/cache/prod/pools': Directory not empty
W: rm: cannot remove 'var/cache/prod/twig': Directory not empty
W: rm: cannot remove 'var/cache/prod/translations': Directory not empty
W: rm: cannot remove 'var/cache/prod/vich_uploader': Directory not empty 
etc....

So I tried the command symfony mount:size to check the mounted disks usage, but here again I got an error :

The command failed with the exit code: 1

Full command: ssh '-o' 'SendEnv TERM' '-o' 'CertificateFile /xxxxx/xxxxx/.platformsh/.session/sess-cli-default/ssh/xxxxx-cert.pub' '-o' 'IdentityFile /xxxxx/xxxxx/.platformsh/.session/sess-cli-default/ssh/id_xxxxx
9' '-o' 'IdentityFile /xxxxx/xxxxx/.ssh/id_rsa' 'xxxxxxx-production-xxxx--app@ssh.fr-3.platform.sh' 'set -e; echo "$PLATFORM_APP_DIR"; echo; df -P -B1 -a -x squashfs -x tmpfs -x sysfs -x proc -x devpts -x rpc_p
ipefs -x cgroup -x fake-sysfs; echo; cd "$PLATFORM_APP_DIR"; du --block-size=1 --exclude=lost+found -s '\''var'\''; du --block-size=1 --exclude=lost+found -s '\''public/ressources/uploads'\''' 

My .platform.app.yaml is correctly configured with the following lines :

mounts:
    "/var": { source: local, source_path: var }
    "/public/ressources/uploads": { source: local, source_path: uploads }

I also tried to connect to the server through SSH and manually delete the cache folder, but I’m facing the same issues : It doesn’t let me delete it : rm: cannot remove 'cache/prod/pools': Directory not empty
And running php bin/console cache:clear also doesn’t let me clear the cache and returns the same error Cache directory does not exist and cannot be created: "/app/var/cache/prod/doctrine/orm".

Any idea on what’s going on ?
I suspect a problem on the server since the command platform mount:size actually fails.

Note that this is happening on production environment (that thankfully is not really live yet), but on staging everything is working fine and I can deploy and run the commands with success.

I’d really like to understand what happened here, and how to solve it, to make sure that this never happen again when the production website will be live!

Thank you guys for your attention!

The issue has been fixed, thanks to the support.
The mounted partition needed a fsck to fix.

Thank you !