
This is done, sync is working now as well.
#Calibre library full#
Recursively change ownership - give full permissions to the www-data group members, e,g, for the www-data and the calibre users: $ find /data/nextcloud/app/data/setevoy/files/Books/CALIBRE/ -type d -exec chmod g+rwx +Īnd change the owner: $ chown -R calibre:www-data /data/nextcloud/app/data/setevoy/files/Books/CALIBRE/ To solve this issue - add newly added the calibre user created above to the www-data group: $ usermod -a -G www-data calibreĬheck his groups now: $ id calibre uid=15000(calibre) gid=15000(calibre) groups=15000(calibre),33(www-data) Restart Calibre: $ docker restart calibre-webīut now Nexcloud is broken - on a desktop client I got 403 errors during sync, for example:ġ72.29.0.2 - setevoy “PUT /remote.php/dav/files/setevoy/Books/CALIBRE/Pol’%20Diubua/MySQL%20(68)/cover.jpg HTTP/1.1” 403 759 “-” “Mozilla/5.0 (Linux) mirall/2.6.1git (Nextcloud)” To solve this issue - on the host create a new user calibre with UID 15000: $ sudo useradd -u 15000 calibre id calibre uid=15000(calibre) gid=15000(calibre) groups=15000(calibre)Ĭhange the directory ownership: $ sudo chown -R calibre:calibre /data/nextcloud/app/data/setevoy/files/Books/CALIBRE/ Calibre uses the calibre user with UID 15000, but NGINX on the host and the Nextcloud container both are using www-data user with UID 33. While the local directory on the host is owned by the: $ ls -l /data/nextcloud/app/data/setevoy/files/Books/ total 4 drwxr-xr-x 117 www-data www-data 4096 Dec 16 09:32 CALIBREĪnd the www-data user's UID: $ id www-data uid=33(www-data) gid=33(www-data) groups=33(www-data) If you’ll try to upload a file now you can face the following error:įailed to create path /books/Mark Menson/Tonkoe iskusstvo pofigizma_ Paradoksal’nyi sposob zhit’ schastlivo (Permission denied).įor me, it was an expected error as the directory /data/nextcloud/app/data/setevoy/files/Books/CALIBRE/ is used now by both Nextcloud and Calibre Web Docker containers.Ĭheck the user in the Calibre container: $ docker exec -ti books ps | grep cali 68 calibre 0:08 /usr/bin/python /calibre-web/app/cps.pyĪnd his UID: $ docker exec -ti books id calibre uid=15000(calibre) gid=15000(calibre) groups=15000(calibre),15000(calibre) “Failed to create path /books/ (Permission denied)” error Open your URL in a browser, and set a path to the /books directory which has to contain the metadata.db file used by Calibre to store information about all books in the library: Run a Docker container with Calibre, mount the library’s directory inside as /books: $ docker run -ti - name books -p 8083:8083 -v /data/nextcloud/app/data/setevoy/files/Books/CALIBRE/:/books technosoft2000/calibre-webĬheck if metadata.db is present: $ docker exec -ti books ls -l /books/metadata.db -rw-r - r - 1 xfs xfs 752640 Dec 13 07:51 /books/metadata.db Nosovskii drwxr-xr-x 4 Karr drwxr-xr-x 3 www-data www-data 4096 Dec 13 07:55 Al_bier Kamiu … Calibre Web startĬheck the library’s directory under Nextcloud which will be used by our Calibre Web: $ ll /data/nextcloud/app/data/setevoy/files/Books/CALIBRE/ | head total 1212 drwxr-xr-x 3 Orlov drwxr-xr-x 7 Bielash drwxr-xr-x 3 Fomienko, G.
#Calibre library password#
NGINX + Let’s Encrypt set up already described in the Bitwarden: an organization’s password manager self-hosted version installation on an AWS EC2 post.


#Calibre library android#
So, now I have my library itself is stored in a Nextcloud (see the Nextcloud: running in Docker Compose on Debian with Let’s Encrypt SSL post), and I’ll use the Moon+ Reader application on my Android devices as it can synchronize read position via WebDAV.Īlso, you can use Google Drive as a storage backend for Calibre Web, read the docs. The idea is to move away from storing books in Google Books and using its e-book reader on mobile and via a browser but still to be able to access my library from anywhere and to have a book’s reading position synchronization ability, as it is in the Google Books mobile and browser readers.

I’m using Calibre for my e-books library management for many years, but until today always used its desktop version.Ī couple of days ago I found the Calibre Web project - the same library, working with the same database, but accessible via a browser.
