Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-17-2014, 05:26 PM   #31
erwin1234
Member
erwin1234 doesn't littererwin1234 doesn't littererwin1234 doesn't litter
 
Posts: 23
Karma: 244
Join Date: Jul 2012
Device: Sony PRS-T1
Quote:
Originally Posted by eschwartz View Post
Lots of people doing multiple-computer-access sync the files, so only the changes need to be copied over.
Yes, that is the way to go, but that is not what kenmac999 is doing with his script. Read the thread before replying please.
erwin1234 is offline   Reply With Quote
Old 01-17-2014, 05:31 PM   #32
erwin1234
Member
erwin1234 doesn't littererwin1234 doesn't littererwin1234 doesn't litter
 
Posts: 23
Karma: 244
Join Date: Jul 2012
Device: Sony PRS-T1
Quote:
Originally Posted by theducks View Post
erwin
Timing, caching and locking are the biggest banes to a shared network

(this assumes a caseless solution to OS filenames will be implemented)

Any change requires a full lock on (server side) for all affected records AND FILES/Folders

All local caches of data for those must be flushed and Locked, (then refreshed at the end of the change transaction)

BTW the locking system needs to be OS independent
I am not sure why you post this, to what question is this an answer? Is this the way calibre is working? Is it transaction based? Does it do file locking? Are you familiar with the code?

It seems even simple file copy/move/rename operations fail if you operate calibre via a network mapped drive letter. That still strikes me as strange.
erwin1234 is offline   Reply With Quote
Old 01-17-2014, 06:26 PM   #33
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: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by erwin1234 View Post
Yes, that is the way to go, but that is not what kenmac999 is doing with his script. Read the thread before replying please.
Am I not allowed to suggest things now?
eschwartz is offline   Reply With Quote
Old 01-17-2014, 07:29 PM   #34
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: 31,094
Karma: 60358908
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 erwin1234 View Post
I am not sure why you post this, to what question is this an answer? Is this the way calibre is working? Is it transaction based? Does it do file locking? Are you familiar with the code?

It seems even simple file copy/move/rename operations fail if you operate calibre via a network mapped drive letter. That still strikes me as strange.
Those are Requirement to be successful on a network.
AFAIK Calibre does none, which is why it is single user. It can't even abide delayed writes.
theducks is online now   Reply With Quote
Old 01-19-2014, 12:57 PM   #35
CRussel
(he/him/his)
CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.
 
CRussel's Avatar
 
Posts: 12,296
Karma: 80074820
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Oasis (Gen3),Paperwhite (Gen10), Voyage, Paperwhite(orig), iPad Air M3
Calibre works fine on a network share IF you understand that it must ALWAYS be single user. The issue isn't the network share, it's the multiple user access. Because, as theducks points out, you need to actually lock files and folders if you're going to allow multiple people to have access at the same time.

Doing this in a platform independent manner is usually done with a relational database where the smarts are built into the database. But changing to that kind of back end would turn Calibre into a very different program. Instead, to provide transparent access to your books at all times, even if Calibre goes away, Kovid and the developers have chosen what is, essentially, a flat-file system. I can perfectly understand that decision. Even though it's a minor nuisance for me personally. I'd still rather have it this way than to have all my books hiding inside a relational database.
CRussel is offline   Reply With Quote
Old 01-19-2014, 03:03 PM   #36
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: 31,094
Karma: 60358908
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 CRussel View Post
Calibre works fine on a network share IF you understand that it must ALWAYS be single user. The issue isn't the network share, it's the multiple user access. Because, as theducks points out, you need to actually lock files and folders if you're going to allow multiple people to have access at the same time.

Doing this in a platform independent manner is usually done with a relational database where the smarts are built into the database. But changing to that kind of back end would turn Calibre into a very different program. Instead, to provide transparent access to your books at all times, even if Calibre goes away, Kovid and the developers have chosen what is, essentially, a flat-file system. I can perfectly understand that decision. Even though it's a minor nuisance for me personally. I'd still rather have it this way than to have all my books hiding inside a relational database.
I would not call Calibre a flatfile system, but some sort of hybrid.

It would take a lot (HUGE) of work, but Calibre could probably be turned into a true client-server.
OMG getting it to work on 3 OS

I can imagine the support nightmares for the basic (typical) desktop user, just setting up the client and the server (the can be on the same machine), then add the complexity of additional clients boggles.

It is quite possible that the GUI would not change, only what happens behind it.
theducks is online now   Reply With Quote
Old 01-20-2014, 04:39 AM   #37
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
Perhaps the calibre database server backend could be optional and run as an appliance from inside a virtual machine. That way only the client(s) have to be multi platform.
Adoby is offline   Reply With Quote
Old 01-20-2014, 01:01 PM   #38
CRussel
(he/him/his)
CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.
 
CRussel's Avatar
 
Posts: 12,296
Karma: 80074820
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Oasis (Gen3),Paperwhite (Gen10), Voyage, Paperwhite(orig), iPad Air M3
Quote:
Originally Posted by theducks View Post
I would not call Calibre a flatfile system, but some sort of hybrid.
Fair enough. Though it bears a startling resemblance from what I can see to an avowedly flatfile, client/server, system I supported in my past. I wasn't trying to denigrate, merely describe.

Quote:
It would take a lot (HUGE) of work, but Calibre could probably be turned into a true client-server.
OMG getting it to work on 3 OS

I can imagine the support nightmares for the basic (typical) desktop user, just setting up the client and the server (the can be on the same machine), then add the complexity of additional clients boggles.

It is quite possible that the GUI would not change, only what happens behind it.
Oh, I absolutely agree. This is a completely non-trivial change. And I'm not at all sure it's worth the effort. Really. It is, after all, basically a single user app and I don't honestly have a problem with that. Yes, it would be nice to be able to stick it on the Terminal Server and let anyone in the house connect to it simultaneously. But it's hardly necessary.

One alternative might be to set a "read-only" flag for the second user connecting to a library. Sort of like Word does with a document that is open by another user. The second user could transfer stuff to their eReader or even read a book, but couldn't make changes to metadata or add books.
CRussel is offline   Reply With Quote
Old 01-25-2014, 08:10 AM   #39
erwin1234
Member
erwin1234 doesn't littererwin1234 doesn't littererwin1234 doesn't litter
 
Posts: 23
Karma: 244
Join Date: Jul 2012
Device: Sony PRS-T1
Focus?

I appreciate the discussions and suggestions to make calibre multi-user and the difficulties to overcome when transforming calibre into a true networked client server architecture. These are recognized. But this discussion is off-topic and diverges from the main subject of the thread, which is not about multi user (the author is working on this) but about single user access to a networked drive.

So please let me repeat my observation in a different way: why has calibre problems to do simple file operarations on single files (the files and folders of the ebook data themselves) on a networked drive (or mapped -letter). Even so in a completely Win7 environment (so win7 client win7 server over network). I do not know any other software that does work on a local hardrive D:\ but not on a networked mapped network drive D:\. What is so special about calibre file I/O, please explain.

Quote:
Originally Posted by CRussel View Post
Calibre works fine on a network share IF you understand that it must ALWAYS be single user.
Well, this is exactly the point: it is NOT working fine! Please test it yourself and post here what your findings are!

Last edited by erwin1234; 01-25-2014 at 08:16 AM.
erwin1234 is offline   Reply With Quote
Old 01-25-2014, 08:54 AM   #40
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)
I have no problem holding the library book files on a networked drive and the metadata database locally. Things tend to go wrong if I also try to put the metadata database onto the network drive. This leads me to believe that it is something about the interactions between calibre and its metadata database that tend to go wrong when this database is on a network drive.
itimpi is online now   Reply With Quote
Old 01-25-2014, 09:11 AM   #41
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
Also, if/when calibre really becomes multiuser, then that implies that the problems with access over the network has been solved. Perhaps the two are not directly related, but multiuser support necessitate network access.
Adoby is offline   Reply With Quote
Old 01-25-2014, 09:21 AM   #42
CRussel
(he/him/his)
CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.
 
CRussel's Avatar
 
Posts: 12,296
Karma: 80074820
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Oasis (Gen3),Paperwhite (Gen10), Voyage, Paperwhite(orig), iPad Air M3
Quote:
Originally Posted by erwin1234 View Post
Well, this is exactly the point: it is NOT working fine! Please test it yourself and post here what your findings are!
I use it that way every day. My Library resides on K:\, which is a mapped network share to my Windows Storage Server.
CRussel is offline   Reply With Quote
Old 01-27-2014, 07:13 AM   #43
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,079
Karma: 14079267
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by CRussel View Post
I use it that way every day. My Library resides on K:\, which is a mapped network share to my Windows Storage Server.
Same here on my Synology NAS (Linux + Samba, effectively).
mbovenka is online now   Reply With Quote
Old 01-30-2014, 04:12 AM   #44
theeye23
Junior Member
theeye23 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2013
Device: none
I use calibre portable, after I put the calibre portable to our server and share the folder and mapped it to a network drive, I set the security permission of the Library folder only to read-only for everyone except me, that way, only I can change the book, though they can still change the preferences. It's ok, at least they will not ruin the e-books. It's still working fine.
theeye23 is offline   Reply With Quote
Old 02-01-2014, 05:05 AM   #45
erwin1234
Member
erwin1234 doesn't littererwin1234 doesn't littererwin1234 doesn't litter
 
Posts: 23
Karma: 244
Join Date: Jul 2012
Device: Sony PRS-T1
Quote:
Originally Posted by CRussel View Post
I use it that way every day. My Library resides on K:\, which is a mapped network share to my Windows Storage Server.
Very interesting. I would like to know why it works with windows storage server and not with my config which is on a windows 7 ultimate mapped network share.

Just re-checked with latest calibre 1.22.0.
1. install calibre. Enable debug mode, debug file is in \Appdata\local\temp.
2. create new library on network share on map drive on server S:\, full access on share, full admin access on server
3. import some ebooks. This works fine. All folders and files are created allright
4. change metadata -> change title of book. Press ok. This does not work. I get the famous error again:

calibre, version 1.22.0
FOUT: Toegang geweigerd: Kan van dit boek de locatie op de harde schijf niet wijzigen. Is dit boek geopend in een ander programma?

Traceback (most recent call last):
File "site-packages\calibre\gui2\metadata\basic_widgets.py", line 102, in commit
File "site-packages\calibre\db\legacy.py", line 814, in func
File "site-packages\calibre\db\cache.py", line 57, in call_func_with_lock
File "site-packages\calibre\db\cache.py", line 969, in set_field
File "site-packages\calibre\db\cache.py", line 983, in update_path
File "site-packages\calibre\db\backend.py", line 1428, in update_path
File "site-packages\calibre\db\backend.py", line 1230, in copy_cover_to
File "site-packages\calibre\utils\filenames.py", line 397, in copy_path_to
File "site-packages\calibre\startup.py", line 155, in local_open
OSError: [Errno 13] Permission denied


I pressed cancel and did a second rename. In the library folder, the new title folders are all there (so three folders now for the same one book), but the files are not ok. In the first rename the epub has been renamed and the cover.jpg is there, the second time the rename of the epub failed and the third folder only has the cover.jpg. This file cover.jpg also remains in the first (original) folder.

So all sorts of renaming/copying/moving goes wrong. That is why I have my main library read-only on the network share now.

The debug mode does not help here, there are NO error messages in the debug file.

You are lucky it works for you..

Last edited by erwin1234; 02-01-2014 at 05:24 AM.
erwin1234 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which port will Calibre connect to a network share? awj Devices 3 03-02-2013 10:14 AM
Calibre with library on mapped network drive litiki777 Related Tools 1 10-30-2012 05:31 AM
Kobo & Calibre library over network Issachar Which one should I buy? 7 12-20-2011 11:19 PM
Calibre with OS X 10.6 Network User fiveandfriends Devices 0 03-03-2011 12:15 PM
Calibre performance over the network mrwindex Calibre 11 07-30-2009 12:45 AM


All times are GMT -4. The time now is 08:15 AM.


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