[Bug]: latest version 2.22.0 stopt working #2774

Closed
opened 2026-04-25 00:10:28 +02:00 by adam · 16 comments
Owner

Originally created by @PoepieFloepie on GitHub (May 16, 2025).

What happened?

update to the latest version it crashes and rerstart again

synology 220+ docker version 2.22.0 latest

get a error
[2025-05-16 09:26:19.652] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {
errno: 1,
code: 'SQLITE_ERROR'

What did you expect to happen?

only update the docker container to the newest

Steps to reproduce the issue

Audiobookshelf version

2.22.0

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs

Running in production mode.
Options: CONFIG_PATH=/config, METADATA_PATH=/metadata, PORT=80, HOST=undefined, SOURCE=docker, ROUTER_BASE_PATH=/audiobookshelf
[2025-05-16 09:32:58.182] INFO: === Starting Server ===
[2025-05-16 09:32:58.190] INFO: [Server] Init v2.22.0
[2025-05-16 09:32:58.190] INFO: [Server] Node.js Version: v20.19.1
[2025-05-16 09:32:58.190] INFO: [Server] Platform: linux
[2025-05-16 09:32:58.191] INFO: [Server] Arch: x64
[2025-05-16 09:32:58.194] INFO: [Database] Initializing db at "/config/absdatabase.sqlite"
[2025-05-16 09:32:58.227] INFO: [Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so
[2025-05-16 09:32:58.228] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {
  errno: 1,
  code: 'SQLITE_ERROR'
}
[2025-05-16 09:32:58.232] ERROR: [Database] Failed to connect to db [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {
  errno: 1,
  code: 'SQLITE_ERROR'
}
[2025-05-16 09:32:58.233] FATAL: [Server] Unhandled rejection: Error: Database connection failed
    at Database.init (/app/server/Database.js:178:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Server.init (/app/server/Server.js:161:5)
    at async Server.start (/app/server/Server.js:227:5) 
promise: Promise {
  <rejected> Error: Database connection failed
      at Database.init (/app/server/Database.js:178:13)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async Server.init (/app/server/Server.js:161:5)
      at async Server.start (/app/server/Server.js:227:5)
}
Running in production mode.
Running in production mode.
Options: CONFIG_PATH=/config, METADATA_PATH=/metadata, PORT=80, HOST=undefined, SOURCE=docker, ROUTER_BASE_PATH=/audiobookshelf
Options: CONFIG_PATH=/config, METADATA_PATH=/metadata, PORT=80, HOST=undefined, SOURCE=docker, ROUTER_BASE_PATH=/audiobookshelf
[2025-05-16 09:33:07.472] INFO: === Starting Server ===
[2025-05-16 09:33:07.480] INFO: [Server] Init v2.22.0
[2025-05-16 09:33:07.472] INFO: === Starting Server ===
[2025-05-16 09:33:07.481] INFO: [Server] Node.js Version: v20.19.1
[2025-05-16 09:33:07.480] INFO: [Server] Init v2.22.0
[2025-05-16 09:33:07.481] INFO: [Server] Platform: linux
[2025-05-16 09:33:07.481] INFO: [Server] Node.js Version: v20.19.1
[2025-05-16 09:33:07.481] INFO: [Server] Platform: linux
[2025-05-16 09:33:07.481] INFO: [Server] Arch: x64
[2025-05-16 09:33:07.481] INFO: [Server] Arch: x64
[2025-05-16 09:33:07.486] INFO: [Database] Initializing db at "/config/absdatabase.sqlite"
[2025-05-16 09:33:07.486] INFO: [Database] Initializing db at "/config/absdatabase.sqlite"
[2025-05-16 09:33:07.515] INFO: [Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so
[2025-05-16 09:33:07.516] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {
  errno: 1,
  code: 'SQLITE_ERROR'
}
[2025-05-16 09:33:07.520] ERROR: [Database] Failed to connect to db [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {
[2025-05-16 09:33:07.515] INFO: [Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so
[2025-05-16 09:33:07.516] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {
  errno: 1,
  errno: 1,
  code: 'SQLITE_ERROR'
  code: 'SQLITE_ERROR'
}
[2025-05-16 09:33:07.520] ERROR: [Database] Failed to connect to db [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {
  errno: 1,
  code: 'SQLITE_ERROR'
}
}
[2025-05-16 09:33:07.522] FATAL: [Server] Unhandled rejection: Error: Database connection failed
    at Database.init (/app/server/Database.js:178:13)
[2025-05-16 09:33:07.522] FATAL: [Server] Unhandled rejection: Error: Database connection failed
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Server.init (/app/server/Server.js:161:5)
    at Database.init (/app/server/Database.js:178:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Server.start (/app/server/Server.js:227:5) 
    at async Server.init (/app/server/Server.js:161:5)
    at async Server.start (/app/server/Server.js:227:5) 
promise: Promise {
  <rejected> Error: Database connection failed
promise: Promise {
      at Database.init (/app/server/Database.js:178:13)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  <rejected> Error: Database connection failed
      at Database.init (/app/server/Database.js:178:13)
      at async Server.init (/app/server/Server.js:161:5)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async Server.init (/app/server/Server.js:161:5)
      at async Server.start (/app/server/Server.js:227:5)
      at async Server.start (/app/server/Server.js:227:5)
}
}
Container started
Running in production mode.
Options: CONFIG_PATH=/config, METADATA_PATH=/metadata, PORT=80, HOST=undefined, SOURCE=docker, ROUTER_BASE_PATH=/audiobookshelf
[2025-05-16 09:33:15.023] INFO: === Starting Server ===
[2025-05-16 09:33:15.031] INFO: [Server] Init v2.22.0
[2025-05-16 09:33:15.032] INFO: [Server] Node.js Version: v20.19.1
[2025-05-16 09:33:15.032] INFO: [Server] Platform: linux
[2025-05-16 09:33:15.032] INFO: [Server] Arch: x64
[2025-05-16 09:33:15.036] INFO: [Database] Initializing db at "/config/absdatabase.sqlite"
[2025-05-16 09:33:15.069] INFO: [Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so
[2025-05-16 09:33:15.070] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {
  errno: 1,
[2025-05-16 09:33:15.076] ERROR: [Database] Failed to connect to db [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {
  errno: 1,
[2025-05-16 09:33:15.081] FATAL: [Server] Unhandled rejection: Error: Database connection failed
    at Database.init (/app/server/Database.js:178:13)
Container started
Running in production mode.
Options: CONFIG_PATH=/config, METADATA_PATH=/metadata, PORT=80, HOST=undefined, SOURCE=docker, ROUTER_BASE_PATH=/audiobookshelf
[2025-05-16 09:33:23.380] INFO: === Starting Server ===
[2025-05-16 09:33:23.388] INFO: [Server] Init v2.22.0
[2025-05-16 09:33:23.389] INFO: [Server] Node.js Version: v20.19.1
[2025-05-16 09:33:23.389] INFO: [Server] Platform: linux
[2025-05-16 09:33:23.389] INFO: [Server] Arch: x64
[2025-05-16 09:33:23.393] INFO: [Database] Initializing db at "/config/absdatabase.sqlite"
[2025-05-16 09:33:23.423] INFO: [Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so
[2025-05-16 09:33:23.424] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {
  errno: 1,
}
[2025-05-16 09:33:23.428] ERROR: [Database] Failed to connect to db [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {
  errno: 1,
  code: 'SQLITE_ERROR'
[2025-05-16 09:33:23.430] FATAL: [Server] Unhandled rejection: Error: Database connection failed
    at Database.init (/app/server/Database.js:178:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Server.init (/app/server/Server.js:161:5)
    at async Server.start (/app/server/Server.js:227:5) 

    Container started
    Running in production mode.
    Options: CONFIG_PATH=/config, METADATA_PATH=/metadata, PORT=80, HOST=undefined, SOURCE=docker, ROUTER_BASE_PATH=/audiobookshelf
    [2025-05-16 09:33:30.737] INFO: === Starting Server ===
    [2025-05-16 09:33:30.744] INFO: [Server] Init v2.22.0
    [2025-05-16 09:33:30.745] INFO: [Server] Node.js Version: v20.19.1
    [2025-05-16 09:33:30.745] INFO: [Server] Platform: linux
    [2025-05-16 09:33:30.745] INFO: [Server] Arch: x64
    [2025-05-16 09:33:30.750] INFO: [Database] Initializing db at "/config/absdatabase.sqlite"
    [2025-05-16 09:33:30.780] INFO: [Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so
    [2025-05-16 09:33:30.781] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {
      errno: 1,
    [2025-05-16 09:33:30.785] ERROR: [Database] Failed to connect to db [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {
      errno: 1,
    [2025-05-16 09:33:30.787] FATAL: [Server] Unhandled rejection: Error: Database connection failed
        at Database.init (/app/server/Database.js:178:13)
        at async Server.init (/app/server/Server.js:161:5)
        at async Server.start (/app/server/Server.js:227:5) 
    promise: Promise {
      <rejected> Error: Database connection failed

Additional Notes

No response

Originally created by @PoepieFloepie on GitHub (May 16, 2025). ### What happened? update to the latest version it crashes and rerstart again synology 220+ docker version 2.22.0 latest get a error [2025-05-16 09:26:19.652] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] { errno: 1, code: 'SQLITE_ERROR' ### What did you expect to happen? only update the docker container to the newest ### Steps to reproduce the issue 1. ### Audiobookshelf version 2.22.0 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs ```shell Running in production mode. Options: CONFIG_PATH=/config, METADATA_PATH=/metadata, PORT=80, HOST=undefined, SOURCE=docker, ROUTER_BASE_PATH=/audiobookshelf [2025-05-16 09:32:58.182] INFO: === Starting Server === [2025-05-16 09:32:58.190] INFO: [Server] Init v2.22.0 [2025-05-16 09:32:58.190] INFO: [Server] Node.js Version: v20.19.1 [2025-05-16 09:32:58.190] INFO: [Server] Platform: linux [2025-05-16 09:32:58.191] INFO: [Server] Arch: x64 [2025-05-16 09:32:58.194] INFO: [Database] Initializing db at "/config/absdatabase.sqlite" [2025-05-16 09:32:58.227] INFO: [Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so [2025-05-16 09:32:58.228] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] { errno: 1, code: 'SQLITE_ERROR' } [2025-05-16 09:32:58.232] ERROR: [Database] Failed to connect to db [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] { errno: 1, code: 'SQLITE_ERROR' } [2025-05-16 09:32:58.233] FATAL: [Server] Unhandled rejection: Error: Database connection failed at Database.init (/app/server/Database.js:178:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Server.init (/app/server/Server.js:161:5) at async Server.start (/app/server/Server.js:227:5) promise: Promise { <rejected> Error: Database connection failed at Database.init (/app/server/Database.js:178:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Server.init (/app/server/Server.js:161:5) at async Server.start (/app/server/Server.js:227:5) } Running in production mode. Running in production mode. Options: CONFIG_PATH=/config, METADATA_PATH=/metadata, PORT=80, HOST=undefined, SOURCE=docker, ROUTER_BASE_PATH=/audiobookshelf Options: CONFIG_PATH=/config, METADATA_PATH=/metadata, PORT=80, HOST=undefined, SOURCE=docker, ROUTER_BASE_PATH=/audiobookshelf [2025-05-16 09:33:07.472] INFO: === Starting Server === [2025-05-16 09:33:07.480] INFO: [Server] Init v2.22.0 [2025-05-16 09:33:07.472] INFO: === Starting Server === [2025-05-16 09:33:07.481] INFO: [Server] Node.js Version: v20.19.1 [2025-05-16 09:33:07.480] INFO: [Server] Init v2.22.0 [2025-05-16 09:33:07.481] INFO: [Server] Platform: linux [2025-05-16 09:33:07.481] INFO: [Server] Node.js Version: v20.19.1 [2025-05-16 09:33:07.481] INFO: [Server] Platform: linux [2025-05-16 09:33:07.481] INFO: [Server] Arch: x64 [2025-05-16 09:33:07.481] INFO: [Server] Arch: x64 [2025-05-16 09:33:07.486] INFO: [Database] Initializing db at "/config/absdatabase.sqlite" [2025-05-16 09:33:07.486] INFO: [Database] Initializing db at "/config/absdatabase.sqlite" [2025-05-16 09:33:07.515] INFO: [Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so [2025-05-16 09:33:07.516] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] { errno: 1, code: 'SQLITE_ERROR' } [2025-05-16 09:33:07.520] ERROR: [Database] Failed to connect to db [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] { [2025-05-16 09:33:07.515] INFO: [Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so [2025-05-16 09:33:07.516] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] { errno: 1, errno: 1, code: 'SQLITE_ERROR' code: 'SQLITE_ERROR' } [2025-05-16 09:33:07.520] ERROR: [Database] Failed to connect to db [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] { errno: 1, code: 'SQLITE_ERROR' } } [2025-05-16 09:33:07.522] FATAL: [Server] Unhandled rejection: Error: Database connection failed at Database.init (/app/server/Database.js:178:13) [2025-05-16 09:33:07.522] FATAL: [Server] Unhandled rejection: Error: Database connection failed at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Server.init (/app/server/Server.js:161:5) at Database.init (/app/server/Database.js:178:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Server.start (/app/server/Server.js:227:5) at async Server.init (/app/server/Server.js:161:5) at async Server.start (/app/server/Server.js:227:5) promise: Promise { <rejected> Error: Database connection failed promise: Promise { at Database.init (/app/server/Database.js:178:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) <rejected> Error: Database connection failed at Database.init (/app/server/Database.js:178:13) at async Server.init (/app/server/Server.js:161:5) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Server.init (/app/server/Server.js:161:5) at async Server.start (/app/server/Server.js:227:5) at async Server.start (/app/server/Server.js:227:5) } } Container started Running in production mode. Options: CONFIG_PATH=/config, METADATA_PATH=/metadata, PORT=80, HOST=undefined, SOURCE=docker, ROUTER_BASE_PATH=/audiobookshelf [2025-05-16 09:33:15.023] INFO: === Starting Server === [2025-05-16 09:33:15.031] INFO: [Server] Init v2.22.0 [2025-05-16 09:33:15.032] INFO: [Server] Node.js Version: v20.19.1 [2025-05-16 09:33:15.032] INFO: [Server] Platform: linux [2025-05-16 09:33:15.032] INFO: [Server] Arch: x64 [2025-05-16 09:33:15.036] INFO: [Database] Initializing db at "/config/absdatabase.sqlite" [2025-05-16 09:33:15.069] INFO: [Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so [2025-05-16 09:33:15.070] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] { errno: 1, [2025-05-16 09:33:15.076] ERROR: [Database] Failed to connect to db [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] { errno: 1, [2025-05-16 09:33:15.081] FATAL: [Server] Unhandled rejection: Error: Database connection failed at Database.init (/app/server/Database.js:178:13) Container started Running in production mode. Options: CONFIG_PATH=/config, METADATA_PATH=/metadata, PORT=80, HOST=undefined, SOURCE=docker, ROUTER_BASE_PATH=/audiobookshelf [2025-05-16 09:33:23.380] INFO: === Starting Server === [2025-05-16 09:33:23.388] INFO: [Server] Init v2.22.0 [2025-05-16 09:33:23.389] INFO: [Server] Node.js Version: v20.19.1 [2025-05-16 09:33:23.389] INFO: [Server] Platform: linux [2025-05-16 09:33:23.389] INFO: [Server] Arch: x64 [2025-05-16 09:33:23.393] INFO: [Database] Initializing db at "/config/absdatabase.sqlite" [2025-05-16 09:33:23.423] INFO: [Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so [2025-05-16 09:33:23.424] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] { errno: 1, } [2025-05-16 09:33:23.428] ERROR: [Database] Failed to connect to db [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] { errno: 1, code: 'SQLITE_ERROR' [2025-05-16 09:33:23.430] FATAL: [Server] Unhandled rejection: Error: Database connection failed at Database.init (/app/server/Database.js:178:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Server.init (/app/server/Server.js:161:5) at async Server.start (/app/server/Server.js:227:5) Container started Running in production mode. Options: CONFIG_PATH=/config, METADATA_PATH=/metadata, PORT=80, HOST=undefined, SOURCE=docker, ROUTER_BASE_PATH=/audiobookshelf [2025-05-16 09:33:30.737] INFO: === Starting Server === [2025-05-16 09:33:30.744] INFO: [Server] Init v2.22.0 [2025-05-16 09:33:30.745] INFO: [Server] Node.js Version: v20.19.1 [2025-05-16 09:33:30.745] INFO: [Server] Platform: linux [2025-05-16 09:33:30.745] INFO: [Server] Arch: x64 [2025-05-16 09:33:30.750] INFO: [Database] Initializing db at "/config/absdatabase.sqlite" [2025-05-16 09:33:30.780] INFO: [Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so [2025-05-16 09:33:30.781] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] { errno: 1, [2025-05-16 09:33:30.785] ERROR: [Database] Failed to connect to db [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] { errno: 1, [2025-05-16 09:33:30.787] FATAL: [Server] Unhandled rejection: Error: Database connection failed at Database.init (/app/server/Database.js:178:13) at async Server.init (/app/server/Server.js:161:5) at async Server.start (/app/server/Server.js:227:5) promise: Promise { <rejected> Error: Database connection failed ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:10:28 +02:00
adam closed this issue 2026-04-25 00:10:28 +02:00
Author
Owner

@nichwall commented on GitHub (May 16, 2025):

See https://github.com/advplyr/audiobookshelf/issues/4292

@nichwall commented on GitHub (May 16, 2025): See https://github.com/advplyr/audiobookshelf/issues/4292
Author
Owner

@tacogerbil commented on GitHub (May 16, 2025):

Verified same thing, going back to the previous version works fine.. I can't use the terminal in the container to double check the directory it claims is missing in order to confirm that /usr/local/lib/nusqlite3/libnusqlite3.so.so is not there...

audiobookshelf
date,stream,content
2025-05-16T13:20:27.893986448Z,stdout,}

2025-05-16T13:20:27.893943512Z,stdout, at async Server.start (/app/server/Server.js:227:5)

2025-05-16T13:20:27.893899600Z,stdout, at async Server.init (/app/server/Server.js:161:5)

2025-05-16T13:20:27.893851194Z,stdout, at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

2025-05-16T13:20:27.893807654Z,stdout, at Database.init (/app/server/Database.js:178:13)

2025-05-16T13:20:27.893762585Z,stdout, Error: Database connection failed

2025-05-16T13:20:27.893720247Z,stdout,promise: Promise {

2025-05-16T13:20:27.893672793Z,stdout, at async Server.start (/app/server/Server.js:227:5)

2025-05-16T13:20:27.893620072Z,stdout, at async Server.init (/app/server/Server.js:161:5)

2025-05-16T13:20:27.893564612Z,stdout, at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

2025-05-16T13:20:27.893512131Z,stdout, at Database.init (/app/server/Database.js:178:13)

2025-05-16T13:20:27.893446398Z,stdout,[2025-05-16 13:20:27.892] FATAL: [Server] Unhandled rejection: Error: Database connection failed

2025-05-16T13:20:27.890312629Z,stdout,}

2025-05-16T13:20:27.890269581Z,stdout, code: 'SQLITE_ERROR'

2025-05-16T13:20:27.890224516Z,stdout," errno: 1,
"
2025-05-16T13:20:27.890155511Z,stdout,[2025-05-16 13:20:27.889] ERROR: [Database] Failed to connect to db [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {

2025-05-16T13:20:27.889340733Z,stdout,}

2025-05-16T13:20:27.889294951Z,stdout, code: 'SQLITE_ERROR'

2025-05-16T13:20:27.889245056Z,stdout," errno: 1,
"
2025-05-16T13:20:27.889137328Z,stdout,[2025-05-16 13:20:27.884] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {

2025-05-16T13:20:27.883535443Z,stdout,[2025-05-16 13:20:27.882] INFO: [Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so

2025-05-16T13:20:27.782997224Z,stdout,[2025-05-16 13:20:27.782] INFO: [Database] Initializing db at "/config/absdatabase.sqlite"

2025-05-16T13:20:27.768993002Z,stdout,[2025-05-16 13:20:27.768] INFO: [Server] Arch: x64

2025-05-16T13:20:27.768186689Z,stdout,[2025-05-16 13:20:27.767] INFO: [Server] Platform: linux

2025-05-16T13:20:27.767786627Z,stdout,[2025-05-16 13:20:27.767] INFO: [Server] Node.js Version: v20.19.1

2025-05-16T13:20:27.767278989Z,stdout,[2025-05-16 13:20:27.766] INFO: [Server] Init v2.22.0

2025-05-16T13:20:27.765545874Z,stdout,[2025-05-16 13:20:27.747] INFO: === Starting Server ===

2025-05-16T13:20:27.721227801Z,stdout,"Options: CONFIG_PATH=/config, METADATA_PATH=/metadata, PORT=80, HOST=undefined, SOURCE=docker, ROUTER_BASE_PATH=/audiobookshelf
"
2025-05-16T13:20:27.719786788Z,stdout,Running in production mode.

@tacogerbil commented on GitHub (May 16, 2025): Verified same thing, going back to the previous version works fine.. I can't use the terminal in the container to double check the directory it claims is missing in order to confirm that /usr/local/lib/nusqlite3/libnusqlite3.so.so is not there... audiobookshelf date,stream,content 2025-05-16T13:20:27.893986448Z,stdout,} 2025-05-16T13:20:27.893943512Z,stdout, at async Server.start (/app/server/Server.js:227:5) 2025-05-16T13:20:27.893899600Z,stdout, at async Server.init (/app/server/Server.js:161:5) 2025-05-16T13:20:27.893851194Z,stdout, at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 2025-05-16T13:20:27.893807654Z,stdout, at Database.init (/app/server/Database.js:178:13) 2025-05-16T13:20:27.893762585Z,stdout, <rejected> Error: Database connection failed 2025-05-16T13:20:27.893720247Z,stdout,promise: Promise { 2025-05-16T13:20:27.893672793Z,stdout, at async Server.start (/app/server/Server.js:227:5) 2025-05-16T13:20:27.893620072Z,stdout, at async Server.init (/app/server/Server.js:161:5) 2025-05-16T13:20:27.893564612Z,stdout, at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 2025-05-16T13:20:27.893512131Z,stdout, at Database.init (/app/server/Database.js:178:13) 2025-05-16T13:20:27.893446398Z,stdout,[2025-05-16 13:20:27.892] FATAL: [Server] Unhandled rejection: Error: Database connection failed 2025-05-16T13:20:27.890312629Z,stdout,} 2025-05-16T13:20:27.890269581Z,stdout, code: 'SQLITE_ERROR' 2025-05-16T13:20:27.890224516Z,stdout," errno: 1, " 2025-05-16T13:20:27.890155511Z,stdout,[2025-05-16 13:20:27.889] ERROR: [Database] Failed to connect to db [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] { 2025-05-16T13:20:27.889340733Z,stdout,} 2025-05-16T13:20:27.889294951Z,stdout, code: 'SQLITE_ERROR' 2025-05-16T13:20:27.889245056Z,stdout," errno: 1, " 2025-05-16T13:20:27.889137328Z,stdout,[2025-05-16 13:20:27.884] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] { 2025-05-16T13:20:27.883535443Z,stdout,[2025-05-16 13:20:27.882] INFO: [Database] Loading extension /usr/local/lib/nusqlite3/libnusqlite3.so 2025-05-16T13:20:27.782997224Z,stdout,[2025-05-16 13:20:27.782] INFO: [Database] Initializing db at "/config/absdatabase.sqlite" 2025-05-16T13:20:27.768993002Z,stdout,[2025-05-16 13:20:27.768] INFO: [Server] Arch: x64 2025-05-16T13:20:27.768186689Z,stdout,[2025-05-16 13:20:27.767] INFO: [Server] Platform: linux 2025-05-16T13:20:27.767786627Z,stdout,[2025-05-16 13:20:27.767] INFO: [Server] Node.js Version: v20.19.1 2025-05-16T13:20:27.767278989Z,stdout,[2025-05-16 13:20:27.766] INFO: [Server] Init v2.22.0 2025-05-16T13:20:27.765545874Z,stdout,[2025-05-16 13:20:27.747] INFO: === Starting Server === 2025-05-16T13:20:27.721227801Z,stdout,"Options: CONFIG_PATH=/config, METADATA_PATH=/metadata, PORT=80, HOST=undefined, SOURCE=docker, ROUTER_BASE_PATH=/audiobookshelf " 2025-05-16T13:20:27.719786788Z,stdout,Running in production mode.
Author
Owner

@nichwall commented on GitHub (May 16, 2025):

Can you share your docker compose or the command used to run ABS?

You can safely remove the NUSQLITE environment variables and use what is bundled within the docker image.

@nichwall commented on GitHub (May 16, 2025): Can you share your docker compose or the command used to run ABS? You can safely remove the NUSQLITE environment variables and use what is bundled within the docker image.
Author
Owner

@Firedrake1 commented on GitHub (May 16, 2025):

Can you share your docker compose or the command used to run ABS?

You can safely remove the NUSQLITE environment variables and use what is bundled within the docker image.

Removing the NUSQLITE environment variables worked for me. Thanks! Did those somehow get added in recently, but weren't needed? Are we sure this won't cause any future issues?

@Firedrake1 commented on GitHub (May 16, 2025): > Can you share your docker compose or the command used to run ABS? > > You can safely remove the NUSQLITE environment variables and use what is bundled within the docker image. Removing the NUSQLITE environment variables worked for me. Thanks! Did those somehow get added in recently, but weren't needed? Are we sure this won't cause any future issues?
Author
Owner

@nichwall commented on GitHub (May 16, 2025):

The SQLite extension was added in 2.12.0 in September 2024 (there were a few versions at that point due to issues with adding the SQLite extension). This issue is likely due to https://github.com/advplyr/audiobookshelf/releases/tag/v2.22.0 having an update to simplify the Docker image and you manually specifying the path of the binaries instead of relying on the defaults. I'm not sure why so many people have the NUSQLITE environment variable set. https://github.com/advplyr/audiobookshelf/pull/3468

@nichwall commented on GitHub (May 16, 2025): The SQLite extension was added in 2.12.0 in September 2024 (there were a few versions at that point due to issues with adding the SQLite extension). This issue is likely due to https://github.com/advplyr/audiobookshelf/releases/tag/v2.22.0 having an update to simplify the Docker image and you manually specifying the path of the binaries instead of relying on the defaults. I'm not sure why so many people have the NUSQLITE environment variable set. https://github.com/advplyr/audiobookshelf/pull/3468
Author
Owner

@advplyr commented on GitHub (May 16, 2025):

Is it maybe part of the docker image available on synology? I'm not sure how synology works but it seems most people with this issue are on synology.

@advplyr commented on GitHub (May 16, 2025): Is it maybe part of the docker image available on synology? I'm not sure how synology works but it seems most people with this issue are on synology.
Author
Owner

@nichwall commented on GitHub (May 16, 2025):

Is it maybe part of the docker image available on synology? I'm not sure how synology works but it seems most people with this issue are on synology.

Potentially, but this has been affecting a number of people who are not using Synology as well. Someone shared a screenshot of a chat on Discord that talked about how some compose managers may be caching images, similar to how Synology did it a few updates ago.

@nichwall commented on GitHub (May 16, 2025): > Is it maybe part of the docker image available on synology? I'm not sure how synology works but it seems most people with this issue are on synology. Potentially, but this has been affecting a number of people who are not using Synology as well. Someone shared a screenshot of a chat on Discord that talked about how some compose managers may be caching images, similar to how Synology did it a few updates ago.
Author
Owner

@tacogerbil commented on GitHub (May 16, 2025):

I know I never set it myself (never used compose). I used the standard synolgy docker app to download the image (from here --> https://hub.docker.com/r/advplyr/audiobookshelf/tags?name=latest ) and configure it with the built in GUI, then when there's an update i just download the latest, rename the old one, change it's port to an unused and turn it off and then I duplicate it's settings into a new container (using it's settings), update the port to the right one and boom, I'm rolling.

Image

That I know of Synology doesn't have a special repo for these.. just straight out download and install from docker.com, configure the folders/ports and go

Image

Image

Image

Image

I don't know anythig about compose as this is straight up simple to me.. it's always just worked..

@tacogerbil commented on GitHub (May 16, 2025): I know I never set it myself (never used compose). I used the standard synolgy docker app to download the image (from here --> https://hub.docker.com/r/advplyr/audiobookshelf/tags?name=latest ) and configure it with the built in GUI, then when there's an update i just download the latest, rename the old one, change it's port to an unused and turn it off and then I duplicate it's settings into a new container (using it's settings), update the port to the right one and boom, I'm rolling. ![Image](https://github.com/user-attachments/assets/ddf24790-122f-423c-9409-f0ce45ca8e5e) That I know of Synology doesn't have a special repo for these.. just straight out download and install from docker.com, configure the folders/ports and go ![Image](https://github.com/user-attachments/assets/998e30f6-93cd-41c4-99a5-ba1a11d8d9eb) ![Image](https://github.com/user-attachments/assets/fd2bda95-352a-46b1-8b73-f81b093fa235) ![Image](https://github.com/user-attachments/assets/15f9a016-0ce2-4fa4-9f48-b525377212d1) ![Image](https://github.com/user-attachments/assets/e1dd54e1-6547-4c39-8f6e-c94b56f6ea3f) I don't know anythig about compose as this is straight up simple to me.. it's always just worked..
Author
Owner

@advplyr commented on GitHub (May 16, 2025):

So these container managers may be caching the environment variables? I don't see what the purpose of that would be

@advplyr commented on GitHub (May 16, 2025): So these container managers may be caching the environment variables? I don't see what the purpose of that would be
Author
Owner

@tacogerbil commented on GitHub (May 16, 2025):

I just tested with the docker folders...

Image

I renamed them and created new ones..

Image

I didn't place anything into these directories.. I left them blank. I assume ABS creates the sqlite file?
Still the error posted above. I can't confirm this part still though since it shuts down
[2025-05-16 15:34:50.438] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {

@tacogerbil commented on GitHub (May 16, 2025): I just tested with the docker folders... ![Image](https://github.com/user-attachments/assets/c237642f-28b4-49b8-baf3-82182eba8774) I renamed them and created new ones.. ![Image](https://github.com/user-attachments/assets/802ff199-dafb-4d55-abe7-2ed33aa74168) I didn't place anything into these directories.. I left them blank. I assume ABS creates the sqlite file? Still the error posted above. I can't confirm this part still though since it shuts down [2025-05-16 15:34:50.438] ERROR: [Database] Failed to load extension /usr/local/lib/nusqlite3/libnusqlite3.so [Error: SQLITE_ERROR: Error loading shared library /usr/local/lib/nusqlite3/libnusqlite3.so.so: No such file or directory] {
Author
Owner

@Vito0912 commented on GitHub (May 16, 2025):

@advplyr It's very likely https://discord.com/channels/942908292873723984/954760207131615264/1372958235421839461 I posted on Discord.

libnusqlite3 does not seem to exist (because of the changed steps, I think it is not copied over). So if the ENV is cached, it can't load anything and therefore crashes.

@Vito0912 commented on GitHub (May 16, 2025): @advplyr It's very likely https://discord.com/channels/942908292873723984/954760207131615264/1372958235421839461 I posted on Discord. libnusqlite3 does not seem to exist (because of the changed steps, I think it is not copied over). So if the ENV is cached, it can't load anything and therefore crashes.
Author
Owner

@github-actions[bot] commented on GitHub (May 17, 2025):

Fixed in v2.23.0.

@github-actions[bot] commented on GitHub (May 17, 2025): Fixed in [v2.23.0](https://github.com/advplyr/audiobookshelf/releases/tag/v2.23.0).
Author
Owner

@tacogerbil commented on GitHub (May 17, 2025):

Synolgy without compose.. standard vanilla docker image working 100% Thank you @advplyr !!!!!!!!!!!!!!!

Image

@tacogerbil commented on GitHub (May 17, 2025): Synolgy without compose.. standard vanilla docker image working 100% Thank you @advplyr !!!!!!!!!!!!!!! ![Image](https://github.com/user-attachments/assets/166744f1-cb21-4f47-9742-7d0695cfeb97)
Author
Owner

@githubdebugger commented on GitHub (May 17, 2025):

I see there are some fixed related to this that has gone into 2.23.0, however, I am still getting in 2.23.0 and 2.22.0:

Error: Cannot find module '/index.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
at Module._load (node:internal/modules/cjs/loader:1043:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v20.19.2

If I use latest (2.23.0) it is not working and it works fine if I use 2.21.0 image.

This is the command that I am running it with it.

docker run -d --name audiobookshelf -v /home/abcd/audiobooks:/audiobooks:rw -v /home/abcd/audiobookshelf/config:/config:rw -v /home/abcd/audiobookshelf/metadata:/metadata:rw -v /home/abcd/podcasts:/podcasts:rw -v /home/abcd/books:/books:rw -p 8888:80/tcp --restart=unless-stopped -w / ghcr.io/advplyr/audiobookshelf:2.21.0

Am I missing something?

@githubdebugger commented on GitHub (May 17, 2025): I see there are some fixed related to this that has gone into 2.23.0, however, I am still getting in 2.23.0 and 2.22.0: Error: Cannot find module '/index.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1212:15) at Module._load (node:internal/modules/cjs/loader:1043:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v20.19.2 If I use latest (2.23.0) it is not working and it works fine if I use 2.21.0 image. This is the command that I am running it with it. docker run -d --name audiobookshelf -v /home/abcd/audiobooks:/audiobooks:rw -v /home/abcd/audiobookshelf/config:/config:rw -v /home/abcd/audiobookshelf/metadata:/metadata:rw -v /home/abcd/podcasts:/podcasts:rw -v /home/abcd/books:/books:rw -p 8888:80/tcp --restart=unless-stopped -w / ghcr.io/advplyr/audiobookshelf:2.21.0 Am I missing something?
Author
Owner

@nichwall commented on GitHub (May 17, 2025):

The index.js issue is discussed more in https://github.com/advplyr/audiobookshelf/issues/4292. The basic answer is you need to make sure you fully remove any (for Audiobookshelf) existing containers or cached images.

@nichwall commented on GitHub (May 17, 2025): The `index.js` issue is discussed more in https://github.com/advplyr/audiobookshelf/issues/4292. The basic answer is you need to make sure you fully remove any (for Audiobookshelf) existing containers or cached images.
Author
Owner

@githubdebugger commented on GitHub (May 17, 2025):

The index.js issue is discussed more in #4292. The basic answer is you need to make sure you fully remove any existing containers or cached images.

Thanks for the quick reply. It worked. Appreciate your help.

@githubdebugger commented on GitHub (May 17, 2025): > The `index.js` issue is discussed more in [#4292](https://github.com/advplyr/audiobookshelf/issues/4292). The basic answer is you need to make sure you fully remove any existing containers or cached images. Thanks for the quick reply. It worked. Appreciate your help.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2774