I am hoping you can offer me some help on this as my entire phone system has gone down. I upgraded some modules on my FreePBX system a few days ago and was unaware that there was insufficient storage space. It continued to reboot the system after the module updates and since rebooting i realized the storage was full as it came up with an error. I have since upgraded the storage from 8GB to 20GB so should be plenty of breathing room on there. However, the issue now appears to be a SQL database error. I have tried my best to look into this myself and have tried many things such as trying to repair the database etc. Before you ask, unfortunately i do not have any back ups of the system. I have attached photos of the errors i am getting both from the CLI and the Web GUI.
The system is running in a Hyper-V environment within Windows Server 2012. It is assigned 1536 Mb of RAM and 20GB of storage. It has been running well for a couple of years and i have never had any issues.
SQLSTATE [HY000] [2002] Can’t connect to local MySQL server through socket ‘var/lib/mysql/mysql.sock’ (2)
SQLSTATE [HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) in file /var/www/html/admin/libraries/utility.functions.php on line 204
Firewall was unable to connect to MySQL after 30 seconds. Check Database!
Thanks for the speedy response. I have put the following command and got the output which i have attached a screenshot of. Hopefully you can make more sense of this than me & help me resolve this.
(allocating a bigger disk space doesn’t make the partition bigger)
if no space , remove files in /var/log/* that end in .0-9 , that should give you enough space to repair your mysql databases and restart mysql, there are other threads here that tell you how to do that.
Thanks for your input. Looks like you’re 100% right! The disk usage is still 100%. Is there any way to make the /dev/sda2 partition larger? As i’ve assigned more storage to the VM but it hasn’t expanded the size of this partition.
I have attached a photo of the contents of the /var/log directory. Can you tell me which ones would be good to delete? Also, remind me of the command which does a repair of the mysql database?