You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run OCR over a scanned PDF-document, it will take a while to process and then throw an error "Failed to fetch". Unfortunately the Stack Trace is empty:
Smaller documents seem to run fine. The document I'm trying to scan at the moment has 1,7 MBs and includes 6 pages.
I had a similar issue with Stirling-PDF running behind OPNsense with an HAProxy setup. In my case, the problem was related to HAProxy timeouts. I increased the timeout values in HAProxy, and after that, everything worked fine without any further issues.
Unfortunately, I don’t remember the exact settings I changed, but you might want to check and increase the following timeout values in HAProxy:
• Client Timeout
• Server Timeout
• Queue Timeout
• Connect Timeout
I hope this helps you in troubleshooting the issue!
thank you very much for your input! Indeed, I run Stirling behind an HAProxy. I decreased the Server timeout to 10s and I can reproduce the error in Stirling after 10s. So I then increased the HAProxy server and client timeout to 300s.
I receive the same error "Failed to fetch" after exactly 60 seconds. So I did some searching and found the following github issue: #1094 (comment)
I then added SYSTEM_CONNECTIONTIMEOUTMINUTES: 10m to my Portainer stack and hit rebuild. But I'm experiencing the same issue.
I took a look at htop on my docker host and saw that tesseract seems to continue running, even after the error..
The file I'm using is 1,8MB in size and is only text.
Installation Method
Docker
The Problem
When trying to run OCR over a scanned PDF-document, it will take a while to process and then throw an error "Failed to fetch". Unfortunately the Stack Trace is empty:
Smaller documents seem to run fine. The document I'm trying to scan at the moment has 1,7 MBs and includes 6 pages.
Version of Stirling-PDF
0.39.0
Last Working Version of Stirling-PDF
No response
Page Where the Problem Occurred
/ocr-pdf
Docker Configuration
Relevant Log Output
Additional Information
No response
Browsers Affected
Chrome
No Duplicate of the Issue
The text was updated successfully, but these errors were encountered: