repair database
Troubleshoot the vicidial server if you face above problem
Cause for the above error
- Mysql crashed or mysql stopped
- Either the vicidial server shutdown all of sudden due to powercut or imporper shutdown (pressing the powerbutton directly)
- Overload of server leads to mysql crash
- Shortage of Harddisk space
Troubleshooting Login to the server via ssh using putty
- Check whether the harddisk is full type df -h /dev/mapper/VolGroup00-LogVol00 446G 54G 0 100% /
- If it shows 100% then the harddisk is full you need to delete the recordings and logs
- go to /var/spool/asterisk/monitorDONE/ORIG
- type rm -rf * ### this will delete all the file under ORIG directory
- if the above command displays cannot delete file too long , then download the WINSCP software and login to the server , or run this command " find . -type f -name "*.wav" | xargs -l500 rm -f " this will delete every 1500 files one by one and empty the folder.
- Goto var/spool/asteirsk/monitoreDONE/ORIG
- select all the files and click delete
- Now go to /var/spool/asterisk/monitorDONE/MP3 ### if u record in gsm then goto GSM directory
- select all and delete 9a. goto /var/log/ and delete message.1,2,4 secure.1,2,3... ,boot.1,2,3.....
- now login to the server via ssh using putty
- type /etc/init.d/mysqld start
- type mysqlcheck -u cron -p --auto-repair --check --optimize --all-databases
- password : 1234
- once finishes the repair of the MYSQL
- reboot the server and check wheter you are getting above error
Troubleshoot due to powecut or overload on the server
- login to the server via ssh using putty
- type mysqlcheck -u cron -p --auto-repair --check --optimize --all-databases
- password: 1234
- once repairing finished
- reboot the server