Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-04-2016, 07:57 AM   #1
MrX
Member
MrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud of
 
MrX's Avatar
 
Posts: 11
Karma: 27822
Join Date: May 2016
Location: Poland
Device: Kobo Glo HD
Refresh library

Hi
Is there a way to refresh content of my library without restarting Calibre? My DB folder is on network share and I use it with my wife so if one of us adds something it would be great if second instance of Calibre could update itself with this new data. Best way scenario would be to make this happen automaticly but it would be enough if we could hit some button to refresh contents.
MrX is offline   Reply With Quote
Old 06-04-2016, 10:56 AM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by MrX View Post
Hi
Is there a way to refresh content of my library without restarting Calibre? My DB folder is on network share and I use it with my wife so if one of us adds something it would be great if second instance of Calibre could update itself with this new data. Best way scenario would be to make this happen automaticly but it would be enough if we could hit some button to refresh contents.
At the moment Calibre is single user and working from network drives is not officially supported. Trying to make changes on two different machines simultaneously will not work as while Calibre is running a lot of information in RAM, so the two instances would stamp on each other's changes.

I believe that Kovid is planning to solve this issue for Calibre v3.
itimpi is offline   Reply With Quote
Advert
Old 06-04-2016, 11:28 AM   #3
MrX
Member
MrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud of
 
MrX's Avatar
 
Posts: 11
Karma: 27822
Join Date: May 2016
Location: Poland
Device: Kobo Glo HD
Oh, ok. Thanks.
MrX is offline   Reply With Quote
Old 06-04-2016, 12:30 PM   #4
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,454
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 MrX View Post
Oh, ok. Thanks.
Not supported, means things can happen that are NOT good. Do at your own peril (and don't whine when it hits )

Calibre use both the DB and file system , as the Library.
Those 2 pieces MUST match. Unfortunately, not all Network share schemes are transactionaly robust (in timing)

NAS are great for backups of your Library, but not (usually) for the active Library
theducks is offline   Reply With Quote
Old 06-04-2016, 01:32 PM   #5
MrX
Member
MrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud of
 
MrX's Avatar
 
Posts: 11
Karma: 27822
Join Date: May 2016
Location: Poland
Device: Kobo Glo HD
I don't have a NAS per se. I have a custom server with Samba server and the NAS part is one of the things I'm using it for. But thanks for the warning. At the moment everything seems to work fine. I'll set rsnapshot to make backup to be sure.
MrX is offline   Reply With Quote
Advert
Old 06-05-2016, 04:57 PM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Uhm, I assure you if everything is working fine you have no need for a refresh button. Clearly you are not running multiple simultaneous instances.

calibre holds an in-memory copy of the database, and when it is changed, the change is also written to the database file.
Running two copies of calibre simultaneously against the same library database, means that the two copies are writing different transactions against the same database, without knowing anything about the other's state.
THIS WILL INSTANTLY CORRUPT IT! NO IFS ANDS OR BUTS! DO NOT DO IT! REALLY! I MEAN IT!

It's not even a NAS issue -- you can get the same problem if you run calibre twice on the same computer, though calibre enforces a one-instance-at-a-time rule and you will have to get around it by using multiple user logins or cheating with a 1.x version which uses a different locking mechanism or straight-up hacking the code to remove the restriction...
Nevertheless, it is certainly true that a NAS can lead to multiple-simultaneous-instance violations.

Using a NAS* brings with it a raft of other kinda-somewhat-related problems, and I strongly encourage you not to do so. But unlike multiple-simultaneous-instance violation, they aren't automatically fatal. Some people get away with it due to unreliable, non-duplicable magic... at least until their house of cards collapses and releases the magic smoke. (Mixed metaphors? )

In an upcoming calibre v3 release, the Content Server will be expanded with read/write access and calibre will operate on a server/client architecture. At that time, what you want will be possible (and safe).


* -- It doesn't really matter what the implementation or brand is.
eschwartz is offline   Reply With Quote
Old 06-05-2016, 06:30 PM   #7
MrX
Member
MrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud of
 
MrX's Avatar
 
Posts: 11
Karma: 27822
Join Date: May 2016
Location: Poland
Device: Kobo Glo HD
Oh god...Now I'm terrified of even launching Calibre because there may be lurking something in the shadows and waiting to corrupt my soul. :P

Ok. I'll keep that in mind. Fortunately my wife will use both Calibre and Kobo most of the time so the chances of corruption are quite small.
MrX is offline   Reply With Quote
Old 06-05-2016, 06:58 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,454
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 MrX View Post
Oh god...Now I'm terrified of even launching Calibre because there may be lurking something in the shadows and waiting to corrupt my soul. :P

Ok. I'll keep that in mind. Fortunately my wife will use both Calibre and Kobo most of the time so the chances of corruption are quite small.
Readest thou the Official FAQ least the smite thee
or you insert yourself into the

The stickies at the top of these forum groups might help prevent
theducks is offline   Reply With Quote
Old 06-05-2016, 07:17 PM   #9
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,008
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@MrX - FYI - the Official FAQ on the matter does not lurk in a Mobileread Sticky, it is squirreled away in the manual ==>> I am getting errors with my calibre library on a networked drive/NAS?

BR
BetterRed is offline   Reply With Quote
Old 06-06-2016, 03:07 PM   #10
MrX
Member
MrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud of
 
MrX's Avatar
 
Posts: 11
Karma: 27822
Join Date: May 2016
Location: Poland
Device: Kobo Glo HD
I didn't noticed that because I don't have any errors...at the moment at least.
Thanks for the warnings but I'll stick to the SAMBA with daily backups because I find my RAID and backups to be more reliable than HDD in wife's laptop.
And yes, I know I'm doing this at my own risk.
MrX is offline   Reply With Quote
Old 06-06-2016, 08:20 PM   #11
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Well, as long as you are aware it is risky.

As I said, some people seem to have hit on the right magic combination that makes it Just Work... but no one seems to be sure what that magic is. So you are just lucky I guess.

And you might even stay lucky -- assuming you don't actually try to modify the database with two different instances of calibre at the same time.
eschwartz is offline   Reply With Quote
Old 06-07-2016, 05:45 PM   #12
MrX
Member
MrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud ofMrX has much to be proud of
 
MrX's Avatar
 
Posts: 11
Karma: 27822
Join Date: May 2016
Location: Poland
Device: Kobo Glo HD
I don't how Calibre works so it's hard to guess...all I can do is list what my server looks like: Arch Linux 64bit, RAID1 with ext4 file system, Samba 4.4.3 with config:
Code:
create mask = 0664
directory mask = 0775
force create mode = 0664
force directory mode = 0775
map to guest = Bad User
force user = ***
[share]
path = ***
public = yes
available = yes
browsable = yes
writable = yes
*** - yes, those asterisks replaces something that was there :P
MrX is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre - how to refresh library view? hotkey? minsik Library Management 18 09-08-2015 05:54 AM
[626] Is there a way to refresh the library view? Skeeve PocketBook Developer's Corner 4 08-11-2015 01:26 PM
Library refresh after editing metadata kelleybean Library Management 2 01-13-2015 10:10 AM
Refresh library view? Pepin33 Development 4 08-31-2012 06:18 AM
Removing Deleted Files / Refresh the Library pragmortal Calibre 4 09-23-2009 05:51 AM


All times are GMT -4. The time now is 09:45 PM.


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