Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Failure to auto load httpfs extension after upgrading to 1.5.*

Open
#679 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
aws, java, sql

Research direction

Start with the Java snippet using the DuckDB JDBC connection and the SET home_directory, secret_directory, extension_directory, and temp_directory statements. Reproduce it in AWS Lambda ARM64 with DuckDB 1.5.* and compare it with 1.4.4.0; done means the httpfs extension loads automatically and CREATE SECRET succeeds without the home-directory error.

Written by the indexing model from the issue text.

Description

After updating to 1.5.0.0 (and newer) versions, I'm seeing the following error:

org.jooq.exception.DataAccessException: SQL [CREATE SECRET s3_credentials (
    TYPE S3,
    PROVIDER config,
    KEY_ID '....',
    SECRET '....',
    REGION 'us-west-2'
);
]; Extension Autoloading Error: An error occurred while trying to automatically install the required extension 'httpfs':
Can't find the home directory at ''
Specify a home directory using the SET home_directory='/path/to/dir' option.

This happens when I run my code in AWS Lambda ARM64, but not when running on my machine.

Version 1.4.4.0 and earlier work fine.

Snippet that triggers the issue (when running on AWS Lambda).

final var conn = (DuckDBConnection) DriverManager.getConnection("jdbc:duckdb:");

final var config = new DefaultConfiguration().set(conn).set(SQLDialect.DUCKDB);
final var context = DSL.using(config);

context.execute("""
        SET home_directory='/tmp/.duckdb';
        SET secret_directory='/tmp/.duckdb/sec';
        SET extension_directory='/tmp/.duckdb/ext';
        SET temp_directory='/tmp';
        SET TimeZone='UTC';
        """);

context.execute("""
        CREATE SECRET s3_credentials (
            TYPE S3,
            PROVIDER config,
            KEY_ID ?,
            SECRET ?,
            REGION ?
        );
        """, DSL.inline(accessKey), DSL.inline(secretKey), DSL.inline(region));
Dominant language
C++
Stars
127
Forks
81
Avg merge
7h 57m
Merged PRs (30d)
38

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from duckdb/duckdb-java

All issues in duckdb/duckdb-java

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.