![]() |
#1 |
Zealot
![]() Posts: 109
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
|
linux question/problem
Hello,
I have a computer with a small hard drive and I have many GB's of books so, when I was running Windows, I put the calibre database on a windows share of another machine. Calibre worked with zero problems. I recently switched to linux and installed calibre 5.26. On linux the database is a permanently mounted cifs volume. All other non-calibre files on that volume are accessible with no problems. When I try to tell calibre to use that same database that I was using with Windows, I get a bunch of python messages from initialize_db, create_backend, etc. concluding with a apsw.BusyError: BudyError: database is locked. I don't understand this. I am the only user. I have only one machine that connects to this database and it was closed cleanly on Windows before the switch to linux. I would love to understand what is going on here. Any help would be greatly appreciated. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Network filesystems are broken, you will get random errors/data loss. Dont use them. https://manual.calibre-ebook.com/faq...rked-drive-nas
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() Posts: 109
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
|
only broken in linux?
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Nope, broken everywhere, you just got lucky in windows, your luck could have turned at any moment.
Though I should note that Linux in general has the most buggy filesystems, probably because it has so many, and most of them are very poorly implemented. |
![]() |
![]() |
![]() |
#5 |
Zealot
![]() Posts: 109
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
|
Thanks
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,056
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Is the HD in your computer Replaceable?
I cloned my Laptops HD onto a 1T SSD for under $100. ![]() All you need is a USB caddy or a HD clone cable (does IDE or SATA). |
![]() |
![]() |
![]() |
#7 | |
Zealot
![]() Posts: 109
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
|
Quote:
Thanks |
|
![]() |
![]() |
![]() |
#8 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,056
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
You done that already --Kingston Trio ![]() |
|
![]() |
![]() |
![]() |
#9 |
Zealot
![]() Posts: 109
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
|
As far as space I have 2 raid 5 units, 12 & 16 TB. I think I’m set for the next week or two
![]() |
![]() |
![]() |
![]() |
#10 |
Zealot
![]() Posts: 109
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
|
Hi again,
I'm on linux with a calibre database in my home directory. I just booted the machine and tried to run "calibredb list" and got - after a very long pause - Traceback (most recent call last): File "runpy.py", line 194, in _run_module_as_main File "runpy.py", line 87, in _run_code File "site.py", line 45, in <module> File "site.py", line 41, in main File "calibre/db/cli/main.py", line 251, in main File "calibre/db/cli/main.py", line 41, in run_cmd File "calibre/db/cli/cmd_list.py", line 315, in main File "calibre/db/cli/cmd_list.py", line 148, in do_list File "calibre/db/cli/main.py", line 184, in run File "calibre/db/cli/main.py", line 171, in db File "calibre/db/legacy.py", line 188, in __init__ File "calibre/db/legacy.py", line 45, in create_backend File "calibre/db/backend.py", line 470, in __init__ File "calibre/db/schema_upgrades.py", line 19, in __init__ File "calibre/db/backend.py", line 937, in execute apsw.BusyError: BusyError: database is locked AFIK there is NO networking involved in accessing my local db on my local machine. Nevertheless, this error message is almost identical to to one I got when my db was in dropbox (my initial question). I'm sorry, but I'm now totally confused. I was prepared to accept your explanation that networking was the culprit but since the problem also occurs with no networking, it makes me wonder if there isn't something else going on. |
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The only way you can get a database busy error is
1) on a broken filesystem 2) if something else is accessing the database. So what else do you have accessing the database |
![]() |
![]() |
![]() |
#12 |
Zealot
![]() Posts: 109
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
|
Nothing that I know of. I'll reboot again and try once more. Maybe it will have healed itself
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Linux/Calibre client question | james_ | Calibre | 4 | 04-15-2021 07:09 PM |
Font problem (Linux). | Giorgos | Conversion | 2 | 08-14-2017 11:48 AM |
Calibre GUI linux question | ziprar | Calibre | 0 | 03-19-2012 05:40 AM |
Linux installer question | opitzs | Calibre | 2 | 11-09-2011 07:20 AM |
[Old Thread] Linux Question: Library/DB/Server Only? | zenrhino | Calibre | 15 | 03-31-2011 12:32 PM |