GithubHelp home page GithubHelp logo

Comments (6)

janeczku avatar janeczku commented on April 19, 2024

@perler Need more information. Are you using the Docker image? If not whats the exact command you are using to start the app?

from calibre-web.

perler avatar perler commented on April 19, 2024

no it's debian 7 (kind of, actually openmediavault.org) and the command is:

cd /opt/calibre-web
python /opt/calibre-web/cps.py &

from calibre-web.

janeczku avatar janeczku commented on April 19, 2024

@perler Added a fix in 46c83bb. Please try again with the current HEAD.

from calibre-web.

perler avatar perler commented on April 19, 2024

not yet, but the error is different:

[2016-06-17 20:23:12,177] {/opt/calibre-web/vendor/flask/app.py:1423} ERROR - Exception on /read/2871 [GET]
Traceback (most recent call last):
  File "/opt/calibre-web/vendor/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/opt/calibre-web/vendor/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/opt/calibre-web/vendor/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/opt/calibre-web/vendor/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/calibre-web/vendor/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/calibre-web/vendor/flask_login.py", line 717, in decorated_view
    return func(*args, **kwargs)
  File "/opt/calibre-web/cps/web.py", line 503, in read_book
    zfile = zipfile.ZipFile(os.path.join(config.DB_ROOT, book.path, data.name) + ".epub")
  File "/usr/lib/python2.7/zipfile.py", line 714, in __init__
    self._GetContents()
  File "/usr/lib/python2.7/zipfile.py", line 748, in _GetContents
    self._RealGetContents()
  File "/usr/lib/python2.7/zipfile.py", line 759, in _RealGetContents
    endrec = _EndRecData(fp)
  File "/usr/lib/python2.7/zipfile.py", line 238, in _EndRecData
    endrec = list(struct.unpack(structEndArchive, recData))
error: unpack requires a string argument of length 22

from calibre-web.

janeczku avatar janeczku commented on April 19, 2024

@perler Does this happen with all your books or just some? Looks like the epub file is corrupted.

from calibre-web.

perler avatar perler commented on April 19, 2024

ah, good question. only with one single book and now even this book doesn't crash the reader. so you can close the issue. (but a lot of books are empty (display nothing) I will open another issue for this.

from calibre-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.