<@U04S8PLJWMT> i have an s3 bucket with multiple j...
# ask-ai
p
@kapa.ai i have an s3 bucket with multiple jsonl files.i am tryinf to use file source. my files have name test_file_n.json where n = 1,2 ….n. i just specified the prefix and i get this error. version: None error: An error occurred (NoSuchKey) when calling the GetObject operation: The specified key does not exist.”
k
The error message “An error occurred (NoSuchKey) when calling the GetObject operation: The specified key does not exist” typically means that the path or pattern you provided does not match any files in your S3 bucket. Here are some things to check and try: 1. Path Pattern Syntax: When configuring the S3 source in Airbyte, you need to use a glob pattern (not just a prefix) to match your files. For example, if your files are named
test_file_1.json
,
test_file_2.json
, etc., you should use a pattern like:
Copy code
test_file_*.json
or, if they are in a folder, for example
data/
, use:
Copy code
data/test_file_*.json
Do not include the bucket name in the pattern—patterns are relative to the root of the bucket. For more details and examples, see the [Globs section of the documentation](https://docs.airbyte.com/integrations/sources/s3#globs). 2. File Format Support: Note that Airbyte’s S3 source does not natively support JSONL files as of the latest information in the knowledge sources. There are workarounds, but they are not officially recommended or supported. You may encounter issues if you try to treat JSONL as CSV or use hacks with delimiters, as discussed in the forum posts. See: [Help setting up s3 source](https://discuss.airbyte.io/t/539) and [Cannot load JSON files with S3 Source](https://discuss.airbyte.io/t/1561). 3. Double-check File Existence: Make sure the files you expect are actually present in the bucket and the path/pattern you use matches them exactly. You can use the AWS CLI or S3 console to verify. 4. No Bucket Name in Pattern: Remember, the pattern should not include the bucket name, only the path inside the bucket. Summary: - Use a glob pattern like
test_file_*.json
for your path pattern. - Airbyte S3 source does not officially support JSONL files, so you may encounter issues even if the pattern is correct. - Double-check your files exist and the pattern matches them. If you continue to see the error after correcting the pattern, it is likely due to the lack of JSONL support in the S3 source connector at this time. For more details, see the documentation and forum discussions: [Globs - S3 Source](https://docs.airbyte.com/integrations/sources/s3#globs) [Help setting up s3 source](https://discuss.airbyte.io/t/539) [Cannot load JSON files with S3 Source](https://discuss.airbyte.io/t/1561)
p
@kapa.ai i am using below source File (CSV, JSON, Excel, Feather, Parquet)
k
A message from kapa.ai
If you are using the File (CSV, JSON, Excel, Feather, Parquet) source connector in Airbyte and encounter the error: > "An error occurred (NoSuchKey) when calling the GetObject operation: The specified key does not exist." this usually means that the file path or URL you provided does not match any file in your S3 bucket. Key points to check: 1. Single File Only: The File source connector only supports syncing a single file at a time, not multiple files or glob patterns. You must provide the exact path (key) to a single file in your S3 bucket, not a prefix or pattern. If you specify a prefix or try to match multiple files, Airbyte will not find the file and you will get the "NoSuchKey" error. > "This source produces a single table for the target file as it replicates only one file at a time for the moment." [Supported sync modes](https://docs.airbyte.com/integrations/sources/file#supported-sync-modes) 2. Correct S3 URL: Make sure you provide the full S3 URL to the file, such as:
Copy code
s3://your-bucket/path/to/test_file_1.json
Do not use a prefix or pattern like `test_file_*.json`—it must be the exact file name. 3. File Existence: Double-check in your S3 bucket that the file exists at the exact path you are specifying. 4. Multiple Files Not Supported: If you want to sync multiple files, you will need to create separate sources/connections for each file, or use a different connector (such as the S3 source, which does support globs, but as noted earlier, may not support JSONL format fully) [Storage Providers](https://docs.airbyte.com/integrations/sources/file#storage-providers). Summary: With the File source, you must specify the exact file path, not a prefix or pattern. The connector does not support syncing multiple files at once from S3. If you need to sync multiple files, consider using the S3 source connector (with the caveats about JSONL support), or combine your files into one before syncing. For more details, see the [File source documentation](https://docs.airbyte.com/integrations/sources/file#supported-sync-modes).
p
@kapa.ai if i use s3 source what should be the nsame of the stream?
k
A message from kapa.ai
When using the S3 source in Airbyte, you can specify the stream name yourself during the source setup. The stream name is a required field and is used to identify the data being synced from your S3 files. It does not have to match the file name or prefix; you can choose any name that makes sense for your use case. For example, if you are syncing files like
test_file_1.json
,
test_file_2.json
, etc., you might name the stream
test_files
or any other descriptive name. This stream name will be used as the table name in your destination unless you add a stream prefix or otherwise configure the destination naming. > "You can now configure multiple streams by clicking on
Add
under
Streams
.
Output Stream Name
has been renamed to
Name
when configuring a specific stream." [S3 Migration Guide](https://docs.airbyte.com/integrations/sources/s3-migrations#s3-migration-guide) > "Give a Name to the stream" [For Airbyte Cloud: S3 Source Setup](https://docs.airbyte.com/integrations/sources/s3#for-airbyte-cloud) So, the stream name is up to you—choose a name that helps you identify the data you are syncing.
p
@kapa.ai CheckAvailabilityError(FileBasedSourceError.EMPTY_STREAM, stream=stream.name) airbyte_cdk.sources.file_based.exceptions.CheckAvailabilityError: No files were identified in the stream. This may be because there are no files in the specified container, or because your glob patterns did not match any files. Please verify that your source contains files last modified after the start_date and that your glob patterns are not overly strict. Contact Support if you need assistance.
k
A message from kapa.ai
The error message
Copy code
CheckAvailabilityError(FileBasedSourceError.EMPTY_STREAM, stream=stream.name) airbyte_cdk.sources.file_based.exceptions.CheckAvailabilityError: No files were identified in the stream. This may be because there are no files in the specified container, or because your glob patterns did not match any files. Please verify that your source contains files last modified after the start_date and that your glob patterns are not overly strict.
means that Airbyte could not find any files to sync for the stream you configured. This can happen for a few reasons: 1. No Files in the Specified Location: The S3 bucket or folder you pointed to does not contain any files. 2. Glob Pattern Did Not Match Any Files: The glob pattern you used (for example,
test_file_*.json
) did not match any files in the bucket or folder. Make sure your pattern is correct and matches the actual file names. Patterns are relative to the root of the bucket and should not include the bucket name itself. For example, if your files are in the root, use `test_file_*.json`; if they are in a folder called
data
, use
data/test_file_*.json
[Globs - S3 Source](https://docs.airbyte.com/integrations/sources/s3#globs). 3. Files Do Not Meet the Date Criteria: If you have set a
start_date
in your configuration, only files modified after this date will be considered. Make sure your files are not older than the
start_date
. What to do: - Double-check that your files exist in the specified location in S3. - Verify your glob pattern matches the files you want to sync. - Ensure your
start_date
is not filtering out all files. If you continue to have issues, review your configuration and the actual contents of your S3 bucket to ensure alignment with your Airbyte setup. For more details, see the [S3 source documentation](https://docs.airbyte.com/integrations/sources/s3#globs).
p
@kapa.ai 2025-07-15 003145 info APPLY Stage: BUILD — (workloadId=778daa7c-feaf-4db6-96f3-70fd645acc77_5c5f0cc0-ee43-45bc-acfe-77afebc9af00_0_check) 2025-07-15 003145 info APPLY Stage: CLAIM — (workloadId=778daa7c-feaf-4db6-96f3-70fd645acc77_5c5f0cc0-ee43-45bc-acfe-77afebc9af00_0_check) 2025-07-15 003145 info Claimed: true for 778daa7c-feaf-4db6-96f3-70fd645acc77_5c5f0cc0-ee43-45bc-acfe-77afebc9af00_0_check via API for faaa4b56-1ae6-449b-a135-235396144786 2025-07-15 003145 info APPLY Stage: LOAD_SHED — (workloadId=778daa7c-feaf-4db6-96f3-70fd645acc77_5c5f0cc0-ee43-45bc-acfe-77afebc9af00_0_check) 2025-07-15 003145 info APPLY Stage: CHECK_STATUS — (workloadId=778daa7c-feaf-4db6-96f3-70fd645acc77_5c5f0cc0-ee43-45bc-acfe-77afebc9af00_0_check) 2025-07-15 003145 info No pod found running for workload 778daa7c-feaf-4db6-96f3-70fd645acc77_5c5f0cc0-ee43-45bc-acfe-77afebc9af00_0_check 2025-07-15 003145 info APPLY Stage: MUTEX — (workloadId=778daa7c-feaf-4db6-96f3-70fd645acc77_5c5f0cc0-ee43-45bc-acfe-77afebc9af00_0_check) 2025-07-15 003145 info No mutex key specified for workload: 778daa7c-feaf-4db6-96f3-70fd645acc77_5c5f0cc0-ee43-45bc-acfe-77afebc9af00_0_check. Continuing... 2025-07-15 003145 info APPLY Stage: LAUNCH — (workloadId=778daa7c-feaf-4db6-96f3-70fd645acc77_5c5f0cc0-ee43-45bc-acfe-77afebc9af00_0_check) 2025-07-15 003145 info [initContainer] image: airbyte/workload-init-container:1.6.2 resources: ResourceRequirements(claims=[], limits={}, requests={}, additionalProperties={}) 2025-07-15 003156 info Attempting to update workload: 778daa7c-feaf-4db6-96f3-70fd645acc77_5c5f0cc0-ee43-45bc-acfe-77afebc9af00_0_check to LAUNCHED. 2025-07-15 003156 info Pipeline completed for workload: 778daa7c-feaf-4db6-96f3-70fd645acc77_5c5f0cc0-ee43-45bc-acfe-77afebc9af00_0_check. 2025-07-15 003201 info 2025-07-15 003201 info ----- START CHECK ----- 2025-07-15 003201 info 2025-07-15 003426 info Connector exited, processing output 2025-07-15 003426 info Output file jobOutput.json found 2025-07-15 003426 info Connector exited with exit code 137 2025-07-15 003426 info Reading messages from protocol version 0.2.0 2025-07-15 003426 info Checking for optional control message... 2025-07-15 003426 info Optional control message not found. Skipping... 2025-07-15 003426 info Writing output of 778daa7c-feaf-4db6-96f3-70fd645acc77_5c5f0cc0-ee43-45bc-acfe-77afebc9af00_0_check to the doc store
k
A message from kapa.ai
Based on the log you provided, the key detail is:
Copy code
2025-07-15 00:34:26 info Connector exited with exit code 137
Exit code 137 in Airbyte almost always indicates that the connector process was killed due to running out of memory (OOM). This is confirmed by multiple issues in the Airbyte knowledge base, where exit code 137 is associated with OOM conditions and the recommendation is to increase memory or CPU resources for the connector or Docker environment. For example, one Airbyte team member states: > "Usually means OOM, please give more memory/cpu to Docker" ([Cluster 'airbyte-abctl' could not be created](https://github.com/airbytehq/airbyte/issues/53691)) What you should do: - Increase the memory and/or CPU resources allocated to your Airbyte worker or Docker environment. - If you are running Airbyte on Kubernetes or another orchestrator, adjust the resource limits for the relevant pods. - If you are running Airbyte locally with Docker, increase the memory available to Docker. There is no indication in the knowledge sources of another root cause for exit code 137 in this context. If the problem persists after increasing resources, further investigation into connector-specific memory usage may be needed, but OOM is the most likely cause according to Airbyte documentation and issue history. Summary: Exit code 137 means the connector was killed due to running out of memory. Increase the memory/CPU resources for your Airbyte environment to resolve this issue. ([Cluster 'airbyte-abctl' could not be created](https://github.com/airbytehq/airbyte/issues/53691))
p
@kapa.ai This is happening when i try to test the source
k
A message from kapa.ai
When you see exit code 137 while testing a source in Airbyte, it almost always means the process was killed due to running out of memory (OOM). This is confirmed by multiple Airbyte issues and discussions, where exit code 137 is consistently linked to OOM conditions. The recommended action is to increase the memory (and possibly CPU) resources allocated to the relevant Airbyte process or container. This can happen even during the "test source" (check) step, not just during syncs. One user reported that Airbyte uses different environment variables for resource limits during different job types (like check, discover, sync), and if these are not set high enough, the process can be killed by Kubernetes or Docker due to exceeding memory limits. You may need to set variables like
CHECK_JOB_MAIN_CONTAINER_MEMORY_LIMIT
and similar for the check job, not just the main sync job, especially in Kubernetes deployments. If these are not set, the system may fall back to low cluster defaults, causing OOM errors even for small jobs [Cannot use Airbyte on Kubernetes due to OOM when setting up connector](https://github.com/airbytehq/airbyte/issues/48816) [Cluster 'airbyte-abctl' could not be created](https://github.com/airbytehq/airbyte/issues/53691). What to do: - Increase the memory and CPU limits for the check job (and other job types) in your Airbyte deployment. - If using Kubernetes, set the appropriate environment variables for all job types, not just the main sync job. - If using Docker, increase the memory available to Docker. If you continue to see exit code 137 after increasing resources, there may be a connector-specific memory issue, but OOM is the most likely cause according to Airbyte documentation and issue history.