WARNING! central VestaCP software vendor was hacked in 2018

not sure if they fixed the problem and continue VestaCP development (a shame, it was really a very very nice web based gui to admin web and mailsevers)

 

# MySQL root passwort:
# is here
/root/.my.cnf
# and there
/usr/local/vesta/conf/mysql.conf

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)
https://github.com/serghey-rodin/vesta/issues/215#issuecomment-63156504

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

https://forum.vestacp.com/viewtopic.php?f=11&t=6887

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

 


liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin