Copy of multiple books to Library fail if one book corrupted

Bug #1594100 reported by Baruch on 2016-06-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Hi,

I have a latest 2.58 version on Windows 8 Enterprise and find the following:

Copy of multiple books to Library fail if one book corrupted

calibre, version 2.58.0
ERROR: Failed: Could not copy books: [Errno 13] Permission denied

Traceback (most recent call last):
  File "site-packages\calibre\gui2\actions\copy_to_library.py", line 111, in run
  File "site-packages\calibre\gui2\actions\copy_to_library.py", line 133, in doit
  File "site-packages\calibre\gui2\actions\copy_to_library.py", line 153, in _doit
  File "site-packages\calibre\db\legacy.py", line 531, in format
  File "site-packages\calibre\db\cache.py", line 859, in format
  File "site-packages\calibre\db\cache.py", line 57, in call_func_with_lock
  File "site-packages\calibre\db\cache.py", line 724, in copy_format_to
  File "site-packages\calibre\db\backend.py", line 1414, in copy_format_to
  File "shutil.py", line 49, in copyfileobj
IOError: [Errno 13] Permission denied

I see two issues with this:

- it fails whole set instead of only corrupted book
- it does not tell which book is corrupted. I am trying to move very large library and selecting 20/30 at a time and have to split sets(kind of a binary search) to find bad book

Thanks

Baruch

That's not a corrupted book, that is a permission denied error. You have
permissions problem somewhere in your library folders. That is not an
error the copy process is designed to be robust against. The ability to
access files inside the library folder is a fundamental assumption
throughout calibre.

 status invalid

Changed in calibre:
status: New → Invalid
Kovid Goyal (kovid) wrote :

I will however add better error reporting on which book failed for the
next release.

thanks, will definitely help

    On Sunday, June 19, 2016 8:00 AM, Kovid Goyal <email address hidden> wrote:

 I will however add better error reporting on which book failed for the
next release.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1594100

Title:
  Copy of multiple books to Library fail if one book corrupted

Status in calibre:
  Invalid

Bug description:
  Hi,

  I have a latest 2.58 version on Windows 8 Enterprise and find the
  following:

  Copy of multiple books to Library fail if one book corrupted

  calibre, version 2.58.0
  ERROR: Failed: Could not copy books: [Errno 13] Permission denied

  Traceback (most recent call last):
    File "site-packages\calibre\gui2\actions\copy_to_library.py", line 111, in run
    File "site-packages\calibre\gui2\actions\copy_to_library.py", line 133, in doit
    File "site-packages\calibre\gui2\actions\copy_to_library.py", line 153, in _doit
    File "site-packages\calibre\db\legacy.py", line 531, in format
    File "site-packages\calibre\db\cache.py", line 859, in format
    File "site-packages\calibre\db\cache.py", line 57, in call_func_with_lock
    File "site-packages\calibre\db\cache.py", line 724, in copy_format_to
    File "site-packages\calibre\db\backend.py", line 1414, in copy_format_to
    File "shutil.py", line 49, in copyfileobj
  IOError: [Errno 13] Permission denied

  I see two issues with this:

  - it fails whole set instead of only corrupted book
  - it does not tell which book is corrupted. I am trying to move very large library and selecting 20/30 at a time and have to split sets(kind of a binary search) to find bad book

  Thanks

  Baruch

To manage notifications about this bug go to:
https://bugs.launchpad.net/calibre/+bug/1594100/+subscriptions

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers