Stirling PDF Installation

So, everything seems to work fine for me right now...

The only thing that I can think of that may be causing issues is with the location of the folders that are required for things to run properly. That would be the ones created with this command:

mkdir -p StirlingPDF/{trainingData,extraConfigs,customFiles,logs,pipeline}

Did you use a specific location other than your main home folder? If yes, you would need to specify the proper location accordingly when running the container. So, let's retrace our steps a bit:

  1. To start fresh, stop the container and remove unused containers:

    docker container stop pdftest
    docker container prune
    
  2. Verify the location of the necessary folders as mentioned above. This one is probably done easier by just browsing using the file manager, but for completeness this is how you'd do it using a command on the terminal:

    find $HOME -type d -iname "stirling*"
    

    This should return something like /home/zenzen/StirlingPDF. This is what I suspect may be different in your case, so make sure to make a note of it.

  3. In fact, to be completely on the safe side, delete all those folders and re-create them again. Sometimes, Docker containers leave files behind that may be responsible for a bad state that prevents them from starting up correctly.

  4. Run the container again using the full path to this folder (whatever it came back with in the previous step):

    docker run -d \
     --name stirling-pdf \
     -p 8080:8080 \
     -v "/home/zenzen/StirlingPDF/trainingData:/usr/share/tessdata" \
     -v "/home/zenzen/StirlingPDF/extraConfigs:/configs" \
     -v "/home/zenzen/StirlingPDF/customFiles:/customFiles/" \
     -v "/home/zenzen/StirlingPDF/logs:/logs/" \
     -v "/home/zenzen/StirlingPDF/pipeline:/pipeline/" \
     -e DOCKER_ENABLE_SECURITY=false \
     -e LANGS=en_GB \
     stirlingtools/stirling-pdf:latest
    

    I think at this point you are familiar enough with Docker to know what the --nameand -p flags mean. Feel free to use whatever values make more sense for you.

You should see: