Could you point me to the (github) code that faile...
# replication-troubleshooting
j
Could you point me to the (github) code that failed? The logs don't provide a stacktrace, so I don't see what "check" failed. I am trying to set up the Redshift destination.
Setting it up as a source works fine but I get this error with or without an S3 staging bucket.
Copy code
2023-02-27 15:31:00 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):167 - Command: CHECK
2023-02-27 15:31:00 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):167 - Integration config: IntegrationConfig{command=CHECK, configPath='source_config.json', catalogPath='null', statePath='null'}
2023-02-27 15:31:00 WARN i.a.w.i.DefaultAirbyteStreamFactory(internalLog):164 - Unknown keyword order - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword
2023-02-27 15:31:00 WARN i.a.w.i.DefaultAirbyteStreamFactory(internalLog):164 - Unknown keyword airbyte_secret - you should define your own Meta Schema. If the keyword is irrelevant for validation, just use a NonValidationKeyword
2023-02-27 15:31:00 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):167 - Using destination type: COPY_S3
2023-02-27 15:31:00 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):167 - Creating S3 client...
2023-02-27 15:31:02 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):167 - Started testing if IAM user can call listObjects on the destination bucket
2023-02-27 15:31:02 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):167 - Finished checking for listObjects permission
2023-02-27 15:31:02 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):167 - HikariPool-1 - Starting...
2023-02-27 15:31:02 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):167 - HikariPool-1 - Start completed.
2023-02-27 15:31:03 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):167 - HikariPool-1 - Driver does not support get/set network timeout for connections. ([Amazon][JDBC](10220) Driver does not support this optional feature.)
2023-02-27 15:31:03 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):167 - HikariPool-1 - Shutdown initiated...
2023-02-27 15:31:03 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):167 - HikariPool-1 - Shutdown completed.
2023-02-27 15:31:03 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):167 - Completed integration: io.airbyte.integrations.destination.redshift.RedshiftDestination
2023-02-27 15:31:03 INFO i.a.w.i.DefaultAirbyteStreamFactory(internalLog):167 - completed destination: class io.airbyte.integrations.destination.redshift.RedshiftDestination
2023-02-27 15:31:03 INFO i.a.w.g.DefaultCheckConnectionWorker(run):114 - Check connection job received output: io.airbyte.config.StandardCheckConnectionOutput@7d14743f[status=failed,message=State code: 42501; Error code: 500310; Message: [Amazon](500310) Invalid operation: permission denied for schema master_public_api;]
2023-02-27 15:31:03 INFO i.a.w.t.TemporalAttemptExecution(get):163 - Stopping cancellation check scheduling...
2023-02-27 15:31:03 INFO i.a.c.i.LineGobbler(voidCall):114 - 
2023-02-27 15:31:03 INFO i.a.c.i.LineGobbler(voidCall):114 - ----- END CHECK -----
2023-02-27 15:31:03 INFO i.a.c.i.LineGobbler(voidCall):114 -
Sometimes Java can be a bit to modular for it's own sake 😄
Finally found it:
Apparently, the check tries to create the schema if it does not exist, create and then drop a table.
So I had to add permissions for the db user accordingly, which is currently missing from the documentation.
I'll see about adding a PR for this.
n
Great to hear you figured it out!