|
|
#1 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2023
Device: iPad
|
Loosing Books when renaming
Hi,
I'm dealing with issues when I try to rename a book using Calibre. If I change the Author or Title in Calibre (impacting the folder and file names), it often delete my book during the renaming process and I can find it anymore. It also happens using Download Metadata (because it changes Author/Title itself). Here are 2 debug traces for exemple Code:
Starting QuickView QAbstractItemView::commitData called with an editor that does not belong to this view QAbstractItemView::closeEditor called with an editor that does not belong to this view QAbstractItemView::commitData called with an editor that does not belong to this view QAbstractItemView::closeEditor called with an editor that does not belong to this view Failed to write backup metadata for id: 9682 once Traceback (most recent call last): File "calibre/db/backend.py", line 1831, in write_backup File "os.py", line 225, in makedirs FileExistsError: [Errno 17] File exists: '/mnt/Calibre/Martha Grimes/Le jeu de la verite (9682)' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "calibre/db/backup.py", line 116, in do_one File "calibre/db/cache.py", line 77, in call_func_with_lock File "calibre/db/cache.py", line 1550, in write_backup File "calibre/db/backend.py", line 1835, in write_backup File "polyglot/builtins.py", line 61, in reraise File "calibre/db/backend.py", line 1826, in write_backup FileNotFoundError: [Errno 2] No such file or directory: '/mnt/Calibre/Martha Grimes/Le jeu de la verite (9682)/metadata.opf' QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-abc' Code:
calibre 6.14.1 embedded-python: True
Linux-5.10.0-21-amd64-x86_64-with-glibc2.35 Linux ('64bit', '')
('Linux', '5.10.0-21-amd64', '#1 SMP Debian 5.10.162-1 (2023-01-21)')
Python 3.10.1
Interface language: fr
Successfully initialized third party plugins: Quality Check (1, 13, 3)
Traceback (most recent call last):
File "calibre/db/backend.py", line 1629, in set_cover
File "calibre/utils/img.py", line 297, in save_cover_data_to
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/Calibre/John Case/Genesis (9841)/cover.jpg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre/gui2/metadata/single.py", line 621, in accept
File "calibre/gui2/metadata/single.py", line 602, in apply_changes
File "calibre/gui2/metadata/basic_widgets.py", line 1308, in commit
File "calibre/db/legacy.py", line 829, in set_cover
File "calibre/db/cache.py", line 77, in call_func_with_lock
File "calibre/db/cache.py", line 1616, in set_cover
File "calibre/db/backend.py", line 1632, in set_cover
File "calibre/utils/img.py", line 297, in save_cover_data_to
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/Calibre/John Case/Genesis (9841)/cover.jpg'
Any advice of what it could be and how I can solve this please ? Thanks a lot. Regards |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Move your calibre library to a decent filesystem, like ext4 or similar and you will be fine.
|
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2023
Device: iPad
|
Quote:
Well, to be honest, I was running metadata.db on an SMB share with nobrl activated. Knowing it's something disliked by calibre, I move it on a local ext4 folder. I did not move all my books located on the NAS (same host, but other VM), using the env variable CALIBRE_OVERRIDE_DATABASE_PATH. Unfortunately, there's no change for me, I've just tried to do a change on a book using "download metadata", and on apply, I get the following error : Code:
calibre, version 6.14.1
ERREUR : Exception non gérée: <b>FileNotFoundError</b>:[Errno 2] No such file or directory: '/mnt/Calibre/Regine Deforges/Le collier de perles (8805)/cover.jpg'
calibre 6.14.1 embedded-python: True
Linux-5.10.0-21-amd64-x86_64-with-glibc2.35 Linux ('64bit', '')
('Linux', '5.10.0-21-amd64', '#1 SMP Debian 5.10.162-1 (2023-01-21)')
Python 3.10.1
Interface language: fr
Successfully initialized third party plugins: Quality Check (1, 13, 3)
Traceback (most recent call last):
File "calibre/db/backend.py", line 1629, in set_cover
File "calibre/utils/img.py", line 297, in save_cover_data_to
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/Calibre/Regine Deforges/Le collier de perles (8805)/cover.jpg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre/gui2/metadata/single.py", line 621, in accept
File "calibre/gui2/metadata/single.py", line 602, in apply_changes
File "calibre/gui2/metadata/basic_widgets.py", line 1308, in commit
File "calibre/db/legacy.py", line 829, in set_cover
File "calibre/db/cache.py", line 77, in call_func_with_lock
File "calibre/db/cache.py", line 1616, in set_cover
File "calibre/db/backend.py", line 1632, in set_cover
File "calibre/utils/img.py", line 297, in save_cover_data_to
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/Calibre/Regine Deforges/Le collier de perles (8805)/cover.jpg'
Any help would be greatly appreciated please. Thanks a lot. |
|
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There's is no solution other than using a properly working filesystem. calibre requires a filesystem that works correctly. Move your *full* calibre library to a proper filesystem and you will be fine.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PRS-T1 Moved to another country, loosing books when syncing | kiesel | Sony Reader | 5 | 02-11-2018 01:48 PM |
| calibre_convert - Renaming e-books | Infolix | Conversion | 2 | 04-07-2017 09:09 AM |
| Renaming Amazon Books and X-Ray | Maviellas | Calibre | 1 | 02-23-2014 02:41 AM |
| Renaming Books | denmarks | Library Management | 6 | 07-18-2013 07:56 AM |
| Renaming books a problem?? | petercreasey | Calibre | 1 | 01-30-2010 06:37 PM |