Repository navigation
OCR for big file #8993
|
Hello all, i use Stirling in Docker I can't OCR big file, all 382 pages are scanned in web get the error in docker logs no errors docker file: services:
stirling-pdf:
container_name: stirling-pdf
restart: unless-stopped
image: docker.stirlingpdf.com/stirlingtools/stirling-pdf:3.4.0-fat
#ports:
# - '8080:8080'
deploy:
resources:
limits:
memory: 16G
cpus: '36.0'
volumes:
- /etc/localtime:/etc/localtime:ro
- /srv/docker-fast/volumes/stirling-pdf/configs:/configs
- /srv/docker-fast/volumes/stirling-pdf/logs:/logs
- /srv/docker-fast/volumes/stirling-pdf/custom_files:/customFiles
- /srv/docker-fast/volumes/stirling-pdf/pipeline:/pipeline
- /srv/docker-fast/volumes/stirling-pdf/storage:/storage
- /srv/docker-fast/volumes/stirling-pdf/tessdata:/usr/share/tessdata
environment:
SYSTEM_DEFAULTLOCALE: "ru-RU"
JAVA_CUSTOM_OPTS: "-XX:MaxRAMPercentage=50"
PROCESSEXECUTOR_TIMEOUTMINUTES_LIBREOFFICETIMEOUTMINUTES: 120
PROCESSEXECUTOR_TIMEOUTMINUTES_TESSERACTTIMEOUTMINUTES: 120
networks:
- docker_ext
networks:
docker_ext:
external: true |
Replies: 1 comment 1 reply
|
That 504 isn't coming from Stirling. The page says Raise the timeouts on the proxy host. In NPM that's the Advanced tab for the proxy host: If you ever hit a 413 on the upload itself, |
That 504 isn't coming from Stirling. The page says
openresty, so it's your reverse proxy giving up (Nginx Proxy Manager is built on openresty). nginx'sproxy_read_timeoutdefaults to 60 seconds, and OCR on 382 scanned pages will take way longer than that, which is why the container logs show nothing wrong. Your Tesseract and LibreOffice timeouts only matter inside the app.Raise the timeouts on the proxy host. In NPM that's the Advanced tab for the proxy host:
If you ever hit a 413 on the upload itself,
client_max_body_sizeneeds bumping the same way for a 400 MB file. To confirm it's the…