Bug #71836 Enterprise Backup won't connect - says password is incorrect
Submitted: 26 Feb 2014 2:57 Modified: 21 Oct 2014 22:29
Reporter: Jesse Duce Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:6.0.9 OS:MacOS
Assigned to: CPU Architecture:Any
Tags: Enterprise Backup, workbench

[26 Feb 2014 2:57] Jesse Duce
Description:
After setting up Enterprise Backup successfully, scheduling a backup, closing workbench, and then launching workbench again, Enterprise Backup will not be able to connect and gives an error "The existing 'mysqlbackup' MySQL user account will be used for backups once the correct password is provided."

This is misleading and incorrect.

After turning on debug3, I was able to see that the port and socket information are not being supplied in the command being executed.

If /etc/my.cnf does not contain port and socket under [client], enterprise backup will not connect.

This information is available in /etc/mebmanager.cnf and the connection information is extracted, but for some reason port and socket are missed.

-----------------------------------------------
18:31:38 [DB3][wb_server_management.pyc]: SSH:exec_cmd(): Done cmd="/usr/bin/sudo -u mysql -S -p EnterPasswordHere  /bin/bash -c "/opt/mysql/meb-3.9/bin/mysqlbackup --user=mysqlbackup --password=password --port=3306 --no-history-logging backup --databases=mysql""
18:31:38 [DB1][wb_admin_meb_common.pyc]: MEB account validation output: MySQL Enterprise Backup version 3.9.0 [2013/08/23]
Copyright (c) 2003, 2013, Oracle and/or its affiliates. All Rights Reserved.

 mysqlbackup: INFO: Starting with following command line ...
 /opt/mysql/meb-3.9/bin/mysqlbackup --user=mysqlbackup
        --password=xxxxxxxxxxxxxxxx --port=3306 --no-history-logging backup
        --databases=mysql

140225 18:31:38 mysqlbackup: WARNING: Can not establish connection to mysql server.
      Connection open fails with error "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"
 mysqlbackup: ERROR: Connection initialization error.

mysqlbackup failed with errors!
-----------------------------------------------

-----------------------------------------------
poc-mysql3-ep:jduce/etc > sudo cat /etc/mebmanager.cnf
# Server wide settings for MySQL Workbench, Enterprise Backup

[meb_manager]
mysql_instance_1 = /var/lib/mysql/

[mysql_instance_1]
socket = /var/lib/mysql/mysql.sock
mysql_version = 5.6.15-enterprise-commercial-advanced-log
datadir = /var/lib/mysql/
innodb_data_home_dir =
datadir_owner = mysql
host = poc-mysql3-ep.tops.gdi
command = /opt/mysql/meb-3.9/bin/mysqlbackup
user = mysqlbackup
home = /opt/mysql_backup
password = password
port = 3306
-----------------------------------------------

After adding the port and socket information to the [client] section of /etc/my.cnf, a connection was able to be made and the Online Backup screen loads.
However, there is still another error in the logs stating that --backup-dir was missing.

-----------------------------------------------
20:29:12 [DB3][wb_server_management.pyc]: SSH:exec_cmd(): Done cmd="/usr/bin/sudo -u mysql -S -p EnterPasswordHere  /bin/bash -c "/opt/mysql/meb-3.9/bin/mysqlbackup --user=mysqlbackup --password=v8GxVKj8uJakfrHs --port=3306 --no-history-logging backup --databases=mysql""
20:29:12 [DB1][wb_admin_meb_common.py]: MEB account validation output: MySQL Enterprise Backup version 3.9.0 [2013/08/23]
Copyright (c) 2003, 2013, Oracle and/or its affiliates. All Rights Reserved.

 mysqlbackup: INFO: Starting with following command line ...
 /opt/mysql/meb-3.9/bin/mysqlbackup --user=mysqlbackup
        --password=xxxxxxxxxxxxxxxx --port=3306 --no-history-logging backup
        --databases=mysql

 mysqlbackup: INFO: MySQL server version is '5.6.15-enterprise-commercial-advanced-log'.
 mysqlbackup: INFO: Got some server configuration information from running server.

 mysqlbackup: ERROR: Missing or invalid option:
   Missing or empty --backup-dir option specified.

 Specified Operation:backup

 Use --help option for usage description.

mysqlbackup failed with errors!
-----------------------------------------------

How to repeat:
Connect to MySQL instance running on linux that does not have anything set up for [client] in the /etc/my.cnf.
Setup Enterprise Backup in workbench under Online Backup.
Quit workbench.
Launch workbench.
Open Enterprise Backup.
Go back in to Online Backup.
Error should occur.

Suggested fix:
Pass all the appropriate variables.
[6 Mar 2014 1:57] Alfredo Kojima
Hi Can you try version 6.1.2? We've fixed something similar recently.
[11 Mar 2014 23:48] Jesse Duce
Sorry for the delay.  Waiting on getting the CSI associated with my account so I can download from support.oracle.com.  The guy it was registered to left.
[12 Jul 2014 22:21] MySQL Verification Team
Please re-open this bug report when you was able to check with new version. Thanks.
[13 Aug 2014 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[21 Oct 2014 18:40] Jesse Duce
I'm on 6.2 now. Connecting works fine now. Thank you.
New issues. I'll be filing a bug for this new python script mysqlwbmeb.py
[21 Oct 2014 22:29] MySQL Verification Team
Thank you for the feedback.