Bug #116800 External component has thrown an exception
Submitted: 27 Nov 2024 10:17 Modified: 27 Nov 2024 11:37
Reporter: ALBERTO IBAÑEZ Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: General Severity:S3 (Non-critical)
Version:8.0.40 OS:Windows (Microsoft Windows 10 Pro)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[27 Nov 2024 10:17] ALBERTO IBAÑEZ
Description:
----[For better reports, please attach the log file after submitting. You can find it in C:\Users\AlbertoIbáñe_b3tgnpk\AppData\Roaming\MySQL\Workbench\log\wb.log]
When trying to connect to MySQL database, it reports the following:
Could not connect the SSH tunnel.
The authenticity of host 'IP' can't be established. Server key fingerprint is 'XXX'. Do you want to continue?
Then press OK and reports the bug:
MYSQL has encountered a problem
External component has thrown an exception
We are sorry for the inconvenience but an unexpected exception has been raised by one of the MySQL Workbench modules. In order to fix this issue we would kindly ask you to file a bug report. You can do that by pressing the [Report Bug] button below. 
Please make sure to include a detailed description of your actions that lead to this problem.
Thanks a lot for taking the time to help us improve MySQL Workbench!
The MySQL Workbench Team

Machine is 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz

Log file:
10:36:27 [INF][     SSH tunnel]: Existing SSH tunnel not found, opening new one
10:36:27 [INF][     SSH tunnel]: Opening SSH tunnel to 10.10.202.93:22
10:36:27 [INF][      SSHCommon]: libssh: ssh_connect ssh_connect: libssh 0.10.6 (c) 2003-2023 Aris Adamantiadis, Andreas Schneider and libssh contributors. Distributed under the LGPL, please refer to COPYING file for information about your rights, using threading threads_stdthread
10:36:27 [INF][      SSHCommon]: libssh: ssh_socket_connect ssh_socket_connect: Nonblocking connection socket: 2468
10:36:27 [INF][      SSHCommon]: libssh: ssh_connect ssh_connect: Socket connecting, now waiting for the callbacks to work
10:36:27 [INF][      SSHCommon]: libssh: ssh_client_connection_callback ssh_client_connection_callback: SSH server banner: SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.11
10:36:27 [INF][      SSHCommon]: libssh: ssh_analyze_banner ssh_analyze_banner: Analyzing banner: SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.11
10:36:27 [INF][      SSHCommon]: libssh: ssh_analyze_banner ssh_analyze_banner: We are talking to an OpenSSH server version: 8.2 (80200)
10:36:27 [INF][      SSHCommon]: libssh: ssh_kex_select_methods ssh_kex_select_methods: Negotiated curve25519-sha256,ssh-ed25519,chacha20-poly1305@openssh.com,chacha20-poly1305@openssh.com,aead-poly1305,aead-poly1305,none,none,,
10:36:27 [INF][      SSHCommon]: libssh: ssh_init_rekey_state ssh_init_rekey_state: Set rekey after 134217728 blocks
10:36:27 [INF][      SSHCommon]: libssh: ssh_init_rekey_state ssh_init_rekey_state: Set rekey after 134217728 blocks
10:36:27 [INF][      SSHCommon]: libssh: ssh_packet_newkeys ssh_packet_newkeys: Received SSH_MSG_NEWKEYS
10:36:27 [INF][      SSHCommon]: libssh: ssh_packet_newkeys ssh_packet_newkeys: Signature verified and valid
10:36:28 [INF][     SSH tunnel]: Opening SSH tunnel to 10.10.202.93:22
10:36:28 [INF][      SSHCommon]: libssh: ssh_connect ssh_connect: libssh 0.10.6 (c) 2003-2023 Aris Adamantiadis, Andreas Schneider and libssh contributors. Distributed under the LGPL, please refer to COPYING file for information about your rights, using threading threads_stdthread
10:36:28 [INF][      SSHCommon]: libssh: ssh_socket_connect ssh_socket_connect: Nonblocking connection socket: 2468
10:36:28 [INF][      SSHCommon]: libssh: ssh_connect ssh_connect: Socket connecting, now waiting for the callbacks to work
10:36:28 [INF][      SSHCommon]: libssh: ssh_client_connection_callback ssh_client_connection_callback: SSH server banner: SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.11
10:36:28 [INF][      SSHCommon]: libssh: ssh_analyze_banner ssh_analyze_banner: Analyzing banner: SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.11
10:36:28 [INF][      SSHCommon]: libssh: ssh_analyze_banner ssh_analyze_banner: We are talking to an OpenSSH server version: 8.2 (80200)
10:36:28 [INF][      SSHCommon]: libssh: ssh_kex_select_methods ssh_kex_select_methods: Negotiated curve25519-sha256,ssh-ed25519,chacha20-poly1305@openssh.com,chacha20-poly1305@openssh.com,aead-poly1305,aead-poly1305,none,none,,
10:36:28 [INF][      SSHCommon]: libssh: ssh_init_rekey_state ssh_init_rekey_state: Set rekey after 134217728 blocks
10:36:28 [INF][      SSHCommon]: libssh: ssh_init_rekey_state ssh_init_rekey_state: Set rekey after 134217728 blocks
10:36:28 [INF][      SSHCommon]: libssh: ssh_packet_newkeys ssh_packet_newkeys: Received SSH_MSG_NEWKEYS
10:36:28 [INF][      SSHCommon]: libssh: ssh_packet_newkeys ssh_packet_newkeys: Signature verified and valid
10:36:28 [ERR][      Workbench]: Un componente externo produjo una excepción.
Exception = System.Runtime.InteropServices.SEHException
Message = Un componente externo produjo una excepción.
FullText = System.Runtime.InteropServices.SEHException (0x80004005): Un componente externo produjo una excepción.
   en MformsButton.OnClick(EventArgs args)
   en System.Windows.Forms.Button.WndProc(Message& m)
   en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

How to repeat:
Open any other connection even if to another server into the same network.
[27 Nov 2024 11:37] MySQL Verification Team
Hi Mr. Ibanez,

Thank you for your bug report.

However, we do not have sufficient info that would enable us to repeat the behaviour.

First of all, you have chosen a category of "MySQL Server: General", while your report is only describing the Workbench.

Next, can you try whether you have provided the correct IP address to the Workbench. 

In order to find out that, please use MySQL CLI or MySQL Shell and try to connect with it through SSH tunnel.

Also, please, try establishing the SSH tunnel and simply try to ping the address.

Then you will know whether you have established a proper SSH tunnel.

Can't repeat.