BookSonic does not see files correctly
goose-ws opened this issue · 4 comments
If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.
Expected Behavior
Files appear in BookSonic
Current Behavior
Files do not appear unless a specific chain of events is followed
Steps to Reproduce
- Install BookSonic in Docker via the DockStarter tool
- Ensure that my user has permissions to access the media folder
- Verify that the
/audiobooks
volume is mounted correctly, and readable inside the docker container. I did this by connecting to a console in the container,cd
ing to the directory, opening the files withhead
, and verifying write permissions withtouch
. The directory structure I'm using is:/Audiobooks/Andy Weir/The Martian/The Martian (Unabridged).flac
- Add the media folder via
Settings > Media folders > Name "Audio Books" > Folder "/audiobooks" > Enabled "X"
- Click
Save
- Click
Scan media folders now
- Return to
Home
, see that no media is present. - Return to
Settings > Media folders
, change the path forAudio Books
to/audiobooksss
(A directory which does not exist) - Click
Save
- Click
Scan media folders now
- Change the path for
Audio Books
to/audiobooks
(The correct/actual directory) - Click
Save
- Click
Scan media folders now
- Return to
Home
, where my media is now present.
Another user reported similar behavior on Reddit (link who was told it was an issue related to their files being on Google Drive. My files are on a local drive, /mnt/storage
is a MergerFS mount point of /mnt/disk*
-- However, all disks are local and connected directly via LSI.
Environment
OS: Debian 10
CPU architecture: x86_64
How docker service was installed: DockStarter
Command used to create docker container (run/create/compose/screenshot)
Relevant portion of docker-compose.yml
:
booksonic:
container_name: booksonic
environment:
- CONTEXT_PATH=/booksonic
- PGID=1000
- PUID=1000
- TZ=US/Eastern
hostname: Vergil
image: linuxserver/booksonic
logging:
driver: json-file
options:
max-file: 10
max-size: 200k
ports:
- 8040:4040
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/goose/.config/appdata/booksonic:/config
- /home/goose/.config/appdata/shared:/shared
- /mnt/storage/media/Audiobooks:/audiobooks
- /mnt/storage/media/Podcasts:/podcasts
Docker logs
My first thoughts on reading this is it's an issue with Booksonic itself, rather than the docker container. I'm not sure there's much we can do or implement to change this, as you've proven that perms are correct and the workaround is webui thing in Booksonic.
Happy to be proved wrong.
Do you know of any way (or log) I could use to prove this issue one way or the other? This was the first result for "GitHub BookSonic", I suppose the actual project isn't on GitHub for me to file a bug report.
On a side note, you may want to include the work around in the FAQ for now.
@goose-ws https://github.com/popeen/Popeens-Subsonic
Is the booksonic project, linked from their homepage
I was having a similar issue and I resolved it by changing my mergerfs config options to the following:
defaults,allow_other,direct_io,use_ino,func.getattr=newest