DobyTang / LazyLibrarian

This project isn't finished yet. Goal is to create a SickBeard, CouchPotato, Headphones-like application for ebooks. Headphones is used as a base, so there are still a lot of references to it.
732 stars 70 forks source link

calibredb failed, Text file busy #923

Closed ethanopp closed 7 years ago

ethanopp commented 7 years ago

docker linux, QNAP

Current Version: 4f2f8857678ab423cd2831e6a6924b89ec5c5a7a

I am getting the following error when trying to use the calibredb import program: calibredb failed, Text file busy

Book dir and calibre metadata.db both have 777...

Log snippet:

2017-07-19 20:49:31 WARNING Residual files remain in /downloads/completed/LazyLibrarian/Ashlee Vance - Elon Musk Tesla, SpaceX, and the Quest for a Fantastic Future (PDF&EPUB&MOBİ).fail
2017-07-19 20:49:31 ERROR Postprocessing for Elon Musk - Ashlee Vance has failed: calibredb failed, Text file busy
philborman commented 7 years ago

I have just reorganised the cover creating code in lazylibrarian, so we can cache an image for ourselves, but not put a .jpg in the book folder. Just needs a bit more testing.

ok, that's in the new release. Calibre does seem to copy the image itself, and renames it too. If we reference book_title.jpg in the opf file, calibre imports it as cover.jpg

ethanopp commented 7 years ago

Thanks for this update, Everything is working now with no duplicates!

...Not sure if you want to keep this open to address the calibredb refresh issue - but my setup is now working via the use of "blanks" in both the Calibredb and AutoAdd LL settings and having calibre running outside with the autodir settings setup to point to /books that LL moves to

philborman commented 7 years ago

I will close this for now. The calibre refresh issue is a separate problem, I might need to look into calibredb source code to see how it detects a running calibre server, but it's not a priority