Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

SOLVED How to install Calibre Web in TrueNAS Core 12.0

fahadshery

Member
Joined
Sep 29, 2017
Messages
112
All,

I have been trying to install the community plugin of calibre-web but its not working as expected. Here are the steps I took to resolve the issues.
  1. Goto to community plugins, install calibre-web
  2. Create an Open Share on TrueNAS. This is where your existing Calibre Library to be copied to. (I used open share to avoid any permission issues and I don't mind anyone in the household reading the books anyway coz no knowledge is forbidden knowledge ;-) ). Note: If you don't have an existing Calibre Library then you will need to initialise the metadata.db file in the jail. The easiest way to create this file is to install calibre on your computer. This will generate the metadata.db file which you could copy into the same folder in the Jail where your books will live. (In my case it was the folder named Calibre Library)
  3. I already had the calibre installed on my Mac. The location of the Calibre Library on Mac was: /Users/YOUR_USER_NAME/Calibre Library
  4. I copied the entire Calibre Library folder from my Mac to the Open Share folder (See step 2) on the TrueNAS via SMB share. It was important because Calibre Library folder holds an important file named metadata.db which is used by the calibre-web plugin
  5. Stop the Calibre-web Jail and Add the mount point of the Calibre Library which you copied into the Open Share folder (in Step 4.)
  6. Start the Plugin
  7. If you click on Manage in the TrueNAS UI Plugins, you will get Unable to connect in the browser.
  8. Open the shell of the `Jail` i.e. iocage console calibre-web
  9. ps aux | grep calibre will show that the process is running already.
  10. I had to manually start by nohup python3 /usr/local/app/calibre-web/cps.py &
  11. then created a script which will automatically do it upon reboot. at /usr/local/app/calibre-web/cw-startup.sh(Location of the script doesn't matter though). the contents of the cw-startup.share:
    Code:
    #!/bin/sh
    nohup python3 /usr/local/app/calibre-web/cps.py &
  12. chmod +x cw-startup.sh
  13. Setup the crontab: echo '@Reboot root /usr/local/app/calibre-web/cw-startup.sh' >> /etc/crontab
  14. restart the plugin and see if you get the UI now
  15. change admin password
  16. create a user
  17. click on the Admin menu item at the top
  18. then click Edit Basic Configuration and then expand External Binaries and paste /usr/local/bin/ebook-convert in the Path to Calibre E-Book Converter textbox (this will enable book conversion i.e. from epub to mobi
  19. you could enable Upload books to add more in the future from the same Basic Configuration section and then Feature Configuration section.

That's it. Enjoy!
 

Sunii

Newbie
Joined
Oct 23, 2014
Messages
3
I had to use the full path to python3 (/usr/local/bin/python3) for this to work but it did, thanks!
 

CycloCrux

Newbie
Joined
Mar 1, 2021
Messages
1
Does anyone else have issues getting ebook-convert to work? The settings are pointing to the correct path (verified location), but I'm unable to convert books.
 

fahadshery

Member
Joined
Sep 29, 2017
Messages
112
Does anyone else have issues getting ebook-convert to work? The settings are pointing to the correct path (verified location), but I'm unable to convert books.
have you installed the converter? You will need to separately install it in the same jail and then pass its binary/executable location in the GUI
 

aschaapherder

Junior Member
Joined
Sep 11, 2015
Messages
14
Hmm, tried to install it but pkg insists the package does not exist. When I try to upgrade the jail to version 12.2 I get
Code:
nas1% sudo iocage upgrade calibrejail -r 12.2
Password:
12.2 is missing, please fetch it!

nas1% iocage list
+-----+-----------------+-------+--------------+-----------------+
| JID |      NAME       | STATE |   RELEASE    |       IP4       |
+=====+=================+=======+==============+=================+
| 8   | calibrejail     | up    | 11.4-RELEASE | 172.x.xx.xxx    |
+-----+-----------------+-------+--------------+-----------------+
| 1   | duplicati       | up    | 12.2-RELEASE | 172.x.xx.xxx    |
+-----+-----------------+-------+--------------+-----------------+
| 2   | grafana         | up    | 12.2-RELEASE | 172.x.xx.xxx    |
+-----+-----------------+-------+--------------+-----------------+
| 9   | lychee          | up    | 12.2-RELEASE | 172.x.xx.xxx    |
+-----+-----------------+-------+--------------+-----------------+
| 4   | nextcloudnew    | up    | 12.1-RELEASE | 172.x.x.xxx     |
+-----+-----------------+-------+--------------+-----------------+
| 5   | plexmediaserver | up    | 12.2-RELEASE | 172.x.x.xxxx    |
+-----+-----------------+-------+--------------+-----------------+
| 6   | subsonic        | up    | 11.2-RELEASE | 172.x.xx.xxx    |
+-----+-----------------+-------+--------------+-----------------+
| 7   | transmission    | up    | 12.1-RELEASE | 172.x.xx.xxx    |
+-----+-----------------+-------+--------------+-----------------+

nas1% ls /mnt/volume2/iocage/releases/
11.1-RELEASE    11.2-RELEASE    11.3-RELEASE    11.4-RELEASE    12.1-RELEASE    12.2-RELEASE



Sure I can build a new jail but I am puzzled by the fact that I cannot upgrade the jail while I could update the others without issues.

Am I missing something?
 
Last edited:
Top