[Bug]: v2.22.0 crashes on start-up #2769

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

Originally created by @Coliinnn on GitHub (May 15, 2025).

What happened?

Update version 2.22.0 crashes Audiobookshelf docker container immediately on startup.

What did you expect to happen?

Audiobookshelf runs

Steps to reproduce the issue

  1. Pull image 2.22.0
  2. Run docker compose up
  3. Observe crash:
    e6669b92a280 advplyr/audiobookshelf:2.22.0 "tini -- node index.…" 5 minutes ago Restarting (1) 29 seconds ago

Audiobookshelf version

v2.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

node:internal/modules/cjs/loader:1215
  throw err;
  ^

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.1
node:internal/modules/cjs/loader:1215
  throw err;
  ^

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.1
node:internal/modules/cjs/loader:1215
  throw err;
  ^

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.1
node:internal/modules/cjs/loader:1215
  throw err;
  ^

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.1
node:internal/modules/cjs/loader:1215
  throw err;
  ^

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.1
node:internal/modules/cjs/loader:1215
  throw err;
  ^

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.1
node:internal/modules/cjs/loader:1215
  throw err;
  ^

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.1
node:internal/modules/cjs/loader:1215
  throw err;
  ^

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.1

Additional Notes

I have rolled back to v2.21.0, and then Audiobookshelf started up successfully again.

Originally created by @Coliinnn on GitHub (May 15, 2025). ### What happened? Update version 2.22.0 crashes Audiobookshelf docker container immediately on startup. ### What did you expect to happen? Audiobookshelf runs ### Steps to reproduce the issue 1. Pull image 2.22.0 2. Run docker compose up 3. Observe crash: `e6669b92a280 advplyr/audiobookshelf:2.22.0 "tini -- node index.…" 5 minutes ago Restarting (1) 29 seconds ago` ### Audiobookshelf version v2.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 node:internal/modules/cjs/loader:1215 throw err; ^ 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.1 node:internal/modules/cjs/loader:1215 throw err; ^ 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.1 node:internal/modules/cjs/loader:1215 throw err; ^ 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.1 node:internal/modules/cjs/loader:1215 throw err; ^ 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.1 node:internal/modules/cjs/loader:1215 throw err; ^ 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.1 node:internal/modules/cjs/loader:1215 throw err; ^ 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.1 node:internal/modules/cjs/loader:1215 throw err; ^ 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.1 node:internal/modules/cjs/loader:1215 throw err; ^ 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.1 ``` ### Additional Notes I have rolled back to v2.21.0, and then Audiobookshelf started up successfully again.
adam added the bug label 2026-04-25 00:10:20 +02:00
adam closed this issue 2026-04-25 00:10:20 +02:00
Author
Owner

@simonhull commented on GitHub (May 15, 2025):

I'm also encountering this issue after upgrading. Downgrading was the only solution I could find.

@simonhull commented on GitHub (May 15, 2025): I'm also encountering this issue after upgrading. Downgrading was the only solution I could find.
Author
Owner

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

I am not able to reproduce this using Portainer on Synology. You mentioned you are using Linux and ran docker compose up after pulling the new image. Have you tried removing the old container before running docker compose up?

@nichwall commented on GitHub (May 15, 2025): I am not able to reproduce this using Portainer on Synology. You mentioned you are using Linux and ran `docker compose up` after pulling the new image. Have you tried removing the old container before running `docker compose up`?
Author
Owner

@jasonraimondi commented on GitHub (May 15, 2025):

Which image are you guys pulling from? I've got v2.22.0 from the ghcr.io and it seems to be running as expected. I'm pulling an arm image

image: ghcr.io/advplyr/audiobookshelf:latest
@jasonraimondi commented on GitHub (May 15, 2025): Which image are you guys pulling from? I've got v2.22.0 from the ghcr.io and it seems to be running as expected. I'm pulling an arm image ```yml image: ghcr.io/advplyr/audiobookshelf:latest ```
Author
Owner

@simonhull commented on GitHub (May 15, 2025):

I'm running Portainer on Synology and encountered the crash after stopping and recreating the container with "Repull Latest".

@simonhull commented on GitHub (May 15, 2025): I'm running Portainer on Synology and encountered the crash after stopping and recreating the container with "Repull Latest".
Author
Owner

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

This sounds similar to when 2.18.0 was released where Synology does not update containers correctly with the new image, requiring the user to press "Actions" then "Reset" in the Synology container manager to fully remove the previous container and force using the new image that has been cloned. https://github.com/advplyr/audiobookshelf/issues/3868

You can try removing the container and recreating it. I am using a stack in Portainer, not sure if it acts differently if you manually created the container instead. I just pressed "Update the stack" and "repull image and redeploy" and everything updated correctly.

@nichwall commented on GitHub (May 15, 2025): This sounds similar to when 2.18.0 was released where Synology does not update containers correctly with the new image, requiring the user to press "Actions" then "Reset" in the Synology container manager to fully remove the previous container and force using the new image that has been cloned. https://github.com/advplyr/audiobookshelf/issues/3868 You can try removing the container and recreating it. I am using a stack in Portainer, not sure if it acts differently if you manually created the container instead. I just pressed "Update the stack" and "repull image and redeploy" and everything updated correctly.
Author
Owner

@simonhull commented on GitHub (May 15, 2025):

I can confirm that manually editing the stack directly, adding the 2.22.0 tag DOES start the container successfully.

@simonhull commented on GitHub (May 15, 2025): I can confirm that manually editing the stack directly, adding the 2.22.0 tag DOES start the container successfully.
Author
Owner

@Coliinnn commented on GitHub (May 15, 2025):

Very strange! I just pulled the image from gchr instead of Docker Hub and it works now. Then I tested going back to the Docker Hub one, that also works now. Of course I tried re-creating the images, repulling again etc. before opening the issue, but this seems to have fixed itself now.

@Coliinnn commented on GitHub (May 15, 2025): Very strange! I just pulled the image from gchr instead of Docker Hub and it works now. Then I tested going back to the Docker Hub one, that also works now. Of course I tried re-creating the images, repulling again etc. before opening the issue, but this seems to have fixed itself now.
Author
Owner

@cautionespn commented on GitHub (May 15, 2025):

This issue is definitely not resolved. Just attempted to pull the latest via Portainer on an Ubuntu machine, observed this behavior, including the same results in log, changed back to 2.21.0 (advplyr/audiobookshelf:2.21.0) without issue.

@cautionespn commented on GitHub (May 15, 2025): This issue is definitely not resolved. Just attempted to pull the latest via Portainer on an Ubuntu machine, observed this behavior, including the same results in log, changed back to 2.21.0 (advplyr/audiobookshelf:2.21.0) without issue.
Author
Owner

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

This issue is definitely not resolved. Just attempted to pull the latest via Portainer on an Ubuntu machine, observed this behavior, including the same results in log, changed back to 2.21.0 (advplyr/audiobookshelf:2.21.0) without issue.

The current active discussion is in https://github.com/advplyr/audiobookshelf/issues/4292

@nichwall commented on GitHub (May 15, 2025): > This issue is definitely not resolved. Just attempted to pull the latest via Portainer on an Ubuntu machine, observed this behavior, including the same results in log, changed back to 2.21.0 (advplyr/audiobookshelf:2.21.0) without issue. The current active discussion is in https://github.com/advplyr/audiobookshelf/issues/4292
Author
Owner

@DreadDragoon commented on GitHub (May 19, 2025):

rm'd the container, left the config/metadata volumes, and redeployed. all good now

@DreadDragoon commented on GitHub (May 19, 2025): rm'd the container, left the config/metadata volumes, and redeployed. all good now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2769