Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

PDF generation timed out when running in interactive mode #205

@nitinthewiz

Description

@nitinthewiz

Hi,

This is an issue for athenapdf v2.16.0

I've been running the CLI rather successfully, but am trying to automate it in nodejs.

The simplest way would be to run the entire command using something like shelljs -

docker run -rm -v $(pwd):/converted/ arachnysdocker/athenapdf athenapdf html_files/1.html pdf/1.pdf

But I wanted to try out dockerode, which interacts with the Docker Remote API. The benefit is that I can check if athenapdf image exists and download it if it isn't before trying to run the command.

I noticed that my code simply fails -

libudev: udev_has_devtmpfs: name_to_handle_at on /dev: Operation not permitted
PDF generation timed out.

Looking at how dockerode does it, it seems that instead of 'docker run', the docker API only allows to create the container, and then go in and do a container start.

This is akin to running this in interactive mode, so I ran athenapdf manually in interactive mode -

docker run --rm -it -v $(pwd):/converted/ arachnysdocker/athenapdf bash
root@640213146e37:/converted# /athenapdf/entrypoint.sh athenapdf html_files/1.html pdf/1.pdf --no-cache -M none
libudev: udev_has_devtmpfs: name_to_handle_at on /dev: Operation not permitted
PDF generation timed out.

When I run the docker run command as given in the repo, it seems to work perfectly.

I'm wondering if this is a known restriction, and if there's a simple way of telling the docker container to allow the command to run in interactive mode too.

Could this have something to do with the xvfb? Maybe in interactive mode the container gets fooled into trying to show a display and that's why athenapdf seems to fail?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions