Symptoms
When accessing the cPanel Terminal feature, the following error is displayed:
Error: The WebSocket handshake failed at 12:00:00 PM.
Description
The /var/log/btmp file stores information about failed login attempts and can rapidly increase in size, for example:
du -sh /var/log/btmp
15G /var/log/btmp
This can break the terminal session as it times out.
We've opened an internal case for our development team to investigate this further. Our developers have decided that this task is better handled by the server administrators.
Workaround
Truncate the /var/log/btmp file by executing the following command:
truncate -s 0 /var/log/btmp
Also, ensure that logrotate is configured to archive or delete the btmp file after it reaches a certain point. More information can be found here: https://linux.die.net/man/8/logrotate
Comments
1 comment
Update: We would like to thank you for your interest in this article/case and encourage your submissions as they are valuable to the ever-expanding development of cPanel & WHM. At this time, this particular issue has not been selected for action from our Development Team, as it may require more development resources than we can allot, or alters the direction cPanel envisions for the product. Submissions persist in our Issue Tracking System in the event the impact of the related issue grows or product direction changes. If you feel that this defect requires direct action, we strongly encourage you to submit a Feature Request to allow the cPanel Community to vote and support your cause.
Thank you again for helping us make cPanel & WHM the hosting platform of choice.
Article is closed for comments.