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 Yesterday, 07:49 PM   #1
LienRag
Junior Member
LienRag began at the beginning.
 
Posts: 6
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
Old Yesterday, 08:35 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 75,355
Karma: 133807966
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
According to the first code block, you've run out of disk space. I don't know if that's the drive that holds the library or the drive that hold the temp files. But you need to free up some space someplace.
JSWolf is offline   Reply With Quote
Advert
Old Yesterday, 11:05 PM   #3
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: 44,190
Karma: 23000010
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to have space in /tmp. Some brain dead linux systems put /tmp in RAM. Either fix that or use the calibre env var to change its tmp directory to somewhere you actually have space.

https://manual.calibre-ebook.com/cus...ment-variables
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
That's a lot of books! wodin Lounge 0 03-29-2017 07:19 PM
Export/Import all Calibre data - import error IanKBrown Calibre 5 02-15-2017 08:32 PM
Import on Filename changes mid import due to book error Vortex Calibre 3 12-05-2014 11:49 AM
Best way to automatically add a lot of books foxbooks Library Management 3 05-31-2012 10:41 AM
Import failed Error:404 when attempting to import from Calibre to Stanza dvond Apple Devices 0 05-13-2011 03:00 PM


All times are GMT -4. The time now is 06:26 AM.


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