<@U04S8PLJWMT> Could not connect with provided con...
# ask-ai
h
@kapa.ai Could not connect with provided configuration. Error: The specified key does not exist. (Service: S3, Status Code: 404, Request ID: 000001981D261D578049B1B29BDA84CA, Extended Request ID: I’m using the Iceberg S3 Data Lake destination connector in Airbyte with a Nessie REST catalog backend. My configuration looks like this: bucket: dev I’ve configured a
warehouse_location
like: s3://dev/airbyte-test/ However, it looks like Airbyte is incorrectly concatenating the bucket name into the path, resulting in: s3://dev/dev/airbyte-test/ This causes a
404
or “The specified key does not exist” error. Please help me understand: 1. Why is Airbyte duplicating the bucket name in the S3 path? 2. How should I correctly set the
warehouse_location
or related config to avoid this path concatenation issue? 3. How does the connector internally resolve the full S3 URI, and what config (bucket name vs. warehouse URI) takes precedence?
k
Based on the information in the knowledge sources, here’s what can be determined about your issue with the S3 Data Lake destination connector and Nessie REST catalog: ### 1. Why is Airbyte duplicating the bucket name in the S3 path? The error you’re seeing—where Airbyte is generating a path like
s3://dev/dev/airbyte-test/
instead of `s3://dev/airbyte-test/`—suggests that both the bucket name and the warehouse_location are being concatenated. This typically happens if the
warehouse_location
includes the bucket name (e.g., `s3://dev/airbyte-test/`), and Airbyte’s configuration logic also prepends the bucket name from the separate
s3_bucket_name
field, resulting in a duplicated path. This behavior is consistent with how some connectors internally resolve the S3 URI: they take the bucket name from one config field and the path from another, and if the path already includes the bucket name, it gets duplicated. This is a common source of confusion and errors like the one you’re experiencing ([destination-s3-data-lake] glue catalog with local MinIO storage not working). ### 2. How should I correctly set the
warehouse_location
or related config to avoid this path concatenation issue? According to the documentation, you should set the warehouse location to the path within the bucket, not including the bucket name itself. For example, if your bucket is
dev
and you want to use the
airbyte-test
folder, set: - S3 Bucket Name:
dev
- Warehouse Location:
s3://dev/airbyte-test/
However, if Airbyte is concatenating the bucket name and the warehouse location, you may need to set the warehouse location to just the path within the bucket (e.g.,
airbyte-test/
), or ensure you do not include the bucket name twice. The documentation says: > Set the warehouse location option to
s3://<bucket name>/path/within/bucket
> — [S3 Data Lake Setup Guide](https://docs.airbyte.com/integrations/destinations/s3-data-lake#iceberg-catalog-setup-and-permissions) If you are still seeing duplication, try setting the warehouse location to just the path (e.g.,
airbyte-test/
) and let Airbyte handle the bucket name, or vice versa, depending on how the connector is implemented in your version. ### 3. How does the connector internally resolve the full S3 URI, and what config (bucket name vs. warehouse URI) takes precedence? The connector expects both a bucket name and a warehouse location. The warehouse location should be a full S3 URI (e.g., `s3://dev/airbyte-test/`). If both are provided, Airbyte may concatenate them, leading to the duplication issue. The documentation does not explicitly state which takes precedence, but the error and user reports suggest that both are used in constructing the final path, so you must avoid including the bucket name in both fields. Summary of best practice: - Set S3 Bucket Name to your bucket (e.g.,
dev
). - Set Warehouse Location to the path within the bucket (e.g.,
airbyte-test/
), or to the full S3 URI (e.g., `s3://dev/airbyte-test/`), but not both, depending on your connector version and observed behavior. - If you see duplication, remove the bucket name from the warehouse location. If you continue to encounter issues, it may be a bug or a version-specific behavior, as similar problems have been reported by other users ([destination-s3-data-lake] glue catalog with local MinIO storage not working). Note: The knowledge sources do not provide a definitive, version-specific answer about which field takes precedence, so you may need to experiment with the configuration as described above. If the problem persists, consider opening an issue with your exact configuration and Airbyte version for further support. References: - [S3 Data Lake Setup Guide](https://docs.airbyte.com/integrations/destinations/s3-data-lake#iceberg-catalog-setup-and-permissions) - [destination-s3-data-lake] glue catalog with local MinIO storage not working
h
this time getting @kapa.ai Could not connect with provided configuration. Error: Invalid S3 URI, cannot determine scheme: airbyte-test/airbyte_test_namespace/airbyte_test_table_6ad0a796-61d6-4339-9894-fa527950192a/metadata/00000-e23eb806-9c3c-4c4b-b17c-c6847a8b4753.metadata.json
k
A message from kapa.ai
The error message: > Invalid S3 URI, cannot determine scheme: airbyte-test/airbyte_test_namespace/airbyte_test_table_6ad0a796-61d6-4339-9894-fa527950192a/metadata/00000-e23eb806-9c3c-4c4b-b17c-c6847a8b4753.metadata.json indicates that the connector is expecting a full S3 URI (which should start with
s3://
), but instead it received a path without the scheme (e.g., just
airbyte-test/...
). What this means: - The
warehouse_location
or a related configuration field is set to a relative path (like
airbyte-test/...
) instead of a full S3 URI (like `s3://your-bucket/airbyte-test/...`). - The connector cannot resolve this to a valid S3 location because it requires the scheme (
s3://
). How to fix: - Set the
warehouse_location
to a full S3 URI, including the scheme, bucket name, and path. For example:
s3://dev/airbyte-test/
- Make sure you do not omit the
s3://
prefix. This is consistent with the documentation, which states: > Set the warehouse location option to
s3://<bucket name>/path/within/bucket
> — [S3 Data Lake Setup Guide](https://docs.airbyte.com/integrations/destinations/s3-data-lake#iceberg-catalog-setup-and-permissions) If you set only the path (without the scheme and bucket), you will get the "Invalid S3 URI" error. Summary: Update your configuration so that
warehouse_location
is a full S3 URI (e.g., `s3://dev/airbyte-test/`). This should resolve the "Invalid S3 URI" error. If you continue to see issues, double-check that you are not duplicating the bucket name in both the bucket and path fields, as discussed previously.