Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't read metadata when uploading epub #74

Closed
scambra opened this issue Apr 26, 2020 · 3 comments · Fixed by #77
Closed

Can't read metadata when uploading epub #74

scambra opened this issue Apr 26, 2020 · 3 comments · Fixed by #77

Comments

@scambra
Copy link

scambra commented Apr 26, 2020

Expected Behavior

Uploading a epub displays title, author and other metadata available in epub.

Current Behavior

Uploading epub display metadata form empty, only title filled with filename

Environment

OS: Raspbian buster
CPU architecture: arm32
How docker service was installed:
Using dockstarter

Command used to create docker container (run/create/compose/screenshot)

Extract from docker-compose.yml:

  calibreweb:
    container_name: calibreweb
    environment:
    - PGID=${PGID}
    - PUID=${PUID}
    - TZ=${TZ}
    hostname: ${DOCKERHOSTNAME}
    image: linuxserver/calibre-web
    logging:
      driver: json-file
      options:
        max-file: ${DOCKERLOGGING_MAXFILE}
        max-size: ${DOCKERLOGGING_MAXSIZE}
    ports:
    - ${CALIBREWEB_PORT_8083}:8083
    restart: unless-stopped
    volumes:
    - /etc/localtime:/etc/localtime:ro
    - ${DOCKERCONFDIR}/calibreweb:/config
    - ${DOCKERSHAREDDIR}:/shared
    - ${MEDIADIR_BOOKS}:/books

Docker logs

Starting calibreweb displays these errors:

[2020-04-26 19:08:51,707] {/app/calibre-web/cps/book_formats.py:55} WARNING - cannot import epub, extracting epub metadata will not work: libxslt.so.1: cannot open shared object file: No such file or directory
[2020-04-26 19:08:51,711] {/app/calibre-web/cps/book_formats.py:62} WARNING - cannot import fb2, extracting fb2 metadata will not work: libxslt.so.1: cannot open shared object file: No such file or directory

Workaround

Install libxlst1.1 inside docker instance, and restart calbre-web, then uploads extract metadata from epub and displays it in form after uploading file.

@project-bot project-bot bot added this to To do in Issue & PR Tracker Apr 26, 2020
@CHBMB
Copy link
Member

CHBMB commented May 5, 2020

@scambra I can't reproduce this with the epubs I've tried. Can you send me an epub to test this with please. Email is my username @linuxserver.io

@scambra
Copy link
Author

scambra commented May 6, 2020

The errors are print in logs when calibreweb starts. Do you have libxslt1.1? I don't have after pulling docker image, although I installed manually, I can't see libxslt in package_versions.txt

@CHBMB
Copy link
Member

CHBMB commented May 6, 2020

@scambra No I don't have libxlst1.1 but I also can't reproduce the issue with the epubs I've tried, so need something to test with. Trying to work out if this is purely an ARM issue or not.

CHBMB added a commit that referenced this issue May 6, 2020
@CHBMB CHBMB closed this as completed in #77 May 6, 2020
Issue & PR Tracker automation moved this from To do to Done May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

2 participants