12-13-2011, 02:45 PM | #1 |
Connoisseur
Posts: 99
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
|
Errors on Mac when library is on file server
Running Mac. I've put the Calibre library on a Windows File Server. Everything works fine until the Mac suspends while Calibre is running. When you wake it up and try to perform any operation in Calibre is either says there are no formats:
calibre, version 0.8.30 ERROR: Format unavailable: Selected books have no formats Then when the app exits, it says: calibre, version 0.8.30 ERROR: Unhandled exception: <b>DatabaseException</b>:disk I/O error RemoteTraceback (most recent call last): File "site-packages/calibre/library/sqlite.py", line 271, in run File "site-packages/calibre/library/sqlite.py", line 166, in get OperationalError: disk I/O error Traceback (most recent call last): File "site-packages/calibre/gui2/actions/edit_metadata.py", line 175, in edit_metadata File "site-packages/calibre/gui2/actions/edit_metadata.py", line 195, in do_edit_metadata File "site-packages/calibre/gui2/metadata/single.py", line 976, in edit_metadata File "site-packages/calibre/gui2/metadata/single.py", line 483, in start File "site-packages/calibre/gui2/metadata/single.py", line 508, in do_one File "site-packages/calibre/gui2/metadata/single.py", line 277, in __call__ File "site-packages/calibre/gui2/metadata/basic_widgets.py", line 1181, in initialize File "site-packages/calibre/gui2/languages.py", line 31, in init_langs File "site-packages/calibre/library/database2.py", line 2454, in get_languages_with_ids File "site-packages/calibre/library/sqlite.py", line 314, in run DatabaseException: disk I/O error RemoteTraceback (most recent call last): File "site-packages/calibre/library/sqlite.py", line 271, in run File "site-packages/calibre/library/sqlite.py", line 166, in get OperationalError: disk I/O error |
12-13-2011, 03:09 PM | #2 |
Well trained by Cats
Posts: 30,352
Karma: 58032210
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Calibre is being run more as a 'desktop database'.
The first rule I learned back in (Paradox) DOS days: 'Never suspend' with the DB open. Rule 2: Disable Disc caching, delayed writes can cause grief if all the files don't complete the write before the next fetch. Rule3: Only use a solid (wired) network or you may end up simulating a rule 1or2 violation. |
Advert | |
|
12-13-2011, 03:33 PM | #3 |
Connoisseur
Posts: 99
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
|
followup
Thanks
It is a wired network. Disable disk caching where? A Calibre setting somewhere or the OS? |
12-13-2011, 03:50 PM | #4 | |
Well trained by Cats
Posts: 30,352
Karma: 58032210
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Intel wired NIC's have a power management property defaulted to allow to sleep to save power. (and it does NOT appear in the Power Management settings, where you would expect ) Disk caching is and advanced setting in the O/S (usually near setting of VM or drive properties) : Allow fast removal is the wording for USB drives (they keep changing the location and wording, depending on OS version) |
|
12-13-2011, 04:06 PM | #5 |
Connoisseur
Posts: 99
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
|
I guess Mac is the issue
Thanks again,
I can't see any obvious way to affect the cache behavior on Mac Lion. I think that unless Calibre could detect that it's host had just returned from a sleep state and reinit its network connections, that the situation is probably hopeless. This prompts a different question. Can the Calibre app access a library and perform all its functions if the library is hosted on the calibre-server or is that only for use by e-book readers? |
Advert | |
|
12-13-2011, 06:03 PM | #6 | |
Well trained by Cats
Posts: 30,352
Karma: 58032210
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Calibre is currently a single system program(it is run on any of the supported platforms) There is a (read/fetch only) part that allows a remote to browse or fetch a copy using a standard web browser. No data changes are possible. It is called the Calibre content server and is configured in Preferences: Sharing... No limit (only O/S limited) on number of users. The GUI is the normal way data is added or changed. Only one of these may access the Library at one time. Another way to maintain data is Client-Host (Remote control) where the client (any OS) accesses the host using VNC or something similar. This works cross platform, the only warning is to Not set the host to reboot on loss of connection. |
|
12-13-2011, 07:27 PM | #7 |
Connoisseur
Posts: 99
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
|
Thank you
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Delete 1 books format of open file gives DB errors ? | pchrist7 | Library Management | 3 | 12-09-2011 12:03 PM |
Epub errors with invisible Mac files | Schlutek | General Discussions | 6 | 07-21-2011 04:50 PM |
validation - 59 errors OPF file | LostSock | ePub | 15 | 06-29-2011 02:26 PM |
Calibre server on Mac | kakkalla | Calibre | 4 | 01-19-2011 06:52 AM |
PRS-50x, USB and file errors | maxk | Sony Reader | 2 | 11-28-2007 11:02 PM |