UBB.Dev
Posted By: Gopinath Session files, iNode is full - 04/11/2022 1:19 PM
Hello,

We installed UBB Thread in Linux CentOS a few years back. Now I ran into an issue "iNode is full". This issue is because of "httpdocs/ubbthread/session" folder has twenty-three million files. Can I clear those files will it cause any issues? Please help me with this.

UBB Message(User): We encountered a problem. The reason reported was
Database error only visible to forum administrators

UBB Message(Admin): We encountered a problem. The reason reported was
Script: /var/www/vhosts/nnnnnnnn.com/httpdocs/ubbthreads/scripts/cfrm.inc.php
Line#: 163
SQL Error: Can't create/write to file '/tmp/#sql_4a61_0.MAI' (Errcode: 28)
SQL Error #: 1
Query: SELECT c.CATEGORY_TITLE,c.CATEGORY_ID,c.CATEGORY_DESCRIPTION FROM ubbt_CATEGORIES as c, ubbt_FORUMS as f WHERE (f.FORUM_IS_ACTIVE = 1) AND (f.CATEGORY_ID=c.CATEGORY_ID) GROUP BY c.CATEGORY_ID ORDER BY c.CATEGORY_SORT_ORDER

Thanks in advance for your help.
Posted By: Gizmo Re: Session files, iNode is full - 04/11/2022 6:09 PM
Ensure that garbage collection on your system is occurring at least every 30 days on the sessions folder. There's not really a reason why people need to be logged in more than 30 days.

PHP should by default Purge garbage files on a set schedule.

https://www.getpagespeed.com/server-setup/php/cleanup-php-sessions-like-a-pro
© UBB.Developers