Hi Team, Just a small question regarding DBT, I di...
# replication-troubleshooting
d
Hi Team, Just a small question regarding DBT, I did use DBT with Airbyte which is running in my local and everything is working as expected. Just that when I am trying to access the same DBT with Prod configuration to Airbyte ( which is running on Plural and Kubernetes ). I am encountered with an error - dbt > entrypoint.sh: line 6: cd: git_repo: No such file or directory. Wanted to check if Custom DBT works fine with Plural ? Attaching a screenshot.
Attaching Logs too.
Copy code
2023-02-16 16:35:22 [32mINFO[m i.a.w.p.KubePodProcess(copyFilesToKubeConfigVolume):254 - Uploading file: entrypoint.sh
2023-02-16 16:35:22 [32mINFO[m i.a.w.p.KubePodProcess(copyFilesToKubeConfigVolume):262 - kubectl cp /tmp/8f86f775-7637-47bb-81a5-b5353e66a3ab/entrypoint.sh airbyte/dbt-custom-10872-0-vriod:/config/entrypoint.sh -c init
2023-02-16 16:35:22 [32mINFO[m i.a.w.p.KubePodProcess(copyFilesToKubeConfigVolume):265 - Waiting for kubectl cp to complete
2023-02-16 16:35:22 [32mINFO[m i.a.w.p.KubePodProcess(copyFilesToKubeConfigVolume):279 - kubectl cp complete, closing process
2023-02-16 16:35:22 [32mINFO[m i.a.w.p.KubePodProcess(copyFilesToKubeConfigVolume):254 - Uploading file: sshtunneling.sh
2023-02-16 16:35:22 [32mINFO[m i.a.w.p.KubePodProcess(copyFilesToKubeConfigVolume):262 - kubectl cp /tmp/42ca29fa-8257-41e7-9087-d6cda017687e/sshtunneling.sh airbyte/dbt-custom-10872-0-vriod:/config/sshtunneling.sh -c init
2023-02-16 16:35:22 [32mINFO[m i.a.w.p.KubePodProcess(copyFilesToKubeConfigVolume):265 - Waiting for kubectl cp to complete
2023-02-16 16:35:23 [32mINFO[m i.a.w.p.KubePodProcess(copyFilesToKubeConfigVolume):279 - kubectl cp complete, closing process
2023-02-16 16:35:23 [32mINFO[m i.a.w.p.KubePodProcess(copyFilesToKubeConfigVolume):254 - Uploading file: FINISHED_UPLOADING
2023-02-16 16:35:23 [32mINFO[m i.a.w.p.KubePodProcess(copyFilesToKubeConfigVolume):262 - kubectl cp /tmp/8132c655-7cc3-4ee9-8289-8c1eca2e086a/FINISHED_UPLOADING airbyte/dbt-custom-10872-0-vriod:/config/FINISHED_UPLOADING -c init
2023-02-16 16:35:23 [32mINFO[m i.a.w.p.KubePodProcess(copyFilesToKubeConfigVolume):265 - Waiting for kubectl cp to complete
2023-02-16 16:35:23 [32mINFO[m i.a.w.p.KubePodProcess(copyFilesToKubeConfigVolume):279 - kubectl cp complete, closing process
2023-02-16 16:35:23 [32mINFO[m i.a.w.p.KubePodProcess(<init>):549 - Waiting until pod is ready...
2023-02-16 16:35:24 [32mINFO[m i.a.w.p.KubePodProcess(lambda$setupStdOutAndStdErrListeners$9):593 - Setting stdout...
2023-02-16 16:35:24 [32mINFO[m i.a.w.p.KubePodProcess(lambda$setupStdOutAndStdErrListeners$10):605 - Setting stderr...
2023-02-16 16:35:25 [32mINFO[m i.a.w.p.KubePodProcess(<init>):565 - Reading pod IP...
2023-02-16 16:35:25 [32mINFO[m i.a.w.p.KubePodProcess(<init>):567 - Pod IP: 10.0.42.171
2023-02-16 16:35:25 [32mINFO[m i.a.w.p.KubePodProcess(<init>):574 - Using null stdin output stream...
2023-02-16 16:35:25 [32mINFO[m i.a.w.p.KubePodProcess(close):714 - (pod: airbyte / dbt-custom-10872-0-vriod) - Closed all resources for pod
2023-02-16 16:35:25 [32mINFO[m i.a.w.t.TemporalAttemptExecution(lambda$getWorkerThread$2):161 - Completing future exceptionally...
io.airbyte.workers.exception.WorkerException: Dbt Transformation Failed.
	at io.airbyte.workers.general.DbtTransformationWorker.run(DbtTransformationWorker.java:59) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	at io.airbyte.workers.general.DbtTransformationWorker.run(DbtTransformationWorker.java:18) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	at io.airbyte.workers.temporal.TemporalAttemptExecution.lambda$getWorkerThread$2(TemporalAttemptExecution.java:158) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: io.airbyte.workers.exception.WorkerException: DBT Transformation Failed.
	at io.airbyte.workers.general.DbtTransformationWorker.run(DbtTransformationWorker.java:56) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	... 3 more
	Suppressed: io.airbyte.workers.exception.WorkerException: Dbt transformation process wasn't successful
		at io.airbyte.workers.general.DbtTransformationRunner.close(DbtTransformationRunner.java:140) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
		at io.airbyte.workers.general.DbtTransformationWorker.run(DbtTransformationWorker.java:45) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
		at io.airbyte.workers.general.DbtTransformationWorker.run(DbtTransformationWorker.java:18) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
		at io.airbyte.workers.temporal.TemporalAttemptExecution.lambda$getWorkerThread$2(TemporalAttemptExecution.java:158) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
		at java.lang.Thread.run(Thread.java:833) [?:?]
2023-02-16 16:35:25 [32mINFO[m i.a.w.t.TemporalAttemptExecution(get):134 - Stopping cancellation check scheduling...
2023-02-16 16:35:25 [33mWARN[m i.a.c.i.LineGobbler(voidCall):86 - generic gobbler IOException: Socket closed. Typically happens when cancelling a job.
2023-02-16 16:35:25 [32mINFO[m i.a.w.t.TemporalUtils(withBackgroundHeartbeat):236 - Stopping temporal heartbeating...
2023-02-16 16:35:25 [33mWARN[m i.t.i.a.POJOActivityTaskHandler(activityFailureToResult):307 - Activity failure. ActivityId=4264f418-029b-3775-b3de-469cd3877c5b, activityType=Run, attempt=1
java.lang.RuntimeException: io.temporal.serviceclient.CheckedExceptionWrapper: java.util.concurrent.ExecutionException: io.airbyte.workers.exception.WorkerException: Dbt Transformation Failed.
	at io.airbyte.workers.temporal.TemporalUtils.withBackgroundHeartbeat(TemporalUtils.java:234) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	at io.airbyte.workers.temporal.sync.DbtTransformationActivityImpl.run(DbtTransformationActivityImpl.java:77) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
	at io.temporal.internal.activity.POJOActivityTaskHandler$POJOActivityInboundCallsInterceptor.execute(POJOActivityTaskHandler.java:214) ~[temporal-sdk-1.8.1.jar:?]
	at io.temporal.internal.activity.POJOActivityTaskHandler$POJOActivityImplementation.execute(POJOActivityTaskHandler.java:180) ~[temporal-sdk-1.8.1.jar:?]
	at io.temporal.internal.activity.POJOActivityTaskHandler.handle(POJOActivityTaskHandler.java:120) ~[temporal-sdk-1.8.1.jar:?]
	at io.temporal.internal.worker.ActivityWorker$TaskHandlerImpl.handle(ActivityWorker.java:204) ~[temporal-sdk-1.8.1.jar:?]
	at io.temporal.internal.worker.ActivityWorker$TaskHandlerImpl.handle(ActivityWorker.java:164) ~[temporal-sdk-1.8.1.jar:?]
	at io.temporal.internal.worker.PollTaskExecutor.lambda$process$0(PollTaskExecutor.java:93) ~[temporal-sdk-1.8.1.jar:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: io.temporal.serviceclient.CheckedExceptionWrapper: java.util.concurrent.ExecutionException: io.airbyte.workers.exception.WorkerException: Dbt Transformation Failed.
	at io.temporal.serviceclient.CheckedExceptionWrapper.wrap(CheckedExceptionWrapper.java:56) ~[temporal-serviceclient-1.8.1.jar:?]
	at io.temporal.internal.sync.WorkflowInternal.wrap(WorkflowInternal.java:448) ~[temporal-sdk-1.8.1.jar:?]
	at io.temporal.activity.Activity.wrap(Activity.java:51) ~[temporal-sdk-1.8.1.jar:?]
	at io.airbyte.workers.temporal.TemporalAttemptExecution.get(TemporalAttemptExecution.java:138) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	at io.airbyte.workers.temporal.sync.DbtTransformationActivityImpl.lambda$run$3(DbtTransformationActivityImpl.java:108) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	at io.airbyte.workers.temporal.TemporalUtils.withBackgroundHeartbeat(TemporalUtils.java:229) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	... 14 more
Caused by: java.util.concurrent.ExecutionException: io.airbyte.workers.exception.WorkerException: Dbt Transformation Failed.
	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396) ~[?:?]
	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073) ~[?:?]
	at io.airbyte.workers.temporal.TemporalAttemptExecution.get(TemporalAttemptExecution.java:132) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	at io.airbyte.workers.temporal.sync.DbtTransformationActivityImpl.lambda$run$3(DbtTransformationActivityImpl.java:108) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	at io.airbyte.workers.temporal.TemporalUtils.withBackgroundHeartbeat(TemporalUtils.java:229) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	... 14 more
Caused by: io.airbyte.workers.exception.WorkerException: Dbt Transformation Failed.
	at io.airbyte.workers.general.DbtTransformationWorker.run(DbtTransformationWorker.java:59) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	at io.airbyte.workers.general.DbtTransformationWorker.run(DbtTransformationWorker.java:18) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	at io.airbyte.workers.temporal.TemporalAttemptExecution.lambda$getWorkerThread$2(TemporalAttemptExecution.java:158) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	... 1 more
Caused by: io.airbyte.workers.exception.WorkerException: DBT Transformation Failed.
	at io.airbyte.workers.general.DbtTransformationWorker.run(DbtTransformationWorker.java:56) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	at io.airbyte.workers.general.DbtTransformationWorker.run(DbtTransformationWorker.java:18) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	at io.airbyte.workers.temporal.TemporalAttemptExecution.lambda$getWorkerThread$2(TemporalAttemptExecution.java:158) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
	... 1 more
	Suppressed: io.airbyte.workers.exception.WorkerException: Dbt transformation process wasn't successful
		at io.airbyte.workers.general.DbtTransformationRunner.close(DbtTransformationRunner.java:140) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
		at io.airbyte.workers.general.DbtTransformationWorker.run(DbtTransformationWorker.java:45) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
		at io.airbyte.workers.general.DbtTransformationWorker.run(DbtTransformationWorker.java:18) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
		at io.airbyte.workers.temporal.TemporalAttemptExecution.lambda$getWorkerThread$2(TemporalAttemptExecution.java:158) ~[io.airbyte-airbyte-workers-0.39.14-alpha.jar:?]
		at java.lang.Thread.run(Thread.java:833) [?:?]
2023-02-16 16:35:13 [42mnormalization[0m > 16:35:13  1 of 3 OK created table model dreamscape.prod_user_data................................................................. [SELECT 39836 in 13.27s]
2023-02-16 16:35:13 [42mnormalization[0m > 16:35:13  
2023-02-16 16:35:13 [42mnormalization[0m > 16:35:13  Finished running 3 table models in 13.75s.
2023-02-16 16:35:13 [42mnormalization[0m > 16:35:13  
2023-02-16 16:35:13 [42mnormalization[0m > 16:35:13  Completed successfully
2023-02-16 16:35:13 [42mnormalization[0m > 16:35:13  
2023-02-16 16:35:13 [42mnormalization[0m > 16:35:13  Done. PASS=3 WARN=0 ERROR=0 SKIP=0 TOTAL=3
2023-02-16 16:35:18 [42mnormalization[0m > Running: git clone --depth 5 -b master --single-branch  $GIT_REPO git_repo
2023-02-16 16:35:18 [42mnormalization[0m > Cloning into 'git_repo'...
2023-02-16 16:35:18 [42mnormalization[0m > Last 5 commits in git_repo:
2023-02-16 16:35:18 [42mnormalization[0m > 0a25e86 Schema name mismatched resolved
2023-02-16 16:35:18 [42mnormalization[0m > 12a4dc9 Feat(DBT Project): Setup and DBT Configuration
2023-02-16 16:35:18 [42mnormalization[0m > 2006318 Initial commit
2023-02-16 16:35:18 [42mnormalization[0m > /config
2023-02-16 16:35:18 [42mnormalization[0m > Running: transform-config --config destination_config.json --integration-type postgres --out /config
2023-02-16 16:35:19 [42mnormalization[0m > Namespace(config='destination_config.json', integration_type=<DestinationType.POSTGRES: 'postgres'>, out='/config')
2023-02-16 16:35:19 [42mnormalization[0m > transform_postgres
n
Hi, Dhruv! Unfortunately custom dbt does not currently work on Kubernetes. Here's the Github issue: https://github.com/airbytehq/airbyte/issues/5091#issuecomment-1387592347 From the thread: " one current workaround with Airbyte Kube is to use an external orchestrator to trigger the DBT transformation after the job is run. As an eng, I know it's annoying to set up another system for this and I want us to fix this asap. However the current focus is on making reliability/performance improvements (which should benefit everyone on this thread too). Sorry again, and thank you for understanding."