symlinked .cache cause calibre 4 reader fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Symlinked .cache stopped working in calibre 4.
I run Ubuntu Mate 19.04 and I have the root fs on a NVMe drive and /home on a SATA SSD. To improve performance I have ~/.cache on the NVMe (as /opt/.cache) and symlink that folder to ~/.cache.
I started doing this "trick" years back when I had the root fs on my first SATA SSD and /home on spinning rust. And I have kept doing it since then. And it has never been any problems in any apps, including calibre.
However after upgrading to calibre 4 the calibre ebook reader can't open ebooks any more. I get this error:
Traceback (most recent call last):
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
InvalidBook: Could not locate opf file: u'/opt/
/opt/.cache/
Everything else works fine in calibre. Thumbnails are cached fine and so on.
By moving back .cache to ~/.cache instead of symlinking from /opt, everything is fine again. I can then use the new calibre viewer fine.
But if possible I would like to continue be able to place ~/.cache on the fastest drive.
Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.
status fixreleased