This article will show you how to resolve the problem of failed to open session lockfile: /var/cpanel/sessions/raw/:. You will normally see this error message when you try to login into your WHM, and the error message will look similar to this one here.
Internal Server Error
The system failed to open the session file “/var/cpanel/sessions/raw/:I42_GcGzaAMV9J88” because of an error: No such file or directory at /usr/local/cpanel/Cpanel/Session.pm line 268
How to resolve
df -i : to check the usage of inode space and if it is showing 100% used like this
Then run the following command
to delete the exim file and that should resolve the problem . You can then re-run the command
df -ih again to see the free space available.