When I try to access the agent page in Vicidial, the error was: "MySQL connect ERROR: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)". Normally, I would follow the process of renaming or deleting the existing mysql.sock file then restart the mysql service. However, this time, there was no mysql.sock. (Impt: Please DO NOT delete the mysql! They are not the same as mysql.sock!)
After checking with the provider, turns out that the root partition is already full. Here are the steps that the provider gave to resolve the issue.
Steps and SSH commands:
- Find out how much space you have left.
SSH Command: df -h
In the Admin Page, go to "Reports" and scroll down and look for "Disk". It should provide the percentage of use. - Delete unwanted files. In this case, you can delete the .WAV duplicates. It won't delete your .MP3 recordings.
SSH Command:
rm -f /var/spool/asterisk/monitorDONE/ORIG/*.wav
rm -f /var/log/httpd/* - Restart the server via SSH. Do not just push the power button or pull the plug.
SSH Command: sudo reboot
And there you go! If that still doesn't work but you have the mysql.sock file already, follow the old process of renaming or deleting the existing mysql.sock file then restart the mysql service.
No comments:
Post a Comment