You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @1yuv! I'm Dosu, a bot here to help you squash bugs, answer questions, and guide you in becoming a contributor. I'm here to assist while a human maintainer gets to your issue. How can I help you today?
To resolve the frequent failures of SSH connections to an RDBMS server from a Superset instance, follow these steps:
1. Ensure SSH Tunneling is Enabled
Verify that the SSH tunneling feature is enabled in your Superset configuration.
2. Check SSH Tunnel Configuration
Ensure that the SSH tunnel properties are correctly set in the database configuration. The _handle_ssh_tunnel method in the code handles the creation, update, and deletion of SSH tunnels based on the provided properties.
3. Handle SSH Tunnel Errors
Make sure to catch and log SSH tunnel-related errors for debugging purposes. The superset/commands/database/ssh_tunnel/exceptions.py file defines various SSH tunnel-related errors that can help you identify specific issues.
4. Check SSH Tunnel Management
The SSHManager class in superset/extensions/ssh.py is responsible for creating and managing SSH tunnels. Ensure that the SSH tunnel parameters, including server address, username, and credentials (password or private key), are correctly set.
5. Test Database Connection
The TestConnectionDatabaseCommand class in superset/commands/database/test_connection.py is responsible for testing the connection to the database, including handling SSH tunnels. Ensure that the connection test is successful and that any SSH tunnel-related errors are properly handled.
6. Check Superset Configuration
Ensure that the SSH tunnel properties are correctly defined and that the SSH gateway is accessible. Adjust the following configurations in Superset's superset_config.py to optimize the performance and stability of SSH tunnels:
SSH_TUNNEL_MANAGER_CLASS
SSH_TUNNEL_LOCAL_BIND_ADDRESS
SSH_TUNNEL_TIMEOUT_SEC
SSH_TUNNEL_PACKET_TIMEOUT_SEC
7. Secure SSH Tunnel Configuration
Use the SSHTunnelForm component in the Superset frontend to configure SSH tunnel properties. This form allows you to input the SSH host, port, username, and authentication method (password or private key).
By following these steps, you should be able to resolve the frequent SSH connection failures and ensure a stable connection to your RDBMS server from the Superset instance.
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
Bug description
We're seeing frequent failures of ssh connections to rdbms server from superset instance.
How to reproduce the bug
While loading a dashboard with 6/7 big number charts, we're seeing this sometime in one chart and sometimes in other chart.
Screenshots/recordings
Superset version
4.0.1
Python version
3.9
Node version
16
Browser
Chrome
Additional context
This issue has been seen on 3.0.2, 4.0.0 and 4.0.1 superset instances hosted on EKS.
Log:
sshserver:sshport
point to the actual server and port where ssh tunnel was established.Checklist
The text was updated successfully, but these errors were encountered: