View Single Post
Old 06-02-2013, 02:59 PM   #7
mark1softie
Junior Member
mark1softie began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2013
Device: kobo touch
Question What has changed?

Quote:
Originally Posted by user_none View Post
Putting the library on a network share is not supported. Some people have gotten this to work but it's not recommended. The SQLite db does not work well on a network share. I believed NFS doesn't work at all and SMB sometimes works.
I have used Calibre to manage my NAS-mounted database for over a year, with no database errors, except in the past two weeks.

Still using Ubuntu 12.04 LTS [with all repository package updates applied], with my "~/Documents/eBooks_Calibre" directory on a Netgear ReadyNAS Duo, mounted using NFS.

Using sqlite3 (3.7.9-2ubuntu1.1), last updated in August 2012
Using NFS 1.2.5-3ubuntu3.1, last updated September 2012.

Have updated Calibre at least twice in the last couple of weeks, now at 0.9.33. Could something in the Calibre Python code have changed, forgetting to unlock the database?

Now get a "DatabaseException:database is locked RemoteTraceback (most recent call last): File "site-packages/calibre/library/sqlite.py", line 272, in run OperationalError: database is locked:

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

Traceback (most recent call last):
File "site-packages/calibre/gui2/metadata/single.py", line 526, in next_clicked
File "site-packages/calibre/gui2/metadata/single.py", line 469, in apply_changes
File "site-packages/calibre/gui2/metadata/basic_widgets.py", line 102, in commit
File "site-packages/calibre/library/database2.py", line 2550, in set_title
File "site-packages/calibre/library/database2.py", line 652, in set_path
File "site-packages/calibre/library/database2.py", line 1540, in add_format
File "site-packages/calibre/library/sqlite.py", line 315, in run
DatabaseException: database is locked
RemoteTraceback (most recent call last):
File "site-packages/calibre/library/sqlite.py", line 272, in run
OperationalError: database is locked
mark1softie is offline   Reply With Quote