<@U04S8PLJWMT> I’m receiving error 500 (Get Spec j...
# ask-ai
a
@kapa.ai I’m receiving error 500 (Get Spec job failed.) when trying to create new connector from docker image in my OSS instance deployed to google cloud VM using abctl. Docker image lives in GC artifact registry and I verified that VM has access to it. Any ideas why there is an error?
k
A 500 error with "Get Spec job failed" when adding a connector from a Docker image in Airbyte OSS (deployed on a Google Cloud VM, using abctl, with the image in Google Artifact Registry) is a common issue, and several potential causes are documented: 1. Image Architecture Mismatch If your connector image was built on an Apple M1/M2 (arm64) machine, but your GCP VM is amd64, the image may not run correctly. This is a frequent cause of the "Get Spec job failed" error. To resolve this, rebuild and push your Docker image for the correct architecture (linux/amd64). You can do this using Docker Buildx:
Copy code
bash    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:
Copy code
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:
Copy code
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!
a
@kapa.ai I forgot to mention I’m using airbyte-ci to build my docker container. How do i enforce platform linux/amd64 in this case?
k
A message from kapa.ai
Based on the provided knowledge sources, when using airbyte-ci to build your connector image, you can specify the target architecture using the --architecture flag. By default, airbyte-ci builds for linux/amd64, but if you want to be explicit or ensure the correct platform, you can use:
Copy code
bash 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.
a
@kapa.ai my VM has the following configuration Machine type: n2-standard-16 (16 vCPUs, 64 GB Memory) CPU platform: Intel Cascade Lake Architecture: x86/64 will it work with linux/amd64 image?
k
A message from kapa.ai
Yes, your VM with the configuration: - Machine type: n2-standard-16 (16 vCPUs, 64 GB Memory) - CPU platform: Intel Cascade Lake - Architecture: x86/64 is fully compatible with Docker images built for the linux/amd64 platform. The x86/64 architecture is the same as amd64, and Intel Cascade Lake CPUs support all required instruction sets for these images. This is consistent with Airbyte's documented requirements that images must be valid for amd64 to run on the Airbyte platform [Airbyte Protocol Docker Interface](https://docs.airbyte.com/platform/understanding-airbyte/airbyte-protocol-docker). If you build your connector image for linux/amd64, it will work on your VM.
a
@kapa.ai updating architecture didn’t help. this is from airbyte-abctl-server log
Copy code
2025-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)
k
A message from kapa.ai
Based on the knowledge sources provided, a "Get Spec job failed" error with a stack trace like the one you posted is a generic error that can be caused by several issues. Here are the most relevant troubleshooting steps and considerations, as documented in similar cases: 1. Image Architecture You have already confirmed your image is built for
linux/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:
Copy code
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:
Copy code
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.
a
@kapa.ai
Copy code
docker 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:
Copy code
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.
k
A message from kapa.ai
Based on the information and logs you provided, your issue is that the connector pod (
ks-drivepoint-spec-...
) enters an Error state and the logs show:
Copy code
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:
Copy code
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.
a
@kapa.ai is it possible to try create connector from docker image via some abctl script instead of UI?
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not contain information about creating a connector from a Docker image using an abctl script or CLI command instead of the UI. All documented procedures for adding custom connectors reference using the Airbyte UI for this step. If you need to automate this process, you may need to explore Airbyte's API or other methods, but this is not covered in the provided documentation.
a
@kapa.ai what does “ErrImagePull” state mean for the pod named
ks-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?
k
A message from kapa.ai
The “ErrImagePull” state for the pod
ks-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.
a
@kapa.ai I solved the previous issue and created custom source connector from docker image. however when running sync to BigQuery destination I’m getting the following error: 2025-09-12 181505 info INFO sync-operations-3 i.a.i.d.b.o.BigQueryGcsStorageOperation(prepareStage):51 Creating bucket bbcust-all-airbyte-gcloud-raw-data-production 2025-09-12 181505 info INFO sync-operations-3 i.a.i.b.d.o.AbstractStreamOperation(prepareFinalTable):240 Final table does not exist for stream balance_sheet_report_stream, creating. 2025-09-12 181507 error ERROR main i.a.c.i.u.ConnectorExceptionUtil(logAllAndThrowFirst):37 Following exceptions occurred during sync initializationjava.util.concurrent.CompletionException: com.google.cloud.bigquery.BigQueryException: Unrecognized name: id at [25:24] at io.airbyte.commons.concurrency.CompletableFutures$allOf$1.invoke(CompletableFutures.kt:46) at io.airbyte.commons.concurrency.CompletableFutures$allOf$1.invoke(CompletableFutures.kt:31) at io.airbyte.commons.concurrency.CompletableFutures.allOf$lambda$1(CompletableFutures.kt:31) at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934) at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911) at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) 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) I double checked and my BigQuery destination works fine with other source
k
A message from kapa.ai
The error message:
Copy code
com.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.