Hello, I've been using October on a commercial site for two years. It has a lot of users and a lot of traffic. Suddenly, a month ago, and today again, October stopped serving the front end without any error in the browser, just a page telling the server was not responding, while the backend admin area was working properly. The error in the log is
Symfony\Component\Debug\Exception\FatalErrorException: Uncaught RuntimeException: Unable to write in the cache directory (/var/www/provedk/october/storage/cms/twig/5a). in /var/www/provedk/october/vendor/twig/twig/lib/Twig/Cache/Filesystem.php:59
Stack trace:
#0 /var/www/provedk/october/vendor/twig/twig/lib/Twig/Environment.php(369): Twig_Cache_Filesystem->write('/var/www/proved...', '<?php\n\n/* /var/...')
#1 /var/www/provedk/october/modules/cms/classes/Controller.php(374): Twig_Environment->loadTemplate('/var/www/proved...')
#2 /var/www/provedk/october/modules/cms/classes/Controller.php(211): Cms\Classes\Controller->runPage(Object(Cms\Classes\Page))
#3 /var/www/provedk/october/modules/system/classes/ErrorHandler.php(70): Cms\Classes\Controller->run('/error')
#4 /var/www/provedk/october/vendor/october/rain/src/Exception/ErrorHandler.php(58): System\Classes\ErrorHandler->handleCustomError()
#5 /var/www/provedk/october/modules/system/ServiceProvider.php(256): October\Rain\Exception\ErrorHandler->handleException(Object(RuntimeException))
#6 [internal function]: Sys in /var/www/provedk/october/vendor/twig/twig/lib/Twig/Cache/Filesystem.php:59
Stack trace:
#0 {main}
It turns out that the folder /var/www/provedk/october/storage/cms/twig/5a was owned by root, while other folders in the twig subfolder were owned by www-data as they are supposed to be.
How can this be? Why some of the newly created subfolders of the twig folder are suddenly owned by root?
Thanks