![]() |
Session GC issues - unlink - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Session GC issues - unlink (/showthread.php?tid=88477) |
Session GC issues - unlink - ValdisM - 09-14-2023 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() RE: Session GC issues - unlink - ozornick - 09-14-2023 Are session files being created? You may have a session cleanup conflict (for example, a task in cron) RE: Session GC issues - unlink - ValdisM - 09-15-2023 (09-14-2023, 11:33 AM)ozornick Wrote: Are session files being created? You may have a session cleanup conflict (for example, a task in cron)No, we don't have cron that deletes it. I see that file does not exist. How session can be created but file does not exists? RE: Session GC issues - unlink - ozornick - 09-15-2023 chmod() for writable/* 777 ? RE: Session GC issues - unlink - ValdisM - 09-19-2023 (09-15-2023, 02:34 AM)ozornick Wrote: chmod() for writable/* 777 ? Random sessions fail to unlink. Writable folder is working. |