Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-04-2020, 09:13 AM   #1
phenomshel
ZCD BombShel
phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.
 
phenomshel's Avatar
 
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?"
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2020-06-03 at 10.03.36 PM.png
Views:	53
Size:	655.0 KB
ID:	179711  
phenomshel is offline   Reply With Quote
Old 06-04-2020, 10:16 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 37,993
Karma: 16793211
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
kovidgoyal is offline   Reply With Quote
Old 06-04-2020, 08:50 PM   #3
phenomshel
ZCD BombShel
phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.phenomshel ought to be getting tired of karma fortunes by now.
 
phenomshel's Avatar
 
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!
phenomshel is offline   Reply With Quote
Old 10-18-2020, 10:26 AM   #4
nzzn
Junior Member
nzzn began at the beginning.
 
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.
nzzn is offline   Reply With Quote
Old 10-18-2020, 10:34 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 37,993
Karma: 16793211
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You tried what?
kovidgoyal is offline   Reply With Quote
Old 10-18-2020, 12:38 PM   #6
nzzn
Junior Member
nzzn began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2020
Device: none
Quote:
Originally Posted by kovidgoyal View Post
You tried what?
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?)
nzzn is offline   Reply With Quote
Old 10-18-2020, 01:01 PM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 37,993
Karma: 16793211
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.
kovidgoyal is offline   Reply With Quote
Old 10-19-2020, 07:23 AM   #8
nzzn
Junior Member
nzzn began at the beginning.
 
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).
nzzn is offline   Reply With Quote
Old 10-19-2020, 07:26 AM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 37,993
Karma: 16793211
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.
kovidgoyal is offline   Reply With Quote
Old 10-19-2020, 10:09 AM   #10
nzzn
Junior Member
nzzn began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2020
Device: none
checked again — they are the exact same letter for letter!
nzzn is offline   Reply With Quote
Old 10-19-2020, 10:42 AM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 37,993
Karma: 16793211
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Then I'm afraid I'm out of ideas, sorry.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 09:58 AM.


MobileRead.com is a privately owned, operated and funded community.