Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 01-26-2021, 12:18 PM   #1
ChrisRM
Junior Member
ChrisRM began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2012
Device: Kindle
Question RPi server with catalogue on FreeNAS?

G'day!

I'm trying to set up a RPi Content Server to manage the pile of books on my FreeNAS server. Currently the family uses Calibre on macOS or Windows but I was hoping to have just a single content server to which all the family devices (Kindle, phones, Ipad, whatever) could get books from.
Having said that and started to install RPi Calibre, I'm now looking for a way to get Calibre to look outside the RPi for its 'new' database. I want it to use the one on the FreeNAS, so as not to duplicate the books and lose the resilience of the NAS, but I can't find a way to get RPi Calibre to use a symlink or to look outside the SD card. Have I missed an obvious post that says either how to do it or destroys my hopes?

thanks,

Chris M
ChrisRM is offline   Reply With Quote
Old 01-26-2021, 01:04 PM   #2
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,100
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by ChrisRM View Post
G'day!

I'm trying to set up a RPi Content Server to manage the pile of books on my FreeNAS server. Currently the family uses Calibre on macOS or Windows but I was hoping to have just a single content server to which all the family devices (Kindle, phones, Ipad, whatever) could get books from.
Having said that and started to install RPi Calibre, I'm now looking for a way to get Calibre to look outside the RPi for its 'new' database. I want it to use the one on the FreeNAS, so as not to duplicate the books and lose the resilience of the NAS, but I can't find a way to get RPi Calibre to use a symlink or to look outside the SD card. Have I missed an obvious post that says either how to do it or destroys my hopes?

thanks,

Chris M
https://manual.calibre-ebook.com/faq...rked-drive-nas


bernie
gbm is offline   Reply With Quote
Advert
Old 01-26-2021, 02:05 PM   #3
ChrisRM
Junior Member
ChrisRM began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2012
Device: Kindle
Ah, yes, that's quite clear at first sight, and yet...

This is from the middle of that FAQ:
'Consider using the calibre Content server to make your books available on other computers. Run calibre on a single computer and access it via the Content server or a Remote Desktop solution.'

That's pretty much what I wanted to do, with the RPi Content Server managing the distribution and the NAS RAID-Z2 store keeping the books safe. I have no problem securing the drive share such that only the RPi can see it, but I don't see how to tell the RPi to look offboard at the symlink/share/whatever...

The comment re network filesystems seems unlikely to be relevant to FreeNAS (now TrueNAS) as it strives to be faithful to the RFCs rather than implementations. It still seems likea good idea, if only I could get the RPi to look elsewhere. Oh well.
ChrisRM is offline   Reply With Quote
Old 01-26-2021, 09:26 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,149
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
not sure what you are asking. calibre libraries are just folders and as long as they are mounted on the filesystem read/write they can be used by calibre. And as gbm pointed out, putting your calibre library on a NAS is etremely perilous.
kovidgoyal is offline   Reply With Quote
Old 01-27-2021, 07:02 AM   #5
ChrisRM
Junior Member
ChrisRM began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2012
Device: Kindle
Quote:
Originally Posted by kovidgoyal View Post
not sure what you are asking. calibre libraries are just folders and as long as they are mounted on the filesystem read/write they can be used by calibre. And as gbm pointed out, putting your calibre library on a NAS is etremely perilous.
As long as the library share is inaccessible to anything but Calibre, I'm likely to favour a RAID-Z2 setup for a library over a SD card. My problem is that I can't see how to get RPi Calibre to open anything other than the SD card for its library. On the initial setup screen, the file selecter popup is pre-loaded to look only for files of type 'Library' and a symlink pointing elsewhere is not visible. It may simply be that RPi Calibre is limited in this way but I can't see that documented anywhere...
ChrisRM is offline   Reply With Quote
Advert
Old 01-27-2021, 07:10 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,149
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can type whatever path you like in the welcome wizard to choose a library and you can further change the library calibre points to after its first run as well.
kovidgoyal is offline   Reply With Quote
Old 01-27-2021, 07:36 AM   #7
ChrisRM
Junior Member
ChrisRM began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2012
Device: Kindle
Apparently not on the RPi 3.39.1 version, which is what I got as the latest thing. It's odd, as the RPi file manager can get to the SMB share and display the files, including all the metadb files but Calibre can't. Taking the pacmanfm file path from the display and pasting it into Calibre 'Choose location for library' popup gets the 'Directory not found' error. Doesn't look like RPi as the manager for the library is a goer. TrueNAS is built on FreeBSD, so that's not going anywhere with Calibre. Mayhap a Windows VM running on the TrueNAS....

Thanks for your help, I'll give this one up.
ChrisRM is offline   Reply With Quote
Old 01-27-2021, 12:53 PM   #8
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,100
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by ChrisRM View Post
Apparently not on the RPi 3.39.1 version, which is what I got as the latest thing. It's odd, as the RPi file manager can get to the SMB share and display the files, including all the metadb files but Calibre can't. Taking the pacmanfm file path from the display and pasting it into Calibre 'Choose location for library' popup gets the 'Directory not found' error. Doesn't look like RPi as the manager for the library is a goer. TrueNAS is built on FreeBSD, so that's not going anywhere with Calibre. Mayhap a Windows VM running on the TrueNAS....

Thanks for your help, I'll give this one up.
You need to mount the share then calibre should be able to access it--at least that worked with my setup just now.

Take a look at this thread the Calibre-Portable.sh:

Quote:
Shell script File to start a Calibre configuration on Linux
# giving explicit control of the location of:
# - Calibre Program Files
# - Calibre Library Files
# - Calibre Config Files
# - Calibre Metadata database
# - Calibre Source files
# - Calibre Temp Files
# By setting the paths correctly it can be used to run:
# - A "portable calibre" off a USB stick.
# - A network installation with local metadata database
# (for performance) and books stored on a network share

# - A local installation using customised settings
#
You can find the file in /opt/calibre/resources

YMMV

Good luck
bernie
gbm is offline   Reply With Quote
Old 01-31-2021, 06:51 AM   #9
ChrisRM
Junior Member
ChrisRM began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2012
Device: Kindle
Quote:
Originally Posted by gbm View Post
You need to mount the share then calibre should be able to access it--at least that worked with my setup just now.

Take a look at this thread the Calibre-Portable.sh:


You can find the file in /opt/calibre/resources

YMMV

Good luck
bernie
Regrettably, not on RPi 3.39.1, that file does not exist and nor does that path. <sigh>
ChrisRM is offline   Reply With Quote
Old 01-31-2021, 11:57 AM   #10
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,100
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by ChrisRM View Post
Regrettably, not on RPi 3.39.1, that file does not exist and nor does that path. <sigh>
So what version of calibre are you using? You should be able to do a search for it. That is assuming that the person who built calibre for RPI ARM did just a standard build.

bernie

If you are using calibre on a window pc then you can find Calibre-Portable.sh in:
C:\Program Files\Calibre2\app\resources

Last edited by gbm; 01-31-2021 at 12:22 PM.
gbm is offline   Reply With Quote
Old 01-31-2021, 02:24 PM   #11
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 37,914
Karma: 150333332
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by gbm View Post
So what version of calibre are you using? You should be able to do a search for it. That is assuming that the person who built calibre for RPI ARM did just a standard build.
From the posts, the OP is running calibre 3.39.1 (a rather old version) on a Raspberry Pi (so needs an ARM port of calibre). If he wants an up to date version of calibre, he is likely going to need to install Arch Linux.
DNSB is offline   Reply With Quote
Old 01-31-2021, 05:15 PM   #12
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
Is it safe to put the calibre libraries on a NAS if it's only accessed from, in my case, my one and only Windows computer? I was thinking that a raid 5 setup with 3 or more drives would be safer than my random once a month backups to a USB drive. And I'm hoping that a NAS will do all of the SMB things that Windows needs.
hobnail is offline   Reply With Quote
Old 01-31-2021, 09:09 PM   #13
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 37,914
Karma: 150333332
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by hobnail View Post
Is it safe to put the calibre libraries on a NAS if it's only accessed from, in my case, my one and only Windows computer? I was thinking that a raid 5 setup with 3 or more drives would be safer than my random once a month backups to a USB drive. And I'm hoping that a NAS will do all of the SMB things that Windows needs.
It all depends on the implementation on the NAS. For the units that I tested a few years back, none passed the Microsoft File Server Family Test Suite which is designed to test implementations of file server protocol family including MS-SMB2, MS-DFSC, MS-SWN, MS-FSRVP, MS-FSA, MS-FSCC, MS-RSVD and MS-SQOS with any consistency. Admittedly some of those are a bit obscure but something that should be essential such as file locking failed on several of the NAS units I got to test. Admittedly, the final solution we went with was a Nimble all-SSD SAN.
DNSB is offline   Reply With Quote
Old 01-31-2021, 09:44 PM   #14
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by DNSB View Post
It all depends on the implementation on the NAS. For the units that I tested a few years back, none passed the Microsoft File Server Family Test Suite which is designed to test implementations of file server protocol family including MS-SMB2, MS-DFSC, MS-SWN, MS-FSRVP, MS-FSA, MS-FSCC, MS-RSVD and MS-SQOS with any consistency. Admittedly some of those are a bit obscure but something that should be essential such as file locking failed on several of the NAS units I got to test. Admittedly, the final solution we went with was a Nimble all-SSD SAN.
Did also you run the tests against a Windows Server?
hobnail is offline   Reply With Quote
Old 01-31-2021, 09:45 PM   #15
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 37,914
Karma: 150333332
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by hobnail View Post
Did also you run the tests against a Windows Server?
Yes. Server 2012 R2 and Server 2016 pre-release.
DNSB is offline   Reply With Quote
Reply

Tags
freenas, rpi


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying multiple physical libraries from Mac to RPi mdclanahan Library Management 8 03-08-2020 09:50 PM
Android catalogue app using calibre catalogue amokima Reading and Management 1 12-02-2017 03:37 PM
same catalogue across different OS alanHd Library Management 0 04-03-2013 06:15 PM
freenas jfpilon Calibre 2 01-05-2012 10:23 AM


All times are GMT -4. The time now is 05:21 PM.


MobileRead.com is a privately owned, operated and funded community.