linuxserver/docker-booksonic

BookSonic does not see files correctly

goose-ws opened this issue · 4 comments

linuxserver.io

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

  1. Install BookSonic in Docker via the DockStarter tool
  2. Ensure that my user has permissions to access the media folder
  3. 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, cding to the directory, opening the files with head, and verifying write permissions with touch. The directory structure I'm using is: /Audiobooks/Andy Weir/The Martian/The Martian (Unabridged).flac
  4. Add the media folder via Settings > Media folders > Name "Audio Books" > Folder "/audiobooks" > Enabled "X"
  5. Click Save
  6. Click Scan media folders now
  7. Return to Home, see that no media is present.
  8. Return to Settings > Media folders, change the path for Audio Books to /audiobooksss (A directory which does not exist)
  9. Click Save
  10. Click Scan media folders now
  11. Change the path for Audio Books to /audiobooks (The correct/actual directory)
  12. Click Save
  13. Click Scan media folders now
  14. 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

booksonic.txt

CHBMB commented

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.

CHBMB commented

@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