Skip to content

[Bug]: Downloads are broken for 0.14.0-beta #1970

Description

@kuci-JK

I have verified that the bug is not already awaiting release

Yes

What was the Problem?

The download of the media is broken as of mobile app version 0.14.0-beta.

The download starts, downloads all files, the UI shows download complete processing, then the message disappears but the download button is still there and nothing happens. Clicking on the button again causes red message with download already started message to show up. The app occupies quite a bit of storage after this failed download. Server logs shows invalid range requests.

Steps to Reproduce the Issue

  1. Go to the book detail page
  2. Click download button
  3. Notification shows up, wait (kept the screen awake to make sure its not issue with android stopping the app)
  4. After the download completes the UI shows "Download complete. Processing" (dont remember the exact wording)
  5. The Processing message box goes away and nothing happens (the download button does not disappear)
  6. Clicking on download again causes the red "Download already started for this media entity" to show up and that is it.

MP3: In the downloading UI (the queue) the items do not disappear as they reach 100%, they seem to get stuck at 100% (not sure how it was before as I usually download m4b audiobooks). The behavior looks the same to me for both mp3 and m4b.

When I then kill the app and open it again there is the circle with items in queue, but no new notification shows up, the items are all at 100%.

No green check mark showed next to the completed items in the queue.

What was Expected?

I expected the app do download and correctly process the file as in older version.

Phone Model

Redmi Note 11

Phone OS

Android 13, Xiaomi HyperOS 1.0.1.0.TGKEUXM

Audiobookshelf App Version

Android App - 0.14.0-beta

Installation Source

Google Play Store

Additional Notes

Might be related #1963 as I encountered similar logs

Downloading to internal app storage.

After upgrading to the new android app version I had issue that the download wouldn't event start, I would just click download, confirm the dialog and nothing would happen, no notification would show. Clicking again triggered download already started. Fixed that by clearing all app data. But the download now does not complete.

Tried reinstalling the app, did not help.

Downloading fails for both m4b and mp3 audiobooks.

Downloaded data stays in the app storage as the app now takes 0.91 GB after my test.

In the server log what looks interesting to me that there is info about finished download followed by the invalid range requests.

Server Log

[2026-08-23 19:48:16.633] INFO: [LibraryItemController] Downloaded file "/library/audiobooks/Chelsea Curto/DC Stars/02 - Power Play/Curto Chelsea - DCS2 - Power Play.m4b"
[2026-08-23 19:48:26.721] INFO: [LibraryItemController] User "USER" requested download for item "Power Play" file at "/library/audiobooks/Chelsea Curto/DC Stars/02 - Power Play/Curto Chelsea - DCS2 - Power Play.m4b"
[2026-08-23 19:48:26.729] ERROR: [LibraryItemController] Failed to download file "/library/audiobooks/Chelsea Curto/DC Stars/02 - Power Play/Curto Chelsea - DCS2 - Power Play.m4b" RangeNotSatisfiableError: Range Not Satisfiable
at createHttpError (/app/node_modules/send/index.js:984:7)
at SendStream.error (/app/node_modules/send/index.js:270:31)
at SendStream.send (/app/node_modules/send/index.js:666:19)
at onstat (/app/node_modules/send/index.js:725:10)
at FSReqCallback.oncomplete (node:fs:198:5) {
headers: { 'Content-Range': 'bytes */787913771' }
}
[... SAME ERROR 3 TIMES WITH THE REQUESTED DOWNLOAD, FAILED TO DOWNLOAD...]
[2026-08-23 19:48:30.873] INFO: [LibraryItemController] User "USER" requested download for item "Power Play" file at "/library/audiobooks/Chelsea Curto/DC Stars/02 - Power Play/Curto Chelsea - DCS2 - Power Play.m4b"
[2026-08-23 19:48:30.876] ERROR: [LibraryItemController] Failed to download file "/library/audiobooks/Chelsea Curto/DC Stars/02 - Power Play/Curto Chelsea - DCS2 - Power Play.m4b" RangeNotSatisfiableError: Range Not Satisfiable
at createHttpError (/app/node_modules/send/index.js:984:7)
at SendStream.error (/app/node_modules/send/index.js:270:31)
at SendStream.send (/app/node_modules/send/index.js:666:19)
at onstat (/app/node_modules/send/index.js:725:10)
at FSReqCallback.oncomplete (node:fs:198:5) {
headers: { 'Content-Range': 'bytes */787913771' }
}
[2026-08-23 19:52:44.041] INFO: [SocketAuthority] Socket XXXXXXXXXXXX disconnected from client "USER" after 596614ms (Reason: ping timeout)
[2026-08-23 19:57:24.502] INFO: [SocketAuthority] Socket Connected to /socket.io XXXXXXXX
[2026-08-23 19:59:10.219] INFO: [LibraryItemController] User "USER" requested download for item "Hurvínek trochu zlobí" file at "/library/audiobooks-cz/Spejbl a Hurvínek/Spejbl a Hurvínek/02 - Hurvínek trochu zlobí/01 - Hurvínkovi k narozeninám.mp3"
[2026-08-23 19:59:10.223] INFO: [LibraryItemController] User "USER" requested download for item "Hurvínek trochu zlobí" file at "/library/audiobooks-cz/Spejbl a Hurvínek/Spejbl a Hurvínek/02 - Hurvínek trochu zlobí/03 - Hurvínkova černá hodinka.mp3"
[2026-08-23 19:59:10.236] INFO: [LibraryItemController] User "USER" requested download for item "Hurvínek trochu zlobí" file at "/library/audiobooks-cz/Spejbl a Hurvínek/Spejbl a Hurvínek/02 - Hurvínek trochu zlobí/02 - Máničce k narozeninám.mp3"
[2026-08-23 19:59:28.564] INFO: [LibraryItemController] Downloaded file "/library/audiobooks-cz/Spejbl a Hurvínek/Spejbl a Hurvínek/02 - Hurvínek trochu zlobí/02 - Máničce k narozeninám.mp3"
[2026-08-23 19:59:29.335] INFO: [LibraryItemController] Downloaded file "/library/audiobooks-cz/Spejbl a Hurvínek/Spejbl a Hurvínek/02 - Hurvínek trochu zlobí/01 - Hurvínkovi k narozeninám.mp3"
[2026-08-23 19:59:40.838] INFO: [LibraryItemController] User "USER" requested download for item "Hurvínek trochu zlobí" file at "/library/audiobooks-cz/Spejbl a Hurvínek/Spejbl a Hurvínek/02 - Hurvínek trochu zlobí/01 - Hurvínkovi k narozeninám.mp3"
[2026-08-23 19:59:40.841] ERROR: [LibraryItemController] Failed to download file "/library/audiobooks-cz/Spejbl a Hurvínek/Spejbl a Hurvínek/02 - Hurvínek trochu zlobí/01 - Hurvínkovi k narozeninám.mp3" RangeNotSatisfiableError: Range Not Satisfiable
at createHttpError (/app/node_modules/send/index.js:984:7)
at SendStream.error (/app/node_modules/send/index.js:270:31)
at SendStream.send (/app/node_modules/send/index.js:666:19)
at onstat (/app/node_modules/send/index.js:725:10)
at FSReqCallback.oncomplete (node:fs:198:5) {
headers: { 'Content-Range': 'bytes */14199773' }
}
[2026-08-23 19:59:40.865] INFO: [LibraryItemController] User "USER" requested download for item "Hurvínek trochu zlobí" file at "/library/audiobooks-cz/Spejbl a Hurvínek/Spejbl a Hurvínek/02 - Hurvínek trochu zlobí/02 - Máničce k narozeninám.mp3"
[2026-08-23 19:59:40.868] ERROR: [LibraryItemController] Failed to download file "/library/audiobooks-cz/Spejbl a Hurvínek/Spejbl a Hurvínek/02 - Hurvínek trochu zlobí/02 - Máničce k narozeninám.mp3" RangeNotSatisfiableError: Range Not Satisfiable
at createHttpError (/app/node_modules/send/index.js:984:7)
at SendStream.error (/app/node_modules/send/index.js:270:31)
at SendStream.send (/app/node_modules/send/index.js:666:19)
at onstat (/app/node_modules/send/index.js:725:10)
at FSReqCallback.oncomplete (node:fs:198:5) {
headers: { 'Content-Range': 'bytes */13877944' }
}
[2026-08-23 19:59:40.913] INFO: [LibraryItemController] Downloaded file "/library/audiobooks-cz/Spejbl a Hurvínek/Spejbl a Hurvínek/02 - Hurvínek trochu zlobí/03 - Hurvínkova černá hodinka.mp3"
[2026-08-23 19:59:41.861] INFO: [LibraryItemController] User "USER" requested download for item "Hurvínek trochu zlobí" file at "/library/audiobooks-cz/Spejbl a Hurvínek/Spejbl a Hurvínek/02 - Hurvínek trochu zlobí/01 - Hurvínkovi k narozeninám.mp3"
[2026-08-23 19:59:41.865] ERROR: [LibraryItemController] Failed to download file "/library/audiobooks-cz/Spejbl a Hurvínek/Spejbl a Hurvínek/02 - Hurvínek trochu zlobí/01 - Hurvínkovi k narozeninám.mp3" RangeNotSatisfiableError: Range Not Satisfiable
at createHttpError (/app/node_modules/send/index.js:984:7)
at SendStream.error (/app/node_modules/send/index.js:270:31)
at SendStream.send (/app/node_modules/send/index.js:666:19)
at onstat (/app/node_modules/send/index.js:725:10)
at FSReqCallback.oncomplete (node:fs:198:5) {
headers: { 'Content-Range': 'bytes */14199773' }
}
[2026-08-23 19:59:41.890] INFO: [LibraryItemController] User "USER" requested download for item "Hurvínek trochu zlobí" file at "/library/audiobooks-cz/Spejbl a Hurvínek/Spejbl a Hurvínek/02 - Hurvínek trochu zlobí/02 - Máničce k narozeninám.mp3"
[2026-08-23 19:59:41.893] ERROR: [LibraryItemController] Failed to download file "/library/audiobooks-cz/Spejbl a Hurvínek/Spejbl a Hurvínek/02 - Hurvínek trochu zlobí/02 - Máničce k narozeninám.mp3" RangeNotSatisfiableError: Range Not Satisfiable
at createHttpError (/app/node_modules/send/index.js:984:7)
at SendStream.error (/app/node_modules/send/index.js:270:31)
at SendStream.send (/app/node_modules/send/index.js:666:19)
at onstat (/app/node_modules/send/index.js:725:10)
at FSReqCallback.oncomplete (node:fs:198:5) {
headers: { 'Content-Range': 'bytes */13877944' }
}
[... REPEATS FEW MORE TIMES ...]

The files are this large:
-rw-r--r-- 1 user group 279828 Aug 17 21:59 cover.jpg
-rw-rw-r-- 1 user group 787913771 Aug 17 22:08 'Curto Chelsea - DCS2 - Power Play.m4b'

-rwxrwxrwx 1 user group 14199773 Jun 6 2024 '01 - Hurvínkovi k narozeninám.mp3'*
-rwxrwxrwx 1 user group 13877944 Jun 6 2024 '02 - Máničce k narozeninám.mp3'*
-rwxrwxrwx 1 user group 45026770 Jun 6 2024 '03 - Hurvínkova černá hodinka.mp3'*

Server: Ubuntu 24.04 LTS, docker rootless, abs v2.36.0

PS: If you would like me to collect some additional / different logs let me know :).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions