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-25-2023, 04:18 AM   #1
RudyBzh
Junior Member
RudyBzh began at the beginning.
 
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'
And another one :
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'
Hope it will be supported, I'm using a docker version of Calibre coming from lsio.

Any advice of what it could be and how I can solve this please ?

Thanks a lot.
Regards
RudyBzh is offline   Reply With Quote
Old 03-25-2023, 08:01 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,311
Karma: 27111242
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 03-26-2023, 04:24 PM   #3
RudyBzh
Junior Member
RudyBzh began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2023
Device: iPad
Quote:
Originally Posted by kovidgoyal View Post
Move your calibre library to a decent filesystem, like ext4 or similar and you will be fine.
Thanks for the reply.

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'
The thing I don't understand with the error is that it was a book without existing cover. Why does calibre complains about not finding such cover ?

Any help would be greatly appreciated please.
Thanks a lot.
RudyBzh is offline   Reply With Quote
Old 03-26-2023, 10:35 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,311
Karma: 27111242
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.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

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 12:48 PM
calibre_convert - Renaming e-books Infolix Conversion 2 04-07-2017 08:09 AM
Renaming Amazon Books and X-Ray Maviellas Calibre 1 02-23-2014 01:41 AM
Renaming Books denmarks Library Management 6 07-18-2013 06:56 AM
Renaming books a problem?? petercreasey Calibre 1 01-30-2010 05:37 PM


All times are GMT -4. The time now is 07:01 PM.


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