getting the below error when setting up a redshift...
# ask-ai
t
getting the below error when setting up a redshift serverless destination
Copy code
Configuration check failed
Could not connect with provided SSH configuration. Error: getSQLState(...) must not be null
k
The error message you are seeing:
Copy code
Configuration check failed Could not connect with provided SSH configuration. Error: getSQLState(...) must not be null
is not explicitly documented in the provided knowledge sources. However, there are a few relevant points and troubleshooting steps for Redshift Serverless and SSH configuration issues: 1. Port 5439 Must Be Open: Several users have reported connection timeouts or failures when port 5439 (the default Redshift port) is not open in the security group attached to the Redshift Serverless workgroup. Ensure that inbound rules allow access to port 5439 from your Airbyte deployment's IP or security group. This is a common cause of connection issues with Redshift Serverless, as confirmed by multiple forum posts and official answers [Destination-Redshift: Destination not connecting for the Redshift Serverless data warehouse](https://discuss.airbyte.io/t/1567) [Redshift destination setup keeps timing out](https://discuss.airbyte.io/t/4146). 2. SSH Tunnel Limitations: The documentation notes that S3 staging (the recommended loading approach for Redshift) does not use the SSH Tunnel option for copying data; SSH Tunnel supports only the SQL connection. If you are using S3 staging, ensure your S3 and Redshift are accessible via public HTTPS and that your SSH configuration is correct if you are using it for SQL connections [Redshift Destination Docs](https://docs.airbyte.com/integrations/destinations/redshift). 3. Check Host and Credentials: Make sure you are using the correct Redshift Serverless endpoint and that your credentials (username, password, database, schema) are correct. Some users have tried different host formats, but the main issue tends to be network access rather than the host string itself [Destination-Redshift Serverless: Destination not connecting for the Redshift Serverless data warehouse](https://discuss.airbyte.io/t/2359). 4. No Direct Reference to getSQLState Error: The specific error
getSQLState(...) must not be null
is not mentioned in the knowledge sources. This may indicate a lower-level JDBC or SSH configuration issue, possibly due to a misconfiguration or a network problem that prevents the connector from receiving a proper error response from the Redshift server. Recommended Actions: - Double-check that port 5439 is open and accessible from your Airbyte instance. - Verify your SSH tunnel configuration if you are using one, and ensure the bastion host (if used) is reachable and correctly set up. - Confirm that your Redshift Serverless endpoint, credentials, and database/schema names are correct. - If the problem persists, try connecting without SSH (if possible) to isolate whether the issue is with the SSH tunnel or the Redshift connection itself. If after these checks the issue remains, the knowledge sources do not provide a direct solution for the
getSQLState(...) must not be null
error, and you may need to seek further support or check for connector updates.
t
@kapa.ai SSH Tunnel method is set to No Tunnel Also attached the entire logs for the destination connection test
k
Sorry @Taher Ajnawala, it looks like your question contains files, which I cannot process. Please reformulate your question without including any files.
t
@kapa.ai SSH Tunnel method is set to No Tunnel and below are the entire logs for the destination connection test
Copy code
[m i.a.w.l.p.s.m.Stage(apply):39 - APPLY Stage: CLAIM — (workloadId = f7a7d195-377f-cf5b-70a5-be6b819019dc_a50a21ed-7f63-4023-971b-9d580cc56b0c_0_check) — (dataplaneId = local)
[m i.a.c.i.LineGobbler(voidCall):166 - 
[m i.a.w.l.c.WorkloadApiClient(claim):75 - Claimed: true for f7a7d195-377f-cf5b-70a5-be6b819019dc_a50a21ed-7f63-4023-971b-9d580cc56b0c_0_check via API for local
[m i.a.w.l.p.s.m.Stage(apply):39 - APPLY Stage: CHECK_STATUS — (workloadId = f7a7d195-377f-cf5b-70a5-be6b819019dc_a50a21ed-7f63-4023-971b-9d580cc56b0c_0_check) — (dataplaneId = local)
[m i.a.w.l.p.s.CheckStatusStage(applyStage):59 - No pod found running for workload f7a7d195-377f-cf5b-70a5-be6b819019dc_a50a21ed-7f63-4023-971b-9d580cc56b0c_0_check
[m i.a.w.l.p.s.m.Stage(apply):39 - APPLY Stage: BUILD — (workloadId = f7a7d195-377f-cf5b-70a5-be6b819019dc_a50a21ed-7f63-4023-971b-9d580cc56b0c_0_check) — (dataplaneId = local)
[m i.a.w.l.p.s.m.Stage(apply):39 - APPLY Stage: MUTEX — (workloadId = f7a7d195-377f-cf5b-70a5-be6b819019dc_a50a21ed-7f63-4023-971b-9d580cc56b0c_0_check) — (dataplaneId = local)
[m i.a.w.l.p.s.EnforceMutexStage(applyStage):50 - No mutex key specified for workload: f7a7d195-377f-cf5b-70a5-be6b819019dc_a50a21ed-7f63-4023-971b-9d580cc56b0c_0_check. Continuing...
[m i.a.w.l.p.s.m.Stage(apply):39 - APPLY Stage: LAUNCH — (workloadId = f7a7d195-377f-cf5b-70a5-be6b819019dc_a50a21ed-7f63-4023-971b-9d580cc56b0c_0_check) — (dataplaneId = local)
[m i.a.w.l.c.WorkloadApiClient(updateStatusToLaunched):60 - Attempting to update workload: f7a7d195-377f-cf5b-70a5-be6b819019dc_a50a21ed-7f63-4023-971b-9d580cc56b0c_0_check to LAUNCHED.
[m i.a.w.l.p.h.SuccessHandler(accept):60 - Pipeline completed for workload: f7a7d195-377f-cf5b-70a5-be6b819019dc_a50a21ed-7f63-4023-971b-9d580cc56b0c_0_check.
[m i.a.c.i.LineGobbler(voidCall):166 - ----- START CHECK -----
[m i.a.c.i.LineGobbler(voidCall):166 - 
[m i.a.c.ConnectorWatcher(processConnectorOutput):114 - Connector exited, processing output
[m i.a.c.ConnectorWatcher(getConnectorOutputStream):151 - Output file jobOutput.json found
[m i.a.c.ConnectorWatcher(processConnectorOutput):117 - Connector exited with exit code 0
[m i.a.w.i.VersionedAirbyteStreamFactory(create):189 - Reading messages from protocol version 0.2.0
[m i.a.m.l.MetricClientFactory(getMetricClient):43 - MetricClient has not been initialized. Must call MetricClientFactory.CreateMetricClient before using MetricClient. Using a dummy client for now. Ignore this if Airbyte is configured to not publish any metrics.
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):308 - INFO main i.a.i.d.r.RedshiftDestination$Companion(main):518 starting destination: class io.airbyte.integrations.destination.redshift.RedshiftDestination
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):308 - INFO main i.a.c.i.b.IntegrationCliParser$Companion(parseOptions):144 integration args: {check=null, config=/config/connectionConfiguration.json}
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):308 - INFO main i.a.c.i.b.IntegrationRunner(runInternal):130 Running integration: io.airbyte.cdk.integrations.base.ssh.SshWrappedDestination
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):308 - INFO main i.a.c.i.b.IntegrationRunner(runInternal):131 Command: CHECK
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):308 - INFO main i.a.c.i.b.IntegrationRunner(runInternal):132 Integration config: IntegrationConfig{command=CHECK, configPath='/config/connectionConfiguration.json', catalogPath='null', statePath='null'}
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):305 - WARN main c.n.s.UnknownKeywordFactory(lambda$getKeyword$0):37 Unknown keyword group - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword or if it should generate annotations AnnotationKeyword
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):305 - WARN main c.n.s.UnknownKeywordFactory(lambda$getKeyword$0):37 Unknown keyword order - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword or if it should generate annotations AnnotationKeyword
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):305 - WARN main c.n.s.UnknownKeywordFactory(lambda$getKeyword$0):37 Unknown keyword airbyte_secret - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword or if it should generate annotations AnnotationKeyword
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):305 - WARN main c.n.s.UnknownKeywordFactory(lambda$getKeyword$0):37 Unknown keyword display_type - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword or if it should generate annotations AnnotationKeyword
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):305 - WARN main c.n.s.UnknownKeywordFactory(lambda$getKeyword$0):37 Unknown keyword multiline - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword or if it should generate annotations AnnotationKeyword
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):305 - WARN main c.n.s.UnknownKeywordFactory(lambda$getKeyword$0):37 Unknown keyword groups - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword or if it should generate annotations AnnotationKeyword
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):308 - INFO main i.a.c.i.b.s.SshTunnel$Companion(getInstance):423 Starting connection with method: NO_TUNNEL
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):308 - INFO main i.a.c.i.d.s.S3DestinationConfig(createS3Client):112 Creating S3 client...
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):305 - WARN main c.a.u.VersionInfoUtils(printDeprecationAnnouncement):85 The AWS SDK for Java 1.x entered maintenance mode starting July 31, 2024 and will reach end of support on December 31, 2025. For more information, see https://aws.amazon.com/blogs/developer/the-aws-sdk-for-java-1-x-is-in-maintenance-mode-effective-july-31-2024/
You can print where on the file system the AWS SDK for Java 1.x core runtime is located by setting the AWS_JAVA_V1_PRINT_LOCATION environment variable or aws.java.v1.printLocation system property to 'true'.
This message can be disabled by setting the AWS_JAVA_V1_DISABLE_DEPRECATION_ANNOUNCEMENT environment variable or aws.java.v1.disableDeprecationAnnouncement system property to 'true'.
The AWS SDK for Java 1.x is being used here:
at java.base/java.lang.Thread.getStackTrace(Thread.java:2451)
at com.amazonaws.util.VersionInfoUtils.printDeprecationAnnouncement(VersionInfoUtils.java:81)
at com.amazonaws.util.VersionInfoUtils.<clinit>(VersionInfoUtils.java:59)
at com.amazonaws.internal.EC2ResourceFetcher.<clinit>(EC2ResourceFetcher.java:44)
at com.amazonaws.auth.InstanceMetadataServiceCredentialsFetcher.<init>(InstanceMetadataServiceCredentialsFetcher.java:38)
at com.amazonaws.auth.InstanceProfileCredentialsProvider.<init>(InstanceProfileCredentialsProvider.java:111)
at com.amazonaws.auth.InstanceProfileCredentialsProvider.<init>(InstanceProfileCredentialsProvider.java:91)
at com.amazonaws.auth.InstanceProfileCredentialsProvider.<init>(InstanceProfileCredentialsProvider.java:75)
at com.amazonaws.auth.InstanceProfileCredentialsProvider.<clinit>(InstanceProfileCredentialsProvider.java:58)
at com.amazonaws.auth.EC2ContainerCredentialsProviderWrapper.initializeProvider(EC2ContainerCredentialsProviderWrapper.java:66)
at com.amazonaws.auth.EC2ContainerCredentialsProviderWrapper.<init>(EC2ContainerCredentialsProviderWrapper.java:55)
at com.amazonaws.auth.DefaultAWSCredentialsProviderChain.<init>(DefaultAWSCredentialsProviderChain.java:60)
at com.amazonaws.auth.DefaultAWSCredentialsProviderChain.<clinit>(DefaultAWSCredentialsProviderChain.java:54)
at com.amazonaws.services.s3.AmazonS3ClientBuilder.standard(AmazonS3ClientBuilder.java:46)
at io.airbyte.cdk.integrations.destination.s3.S3DestinationConfig.createS3Client(S3DestinationConfig.kt:117)
at io.airbyte.cdk.integrations.destination.s3.S3DestinationConfig.resetS3Client(S3DestinationConfig.kt:105)
at io.airbyte.cdk.integrations.destination.s3.S3DestinationConfig.getS3Client(S3DestinationConfig.kt:43)
at io.airbyte.integrations.destination.redshift.RedshiftDestination.getS3StorageOperations(RedshiftDestination.kt:449)
at io.airbyte.integrations.destination.redshift.RedshiftDestination.check(RedshiftDestination.kt:124)
at io.airbyte.cdk.integrations.base.ssh.SshWrappedDestination.check$lambda$1(SshWrappedDestination.kt:66)
at io.airbyte.cdk.integrations.base.ssh.SshTunnel$Companion.sshWrap(SshTunnel.kt:545)
at io.airbyte.cdk.integrations.base.ssh.SshWrappedDestination.check(SshWrappedDestination.kt:66)
at io.airbyte.cdk.integrations.base.IntegrationRunner.runInternal(IntegrationRunner.kt:166)
at io.airbyte.cdk.integrations.base.IntegrationRunner.run(IntegrationRunner.kt:119)
at io.airbyte.cdk.integrations.base.IntegrationRunner.run$default(IntegrationRunner.kt:113)
at io.airbyte.integrations.destination.redshift.RedshiftDestination$Companion.main(RedshiftDestination.kt:519)
at io.airbyte.integrations.destination.redshift.RedshiftDestination.main(RedshiftDestination.kt)
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):308 - INFO main i.a.c.i.d.s.S3BaseChecks(testIAMUserHasListObjectPermission):151 Started testing if IAM user can call listObjects on the destination bucket
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):308 - INFO main i.a.c.i.d.s.S3BaseChecks(testIAMUserHasListObjectPermission):154 Finished checking for listObjects permission
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):308 - INFO main c.z.h.HikariDataSource(<init>):79 HikariPool-1 - Starting...
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):305 - WARN main c.z.h.u.DriverDataSource(<init>):68 Registered driver with driverClassName=com.amazon.redshift.jdbc.Driver was not found, trying direct instantiation.
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):308 - INFO main c.z.h.HikariDataSource(<init>):81 HikariPool-1 - Start completed.
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):308 - INFO main c.z.h.HikariDataSource(close):349 HikariPool-1 - Shutdown initiated...
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):308 - INFO main c.z.h.HikariDataSource(close):351 HikariPool-1 - Shutdown completed.
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):308 - INFO main i.a.c.i.b.IntegrationRunner(runInternal):224 Completed integration: io.airbyte.cdk.integrations.base.ssh.SshWrappedDestination
[m i.a.w.i.VersionedAirbyteStreamFactory(internalLog):308 - INFO main i.a.i.d.r.RedshiftDestination$Companion(main):520 completed destination: class io.airbyte.integrations.destination.redshift.RedshiftDestination
[m i.a.c.ConnectorMessageProcessor(updateConfigFromControlMessage):231 - Checking for optional control message...
[m i.a.c.ConnectorMessageProcessor(updateConfigFromControlMessage):253 - Optional control message not found. Skipping...
[m i.a.c.ConnectorWatcher(saveConnectorOutput):162 - Writing output of f7a7d195-377f-cf5b-70a5-be6b819019dc_a50a21ed-7f63-4023-971b-9d580cc56b0c_0_check to the doc store
[m i.a.c.ConnectorWatcher(markWorkloadSuccess):167 - Marking workload f7a7d195-377f-cf5b-70a5-be6b819019dc_a50a21ed-7f63-4023-971b-9d580cc56b0c_0_check as successful
[m i.a.c.ConnectorWatcher(exitProperly):215 - Deliberately exiting process with code 0.
[m i.a.c.i.LineGobbler(voidCall):166 - 
[m i.a.c.i.LineGobbler(voidCall):166 - ----- END CHECK -----
[m i.a.c.i.LineGobbler(voidCall):166 -
k
A message from kapa.ai
Based on the logs you provided and the knowledge sources, your Redshift destination connection test appears to complete successfully. The logs show the following key points: - The SSH Tunnel method is set to "NO_TUNNEL" and the connection proceeds without attempting to establish an SSH tunnel. - The S3 client is created and the IAM user permissions for listing objects in the S3 bucket are checked and passed. - The Redshift JDBC driver is registered, and the Hikari connection pool starts and shuts down without errors. - The process completes with exit code 0, which indicates success. - The log line
Marking workload ... as successful
confirms the check was successful. There are no error messages or stack traces in the logs you provided. If you are still seeing a UI error or a failure message, it is not reflected in these backend logs. The knowledge sources do not mention any known issues where a successful backend check results in a UI error, nor do they reference the specific error message
getSQLState(...) must not be null
in this context. Summary: According to the logs, your Redshift destination connection test is successful. If you are still experiencing issues, the knowledge sources do not provide enough information to diagnose a problem based on these logs. If you see a UI error, it may be unrelated to the backend connection check, or there may be an issue outside the scope of the available documentation and forum posts. If you have additional error logs or UI messages, please provide them for further analysis.
t
@kapa.ai i am on application version 1.1.1, could there be any known bugs with the UI?
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not contain specific information about known UI bugs in Airbyte version 1.1.1. There are references to UI issues and bugs in other versions (such as 1.6.0 and 1.7.1), but nothing directly related to version 1.1.1. If you are experiencing UI problems, it may be helpful to check the official Airbyte GitHub issues page or community forums for any updates or similar reports for your version.
t
@kapa.ai can i bypass the UI and its connection test and directly create the destination hitting the airbyte APIs?
k
A message from kapa.ai
Yes, you can bypass the UI and create a destination directly by using the Airbyte API. The API allows you to programmatically create sources, destinations, run syncs, and more. You can use the
/v1/destinations
endpoint to create a destination by sending the appropriate configuration in your API request. This approach does not require you to use the UI or its connection test. Here is an example of how to create a destination using the Airbyte API (in C#):
Copy code
csharp var client = new RestClient("https://api.airbyte.com/v1/destinations"); var request = new RestRequest(); request.AddHeader("accept", "application/json"); request.AddHeader("content-type", "application/json"); request.AddHeader("Authorization", "Bearer {YourApiKey}"); request.AddParameter("application/json", "{\"configuration\":{...},\"name\":\"Dst_AzBlob\",\"workspaceId\":\"YourWorkspaceID\"}", ParameterType.RequestBody); var response = client.ExecutePost(request);
Replace the configuration and credentials with your own values. This method allows you to create the destination without going through the UI connection test [Create and Monitor a Data Pipeline Using the Airbyte API](https://airbyte.com/tutorials/create-and-monitor-a-data-pipeline-using-the-airbyte-api). For more details on configuring API access and available endpoints, see the [API documentation](https://docs.airbyte.com/platform/using-airbyte/configuring-api-access). Note: While you can create the destination this way, Airbyte may still perform a connection check in the backend when you attempt to use the destination in a sync. If you encounter issues, you may need to troubleshoot the connection at the API or connector level.