i-MSCP backup script - Cannot dump mysql databases - Percona DB

  • I look trough my email and i get this email:

    Code
    1. Dear admin,This is an automatic email sent by your myserver.tld(xx.xx.xx.xx) server.A critical error has been encountered while executing function main::runin /var/www/imscp/engine/backup/imscp-backup-all.Error was:==========================================================================iMSCP::Database::mysql::dumpdb: mysqldump: Got error: 1045: Access deniedfor user 'root'@'localhost' (using password: NO) when trying to connectiMSCP::Database::mysql::dumpdb: mysqldump: Got error: 1045: Access deniedfor user 'root'@'localhost' (using password: NO) when trying to connectiMSCP::Database::mysql::dumpdb: mysqldump: Got error: 1045: Access deniedfor user 'root'@'localhost' (using password: NO) when trying to connect==========================================================================


    any ideea ?


    I run command: tail /var/log/imscp/imscp-backup-all.log
    and i get :


    Code
    1. [Wed Jun 24 23:41:22 2015] [debug] iMSCP::File::owner: Changing owner and group for /var/www/virtual/site/backups/site-backup-2015.06.24-23-41.tar.bz2 to 1006:1006
    2. [Wed Jun 24 23:41:22 2015] [debug] iMSCP::Database::mysql::dumpdb: Dump 6_wp into /var/www/virtual/site/backups/6_wp.sql
    3. [Wed Jun 24 23:41:22 2015] [debug] iMSCP::Execute::execute: Executing command: nice -n 15 ionice -c2 -n5 mysqldump --opt --complete-insert --add-drop-database --allow-keywords --compress --default-character-set=utf8 --quote-names --result-file='/var/www/virtual/site/backups/6_wp.sql' 6_wp
    4. [Wed Jun 24 23:41:22 2015] [debug] iMSCP::Execute::getExitCode: External command exited with value 2
    5. [Wed Jun 24 23:41:22 2015] [error] iMSCP::Database::mysql::dumpdb: mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect
    6. [Wed Jun 24 23:41:22 2015] [debug] iMSCP::Execute::execute: Executing command: nice -n 15 ionice -c2 -n5 tar --create --directory=/var/mail/virtual/site --use-compress-program=pbzip2 --file=/var/www/virtual/site/backups/mail-site-backup-2015.06.24-23-41.tar.bz2 .
    7. [Wed Jun 24 23:41:22 2015] [debug] iMSCP::Execute::getExitCode: External command exited with value 0
    8. [Wed Jun 24 23:41:22 2015] [debug] iMSCP::File::mode: Changing mode for /var/www/virtual/site/backups/mail-site-backup-2015.06.24-23-41.tar.bz2 to 644
    9. [Wed Jun 24 23:41:22 2015] [debug] iMSCP::File::owner: Changing owner and group for /var/www/virtual/site/backups/mail-site-backup-2015.06.24-23-41.tar.bz2 to 1006:1006
    10. [Wed Jun 24 23:41:23 2015] [debug] iMSCP::Bootstrapper::unlock: Release exclusive lock on /tmp/imscp-backup-all.lock
  • Hello ;


    Please remove the /root/.my.cnf file if any


    See also https://github.com/i-MSCP/imsc…_errata.md#rootmycnf-file

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Please rerun the backup-script with parameter -v and post the output
    /var/www/imscp/engine/backup/imscp-backup-all -v

  • @tilicar


    Please, check that in the /etc/mysql/conf.d/imscp.cnf, the password for the root user is OK in the mysqldump section. If the password is wrong, you must update it. And be sure that the /root/.my.cnf file is removed.


    Once done, try to run the backup script manually as follow;


    Shell-Script
    1. # perl /var/www/imscp/engine/backup/imscp-backup-all -v


    Then, post the output.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @Ninos


    Too fast for me ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @tilicar


    Please read my previous posts !

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206