software-mentions icon indicating copy to clipboard operation
software-mentions copied to clipboard

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

Open willbeason opened this issue 10 months ago • 1 comments

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.

willbeason avatar Mar 07 '25 19:03 willbeason

@willbeason can you try to use lfoppiano/software-mentions:0.8.2 or lfoppiano/software-mentions:0.8.2-sofair? The latter has a bit more training data.

lfoppiano avatar Sep 15 '25 10:09 lfoppiano