Plesk backup fails: Unable to back up applications packages. Error: ODBC error #28000: [ma-3.1.20]Access denied for user 'apsc'@'127.0.0.1' (using password: YES)

Comments

6 comments

  • Avatar
    B3 Support (Edited )

    We have skip_name_resolve added to /etc/mysql/mariadb.conf.d/50-server.cnf 

    and restarted mariadb server.

     

    Then we have started an manual Backup only with configuration. The issue still exists.

    Using MariaDB 10.3.x

     

    0
  • Avatar
    B3 Support

    The following workaround solved the problem for us:

    show create user `apsc`@`localhost`;

    Create a new user with host 127.0.0.1

    CREATE USER `apsc`@`127.0.0.1` IDENTIFIED BY PASSWORD 'PASSWORD_FROM_CREATE_USER';

    Show the grants of apsc

    show grants for 'apsc'@'localhost';

    Grant the same privileges to new user:

    GRANT USAGE ON *.* TO `apsc`@`127.0.0.1`;
    GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER ON `apsc`.* TO `apsc`@`127.0.0.1`;
    flush privileges;

    Now the backup is working again.

    0
  • Avatar
    Ulrich Eickmann-Martini

    We have the same problem - but none of the above mentioned solutions worked for us.

    Our error message in backup-manager is
    "Unable to back up applications packages. Error: ODBC error #28000: [unixODBC][ma-3.1.20]Access denied for user 'apsc'@'localhost' (using password: YES) "
    (so for us it is localhost, not 127.0.0.1)

    I also tried to set a new admin password for plesk and set this explicitly for the database user apsc.

    Unfortunately the backups still give the warning/error and in Plesk "Tools & Settings" the Application Vault gives "TypeError ... a is undefined ..." message.

    BTW - Is there a way to get information about mentioned "Plesk bug PPPM-14535"?
    Are the developers already working to get a fix for that one?

    Thanks in advance!

    0
  • Avatar
    Markus Geltenpoth

    We didn't like the Plesk solucion to deactivate skip-name-resolve as this makes the mysql server slower.
    We have looked at the mysql - user table (in phpmyadmin thrue Plesk access) and found the user "apsc@localhost"
    We copied its encrypted password.
    After executed the following SQL:

    CREATE USER 'apsc'@'127.0.0.1' IDENTIFIED WITH 'mysql_native_password' AS 'COPY YOUR ENCRYPTED PASSWORD HERE';
    CREATE USER 'apsc'@'::1' IDENTIFIED WITH 'mysql_native_password' AS 'COPY YOUR ENCRYPTED PASSWORD HERE';
    Now the backup works fine.

    0
  • Avatar
    Del Corso (Edited )

    The commenting out of skip-resolve worked for me!

    18.0.63 Update #4 broke things and before finding this article I first attempted to fix the apsc error with plesk repair db which gave me: Error messages: 55; Warnings: 177; Errors resolved: 232

    Wordpress Toolkit would then give me this error: Cannot update WordPress instance settings: Unable to find row with id in smb_apsMetas table when trying to log in to a site via Plesk panel.

    There is a support article - https://www.plesk.com/kb/support/cannot-update-wordpress-instance-settings-unable-to-find-row-with-id-in-smb_apsmetas-table - about that error but it is useless for this particular issue and things would still be broken.

    0
  • Avatar
    Pascal Devif

    Do you plan to publish a fix for this problem in next mu ?

    0

Please sign in to leave a comment.

Have more questions? Submit a request