Andrey
09/11/2025, 3:48 PMkapa.ai
09/11/2025, 3:48 PMbash docker buildx build --platform linux/amd64 --push -t <your-artifact-registry>/<image>:<tag> . This ensures compatibility with your VM's architecture. Several users have confirmed this as the root cause in similar situations [Forum: Error adding a source (custom connector) to UI](https://discuss.airbyte.io/t/4652), [Forum: Error with api/v1/source_definitions/create when running on GCP](https://discuss.airbyte.io/t/1271). 2. Docker Registry Authentication Even if you believe the VM has access, double-check that both your local/CI environment (where you build and push the image) and the VM running Airbyte are authenticated to Google Artifact Registry. Use the gcloud credential helper as described in the Airbyte docs: bash gcloud auth configure-docker <region>-docker.pkg.dev Run this on both your build environment and the VM. More details are in the official docs [Uploading Docker-based custom connectors](https://docs.airbyte.com/platform/operator-guides/using-custom-connectors#3-adhere-to-airbytes-docker-image-requirements). 3. Connector Image Validity Try running the following command directly on your GCP VM to ensure the image works as expected: bash docker run --rm -i <your-artifact-registry>/<image>:<tag> spec If this command fails, Airbyte will not be able to fetch the spec, resulting in the error you see. If it works, the problem is likely elsewhere. 4. Dependencies and Setup If your connector requires specific dependencies, ensure they are included in your Docker image. Missing dependencies can cause the container to fail at runtime, leading to the "Get Spec job failed" error [Forum: Internal Server Error: Get Spec job failed](https://discuss.airbyte.io/t/2508). Summary: The most common cause is an architecture mismatch between your build machine and the GCP VM. Rebuild your image for linux/amd64 and ensure proper authentication to Artifact Registry. Also, verify the image runs as expected on the VM. If after these steps the issue persists, check the Airbyte worker logs for more detailed error output, as sometimes the root cause is only visible there. Let me know if you need more specific troubleshooting steps!Andrey
09/11/2025, 4:08 PMkapa.ai
09/11/2025, 4:08 PMkapa.ai
09/11/2025, 4:08 PMbash airbyte-ci connectors --name=<your-connector-name> build --architecture=linux/amd64 This will build your connector image for the linux/amd64 platform, which is compatible with most Google Cloud VMs. The documentation notes that airbyte-ci builds for [‘linux/amd64’] by default and that you can use --architecture to change this if needed. If you are experiencing architecture-related issues, explicitly setting this flag can help ensure compatibility [dagger: QueryError](https://github.com/airbytehq/airbyte/issues/46886). If you continue to experience issues, please check the build logs to confirm the architecture used during the build process.Andrey
09/11/2025, 4:18 PMkapa.ai
09/11/2025, 4:18 PMkapa.ai
09/11/2025, 4:18 PMAndrey
09/11/2025, 4:29 PM2025-09-11 16:24:31,081 [io-executor-thread-5] ERROR i.a.s.a.ApiHelper(execute):47 - Unexpected Exception
java.lang.IllegalStateException: Get Spec job failed.
at com.google.common.base.Preconditions.checkState(Preconditions.java:513)
at io.airbyte.commons.server.converters.SpecFetcher.getSpecFromJob(SpecFetcher.java:17)
at io.airbyte.commons.server.handlers.helpers.ActorDefinitionHandlerHelper.getSpecForImage(ActorDefinitionHandlerHelper.java:168)
at io.airbyte.commons.server.handlers.helpers.ActorDefinitionHandlerHelper.defaultDefinitionVersionFromCreate(ActorDefinitionHandlerHelper.java:83)
at io.airbyte.commons.server.handlers.SourceDefinitionsHandler.createCustomSourceDefinition(SourceDefinitionsHandler.java:293)
at io.airbyte.server.apis.controllers.SourceDefinitionApiController.createCustomSourceDefinition$lambda$0(SourceDefinitionApiController.kt:62)
at io.airbyte.server.apis.ApiHelper.execute(ApiHelper.kt:32)
at io.airbyte.server.apis.controllers.SourceDefinitionApiController.createCustomSourceDefinition(SourceDefinitionApiController.kt:61)
at io.airbyte.server.apis.controllers.$SourceDefinitionApiController$Definition$Exec.dispatch(Unknown Source)
at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invokeUnsafe(AbstractExecutableMethodsDefinition.java:461)
at io.micronaut.context.DefaultBeanContext$BeanContextUnsafeExecutionHandle.invokeUnsafe(DefaultBeanContext.java:4354)
at io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:272)
at io.micronaut.web.router.DefaultUriRouteMatch.execute(DefaultUriRouteMatch.java:38)
at io.micronaut.http.server.RouteExecutor.executeRouteAndConvertBody(RouteExecutor.java:488)
at io.micronaut.http.server.RouteExecutor.lambda$callRoute$5(RouteExecutor.java:465)
at io.micronaut.core.execution.ExecutionFlow.lambda$async$1(ExecutionFlow.java:87)
at io.micronaut.core.propagation.PropagatedContext.lambda$wrap$3(PropagatedContext.java:211)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
2025-09-11 16:24:31,084 [io-executor-thread-5] ERROR i.a.c.s.e.h.UncaughtExceptionHandler(handle):33 - Uncaught exception
java.lang.IllegalStateException: Get Spec job failed.
at com.google.common.base.Preconditions.checkState(Preconditions.java:513)
at io.airbyte.commons.server.converters.SpecFetcher.getSpecFromJob(SpecFetcher.java:17)kapa.ai
09/11/2025, 4:30 PMkapa.ai
09/11/2025, 4:30 PMlinux/amd64 and your VM is compatible, so this is not the issue in your case. 2. Docker Image Accessibility Even if you believe your VM has access to the image in Google Artifact Registry, it is important to verify that Airbyte itself (the process/container running Airbyte) can pull and run the image. Try running: bash docker run --rm -i <your-artifact-registry>/<image>:<tag> spec directly on the VM. If this fails, Airbyte will not be able to fetch the spec, and you will see the "Get Spec job failed" error. This step is explicitly recommended in several sources and has resolved similar issues for other users [Forum: Error with api/v1/source_definitions/create when running on GCP](https://discuss.airbyte.io/t/1271), [Forum: Internal Server Error: Get Spec job failed](https://discuss.airbyte.io/t/2508). 3. Dependencies in Docker Image If your connector requires specific dependencies, ensure they are included in your Docker image. Missing dependencies can cause the container to fail at runtime, leading to this error. One user resolved their issue by adding missing Python libraries to their setup.py [Forum: Internal Server Error: Get Spec job failed](https://discuss.airbyte.io/t/2508). 4. Registry Authentication Double-check that the Airbyte process has the correct Docker credentials to pull from Google Artifact Registry. Even if the VM is authenticated, the Airbyte worker may run in a different context or user. Use: bash gcloud auth configure-docker <region>-docker.pkg.dev on the VM, and ensure the Airbyte process can access the credentials. 5. Image Naming and Tagging Ensure your image name and tag do not contain underscores or other unsupported characters, as this has caused issues in Kubernetes and other environments [Forum: Unable to add connector to the UI in Kubernetes deployment: Get Spec Job Failed](https://discuss.airbyte.io/t/646). 6. Build Environment If you built your image on a different architecture (e.g., Apple M1/M2), even with the correct platform flag, sometimes subtle issues can persist. Rebuilding the image on an x86_64 machine or using Docker Buildx as described in the sources can help [Forum: Error adding a source (custom connector) to UI](https://discuss.airbyte.io/t/4652). 7. Check Airbyte Worker Logs The error you posted is from the server, but sometimes the Airbyte worker logs contain more detailed information about why the spec job failed (e.g., container exit code, missing files, etc.) [Forum: Unable to add connectors: get spec job failed](https://discuss.airbyte.io/t/2184). Summary: The knowledge sources indicate that the most common causes are image architecture mismatches, missing dependencies, registry authentication issues, or the image not being runnable on the VM. Please try running the image manually with the spec command on the VM, and check the Airbyte worker logs for more detailed errors. If the manual run fails, the problem is with the image itself; if it succeeds, focus on authentication and Airbyte's ability to pull and run the image. If you provide the output of the manual docker run ... spec command or more detailed worker logs, I can help further.Andrey
09/11/2025, 4:41 PMdocker run --rm -i <your-artifact-registry>/<image>:<tag> spec
works fine and downloads image to VM
but even after that i still can’t add connector.
worker logs has no errors but there is pod named ks-drivepoint-spec-d8869158-da24-4be3-9ea8-be5afb479414-0-bvmal in Error state with the following in log:
2025-09-11 16:15:29,185 [main] INFO i.m.c.e.DefaultEnvironment(<init>):168 - Established active environments: [worker-v2, control-plane, oss, local-secrets]
2025-09-11 16:15:30,780 [pool-3-thread-1] INFO i.a.c.i.LineGobbler(voidCall):177 -
2025-09-11 16:15:30,793 [pool-3-thread-1] INFO i.a.c.i.LineGobbler(voidCall):177 - ----- START SPEC -----
2025-09-11 16:15:30,793 [pool-3-thread-1] INFO i.a.c.i.LineGobbler(voidCall):177 -
2025-09-11 16:24:30,852 [main] WARN i.a.c.ConnectorWatcher(waitForConnectorOutput):110 - Failed to find output files from connector within timeout of 9 minute(s). Is the connector still running?
2025-09-11 16:24:30,853 [main] INFO i.a.c.ConnectorWatcher(failWorkload):314 - Failing workload d8869158-da24-4be3-9ea8-be5afb479414_spec.
2025-09-11 16:24:30,887 [main] INFO i.a.c.ConnectorWatcher(exitFileNotFound):232 - Deliberately exiting process with code 2.kapa.ai
09/11/2025, 4:41 PMkapa.ai
09/11/2025, 4:41 PMks-drivepoint-spec-...) enters an Error state and the logs show: Failed to find output files from connector within timeout of 9 minute(s). Is the connector still running? Deliberately exiting process with code 2. This means that Airbyte's sidecar process waited for the connector to produce its expected output files (such as the spec output) but did not find them within the timeout window. This is a known Airbyte error pattern and is not specific to your infrastructure or registry access, since you confirmed that docker run ... spec works fine on the VM. Possible causes and next steps, based on the knowledge sources: 1. Timeouts for Large or Slow Connectors The default timeout for the sidecar to wait for output is 9 minutes. If your connector takes longer than this to produce its spec, the process will fail. You can increase this timeout by customizing the sidecar container's environment variables (SIDECAR_FILE_TIMEOUT_MINUTES and SIDECAR_FILE_TIMEOUT_WITHIN_SYNC_MINUTES). However, this is not exposed via Helm or abctl by default. As a workaround, you can build a custom sidecar image with increased timeouts, as described here: dockerfile FROM airbyte/connector-sidecar:<version> ENV SIDECAR_FILE_TIMEOUT_MINUTES=30 ENV SIDECAR_FILE_TIMEOUT_WITHIN_SYNC_MINUTES=60 [Github Issue: Allow Connector Sidecar container timeouts configuration changes](https://github.com/airbytehq/airbyte/issues/48855) 2. Connector Not Producing Output in Expected Location Even if the connector runs fine with docker run ... spec, it may not be writing its output to the location Airbyte expects when run inside the Airbyte platform. This can happen if the connector's entrypoint or working directory is different, or if it requires environment variables or files that are not present in the Airbyte pod context. Double-check that your connector writes its output to stdout and follows the Airbyte protocol. 3. Architecture and Dependency Issues While you confirmed the image works on the VM, sometimes subtle differences in the runtime environment (such as missing dependencies or differences in how the container is started) can cause failures only when run inside Airbyte. Make sure all dependencies are included in your image and that the entrypoint is correct. This was a root cause in several similar cases, where missing Python libraries or incorrect setup caused the connector to silently fail inside Airbyte, even though it worked standalone [Forum: Internal Server Error: Get Spec job failed](https://discuss.airbyte.io/t/2508). 4. Image Naming and Tagging Ensure your image name and tag do not contain underscores or other unsupported characters, as this can cause Kubernetes pod creation to fail or behave unexpectedly [Forum: Unable to add connector to the UI in Kubernetes deployment: Get Spec Job Failed](https://discuss.airbyte.io/t/646). Summary: - The most likely cause is that the connector is not producing the expected output file in the way Airbyte expects, or it is taking too long and hitting the timeout. - Try increasing the sidecar timeout as described above. - Double-check your connector's entrypoint, output, and dependencies. - Review the full logs from the connector pod (not just the sidecar) for any errors or stack traces that might indicate why the output was not produced. If after these steps the issue persists, please provide the full logs from the connector pod for further analysis.Andrey
09/11/2025, 5:54 PMkapa.ai
09/11/2025, 5:54 PMkapa.ai
09/11/2025, 5:54 PMAndrey
09/11/2025, 6:00 PMks-drivepoint-spec-49575ede-a830-4858-86b0-b042d5f7aff3-0-gtjqe ?
also it looks like pod name was cut and should have been source-quickbooks-drivepoint-spec-49575ede-a830-4858-86b0-b042d5f7aff3-0-gtjqe
could that be a source of an issue?kapa.ai
09/11/2025, 6:00 PMkapa.ai
09/11/2025, 6:00 PMks-drivepoint-spec-49575ede-a830-4858-86b0-b042d5f7aff3-0-gtjqe means that Kubernetes was unable to pull the specified Docker image for the pod. This can be due to several reasons, such as: - The image does not exist at the specified registry. - There are authentication issues accessing the registry. - The image name or tag is incorrect. - Network issues preventing access to the registry. This is a standard Kubernetes error and is not specific to Airbyte. You can see similar issues in the Airbyte context where pods fail with ImagePullBackOff or ErrImagePull due to problems pulling images, such as rate limits, missing images, or authentication problems [abctl install stuck at pulling images](https://github.com/airbytehq/airbyte/issues/48720). Regarding the pod name being cut: The knowledge sources do not indicate that a truncated pod name (e.g., ks-drivepoint-spec-... instead of source-quickbooks-drivepoint-spec-...) is itself a source of image pull issues. However, there are documented cases where long or complex image names (especially those with certain characters or exceeding length limits) can cause Kubernetes label validation errors, but not specifically pod name truncation causing ErrImagePull [Airbyte worker fails to create job pods with metadata.labels: Invalid value](https://github.com/airbytehq/airbyte/issues/43376). In summary: - “ErrImagePull” means the pod cannot pull its Docker image. - Pod name truncation is not documented as a direct cause of image pull errors, but long or complex image names can cause other Kubernetes issues. If you are seeing ErrImagePull, focus on checking the image name, tag, registry access, and authentication first.Andrey
09/12/2025, 5:33 PMkapa.ai
09/12/2025, 5:34 PMkapa.ai
09/12/2025, 5:34 PMcom.google.cloud.bigquery.BigQueryException: Unrecognized name: id at [25:24] indicates that the BigQuery SQL statement generated during the sync references a column named id, but this column does not exist in the data being loaded or in the table schema at the time of the query. Based on the knowledge sources, this type of error can occur if: - The source stream or schema does not actually include a field named id, but the sync configuration (such as primary key or deduplication settings) expects it to be present. - There is a mismatch between the fields defined in your source connector's output and what Airbyte expects for the destination schema. A similar issue is described in the context of DynamoDB to BigQuery syncs, where the primary key configuration in Airbyte referenced fields that were not actually present at the top level of the data, leading to errors during table creation or data loading in BigQuery ([Only top-level primary keys are supported](https://github.com/airbytehq/airbyte/issues/30250)). In that case, the UI or API configuration for the primary key was not aligned with the actual data structure. What you should check: - Ensure that your custom source connector outputs a field named id for the stream in question, if your sync or destination configuration expects it. - Double-check the primary key and deduplication settings for the stream in your Airbyte connection configuration. If id is set as a primary key or used in deduplication, but your source does not emit this field, you will get this error. - Compare the schema of the problematic stream with streams that work, and look for differences in field names and structure. If you recently changed your source connector or its schema, try refreshing the schema in Airbyte and reconfiguring the connection to ensure the destination expects the correct fields. If you need more specific troubleshooting, please provide the schema emitted by your custom source connector for the balance_sheet_report_stream stream. The knowledge sources do not provide a more detailed or different root cause for this error in the context of Airbyte and BigQuery.