Hello - I am trying to connect AWS Database Migration Service to MySQL running as a Percona XtraDB Cluster 8.0.28. On this installation, clustering is not enabled and is running as a single host.
I am unable to retrieve table and schema data with DMS, but it does pass the connection test.
I am unable to open the database with Workbench.
I am able to rapidly retrieve schema and table data if I use:
- CLI - works every time
- The “Reverse Engineer Database” option in Workbench - works too - retrieve schema and table data, even from large tables, quickly.
I have installed the same version of Percona MySQL on a test machine and am seeing the exact same results.
2023-02-14T21:58:36:193103 [METADATA_MANAGE ]I: Connecting to MySQL using ODBC connection string: DRIVER={MySQL ODBC 8.0 Unicode Driver};SERVER=10.xxx.xxx.xxx;port=3306;UID=migration;DB=;CHARSET=binary;initstmt=SET time_zone=‘+00:00’;Option=74448896;NO_LOCALE=1;PWD=***; (mysql_endpoint_imp.c:720)
2023-02-14T21:58:36:371638 [METADATA_MANAGE ]I: Source endpoint ‘Mysql’ is using provider syntax ‘MySQL’ (provider_syntax_manager.c:623)
2023-02-14T21:58:36:399790 [SOURCE_UNLOAD ]I: The UnloadTimeout internal parameter was ignored because the have_statement_timeout system variable (which limits the duration of both the unload query AND the unload operation) is set on MySQL server. If you still want to use the unloadTimeout internal parameter, set the ForceUnloadTimeout internal parameter to TRUE. (mysql_endpoint_imp.c:832)
2023-02-14T21:58:36:399821 [METADATA_MANAGE ]I: Unload Timeout = 999999 seconds (mysql_endpoint_imp.c:836)
2023-02-14T21:58:36:429792 [METADATA_MANAGE ]I: Going to connect to ODBC connection string: DRIVER={MySQL ODBC 8.0 Unicode Driver};SERVER=rds-cluster-1.cluster-choh9m88rfg0.us-west-1.rds.amazonaws.com;PORT=3306;FOUND_ROWS=1;CHARSET=binary;NO_LOCALE=1;ENABLE_LOCAL_INFILE=1;initstmt=SET FOREIGN_KEY_CHECKS=0; executeTimeout=3600;UID=admin; (odbc_endpoint_imp.c:1993)
2023-02-14T21:58:36:561192 [METADATA_MANAGE ]I: Target endpoint ‘Mysqltarget’ is using provider syntax ‘MySQL’ (provider_syntax_manager.c:629)
2023-02-14T21:58:36:561233 [TASK_MANAGER ]I: Preparing all components (replicationtask.c:1960)
2023-02-14T21:58:36:561374 [TASK_MANAGER ]I: Task - MVUJOM5WUR2RHP3C3KVGLA3F72FZ32CA5JSHYMQ is in STARTING state, updating starting status to AR_PREPARING_COMPONENTS (repository.c:5110)
2023-02-14T21:58:36:568236 [TASK_MANAGER ]I: Creating threads for all components (replicationtask.c:1993)
2023-02-14T21:58:36:568356 [TASK_MANAGER ]I: Task - MVUJOM5WUR2RHP3C3KVGLA3F72FZ32CA5JSHYMQ is in STARTING state, updating starting status to AR_CREATING_TREADS (repository.c:5110)
2023-02-14T21:58:36:575296 [TASK_MANAGER ]I: Task - MVUJOM5WUR2RHP3C3KVGLA3F72FZ32CA5JSHYMQ is in STARTING state, updating starting status to AR_CREATING_TABLES_LIST (repository.c:5110)
2023-02-14T21:58:36:582288 [TABLES_MANAGER ]I: Calling for get capture table list from the Metadata Manager started. (tasktablesmanager.c:934)
2023-02-14T22:05:37:250981 [METADATA_MANAGE ]E: RetCode: SQL_ERROR SqlState: 08S01 NativeError: 2013 Message: [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.28-19.1]Lost connection to MySQL server during query [1022502] (ar_odbc_stmt.c:3932)
2023-02-14T22:05:37:251041 [METADATA_MANAGE ]W: Failed to get the capture list from the endpoint. Attempt #1 from 5 (metadatamanager.c:4087)
2023-02-14T22:05:37:264880 [METADATA_MANAGE ]W: Failed to get the capture list from the endpoint. Attempt #2 from 5 (metadatamanager.c:4087)
2023-02-14T22:05:37:271515 [METADATA_MANAGE ]W: Failed to get the capture list from the endpoint. Attempt #3 from 5 (metadatamanager.c:4087)
2023-02-14T22:05:37:278343 [METADATA_MANAGE ]W: Failed to get the capture list from the endpoint. Attempt #4 from 5 (metadatamanager.c:4087)
2023-02-14T22:05:37:285035 [METADATA_MANAGE ]E: Failed to get the capture list from the endpoint. Attempt #5 from 5 [1022502] (metadatamanager.c:4095)
2023-02-14T22:05:37:285042 [TABLES_MANAGER ]E: Cannot get captured tables list [1020486] (tasktablesmanager.c:938)
2023-02-14T22:05:37:285044 [TASK_MANAGER ]E: Build tables list failed [1020486] (replicationtask.c:2124)
2023-02-14T22:05:37:285045 [TASK_MANAGER ]E: Task ‘MVUJOM5WUR2RHP3C3KVGLA3F72FZ32CA5JSHYMQ’ failed [1020486] (replicationtask.c:3385)
2023-02-14T22:05:37:292096 [TASK_MANAGER ]I: Task - MVUJOM5WUR2RHP3C3KVGLA3F72FZ32CA5JSHYMQ is in ERROR state, updating starting status to AR_NOT_APPLICABLE (repository.c:5102)
2023-02-14T22:05:37:298907 [TASK_MANAGER ]E: Task ‘MVUJOM5WUR2RHP3C3KVGLA3F72FZ32CA5JSHYMQ’ encountered a fatal error (repository.c:5196)
2023-02-14T22:05:46:150367 [TASK_MANAGER ]I: Task Management thread terminated abnormally (replicationtask.c:4053)
2023-02-14T22:05:46:151395 [AT_GLOBAL ]I: Closing log file at Tue Feb 14 22:05:46 2023 (at_logger.c:2766)
This issue has stumped my team and the DB specialists team at AWS. Anybody seen this before and know how to solve it?