Session GC issues - unlink |
Hi,
We lately get a lot of these messages in our error logs. Maybe you can help to understand why it is happening? CRITICAL - 2023-09-13 23:59:01 --> unlink(/home/XXX/public_html/writable/session/ci_session068adef747836ce9510a1eda008e44ae34588419): No such file or directory in SYSTEMPATH/Session/Handlers/FileHandler.php on line 299. 1 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler(2, 'unlink(/home/XXX/public_html/writable/session/ci_session068adef747836ce9510a1eda008e44ae34588419): No such file or directory', 'SYSTEMPATH/Session/Handlers/FileHandler.php', 299) 2 SYSTEMPATH/Session/Handlers/FileHandler.php(299): unlink('ROOTPATH/writable/session/ci_session068adef747836ce9510a1eda008e44ae34588419') 3 [internal function]: CodeIgniter\Session\Handlers\FileHandler->gc(7200) 4 SYSTEMPATH/Session/Session.php(928): session_start() 5 SYSTEMPATH/Session/Session.php(250): CodeIgniter\Session\Session->startSession() 6 SYSTEMPATH/Config/Services.php(674): CodeIgniter\Session\Session->start() 7 SYSTEMPATH/Config/BaseService.php(252): CodeIgniter\Config\Services::session(Object(Config\App), false) 8 SYSTEMPATH/Config/BaseService.php(193): CodeIgniter\Config\BaseService::__callStatic('session', [...]) 9 SYSTEMPATH/Config/Services.php(641): CodeIgniter\Config\BaseService::getSharedInstance('session', null) 10 SYSTEMPATH/Config/BaseService.php(252): CodeIgniter\Config\Services::session() 11 SYSTEMPATH/Common.php(988): CodeIgniter\Config\BaseService::__callStatic('session', []) 12 VENDORPATH/codeigniter4/shield/src/Authentication/Authenticators/Session.php(689): session('user') 13 VENDORPATH/codeigniter4/shield/src/Authentication/Authenticators/Session.php(707): CodeIgniter\Shield\Authentication\Authenticators\Session->getSessionUserInfo() 14 VENDORPATH/codeigniter4/shield/src/Authentication/Authenticators/Session.php(394): CodeIgniter\Shield\Authentication\Authenticators\Session->getSessionKey('id') 15 VENDORPATH/codeigniter4/shield/src/Authentication/Authenticators/Session.php(378): CodeIgniter\Shield\Authentication\Authenticators\Session->checkUserState() 16 VENDORPATH/codeigniter4/shield/src/Auth.php(159): CodeIgniter\Shield\Authentication\Authenticators\Session->loggedIn() 17 VENDORPATH/codeigniter4/shield/src/Filters/ChainAuth.php(47): CodeIgniter\Shield\Auth->__call('loggedIn', []) 18 SYSTEMPATH/Filters/Filters.php(173): CodeIgniter\Shield\Filters\ChainAuth->before(Object(CodeIgniter\HTTP\IncomingRequest), null) 19 SYSTEMPATH/CodeIgniter.php(473): CodeIgniter\Filters\Filters->run('cronJobs/machineAlert', 'before') 20 SYSTEMPATH/CodeIgniter.php(368): CodeIgniter\CodeIgniter->handleRequest(null, Object(Config\Cache), false) 21 FCPATH/index.php(75): CodeIgniter\CodeIgniter->run()
Are session files being created? You may have a session cleanup conflict (for example, a task in cron)
Simple CI 4 project for beginners codeigniter-expenses
chmod() for writable/* 777 ?
Simple CI 4 project for beginners codeigniter-expenses
|
Welcome Guest, Not a member yet? Register Sign In |