[Bug]: FATAL: [Server] Unhandled rejection: Error: EHOSTDOWN: host is down #2216

Closed
opened 2026-04-25 00:05:04 +02:00 by adam · 1 comment
Owner

Originally created by @engirugger42 on GitHub (Aug 29, 2024).

What happened?

ABS lost its connection to the network mount on which the audiobook library resides while a download was in progress. The container then logged the unhandled rejection and exited.

What did you expect to happen?

ABS to gracefully handle lost connection and continue running OR restart the container.

Steps to reproduce the issue

  1. Begin downloading a book via the web client
  2. Disconnect NAS from network
  3. Container registers unhandled rejection and exits

Audiobookshelf version

v2.12.3

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?

Safari

Logs

[2024-08-29 06:54:18.801] FATAL: [Server] Unhandled rejection: Error: EHOSTDOWN: host is down, lstat '/audiobooks/Randall Munroe/What If/All the Lightning - What If - Randall Munroe.mp3', promise: Promise {

  <rejected> [Error: EHOSTDOWN: host is down, lstat '/audiobooks/Randall Munroe/What If/All the Lightning - What If - Randall Munroe.mp3'] {

    errno: -112,

    code: 'EHOSTDOWN',

    syscall: 'lstat',

    path: '/audiobooks/Randall Munroe/What If/All the Lightning - What If - Randall Munroe.mp3'

  }

} (Server.js:170)

Additional Notes

While note quite a duplicate of #2823 , I think it may be tangential.

For further context, the library resides on a fstab mounted NAS folder, but the configs and database reside on a volume that lives on the local disk. The error shows it being thrown on line 170 of Server.js, but based on the log line, I believe it's actually thrown at line 185, though that's still just a catch block.

Originally created by @engirugger42 on GitHub (Aug 29, 2024). ### What happened? ABS lost its connection to the network mount on which the audiobook library resides while a download was in progress. The container then logged the unhandled rejection and exited. ### What did you expect to happen? ABS to gracefully handle lost connection and continue running OR restart the container. ### Steps to reproduce the issue 1. Begin downloading a book via the web client 2. Disconnect NAS from network 3. Container registers unhandled rejection and exits ### Audiobookshelf version v2.12.3 ### 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? Safari ### Logs ```shell [2024-08-29 06:54:18.801] FATAL: [Server] Unhandled rejection: Error: EHOSTDOWN: host is down, lstat '/audiobooks/Randall Munroe/What If/All the Lightning - What If - Randall Munroe.mp3', promise: Promise { <rejected> [Error: EHOSTDOWN: host is down, lstat '/audiobooks/Randall Munroe/What If/All the Lightning - What If - Randall Munroe.mp3'] { errno: -112, code: 'EHOSTDOWN', syscall: 'lstat', path: '/audiobooks/Randall Munroe/What If/All the Lightning - What If - Randall Munroe.mp3' } } (Server.js:170) ``` ### Additional Notes While note _quite_ a duplicate of #2823 , I think it may be tangential. For further context, the library resides on a fstab mounted NAS folder, but the configs and database reside on a volume that lives on the local disk. The error shows it being thrown on line 170 of Server.js, but based on the log line, I believe it's actually thrown at [line 185](https://github.com/advplyr/audiobookshelf/blob/c45c82306e1f3cafa9e41d1ca9c4c94f60aec602/server/Server.js#L185), though that's still just a catch block.
adam added the bug label 2026-04-25 00:05:04 +02:00
adam closed this issue 2026-04-25 00:05:04 +02:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 28, 2024):

Fixed in v2.16.1.

@github-actions[bot] commented on GitHub (Oct 28, 2024): Fixed in [v2.16.1](https://github.com/advplyr/audiobookshelf/releases/tag/v2.16.1).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2216