linuxserver / docker-calibre-web

GNU General Public License v3.0
1.07k stars 148 forks source link

[BUG] Cannot convert Chinese when EPUB to PDF #319

Closed Hanzo-Huang closed 1 month ago

Hanzo-Huang commented 2 months ago

Is there an existing issue for this?

Current Behavior

ebook-convert book.epub book.pdf

Expected Behavior

No response

Steps To Reproduce

Chinese books convert to PDF from EPUB. CLI convert.

Environment

- OS:Ubuntu 22.04
- How docker service was installed: 1panel

CPU architecture

x86-64

Docker creation

networks:
    1panel-network:
        external: true
services:
    calibre-web:
        container_name: ${CONTAINER_NAME}
        deploy:
            resources:
                limits:
                    cpus: ${CPUS}
                    memory: ${MEMORY_LIMIT}
        environment:
            - PUID=1000
            - PGID=1000
            - TZ=${TIME_ZONE}
            - DOCKER_MODS=linuxserver/mods:universal-calibre
            - OAUTHLIB_RELAX_TOKEN_SCOPE=1
        image: linuxserver/calibre-web:0.6.21-ls241
        labels:
            createdBy: Apps
        networks:
            - 1panel-network
        ports:
            - ${HOST_IP}:${PANEL_APP_PORT_HTTP}:8083
        restart: always
        volumes:
            - ./data/config:/config
            - ./data/books:/books

Container logs

No error log.
Hanzo-Huang commented 2 months ago

I think the problem is the language environment of Chinese. Because it work on all my other machine, like ubuntu, Windows, MacOS. If it cloud add Chinese environment, and have a try? Thanks

realDayaa commented 2 months ago

For me, converting using the web interface doesn't work in general, not matter the format or book. When I use ebook-convert in the container using docker exec, it works as expected.

Logs: [2024-09-20 07:54:45,646] INFO {cps.editbooks:322} converting: book id: 125 from: EPUB to: PDF
[2024-09-20 07:54:45,651] DEBUG {cps.services.worker:91} Add Task for user: ***** - Convert Book 125
[2024-09-20 07:54:45,653] INFO {cps.tasks.convert:161} Book id 125 - target format of .pdf does not exist. Moving forward with convert.
[2024-09-20 07:54:46,716] DEBUG {cps.tasks.convert:308} No write access to /root/.config/calibre using a temporary dir instead
[2024-09-20 07:54:46,716] DEBUG {cps.tasks.convert:308} Extra arguments not understood: /usr/bin
[2024-09-20 07:54:46,788] INFO {cps.tasks.convert:208} ebook converter failed with error while converting book
[2024-09-20 07:54:46,788] ERROR {cps.tasks.convert:212} .PDF format not found on disk

drizuid commented 1 month ago

I suggest seeking support from the developer of the application to determine if this is a problem in the app.