02-01-2014, 05:22 AM | #46 | |
Member
Posts: 22
Karma: 244
Join Date: Jul 2012
Device: Sony PRS-T1
|
Quote:
You do not have to solve the network file access problem, it will just not be needed anymore. I can imagine that Kovid wants to avoid network file access competely and use a database driven approach. So all data is going over the network using database requests, the client connects to the database on the server transparantly, only the calibre server manipulates the files, locally, on the server. You could even connect over the internet this way and add and manipulate books and metadata. So until there is a multiuser networked calibre, my single user library-on-network-share issue is still relevant |
|
02-01-2014, 05:54 AM | #47 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
maybe you need to see what cached-write settings windows is using on the networked drives. Your issues may go away if you disbale all write caching - just a thought.
by default AFAIK windows sets removable drive to don't cache, fixed drives to cache - not sure what it does with network mapped drives... As what works for others is not working for you, and you all have the same calibre software, it is likely that windows file management settings are the differentiating factor. |
Advert | |
|
02-02-2014, 09:40 AM | #48 |
(he/him/his)
Posts: 12,159
Karma: 79742714
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Oasis (Gen3),Paperwhite (Gen10), Voyage, Paperwhite(orig), Fire HD 8
|
One thing to check if you're trying to use Calibre across a network share. Make sure that you have mapped the drive from both your user logon and elevated. I do this from each of two command line windows, one regular and one as administrator. (The windows I use are actually PowerShell, but a cmd window will be the same for this.) Type:
Code:
Net use K: \\server\share Something that Calibre is doing seems to need that administrative connection. |
02-11-2014, 10:46 PM | #49 |
Junior Member
Posts: 1
Karma: 10
Join Date: Feb 2014
Device: pc (win/freebsd)/android phone
|
you might kill your "calibre library" while accessing it from several devices at once. It's using SqLite and SqLite is single-user database. Multiple accesses may very easily corrupt the whole thing.
|
08-30-2014, 01:09 AM | #50 |
Junior Member
Posts: 1
Karma: 10
Join Date: Aug 2014
Device: calibre
|
I got the „OSError: [Errno 13] Permission denied“ after made a software update on my Synology DS211 NAS. Before calibre worked perfect for years in my single user environment.
I debugged the source code and found these lines in filenames.py: # try: # windows_hardlink(path, dest) # return # except: # pass … def windows_hardlink(src, dest): import win32file, pywintypes try: win32file.CreateHardLink(dest, src) except pywintypes.error as e: msg = u'Creating hardlink from %s to %s failed: %%s' % (src, dest) raise Exception(msg % e) src_size = os.path.getsize(src) # We open and close dest, to ensure its directory entry is updated # see http://blogs.msdn.com/b/oldnewthing/.../10251026.aspx for i in range(10): # If we are on a network filesystem, we have to wait for some indeterminate time, since # network file systems are the best thing since sliced bread try: if windows_get_size(dest) == src_size: return except EnvironmentError: pass time.sleep(0.3) For me it’s a bit weird to use a hardlink on a linux/samba based fileserver. I downloaded the calibre source from http://calibre-ebook.com/get-involved and switched to development mode as described in http://manual.calibre-ebook.com/develop.html. I commented out windows_hardlink call. Calibre 2 now works perfect again without any errors when importing or moving books. |
Advert | |
|
08-30-2014, 01:52 PM | #51 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Calibre is not officially supported with the library on a network server. If it works then OK, but if you have problems with the library on a network device then you are on your own.
|
08-30-2014, 02:09 PM | #52 |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Why not use your own simple locking system via a .bat file script? Choose a shared location for your lock file and only launch calibre if the lock file does not exist. On return to the script when calibre closes you then delete the lock file. Then make each user a shortcut to this script in place of the normal calibre shortcut so that they don't run calibre outside of the locking.
This should work as an interim solution although the .bat file will stay open whilst calibre is running and locking could be circumvented by a rogue user deleting the lock file. Last edited by Agama; 08-30-2014 at 02:15 PM. |
09-05-2014, 05:45 PM | #53 | ||
Member
Posts: 22
Karma: 244
Join Date: Jul 2012
Device: Sony PRS-T1
|
Quote:
Quote:
Nice catch. The hardlink should ofcourse also fail on a windows (CIFS/SAMBA) server since hardlinking only works within a local filesystem. Will try this solution! |
||
09-05-2014, 05:47 PM | #54 |
Member
Posts: 22
Karma: 244
Join Date: Jul 2012
Device: Sony PRS-T1
|
I suggested this last year see earlier messages but it is not a solution, the root cause of the error lies elsewhere. Calibre has a problem with a networked filesystem. Although some users have reported success: please read this thread.
Last edited by erwin1234; 09-05-2014 at 05:52 PM. |
09-05-2014, 05:56 PM | #55 |
Member
Posts: 22
Karma: 244
Join Date: Jul 2012
Device: Sony PRS-T1
|
Wow 6,517 views as of today! Kovid are you sure you do not want to come back?
|
09-05-2014, 05:59 PM | #56 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
|
09-05-2014, 07:05 PM | #57 | |
null operator (he/him)
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Not sure if its relevant, but I have found the author of LSE, Herman Shinagl, to be most forthcoming in providing knowledge on obscure issues - e.g. how to get real symbolic links on XP/NTFS. Disclosure : I made a minor contribution to LSE's early development. BR |
|
09-06-2014, 04:06 AM | #58 | |
Handy Elephant
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
|
Quote:
Calibre makes assumptions about the filesystem that are only guaranteed to be true on a local filesystem. And even that may fail if that local filesystem is shared or the files in the calibre library are accessed by other programs while calibre is running. Sometimes accepting reality means adapting. If you don't duck when you try to enter a house with a low doorway, you may end up with severe damage to your head or structural damage to the house. Some day in the future the house may get a bigger doorway, but until then please duck if you want to enter. |
|
09-06-2014, 11:29 PM | #59 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
I wonder if it is also calibre that has problems with Google Drive (renames files out from under you) or with having files simultaneously open in other programs like MSWord or synced by Dropbox/other.
|
|
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 |