View Single Post
Old 08-06-2024, 07:49 PM   #1
LienRag
Member
LienRag began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2024
Device: many
Error after import of a lot of books

Hi Mobile Readers.
I recently learned how to create and manage a Calibre Library on an external drive, so I did it and imported the full folder of books I have.
It took more than a day, and then once it finished I got the following errors :

Code:
calibre, version 6.13.0
AVERTISSEMENT : Erreurs pendant l'ajout: Il y a eu des problèmes lors de l'ajout de certains fichiers, cliquez "Afficher les détails" pour plus d'information


----------------------------------------------------------------------
Échec de la lecture des métadonnées depuis le fichier :
	/media/lienrag/Elements/Livres/Source/Stephen King/La ballade de la balle elastique & L'h  omme qui refusait de serrer la main (8837)/La ballade de la balle elastique & L'homme - Stephen King.epub
Avec l'erreur :
Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/utils/ipc/pool.py", line 371, in worker_main
    result = func(*job.args, **job.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/calibre/calibre/ebooks/metadata/worker.py", line 81, in read_metadata
    mi, opf, has_cover = serialize_metadata_for(paths, tdir, group_id)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/calibre/calibre/ebooks/metadata/worker.py", line 27, in serialize_metadata_for
    f.write(cdata)
OSError: [Errno 28] Aucun espace disponible sur le périphérique
There's 700 000 lines of error messages if I'm not mistaken, similar to the one above or to the one below :

Code:
----------------------------------------------------------------------
Échec à ajouter le livremetadata
	/media/lienrag/Elements/Livres/Bibliothèque calibre/John Schember/Guide de demarrage rapide (1)/metadata.opf
Avec l'erreur :
Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/add.py", line 458, in add_book
    book_id = self.dbref().create_book_entry(mi, cover=cdata)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/calibre/calibre/db/legacy.py", line 341, in create_book_entry
    ret = self.new_api.create_book_entry(mi, cover=cover, add_duplicates=add_duplicates, force_id=force_id)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/calibre/calibre/db/cache.py", line 77, in call_func_with_lock
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/calibre/calibre/db/cache.py", line 1965, in create_book_entry
    self.backend.execute('INSERT INTO books(title, series_index, author_sort) VALUES (?, ?, ?)',
  File "/usr/lib/calibre/calibre/db/backend.py", line 1022, in execute
    return self.conn.cursor().execute(sql, bindings)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "src/cursor.c", line 235, in resetcursor
apsw.CantOpenError: CantOpenError: unable to open database file
And now I have 4 000 books (on 36 000) without metadata, even without title or author.

What caused that ? And how can I solve it ?

There clearly was sufficient space on the external drive (more than 100 Gigabytes).
Is there necessary to have some also on my /home ? And/or / ? How much ?
LienRag is offline   Reply With Quote