Open marcofenoglio opened 1 month ago
Based on write errors i assume its a permission issue, are you running it as a certain user or GUID etc that might be causing issues?
or volume mapping the /tmp file causing some issue etc
This is my docker command:
docker run -d \
-p 9284:4443 \
-e DOCKER_ENABLE_SECURITY=false \
-e INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false \
-e LANGS=it_IT,en_GB \
-v /mnt/data/docker_data/stirling-pdf/trainingData:/usr/share/tessdata \
-v /mnt/data/docker_data/stirling-pdf/extraConfigs:/configs \
-v /mnt/data/docker_data/stirling-pdf/logs:/logs \
-v /etc/letsencrypt/live/<mydomain>/cert.pem:/configs/cert.pem \
-v /etc/letsencrypt/live/<mydomain>/privkey.pem:/configs/privkey.pem \
--name stirling-pdf \
--restart unless-stopped \
frooodle/s-pdf:latest
GUID and UID are the default. And this is the volume directory stucture:
stirling-pdf/:
total 12
drwxr-xr-x 2 1000 1000 4096 May 29 11:15 extraConfigs
drwxr-xr-x 2 1000 1000 4096 Jun 2 22:19 logs
drwxr-xr-x 4 1000 1000 4096 May 29 09:52 trainingData
stirling-pdf/extraConfigs:
total 8
-rwxr-xr-x 1 1000 1000 0 May 29 10:22 cert.pem
-rwxr-xr-x 1 1000 1000 155 May 29 10:35 custom_settings.yml
-rwxr-xr-x 1 1000 1000 0 May 29 10:22 privkey.pem
-rwxr-xr-x 1 1000 1000 3633 Jun 2 22:19 settings.yml
stirling-pdf/logs:
total 8
-rw-r--r-- 1 1000 1000 4103 Jun 2 22:19 info.log
-rwxr-xr-x 1 1000 1000 0 May 29 09:52 invalid-auths.log
stirling-pdf/trainingData:
total 22932
drwxr-xr-x 2 1000 1000 4096 May 29 09:52 configs
-rwxr-xr-x 1 1000 1000 23466654 May 29 09:52 eng.traineddata
-rwxr-xr-x 1 1000 1000 572 May 29 09:52 pdf.ttf
drwxr-xr-x 2 1000 1000 4096 May 29 09:52 tessconfigs
Looks like a bug with the "Correct pages were scanned at a skewed angle by rotating them back into place" feature if you have that enabled
Same error without "deskew" option.
Docker Version 0.25.0 in Ubuntu 16.04TLS
Error log: