I am trying to clear TYPO3 caches at the command line by running /var/www/vhosts/****/typo3/sysext/core/bin/typo3 cache:flush --group all
but am getting the below error. What could be causing this? The file it seems unable to find is seems to be located at releases/RELEASE/src/typo3conf/PackageStates.php
, and does not appear corrupt.
Uncaught TYPO3 Exception #1381507733: The PackageStates.php file is either corrupt or unavailable.
thrown in file /var/www/vhosts/hrb.ie/typo3/typo3_src-8.7.45/typo3/sysext/core/Classes/Package/PackageManager.php
in line 247
I would assume a access-right conflict.
The file is created be TYPO (Web-user) and if you call the cmd-line command to clear the cache you are running in the context of your user.
If you missed to set the file-mask in the TYPO3 configuration (LocalConfiguration.php) the file may be created with 644.
Maybe even your user is not in the same group than the web user.