Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments: Docker - Calibre-web Container Setup with New Calibre Database #47

Closed
fictionbecomesfact opened this issue Mar 9, 2022 · 5 comments

Comments

@fictionbecomesfact
Copy link
Owner

Comments for Docker - Calibre-web Container Setup with New Calibre Database

@lucasHabkost
Copy link

lucasHabkost commented Jun 17, 2022

Hi!

I've deployed the container per the instructions, but when i try to execute the calibre commands inside the container it gives an error:

calibredb restore_database --really-do-it --with-library /books
bash: calibredb: command not found

I can see calibredb listed:

/app/calibre/bin# ls -alh
total 2.0M
drwxr-xr-x 2 1000 1000 4.0K Jun 17 00:37 .
drwxr-xr-x 8 root root 4.0K Jun 17 01:39 ..
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 calibre
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 calibre-complete
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 calibre-customize
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 calibredb
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 calibre-debug
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 calibre-parallel
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 calibre_postinstall
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 calibre-server
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 calibre-smtp
-rwxr-xr-x 1 1000 1000 728K Jun 17 00:37 cjpeg
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 ebook-convert
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 ebook-device
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 ebook-edit
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 ebook-meta
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 ebook-polish
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 ebook-viewer
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 fetch-ebook-metadata
-rwxr-xr-x 1 1000 1000 595K Jun 17 00:37 jpegtran
-rwxr-xr-x 1 1000 1000 253K Jun 17 00:37 JxrDecApp
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 lrf2lrs
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 lrfviewer
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 lrs2lrf
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 markdown-calibre
-rwxr-xr-x 1 1000 1000 100K Jun 17 00:37 optipng
-rwxr-xr-x 1 1000 1000 39K Jun 17 00:37 pdfinfo
-rwxr-xr-x 1 1000 1000 96K Jun 17 00:37 pdftohtml
-rwxr-xr-x 1 1000 1000 23K Jun 17 00:37 pdftoppm
-rwxr-xr-x 1 1000 1000 6.2K Jun 17 00:37 web2disk

Any ideas on what I can be doing wrong?

Thanks in advance for your attention!

@fictionbecomesfact
Copy link
Owner Author

@lucasHabkost
Thanks for adding the ls output, this list looks the same as mine, including the permissions. So that should be okay.
Unfortunately I can't reproduce the problem. When I go to /app/calibre/bin in the container then I can run calibredb without error. Does the calibredb command also not work when you run the program without the parameters (ie: restore_database --really-do-it --with-library /books)?

Also make sure the /books mapping exists in the container (so cd /books should work in the container), but given the error message that probably is not the problem.

I also looked at the calibre-web issues but didn't find anything there, but I did come across the suggestion to add a pre-created database, that would be useful.

@lucasHabkost
Copy link

Thanks for the reply.

I run calibredb with no parameters and got the same results.
/books is there and I can see its contents.

I've installed a stand alone calibre container and created a db, then mapped the db in calibre-web. It was able to reconize the db.

The problem is that convert to mobi and send to Kindle fails.
I tried pointing to the app/calibre/bin/ebook-convert within the stack and I assume it fails with the same reason (command not found).
I don't know if I can point it to a folder on the new calibre container I deployed (the stand alone one), so still struggling with that.
Any help here is appreciated.

Also, since I'm not a true expert in any of this:
I'm running this on a Rapsberry Pi 4, on Ubuntu 22.04 LTS (GNU/Linux 5.15.0-1011-raspi aarch64).
I assume this aligns with the "DOCKER_MODS=linuxserver/calibre-web:calibre" parameter depending on "x86-64 only".
Again, any hints here are appreciated!

Cheers!

@fictionbecomesfact
Copy link
Owner Author

Glad you were able to resolve the issue with the db. I'm running calibre-web on an HP microserver (x86-64), so there's a difference. The Rpi4 should get the arm64 image with the (default) latest tag. Optionally, you can also use for example the arm64v8-0.6.18 tag (pull command: linuxserver/calibre-web:arm64v8-0.6.18), but it shouldn't be necessary.

The logs on the host might also be interesting to look at (docker logs calibreweb).

E-book conversion will indeed not work according to the documentation of linuxserver but these comments might help you further: I did a quick read and in summary you can install calibre in the container (apt update && apt install calibre), then edit the path in calibreweb and e-book conversion seems to work. But I would recommend reading the comments, there is a lot more information in it and several solutions are mentioned.

@lucasHabkost
Copy link

Hi. I've resolved this manually installing Calibre inside the container.

I'll pressure test this solution, as I'm curious to what will happen when I update the container, or re-deploy it etc.

Repository owner locked and limited conversation to collaborators Jan 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants