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 04-03-2012, 11:05 AM   #1
laxarus
Junior Member
laxarus began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2012
Device: PC
Problem

Sometimes when i am closing the calibre i get an error like this:

calibre, version 0.8.45
HATA: Unhandled exception: <b>DatabaseException</b>:database is locked
RemoteTraceback (most recent call last):
File "site-packages\calibre\library\sqlite.py", line 271, in run
OperationalError: database is locked

Traceback (most recent call last):
File "site-packages\calibre\gui2\ui.py", line 745, in closeEvent
File "site-packages\calibre\gui2\ui.py", line 654, in write_settings
File "site-packages\calibre\gui2\init.py", line 288, in save_layout_state
File "site-packages\calibre\gui2\library\views.py", line 354, in save_state
File "site-packages\calibre\gui2\library\views.py", line 348, in write_state
File "site-packages\calibre\library\prefs.py", line 58, in set
File "site-packages\calibre\library\prefs.py", line 53, in __setitem__
File "site-packages\calibre\library\sqlite.py", line 314, in run
DatabaseException: database is locked
RemoteTraceback (most recent call last):
File "site-packages\calibre\library\sqlite.py", line 271, in run
OperationalError: database is locked

Any help here?
laxarus is offline   Reply With Quote
Old 04-03-2012, 11:06 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,966
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Sounds like something has the database in use. Give the computer a reboot and try again.
JSWolf is offline   Reply With Quote
Advert
Old 04-03-2012, 03:14 PM   #3
laxarus
Junior Member
laxarus began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2012
Device: PC
that might actually be the problem since my pc is on like 1 month without restart
laxarus is offline   Reply With Quote
Old 04-03-2012, 07:09 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,966
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Did the reboot solve the problem?
JSWolf is offline   Reply With Quote
Old 04-03-2012, 07:49 PM   #5
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: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Lack of use won't lock the DB.

Having an orphaned Calibre session, might do it.

Backup software, backing up the DB might temporarily lock the file.
theducks is offline   Reply With Quote
Advert
Old 04-04-2012, 04:56 AM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Dropbox or an over-ambitious anti-virus tool also might do it.
chaley is offline   Reply With Quote
Old 04-06-2012, 07:41 AM   #7
laxarus
Junior Member
laxarus began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2012
Device: PC
Quote:
Originally Posted by JSWolf View Post
Did the reboot solve the problem?
Actually it did not.

Time to time i get the same error when closing the calibre. And the next start of calibre after getting this error seems to be way longer.

I dont know how it might be related to the problem but i want to give this info.I got nearly 3k books on my library and the calibre library location is on my external hard drive. I believe these conditions only affect the loading time, not supposed to give me an error.
laxarus is offline   Reply With Quote
Old 04-06-2012, 10:03 PM   #8
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
Sometimes happens to me when I detach the external drive with my library when is calibre open. Even if I reattach the drive before closing or using calibre. It a Windows thing in my case I think.

A flakey cable or power supply or turning off the drive can also cause this.

Helen
speakingtohe is offline   Reply With Quote
Old 04-11-2012, 07:05 PM   #9
laxarus
Junior Member
laxarus began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2012
Device: PC
well, this is getting out of control. The load time of calibre slowed down considerably and i get that error more frequently. I m sure there is no problem with the external drive and the power cables. I set the external driver options to prevent it to go to sleep mode but that didnt solve the issue. Tried reinstalling the calibre, still no luck. Also, after shutting down the calibre with this error, it takes a lot of time for calibre to load.
laxarus is offline   Reply With Quote
Old 04-12-2012, 01:07 AM   #10
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
Perhaps temporarily move your library to internal hard drive to see if the problem persists.
Also try different USB port. Sleep shouldn't matter unless you get the drive pop up window or the Windows device connected tone.
Helen
speakingtohe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem! massive problem! Persian Calibre 8 07-13-2011 04:39 PM
Anyone have this problem with 1.8 baronrus Kobo Reader 5 12-17-2010 12:07 AM
PRS-500 battery problem, but the battery's not the problem ZachC Sony Reader 7 01-11-2010 11:46 PM
Calibré problem (may be XP problem) Hildebrandt Calibre 3 07-23-2009 02:04 PM


All times are GMT -4. The time now is 11:14 AM.


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