View Single Post
Old 11-08-2020, 05:58 AM   #12
yorikk
Member
yorikk began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Nov 2020
Device: amazon kindle
1. Without fsync changes:

- Update cached metadata: FAILED (disconnected)
- Upload any book: FAILED (disconnected)

2. Commented first os.fsync:

/usr/lib/calibre/calibre/__init__.py (fsync)

Not enough, problem still exist.

Tested few times:

- Update cached metadata: OK
- Upload any book: FAILED (disconnected)

3. Commented another os.fsync:

/usr/lib/calibre/utils/filenames.py (case_preserving_open_file)

Tested few times:

- Update cached metadata: OK
- Upload any book(s): OK

Problem SOLVED by disable both os.fsync calls

PS. seems utime() is not enough and also second os.fsync call make problem when uploading books
yorikk is offline   Reply With Quote