Skip to content

Docker image hangs indefinitely when processing a PDF on an Ubuntu snap install #42

@willbeason

Description

@willbeason

While trying to get the docker image to run locally, I initially ran into problems where the image would launch the local server properly and allow me to submit a PDF, but would never actually process the software mentions on the PDF.

Online searching suggested that the snap install of Docker for Ubuntu 24.04 might cause problems, and to try either the Ubuntu-preferred "docker-io" version of Docker "docker-ce", installing via apt instead of snap. I installed docker-io, and the image runs well now. Startup is slow (it doesn't appear to fully boot until a PDF is submitted, unlike image for Grobid), but once startup has completed it processes PDFs in about 2 seconds as expected.

It's probably not worth resolving the issue to make the image compatible with running within snap, but may be worth mentioning in docs that there may be issues if Docker has been installed this way. I suspect it has something to do with AppArmor - I found shutting down the image from snap Docker got me into strange states and unable to halt the image (due to AppArmor), but I have not had the same problems with the "docker-io" install.

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