Originally created by @cameron98 on GitHub (Oct 6, 2024).
What was the Problem?
When the paths in the audiobookshelf database to the metadata/covers were pointing to the wrong location, the audiobookshelf app was unable to play any audio files even though the web interface and shelfplayer apps were still able to. When attempting to play the audio file, an red error box popped up to say stream failed. During troubleshooting of the issue, I tried clearing the caches and rescanning all libraries. I also cleared all data and cache from the mobile app, tried reinstalling the app and removing and re-adding the server to the app.
Steps to Reproduce the Issue
The issue was encountered when attempting to migrate my audiobookshelf instance from a RHEL system to a docker container where the path changes from /var/lib/audiobookshelf/metadata to just /metadata. I think the issue could also be reproduced by renaming the metadata folder.
What was Expected?
For the app to play audio, even if it was unable to find a cover to send to the client or any other related metadata.
Phone Model
Pixel 7a
Phone OS
Android 14
Audiobookshelf App Version
Android App - 0.9.76
Installation Source
Google Play Store
Additional Notes
I understand that the use case I mentioned when encountering the bug is likely not supported, however I considered it worth raising as the issue may also make the system unusable for mobile users in the case of those files being corrupted/accidentally deleted. At least in the other cases I tested such as the shelfplayer app and the web interface, the books could still be listened to, even with no cover art etc. I was able to resolve the issue by dumping the sqlite database and doing a sed replace on the filepaths to their new location, then restoring the database back again, so I am confident that this was the cause of the issue.
Originally created by @cameron98 on GitHub (Oct 6, 2024).
### What was the Problem?
When the paths in the audiobookshelf database to the metadata/covers were pointing to the wrong location, the audiobookshelf app was unable to play any audio files even though the web interface and shelfplayer apps were still able to. When attempting to play the audio file, an red error box popped up to say stream failed. During troubleshooting of the issue, I tried clearing the caches and rescanning all libraries. I also cleared all data and cache from the mobile app, tried reinstalling the app and removing and re-adding the server to the app.
### Steps to Reproduce the Issue
The issue was encountered when attempting to migrate my audiobookshelf instance from a RHEL system to a docker container where the path changes from `/var/lib/audiobookshelf/metadata` to just `/metadata`. I think the issue could also be reproduced by renaming the metadata folder.
### What was Expected?
For the app to play audio, even if it was unable to find a cover to send to the client or any other related metadata.
### Phone Model
Pixel 7a
### Phone OS
Android 14
### Audiobookshelf App Version
Android App - 0.9.76
### Installation Source
Google Play Store
### Additional Notes
I understand that the use case I mentioned when encountering the bug is likely not supported, however I considered it worth raising as the issue may also make the system unusable for mobile users in the case of those files being corrupted/accidentally deleted. At least in the other cases I tested such as the shelfplayer app and the web interface, the books could still be listened to, even with no cover art etc. I was able to resolve the issue by dumping the sqlite database and doing a sed replace on the filepaths to their new location, then restoring the database back again, so I am confident that this was the cause of the issue.
adam
added the bug label 2026-04-24 23:46:58 +02:00
I couldn't reproduce this. I tried following things:
Removed cover file for single book from metadata/items/item_id/ folder.
App and webui both showed invalid cover image
Removed metadata from same folder.
Everything continued to work as before
Removed cached things related to book
Everything continued to work as before.
Also booted server and app on phone after each step. I was able to play audiobook on app and browser.
Tested with:
Android app 0.9.74, Server v2.14.2 and v2.16.0, OnePlus One Android 11
Android app 0.9.76, Server v2.16.0, OnePlus 8T Android 14
@ISO-B commented on GitHub (Oct 28, 2024):
I couldn't reproduce this. I tried following things:
1. Removed cover file for single book from metadata/items/item_id/ folder.
- App and webui both showed invalid cover image
2. Removed metadata from same folder.
- Everything continued to work as before
3. Removed cached things related to book
- Everything continued to work as before.
Also booted server and app on phone after each step. I was able to play audiobook on app and browser.
Tested with:
- Android app 0.9.74, Server v2.14.2 and v2.16.0, OnePlus One Android 11
- Android app 0.9.76, Server v2.16.0, OnePlus 8T Android 14
I have retried repeating the process this morning and this time it has just worked. Closing issue, assume issue was caused by something else I did!
@cameron98 commented on GitHub (Oct 29, 2024):
I have retried repeating the process this morning and this time it has just worked. Closing issue, assume issue was caused by something else I did!
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @cameron98 on GitHub (Oct 6, 2024).
What was the Problem?
When the paths in the audiobookshelf database to the metadata/covers were pointing to the wrong location, the audiobookshelf app was unable to play any audio files even though the web interface and shelfplayer apps were still able to. When attempting to play the audio file, an red error box popped up to say stream failed. During troubleshooting of the issue, I tried clearing the caches and rescanning all libraries. I also cleared all data and cache from the mobile app, tried reinstalling the app and removing and re-adding the server to the app.
Steps to Reproduce the Issue
The issue was encountered when attempting to migrate my audiobookshelf instance from a RHEL system to a docker container where the path changes from
/var/lib/audiobookshelf/metadatato just/metadata. I think the issue could also be reproduced by renaming the metadata folder.What was Expected?
For the app to play audio, even if it was unable to find a cover to send to the client or any other related metadata.
Phone Model
Pixel 7a
Phone OS
Android 14
Audiobookshelf App Version
Android App - 0.9.76
Installation Source
Google Play Store
Additional Notes
I understand that the use case I mentioned when encountering the bug is likely not supported, however I considered it worth raising as the issue may also make the system unusable for mobile users in the case of those files being corrupted/accidentally deleted. At least in the other cases I tested such as the shelfplayer app and the web interface, the books could still be listened to, even with no cover art etc. I was able to resolve the issue by dumping the sqlite database and doing a sed replace on the filepaths to their new location, then restoring the database back again, so I am confident that this was the cause of the issue.
@ISO-B commented on GitHub (Oct 28, 2024):
I couldn't reproduce this. I tried following things:
Also booted server and app on phone after each step. I was able to play audiobook on app and browser.
Tested with:
@cameron98 commented on GitHub (Oct 29, 2024):
I have retried repeating the process this morning and this time it has just worked. Closing issue, assume issue was caused by something else I did!