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 09-03-2021, 12:39 PM   #1
Inukami
Zealot
Inukami began at the beginning.
 
Inukami's Avatar
 
Posts: 145
Karma: 12
Join Date: Jun 2017
Location: Australia
Device: Mac Pro 2013 & Mini 2018, iPad Mini 4, iPhone 11, iBooks, K4Mac/PC
Question Calibre on a NAS Server (Synology DS920+) in 2021

Hi All,

I’m wondering if it is still recommended not to put a calibre library on a NAS Server (Synology)? Or if there is a way to do this safely...

In past posts and on the calibre FAQ it still says ‘Do not put your calibre library on a networked drive’ where it recommended not to put calibre on a networked drive.

The posts are from a while ago so thought I would start a new discussion. Hardware and software has changed so wondering if recommendation has changed?

MobileRead

Reddit

There appears to be TWO ways in which you could access a calibre library from a NAS
  1. Install Calibre on your sinology NAS using Docker (May 2021) by Marius Bogdan Lixandru (if your NAS can do this which mine can)
  2. Install files and database on NAS and use calibre from computer to access books

I currently have one of my libraries installed using option 2 (as a sort of test) and I can access it from my Mac mini and my laptop (or any computer with calibre installed and access to the NAS). It's really useful obviously to use NAS as I can access wherever in the house and in particular one of my libraries is very large (manga library) so don’t want to put on computer.

Is it still recommended not to access calibre library from a NAS? If so, why not? For those who tried and it didn't work, what did it do? Corrupt files etc...?

If it is okay, which is best configuration (option 1 or 2 mentioned above or some other option)? And if you are using NAS, what do you do for backups / how do you do backups? Other things to make it safe to use?

Greatly appreciate any advice.

Thanks

Inukami
Inukami is offline   Reply With Quote
Old 09-03-2021, 01:38 PM   #2
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,554
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Nothing has changed, you still risk data loss putting your calibre library on a NAS. The way to do this safely is to run the calibre content server ona central machine and connect to it from other computers.
kovidgoyal is online now   Reply With Quote
Old 09-10-2021, 02:30 AM   #3
Inukami
Zealot
Inukami began at the beginning.
 
Inukami's Avatar
 
Posts: 145
Karma: 12
Join Date: Jun 2017
Location: Australia
Device: Mac Pro 2013 & Mini 2018, iPad Mini 4, iPhone 11, iBooks, K4Mac/PC
Thanks @kovid for your response.

When you say run calibre content server on central machine and connect from other computers, do you mean connect on the browser or is there a way to open the database/books in the calibre software? The content server on browser is not ideal for me for editing etc...and would prefer to do it from the software on the laptop (if for example main library on mac mini). But if running content server on one computer, you can't access that database on another computer running calibre can you? Only via the browser?

Could you also access the database through two macs network locations (not the NAS)? Would this be using the Connect to folder feature? Or would this not work?

Thanks,

Inukami
Inukami is offline   Reply With Quote
Old 09-10-2021, 03:00 AM   #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,554
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
via the browser, there is no support for using a networked backend with the main calibre program. If you want to do that, then maintain your library on one main computer and use rsync or similar to copy the library from there to your server. The copy needs to be one way.
kovidgoyal is online now   Reply With Quote
Old 09-10-2021, 03:12 AM   #5
Inukami
Zealot
Inukami began at the beginning.
 
Inukami's Avatar
 
Posts: 145
Karma: 12
Join Date: Jun 2017
Location: Australia
Device: Mac Pro 2013 & Mini 2018, iPad Mini 4, iPhone 11, iBooks, K4Mac/PC
Thanks Kovid.

Inukami
Inukami is offline   Reply With Quote
Old 09-12-2021, 08:26 PM   #6
BrightSquirrel
Junior Member
BrightSquirrel began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Sep 2021
Device: Kindle Oasis
I do not know if this is recommended, and your mileage may vary, and this might not help, but I have a NextCloud server and use that to sync between it and my computer. I Calibre pointed at the library that is synced on the local computer.

Never had an issue or any data loss. Been doing this for a couple of years now.
BrightSquirrel is offline   Reply With Quote
Old 09-17-2021, 12:25 PM   #7
CubGeek
Connoisseur
CubGeek began at the beginning.
 
Posts: 52
Karma: 10
Join Date: Sep 2021
Location: Upstate NY, USA
Device: iPad Pro, Kindle basic
Quote:
Originally Posted by kovidgoyal View Post
Nothing has changed, you still risk data loss putting your calibre library on a NAS. The way to do this safely is to run the calibre content server ona central machine and connect to it from other computers.
Would mind expanding on this answer, please? I (and I suspect others) have a NAS that's in a RAID specifically to prevent data loss. Thanks!
CubGeek is offline   Reply With Quote
Old 09-17-2021, 02:03 PM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,447
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by CubGeek View Post
Would mind expanding on this answer, please? I (and I suspect others) have a NAS that's in a RAID specifically to prevent data loss. Thanks!
We are not talking corruption at the filesystem level (what RAID fights).

Calibre does many file and database entries that MUST remain in lockstep.
Also 2 simultaneous users might cause a clash as the write is from a memory version (and the other has no way of knowing things changed).
Calibre is not a true Client - server app. There are no File - record lock type interactions.
theducks is offline   Reply With Quote
Old 09-17-2021, 03:09 PM   #9
CubGeek
Connoisseur
CubGeek began at the beginning.
 
Posts: 52
Karma: 10
Join Date: Sep 2021
Location: Upstate NY, USA
Device: iPad Pro, Kindle basic
Quote:
Originally Posted by theducks View Post
We are not talking corruption at the filesystem level (what RAID fights).

Calibre does many file and database entries that MUST remain in lockstep.
Also 2 simultaneous users might cause a clash as the write is from a memory version (and the other has no way of knowing things changed).
Calibre is not a true Client - server app. There are no File - record lock type interactions.
Ah, it's not a true server/client. That helps to make more sense. Thankyou for the clarification! Appreciate it.
CubGeek is offline   Reply With Quote
Old 09-18-2021, 12:13 AM   #10
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,554
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by CubGeek View Post
Would mind expanding on this answer, please? I (and I suspect others) have a NAS that's in a RAID specifically to prevent data loss. Thanks!
There's nothing to expand, network filesystems are all broken, they break various integrity guarantees that calibre makes use of for efficient file operations. So keeping the library on a network filesystem will eventually lead to data loss, because of bugs in the network filesystem drivers. Use the calibre content server if you want true networked access.

Networked filesystem basically work only if you restrict yourself to simple file copy operations and nothing else. calibre does much more than that.
kovidgoyal is online now   Reply With Quote
Old 09-18-2021, 02:46 AM   #11
CubGeek
Connoisseur
CubGeek began at the beginning.
 
Posts: 52
Karma: 10
Join Date: Sep 2021
Location: Upstate NY, USA
Device: iPad Pro, Kindle basic
Quote:
Originally Posted by kovidgoyal View Post
There's nothing to expand, network filesystems are all broken, they break various integrity guarantees that calibre makes use of for efficient file operations. So keeping the library on a network filesystem will eventually lead to data loss, because of bugs in the network filesystem drivers. Use the calibre content server if you want true networked access.

Networked filesystem basically work only if you restrict yourself to simple file copy operations and nothing else. calibre does much more than that.
No need to be snippy when someone politely asks you for more information. Especially when the reasoning for such a sweeping statement wasn't part of your initial posting.

As for your suggestion, I have been working on setting up calibre-server on a headless server. So, thanks for that. Unfortunately, through no fault of yours, I'm sure, the arm64 repos are out-of-date (as we discussed in the recent thread about calibredb throwing a python error).

And, even with current a version running on an x64 Windows 10 system I can't make it do what I want, so I'm left weighing how much time and effort will be needed to learn how to make the software do what I want (or if it's even possible at all).

So, again, thanks for your efforts in creating the software. Even if I don't end up using it, it's definitely a powerful piece of coding.
CubGeek is offline   Reply With Quote
Reply

Tags
2021, calibre, nas, networked drive, synology


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre on multiple computers while running server on a Synology NAS irishtexmex Calibre 0 07-12-2017 11:11 AM
Calibre on a Mac and chronosync issue with a Synology NAS hugoheitz Devices 0 05-04-2017 07:01 AM
Calibre Cloud Pro & Synology NAS Togsie Related Tools 2 04-29-2015 07:53 PM
Calibre with Synology NAS Johan1974 Devices 7 10-17-2013 06:24 PM


All times are GMT -4. The time now is 05:48 AM.


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