anandslab / docker-traefik

Docker media and home server stack with Docker Compose, Traefik, Swarm Mode, Google OAuth2/Authelia, and LetsEncrypt
https://www.smarthomebeginner.com/
MIT License
2.93k stars 630 forks source link

Lazy --> Calibre --> Calibre Web, Assisstance #56

Closed sudo-kraken closed 4 years ago

sudo-kraken commented 4 years ago

Do you have any guides on how to get this setup so they all work together I have fathomed most of it out but seem to be having issues with calibre and calibre web and would like to know in particular how you have configured it.

robflate commented 4 years ago

What's not working? A few things to check for basic functionality;

Calibre

LazyLibrarian

Calibre-Web

After that works, you'll want to setup;

sudo-kraken commented 4 years ago

Thanks for this so

I am using tha same docker compose sections as in the example but with my own bind mounts for storage.

I am having issues with lazy library in the "Calibredb import program" thats set to /usr/bin/calibredb and it connects but says "database READ failed or database is empty" so this may be ok for now.

So I have the downloads complete in Sab into /mnt/media/SABnzbd/Complete/Lazy which is then picked up by Lazy and it puts then Lazy polls that and sorts them into either /mnt/media/Books/eBooks or /mnt/media/Books/Audio Books

What I dont get is how Calibre is fitting in as I have set the Calibre Library to /mnt/media/Books/Calibre Library but I cant get it to work at all and Calibre web wont connect to the db at all it says it doesnt exist.

sudo-kraken commented 4 years ago

I think my issue is that the downloads complete into the aforementioned /ebooks and /audio books and calibre is in /calibre library and Im not sure if they should be like that. Also when I try create a library in calibre it and place it in /ebooks or / audio books it gives me a permission denied even though the bind mounts are set with rw permissions.

robflate commented 4 years ago

My eBooks and Calibre library are in the same folder. Magazines, Audiobooks and Comics are in their own separate folders (I only have eBooks in Calibre/Calibre-Web) so I also uncheck Magazines/Comics inside book folder in LL .

The only thing I have in my Calibre compose file that isn't in this stack;

environment:
  UMASK_SET: 002

maybe that might fix your permissions issue?

Other things to check;

anandslab commented 4 years ago

pretty much covered in the above responses. I also have my mask at 002. Just pushed the update to the git. I have everything working but i am still fine tuning....will write a guide after it is running smoothly.

robflate commented 4 years ago

When I click Test calibredb I get;

calibredb ok, version 4.19
Database READ ok
Database WRITE ok

Sounds like you haven't entered the correct info in the Settings > Processing > Calibre section of LL. In Calibre, make sure you've added a user, enabled Sharing over the net and started the Server as below;

  1. In Calibre Preferences > Sharing over the net > Users = Add a user/password
  2. In Calibre Preferences > Sharing over the net > Main = Port = 8081, Require username = tick, Run server = tick, click Start Server
  3. In LL Settings > Processing > Calibre > Calibre Server: = http://calibre:8081/#Books. Change Books to whatever you named your Calibre Library, check your Calibre container is named calibre and check you set the Calibre Sharing over the net port to 8081.
  4. In LL Settings > Processing > Calibre > Calibre Username: = Enter the Calibre username you created in step 1.
  5. In LL Settings > Processing > Calibre > Calibre Password: = Enter the Calibre password you created in step 1.

Note: You have to click save in LL after making changes to the Calibre section before you can click Test calibredb.

Also, have you checked the issues at https://gitlab.com/LazyLibrarian/LazyLibrarian/ and the documentation at https://lazylibrarian.gitlab.io? The dev is very active and helpful.

sudo-kraken commented 4 years ago

Awesome I actaully managed to fix it with a restart must have altered a setting in the compose :)

Last question now, where do you put your downloads so it can be picked up and put into the calibre library I have basically got this SAB -----> completes to /mnt/media/SABnzbd/Complete/Lazy LL -----> picks up from /mnt/media/SABnzbd/Complete/Lazy LL -----> places ebooks in /mnt/media/Books/eBooks (Calibre Library is also in the root of this folder) LL -----> places audo books in /mnt/media/Books/Audio Books Also have in the processing settings calibre books auto add dir the saome as the eBooks folder

Is that right ?

robflate commented 4 years ago

Read the LL documentation page to understand Calibre Books Auto Add Directory https://lazylibrarian.gitlab.io/config_processing/ (the LL documentation is very thorough). I leave this blank.

I use NZBGet and QBittorrent (and occasionally Transmission) so a bit different but I;

  1. In LL Settings > Processing > Calibre > Use calibredb to import ebooks = ticked
  2. In LL Settings > Processing > Folders > Download Directories: = I have my usenet/torrent downloaders completed folders here, e.g. /data/usenet/completed/Books,/data/torrent/complete/Books,/data/torrent/complete. The reason for 2 torrent folders is because QBittorrent uses folders so places completes in Books but Transmission does not so places completes in complete.
sudo-kraken commented 4 years ago

ok so I can leave them to complete into /mnt/media/SABnzbd/Complete/Lazy and then just tick the box and have it move them into the calibre library and dont have LL move them into the library folder in the folderes seciton

sudo-kraken commented 4 years ago

awesome thanks