Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime Error: Extension "httpfs" is an existing extension. #377

Closed
a-shipilo opened this issue Apr 12, 2024 · 3 comments
Closed

Runtime Error: Extension "httpfs" is an existing extension. #377

a-shipilo opened this issue Apr 12, 2024 · 3 comments

Comments

@a-shipilo
Copy link

dbt-duckdb==1.7.3
duckdb==0.9.2

I'm trying to connect to Motherduck using dbt, but get this error:

Runtime Error
Extension Autoloading Error: An error occurred while trying to automatically install the required extension 'httpfs':
Failed to download extension "httpfs" at URL "http://extensions.duckdb.org/v0.9.2/linux_arm64_gcc4/httpfs.duckdb_extension.gz"
Extension "httpfs" is an existing extension.

Here's my profiles.yml configuration file.

duckdb:
  outputs:
    dev:
      type: duckdb
      path: dbt.duckdb
      settings:
        s3_region: "{{ env_var('DUCKDB_S3_ENDPOINT') }}"
        s3_access_key_id: "{{ env_var('AWS_ACCESS_KEY_ID') }}"
        s3_secret_access_key: "{{ env_var('AWS_SECRET_ACCESS_KEY') }}"
    prod:
      type: duckdb
      path: "md:?motherduck_token={{ env_var('MOTHERDUCK_TOKEN') }}"
      database: my_db
      schema: main
      settings:
        s3_region: "{{ env_var('DUCKDB_S3_ENDPOINT') }}"
        s3_access_key_id: "{{ env_var('AWS_ACCESS_KEY_ID') }}"
        s3_secret_access_key: "{{ env_var('AWS_SECRET_ACCESS_KEY') }}"
  target: dev

As seen, I don't use any extensions. Is it a bug or am I doing something wrong?

@jwills
Copy link
Collaborator

jwills commented Apr 12, 2024

cc @guenp

Guen can you take a look at this one? Thanks!

@guenp
Copy link
Collaborator

guenp commented Apr 15, 2024

@a-shipilo, could you share what OS you are using?
Based on your error message it looks you're on Linux. Unfortunately, this is a known issue - DuckDB did not publish ARM for Linux extensions at 0.9.2. More info here. You could try this workaround posted on the thread.
This issue should be resolved with 0.10.0 though, so please hang on until MotherDuck supports 0.10.x, and you should be good to go!

@a-shipilo
Copy link
Author

@guenp, yes, it's on linux in docker devcontainer by VS Code. Thanks for reply)

@jwills jwills closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants