Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-07-2012, 07:38 AM   #1
craigf48
Junior Member
craigf48 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2012
Device: Sony
Calibre library locked when reading from virtual machine

Hi,

I've re-built my machine with a fresh install of Windows 7 64 bit. Before this I was running Windows XP and had Calibre installed and had my library working fine, great.

I've created a virtual machine using VMware Player, installed Windows7 64 bit and Calibre on that. Why? I'm using a virtual machine for any non-critical software so that next time I upgrade I can just copy it over instead of re-installing thousands of programs.

Anyway, I've installed Calibre on the virtual machine and am trying to use the Switch/Create Library option. As soon as I point to my old library on my host machine it says:
Quote:
The library database at <location> appears to be corrupted.
Dump of the details
Quote:
Traceback (most recent call last):
File "site-packages\calibre\gui2\ui.py", line 489, in library_moved
File "site-packages\calibre\library\database2.py", line 220, in __init__
File "site-packages\calibre\library\database2.py", line 329, in initialize_dynamic
File "site-packages\calibre\library\sqlite.py", line 314, in run
DatabaseException: attempt to write a readonly database
RemoteTraceback (most recent call last):
File "site-packages\calibre\library\sqlite.py", line 271, in run
OperationalError: attempt to write a readonly database
It then asks if you want to try and rebuild. I said yes. Next error:
Quote:
calibre, version 0.8.26
ERROR: Failed: Restoring database failed, click Show details to see details

Traceback (most recent call last):
File "site-packages\calibre\library\restore.py", line 108, in run
File "site-packages\calibre\library\restore.py", line 245, in replace_db
WindowsError: [Error 32] The process cannot access the file because it is being used by another process
So it appears to be failing due to this read only business, however the only lock on the file is the one created by Calibre itself (although I can't verify this for sure). It has full permissions (I set the user 'Everyone' to full control on the folder). I've made sure that everything in that folder is not read only. As a test I've renamed the metadata.dt file then named it back again to make sure it can be changed.

Any suggestions welcome.

Thanks
craigf48 is offline   Reply With Quote
Old 03-07-2012, 07:57 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,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
How are you setting up the VM to point to the library? I have no problem if I do it by creating a share on the host and then use the (virtual) network and using the "map drive" option to assign a letter to the share. Doing it any other way can cause problems due to limitations on the OS calls supported for accessing the file.

Also you must make certain that you do not have another copy of calibre accessing the library - calibre only supports single user access to its database.
itimpi is offline   Reply With Quote
Advert
Old 03-08-2012, 04:59 AM   #3
craigf48
Junior Member
craigf48 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2012
Device: Sony
Awesome, that fixed it. Mapping a drive within the guest solved it.

Thank you itimpi
craigf48 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Ben Bova Virtual Reality ebook - THE DUELING MACHINE andrewburt Self-Promotions by Authors and Publishers 2 12-10-2011 11:22 AM
602 locked Library Henri2all PocketBook 0 01-03-2011 11:31 AM
Transfer Calibre library to different machine dande Calibre 1 09-19-2009 03:24 PM
reader locked itself whilst reading - help???!!! meggy Sony Reader 3 09-16-2009 05:26 PM
Portable Virtual Privacy Machine Colin Dunstan Lounge 6 11-02-2004 07:59 AM


All times are GMT -4. The time now is 04:49 AM.


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