06-04-2020, 09:13 AM | #1 |
ZCD BombShel
Posts: 4,793
Karma: 8293322
Join Date: Jan 2009
Location: The Frozen North (aka Illinois, USA)
Device: iPad, STB Kindle Oasis
|
Calibre ebook viewer problem
Sorry if this is a duplicate. I did search, (check my profile, I know how the system works) and found a few things that might be related, but nothing exact. It's possible I may have missed it though and if so, my apologies. The suggestion I found for what looked like related issues was that something was locking or blocking the cache files. There is no virus software or filesync apps on the machine that could cause that. See Chris's remarks below.
I'm running a Mac Mini, with Catalina. I can't get any of my ebooks to open in the viewer. A screenshot of the error is below. It appears that the problem is permissions, but even Chris the genius IT husband couldn't figure out why it's happening. I did update to the latest version of calibre, no luck. This has been happening for several versions/updates, it just now got to be a big enough nuisance for me to try to diagnose the problem. "The metadata.opf goes into Library/Caches/calibre/ev2/t/tmp****** with permissions of 700. Nothing else is accessing it, lsof comes up empty on metadata.opf and everything above it. ps -ef comes up with nothing as well. If it is supposed to have something other than 700 permissions (and that shouldn't matter anyway unless Calibre is running as something other than $USER) why are cache files being created that Calibre itself should be able to access but can't?" |
06-04-2020, 10:16 AM | #2 |
creator of calibre
Posts: 43,881
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
try setting some other directory as your calibre cache directory via an environment variable as described here: https://manual.calibre-ebook.com/cus...ment-variables
|
06-04-2020, 08:50 PM | #3 |
ZCD BombShel
Posts: 4,793
Karma: 8293322
Join Date: Jan 2009
Location: The Frozen North (aka Illinois, USA)
Device: iPad, STB Kindle Oasis
|
Thanks Kovid, I'll give that a try!
|
10-18-2020, 10:26 AM | #4 |
Junior Member
Posts: 4
Karma: 10
Join Date: Oct 2020
Device: none
|
For what its worth, I tried this but no luck. Permissions on the generated .opf file in the cache I specified seem OK but the viewer will still fail in the manner shown above. However, if I click on the cached opf outside of Calibre the viewer opens up and works correctly. Using Catalina 10.15.7 and as the original poster intimated the viewer hasn't worked on Catalina for quite a few versions.
|
10-18-2020, 10:34 AM | #5 |
creator of calibre
Posts: 43,881
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You tried what?
|
10-18-2020, 12:38 PM | #6 |
Junior Member
Posts: 4
Karma: 10
Join Date: Oct 2020
Device: none
|
I set the cache directory using the appropriate environment variable. That works and I can see subdirectories and files appearing there instead of the in the Catalina default $HOME/Library/Caches/calibre spot.
So when calibre launches the book viewer it generates entries in the cache but then claims that it cannot locate the opf file so it stops. However, the opf file is there and has reasonable permissions. In fact, when you click on the file outside of calibre the calibre viewer opens up correctly without complaint. Is it trying to open the file just prior to creating it on the Mac for some reason (buffer flush missing perhaps?) |
10-18-2020, 01:01 PM | #7 |
creator of calibre
Posts: 43,881
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, calibre is written in python and files are written to using context managers, so there is no way a "buffer flush" would be missing. Although a buffer flush missing would not explain a missing directory entry anyway. Look at the path in the error message, compare it to the actual path of the OPF. Are they actually identical, pay special attention to case differences.
|
10-19-2020, 07:23 AM | #8 |
Junior Member
Posts: 4
Karma: 10
Join Date: Oct 2020
Device: none
|
Yes the path is absolutely the same (I can copy the full name from the calibre error detail and then do an 'ls' on that string to see the file exists at that location, has a non-zero size, and has read permissions for everybody).
|
10-19-2020, 07:26 AM | #9 |
creator of calibre
Posts: 43,881
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Since macOS stupidly uses case insensitive filesystems by default, doing ls proves nothing, that's why I asked you to check the case specifically.
|
10-19-2020, 10:09 AM | #10 |
Junior Member
Posts: 4
Karma: 10
Join Date: Oct 2020
Device: none
|
checked again — they are the exact same letter for letter!
|
10-19-2020, 10:42 AM | #11 |
creator of calibre
Posts: 43,881
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Then I'm afraid I'm out of ideas, sorry.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New ebook-viewer in Linux - problem running as root | cikasole | Calibre | 4 | 10-21-2019 09:32 AM |
ebook viewer : problem with mixed pages. Images and text | tekkkkkk | Calibre | 1 | 12-25-2015 10:26 AM |
ebook viewer scrolling problem | cvlowe | Calibre | 6 | 09-02-2014 01:39 PM |
Problem with font & background colors on the Ebook Viewer | darthktulu | Calibre | 3 | 10-27-2013 11:24 PM |
Associating ebook files with Calibre ebook viewer | zobop | Library Management | 1 | 06-24-2012 11:07 AM |