DenoDDeno
Powered by
Definitely Not A DolphinD
Denoβ€’2w agoβ€’
5 replies
Definitely Not A Dolphin

`@db/sqlite` gives an error on server not reproducable on laptop

🌍3rd Party Module
I am trying to make my discord bot run on my raspberry pi 500, and I wanted to run it, but
@db/sqlite
@db/sqlite
said thw following
root@duifje ~/Frog-With-A-Knife (main) [1]# deno run prod
Task prod deno run -A src/index.ts
.env values:
    CLIENTID: "13639.............."
    TOKEN: "MTM2M..................................................................."
    LASTFM_KEY: "1b7bc..........................."
    DATABASE_PATH: "./daa............"
error: Uncaught (in promise) Error: Failed to load SQLite3 Dynamic Library
  throw new Error("Failed to load SQLite3 Dynamic Library", { cause: e });
        ^
    at https://jsr.io/@db/sqlite/0.13.0/src/ffi.ts:642:9
    at eventLoopTick (ext:core/01_core.js:178:7)
Caused by: Error: Could not open library: Could not open library: Error loading shared library ld-linux-aarch64.so.1: No such file or directory (needed by /root/.cache/deno/plug/https/github.com/f8de2d464202a2916cb5fb2ee8af20d23474ae12877f2cd4041a3f4452a3429e.so)
    at new DynamicLibrary (ext:deno_ffi/00_ffi.js:456:42)
    at Object.dlopen (ext:deno_ffi/00_ffi.js:562:10)
    at dlopen (https://jsr.io/@denosaurs/plug/1.1.0/mod.ts:158:15)
    at eventLoopTick (ext:core/01_core.js:178:7)
    at async https://jsr.io/@db/sqlite/0.13.0/src/ffi.ts:625:7
root@duifje ~/Frog-With-A-Knife (main) [1]# 
root@duifje ~/Frog-With-A-Knife (main) [1]# deno run prod
Task prod deno run -A src/index.ts
.env values:
    CLIENTID: "13639.............."
    TOKEN: "MTM2M..................................................................."
    LASTFM_KEY: "1b7bc..........................."
    DATABASE_PATH: "./daa............"
error: Uncaught (in promise) Error: Failed to load SQLite3 Dynamic Library
  throw new Error("Failed to load SQLite3 Dynamic Library", { cause: e });
        ^
    at https://jsr.io/@db/sqlite/0.13.0/src/ffi.ts:642:9
    at eventLoopTick (ext:core/01_core.js:178:7)
Caused by: Error: Could not open library: Could not open library: Error loading shared library ld-linux-aarch64.so.1: No such file or directory (needed by /root/.cache/deno/plug/https/github.com/f8de2d464202a2916cb5fb2ee8af20d23474ae12877f2cd4041a3f4452a3429e.so)
    at new DynamicLibrary (ext:deno_ffi/00_ffi.js:456:42)
    at Object.dlopen (ext:deno_ffi/00_ffi.js:562:10)
    at dlopen (https://jsr.io/@denosaurs/plug/1.1.0/mod.ts:158:15)
    at eventLoopTick (ext:core/01_core.js:178:7)
    at async https://jsr.io/@db/sqlite/0.13.0/src/ffi.ts:625:7
root@duifje ~/Frog-With-A-Knife (main) [1]# 

I tried to reecreate it on my laptop, but there everything worked fine? The server was just set up, it runs alpine
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Deno Fresh + @db/sqlite
RRR / help
2mo ago
Silence error logs on Oak server
SkepticMysticSSkepticMystic / help
4y ago
How Node.js SQLite works on Deno?
Santiago Aguilar HernandezSSantiago Aguilar Hernandez / help
13mo ago