# MySQL root passwort:
# is here
# and there

Subject: admin → backup failed

Date: Thu, 30 Apr 2015 05:14:11 +0200

Can’t connect to localhost
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‚/var/run/mysqld/mysqld.sock‘ (2)

admin : TTY=unknown ; PWD=/home/admin ; USER=root ; COMMAND=/usr/local/vesta/bin/v-update-sys-queue backup

# investigating the backup process/scripts
vim /usr/local/vesta/bin/v-update-sys-queue backup

# This function is responsible queue processing. Restarts of services,
# scheduled backups, web log parsing and other heavy resource consuming
# operations are handled by this script.

vim /usr/local/vesta/bin/v-schedule-user-backup

# here is where the backup commands get enlisted
less +F /usr/local/vesta/data/queue/backup.pipe

# starting a backup over web frontend
/usr/local/vesta/bin/v-backup-user admin yes >> /usr/local/vesta/log/backup.log 2>&1; # thats the backup command

vim /usr/local/vesta/bin/v-backup-user; # thats the backup script


cat /var/log/vesta/error.log

[Error 15 2015-04-30 02:15:10 v-update-database-disk admin admin_default ]

commands tried so far:

# update-rc.d - install and remove System-V style init script links
update-rc.d mysql disable;
reboot; # restart server
# now mysql is not starting
/etc/init.d/mysql restart; # mysql is restarting successfully
update-rc.d mysql enable; # enabling again
reboot; # restart server, mysql seems to work normally