Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-16-2017, 01:50 PM   #1
eridani
Junior Member
eridani began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2017
Device: Apple iBooks
Calibre server 3.0 - Cant read books on web reader

It complains about not finding ~/.cache/calibre/srvb/s/clNmkz/content.opf

This is the relevant log:

Code:
calibre server listening on 0.0.0.0:8080
OPDS feeds advertised via BonJour at: 192.168.1.65 port: 8080
calibre server listening on 0.0.0.0:8081
OPDS feeds advertised via BonJour at: 192.168.1.65 port: 8081
calibre server listening on 0.0.0.0:8081
OPDS feeds advertised via BonJour at: 192.168.1.65 port: 8081
The job: Render book 188 (EPUB) failed:

Traceback (most recent call last):
  File "site-packages/calibre/utils/ipc/simple_worker.py", line 286, in main
  File "site-packages/calibre/srv/render_book.py", line 511, in render
  File "site-packages/calibre/srv/render_book.py", line 178, in __init__
  File "site-packages/calibre/ebooks/oeb/polish/container.py", line 282, in __init__
InvalidBook: Could not locate opf file: u'/Volumes/Home/.cache/calibre/srvb/s/clNmkz/content.opf'

The job: Render book 80 (EPUB) failed:

Traceback (most recent call last):
  File "site-packages/calibre/utils/ipc/simple_worker.py", line 286, in main
  File "site-packages/calibre/srv/render_book.py", line 511, in render
  File "site-packages/calibre/srv/render_book.py", line 178, in __init__
  File "site-packages/calibre/ebooks/oeb/polish/container.py", line 282, in __init__
InvalidBook: Could not locate opf file: u'/Volumes/Home/.cache/calibre/srvb/s/HDZmQn/content.opf'
I must point that:
  • I'm on Ubuntu 16.04 x86_64
  • Changed default port to :8081
  • ~/.cache is a symlink pointed to /Volumes/Home/.cache (That so far has been working flawlessly with the caches of every other program)
  • ~/ is EXT4 and /Volumes/Home is a ZFS dataset.
eridani is offline   Reply With Quote
Old 06-16-2017, 02:42 PM   #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: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
So use a different cache directory, preferably not on ZFS. You can use the CALIBRE_CACHE_DIRECTORY env var to change it.
kovidgoyal is offline   Reply With Quote
Old 06-16-2017, 03:27 PM   #3
eridani
Junior Member
eridani began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2017
Device: Apple iBooks
That did the trick, thank you.

Reported this behaviour as a bug, can be found at https://bugs.launchpad.net/calibre/+bug/1698441


For the time being, following your advice I created a .desktop file to launch Calibre at "~/.local/share/applications/calibre-gui.desktop" with the following contents:

Code:
[Desktop Entry]
Version=3.0
Type=Application
Name=calibre
GenericName=E-book library management
Comment=E-book library management: Convert, view, share, catalogue all your e-books
TryExec=calibre
Exec=env CALIBRE_CACHE_DIRECTORY='/home/YOURUSERNAME/ROUTETONEWCACHEFOLDER' calibre --detach %F
Icon=calibre-gui
Categories=Office;
MimeType=text/fb2+xml;application/x-cbz;application/vnd.openxmlformats-officedocument.wordprocessingml.document;text/html;application/x-mobipocket-ebook;application/ereader;application/x-mobipocket-subscription;application/x-mobi8-ebook;text/rtf;application/x-cbr;application/vnd.ms-word.document.macroenabled.12;application/xhtml+xml;application/x-sony-bbeb;application/oebps-package+xml;application/pdf;application/x-cbc;application/vnd.oasis.opendocument.text;text/plain;image/vnd.djvu;text/x-markdown;application/epub+zip;
After launching Calibre from this new .desktop file it will take precedence in Ubuntu's launcher over "/usr/share/applications/calibre-gui.desktop" and will be set automatically as the default launcher.

Last edited by eridani; 06-16-2017 at 03:30 PM.
eridani is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Porting Calibre's built-in web server to a remote server? perryja Related Tools 6 05-02-2013 09:05 AM
is there a tool to open (read) books from the calibre's content server? tsolignani Related Tools 2 04-16-2013 07:14 AM
calibre-server OPDS catalog - manual move to web server HaakonME Related Tools 5 09-21-2012 03:11 AM
Web interface of Calibre Server nqk Related Tools 4 02-18-2012 03:04 AM
calibre detection on the web server poldem Recipes 2 03-26-2011 05:51 PM


All times are GMT -4. The time now is 09:11 PM.


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