[Bug]: Failing to import Audiobooks #2745

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

Originally created by @Snyrby on GitHub (May 1, 2025).

What happened?

Audiobooks fails to import inside of Audiobookshelf. It tries to import the book, but never does with errors. I'm only having this issue with a select few books.

What did you expect to happen?

Audiobook entry be generated into Audiobookshelf

Steps to reproduce the issue

  1. Changed Metadata of m4b file
  2. Redownload m4b file
  3. Deleted Docker image and wipe all docker data

Audiobookshelf version

2.21.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?

Chrome

Logs

Upon the initial scan, it doesn't even detect an audio file eventhough it's in .m4b format
"Library item at path \"Martha Wells/All Systems Red - Murderbot Diaries Book 1\" has no audio files and no ebook file - ignoring","levelName":"WARN","level":3}

When I manually scan the library, the logs from the UI say
[AudioFileScanner] SyntaxError: Expected property name or '}' in JSON at position 2 : "/audiobooks/Shirtaloon/He Who Fights with Monsters - He Who Fights with Monsters Book 1/He Who Fights with Monsters.m4b"

Additional Notes

No response

Originally created by @Snyrby on GitHub (May 1, 2025). ### What happened? Audiobooks fails to import inside of Audiobookshelf. It tries to import the book, but never does with errors. I'm only having this issue with a select few books. ### What did you expect to happen? Audiobook entry be generated into Audiobookshelf ### Steps to reproduce the issue 1. Changed Metadata of m4b file 2. Redownload m4b file 3. Deleted Docker image and wipe all docker data ### Audiobookshelf version 2.21.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? Chrome ### Logs ```shell Upon the initial scan, it doesn't even detect an audio file eventhough it's in .m4b format "Library item at path \"Martha Wells/All Systems Red - Murderbot Diaries Book 1\" has no audio files and no ebook file - ignoring","levelName":"WARN","level":3} When I manually scan the library, the logs from the UI say [AudioFileScanner] SyntaxError: Expected property name or '}' in JSON at position 2 : "/audiobooks/Shirtaloon/He Who Fights with Monsters - He Who Fights with Monsters Book 1/He Who Fights with Monsters.m4b" ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:10:09 +02:00
adam closed this issue 2026-04-25 00:10:09 +02:00
Author
Owner

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

Likely duplicate of #4236 if you used Libation

If so:
FYI: You have to downgrade Libation. There currently is no real other way (other than building and "injecting" a custom ffmpeg build)

@Vito0912 commented on GitHub (May 1, 2025): Likely duplicate of #4236 if you used Libation If so: FYI: You have to downgrade Libation. There currently is no real other way (other than building and "injecting" a custom ffmpeg build)
Author
Owner

@lfperez1982 commented on GitHub (May 1, 2025):

The issue seems to be also present on v2.22

@lfperez1982 commented on GitHub (May 1, 2025): The issue seems to be also present on v2.22
Author
Owner

@Snyrby commented on GitHub (May 1, 2025):

This sounds exactly like my issue. @Vito0912 Do you know how far does libation need to go? I assume downgrading just removes the ability to use xHE-AAC?

@Snyrby commented on GitHub (May 1, 2025): This sounds exactly like my issue. @Vito0912 Do you know how far does libation need to go? I assume downgrading just removes the ability to use xHE-AAC?
Author
Owner

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

@Snyrby @lfperez1982

I wrote a simple guide if you want to use the high quality files: https://github.com/advplyr/audiobookshelf/issues/4236#issuecomment-2845569333

Downgrading to Libation 12.2 should solve the problem.
Since @lfperez1982 said it does not solve it, it is possible that the license is still saved (but also that version does not exists so idk).
I am not sure how Libation handles this in the background, but the high quality files that use the license were added in version 12.3. If it still does not work on 12.2, try logging out and back in to Libation.

@Vito0912 commented on GitHub (May 1, 2025): @Snyrby @lfperez1982 I wrote a simple guide if you want to use the high quality files: <https://github.com/advplyr/audiobookshelf/issues/4236#issuecomment-2845569333> Downgrading to [Libation 12.2](https://github.com/rmcrackan/Libation/releases/tag/v12.2.0) should solve the problem. Since @lfperez1982 said it does not solve it, it is possible that the license is still saved (but also that version does not exists so idk). I am not sure how Libation handles this in the background, but the high quality files that use the license were added in version 12.3. If it still does not work on 12.2, try logging out and back in to Libation.
Author
Owner

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

The issue seems to be also present on v2.22

Are you referring to Audiobookshelf server version 2.22.0? If so, this version does not exist at the time of writing.

@nichwall commented on GitHub (May 1, 2025): > The issue seems to be also present on v2.22 Are you referring to Audiobookshelf server version 2.22.0? If so, this version does not exist at the time of writing.
Author
Owner

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

I assume downgrading just removes the ability to use xHE-AAC?

I forgot to answer your question. This sould be the changelog: https://github.com/rmcrackan/Libation/pull/1223

@Vito0912 commented on GitHub (May 1, 2025): > I assume downgrading just removes the ability to use xHE-AAC? I forgot to answer your question. This sould be the changelog: https://github.com/rmcrackan/Libation/pull/1223
Author
Owner

@Snyrby commented on GitHub (May 1, 2025):

Seems like this might be understood. For me, I downgraded the quality from high to normal in libation. Which I'm perfectly fine with anyways to store space. Files import perfect now.

@Snyrby commented on GitHub (May 1, 2025): Seems like this might be understood. For me, I downgraded the quality from high to normal in libation. Which I'm perfectly fine with anyways to store space. Files import perfect now.
Author
Owner

@lfperez1982 commented on GitHub (May 2, 2025):

I guess I have a workaround, I don't know which one of these did it, but I placed every single audio file in it's own folder and then rearenged the order of the values items to scan on the library. It hasn't crashed anymore. Oh and I also increased the CPUs assigned as well as the amount of ram on the LXC container running audiobookshelf

@lfperez1982 commented on GitHub (May 2, 2025): I guess I have a workaround, I don't know which one of these did it, but I placed every single audio file in it's own folder and then rearenged the order of the values items to scan on the library. It hasn't crashed anymore. Oh and I also increased the CPUs assigned as well as the amount of ram on the LXC container running audiobookshelf
Author
Owner

@jostyee commented on GitHub (May 3, 2025):

Libation add an option to disable widevine https://github.com/rmcrackan/Libation/issues/1228 , which fixed this issue on my end.

@jostyee commented on GitHub (May 3, 2025): Libation add an option to disable widevine https://github.com/rmcrackan/Libation/issues/1228 , which fixed this issue on my end.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2745