Closed MGatner closed 3 years ago
Cache permissions can cause the whole app to come down. Schemas should remove itself from this by ignoring the cache if it fails:
chmod(): Operation not permitted at SYSTEMPATH/Cache/Handlers/FileHandler.php:127 Backtrace: 1 [internal function] CodeIgniter\Debug\Exceptions()->errorHandler() 2 SYSTEMPATH/Cache/Handlers/FileHandler.php:127 chmod() 3 VENDORPATH/tatter/schemas/src/Archiver/Handlers/CacheHandler.php:46 CodeIgniter\Cache\Handlers\FileHandler()->save() 4 VENDORPATH/tatter/schemas/src/Schemas.php:215 Tatter\Schemas\Archiver\Handlers\CacheHandler()->archive() 5 VENDORPATH/tatter/schemas/src/Schemas.php:120 Tatter\Schemas\Schemas()->archive() 6 VENDORPATH/tatter/schemas/src/Collectors/Schema.php:55 Tatter\Schemas\Schemas()->get() 7 SYSTEMPATH/Debug/Toolbar.php:69 Tatter\Schemas\Collectors\Schema()->__construct() 8 SYSTEMPATH/Config/Services.php:800 CodeIgniter\Debug\Toolbar()->__construct() 9 SYSTEMPATH/Config/BaseService.php:174 CodeIgniter\Config\Services::toolbar() 10 SYSTEMPATH/Config/Services.php:795 CodeIgniter\Config\BaseService::getSharedInstance() 11 SYSTEMPATH/Config/BaseService.php:245 CodeIgniter\Config\Services::toolbar() 12 APPPATH/Config/Events.php:52 CodeIgniter\Config\BaseService::__callStatic() 13 [internal function] CodeIgniter\Events\Events::Config\{closure}() 14 SYSTEMPATH/Events/Events.php:166 call_user_func() 15 SYSTEMPATH/CodeIgniter.php:314 CodeIgniter\Events\Events::trigger() 16 SYSTEMPATH/CLI/Console.php:61 CodeIgniter\CodeIgniter()->run() 17 ROOTPATH/spark:66 CodeIgniter\CLI\Console()->run()
This is actually a framework issue, to be handled in https://github.com/codeigniter4/CodeIgniter4/pull/4522
Cache permissions can cause the whole app to come down. Schemas should remove itself from this by ignoring the cache if it fails: