# Problem loading ducklake extension

**URL:** https://discourse.julialang.org/t/problem-loading-ducklake-extension/130154
**Category:** General Usage
**Tags:** duckdb
**Created:** [June 24, 2025, 3:45am UTC](https://discourse.julialang.org/t/problem-loading-ducklake-extension/130154 "2025-06-24T03:45:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kobusherbst](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kobusherbst/32/19682_2.png) [@kobusherbst](https://discourse.julialang.org/u/kobusherbst)
#### Post date: [June 24, 2025, 3:45am UTC](https://discourse.julialang.org/t/problem-loading-ducklake-extension/130154/1 "2025-06-24T03:45:24Z")

</div>

When trying to load the ducklake extension in DuckDB v1.3.1 I get the following error:

```julia
ERROR: Execute of query "LOAD ducklake;" failed: HTTP Error: Failed to download extension "ducklake" at URL "http://extensions.duckdb.org/v1.3.1/x86_64-w64-mingw32/ducklake.duckdb_extension.gz" (HTTP 403)
Extension "ducklake" is an existing extension.
=ducklake
Stacktrace:
 [1] execute(stmt::DuckDB.Stmt, params::Tuple{})
   @ DuckDB C:\Users\kobus\.julia\packages\DuckDB\Bxsbt\src\result.jl:734
 [2] execute
   @ C:\Users\kobus\.julia\packages\DuckDB\Bxsbt\src\result.jl:709 [inlined]
 [3] execute(con::DuckDB.Connection, sql::String, result_type::Type)
   @ DuckDB C:\Users\kobus\.julia\packages\DuckDB\Bxsbt\src\result.jl:876
 [4] execute(con::DuckDB.Connection, sql::String)
   @ DuckDB C:\Users\kobus\.julia\packages\DuckDB\Bxsbt\src\result.jl:881
 [5] top-level scope
   @ d:\repos\JuliaScratch.jl\src\ducklake.jl:11

```

Code:

```julia
using DuckDB
using DBInterface
using DataFrames

file_name = "duck data.db"
db = DuckDB.DB(file_name)
conn = DBInterface.connect(db)
try
    df = DuckDB.query(db,"SELECT version() as duckdb_version;") |> DataFrame
    show(df)
    DBInterface.execute(conn, "LOAD ducklake;")
finally
    close(conn)
    DBInterface.close!(db)
end

```

Program output:

```julia
1×1 DataFrame
 Row │ duckdb_version 
     │ String
─────┼────────────────
   1 │ v1.3.1

```

When running duckdb CLI, the extension is loaded successfully and functions normally.

VersionInfo:

```julia
versioninfo()
Julia Version 1.11.5
Commit 760b2e5b73 (2025-04-14 06:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 48 × AMD Ryzen Threadripper 7960X 24-Cores
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, znver4)
Threads: 10 default, 0 interactive, 5 GC (on 48 virtual cores)
Environment:
  JULIA_NUM_THREADS = 10
  JULIA_EDITOR = code
  JULIA_VSCODE_REPL = 1

```

I get a similar error on Linux:

```julia
Julia Version 1.11.5
Commit 760b2e5b739 (2025-04-14 06:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × Intel(R) Xeon(R) Gold 6226 CPU @ 2.70GHz
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, cascadelake)
Threads: 8 default, 0 interactive, 4 GC (on 8 virtual cores)
Environment:
  JULIA_NUM_THREADS = 8
  JULIA_EDITOR = code
  JULIA_VSCODE_REPL = 1
  JULIA_DUCKDB_LIBRARY = /usr/local/lib/libduckdb.so

```

where the error is:

```julia
ERROR: DuckDB.QueryException("Execute of query \"LOAD 'ducklake';\" failed: HTTP Error: Failed to download extension \"ducklake\" at URL \"http://extensions.duckdb.org/v1.3.1/x86_64-linux-gnu/ducklake.duckdb_extension.gz\" (HTTP 403)\nExtension \"ducklake\" is an existing extension.\n\nFor more info, visit https://duckdb.org/docs/stable/extensions/troubleshooting/?version=v1.3.1&platform=x86_64-linux-gnu&extension=ducklake")

```

Any thoughts on what is going wrong and how I can fix it?  
Thank you

---

<div class="post-metadata">

### Author: ![TheCedarPrince](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thecedarprince/32/17323_2.png) [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)
#### Post date: [June 24, 2025, 5:24am UTC](https://discourse.julialang.org/t/problem-loading-ducklake-extension/130154/2 "2025-06-24T05:24:28Z")

</div>

Oh looks like it is related to the bug I encountered just the other day. If you scroll down to my comment, I link to a potential fix there: [duckdb.jl: installing extensions on linux pulls inexistent url · Issue #17743 · duckdb/duckdb · GitHub](https://github.com/duckdb/duckdb/issues/17743)
