Skip to content

Troubleshooting

Please review this page carefully before contacting our support team. You can find more information on the FAQ page.

❗ If you haven't found a solution and need technical support, please describe the issue as detailed as possible, including the steps you took to solve or reproduce it. Also please provide the log file, which can be found in the Web API installation directory. This will help us to find and fix the issue. Thank you!

Documents are not recognized or recognized incorrectly

  1. Check that you have the latest versions of SDK and document database installed
  2. Make sure that the document image meets our quality requirements
  3. Please send the incorrectly recognized document sample to our Support Team

Supplied license either corrupted or expired

  • Check if the regula.license file is in the expected location. The absolute path should be as follows: /app/extBin/unix/regula.license.
  • Check if the container has access to the internet, at least to https://lic.regulaforensics.com/ URL. In case a direct internet connection is not an option, please configure Docker to use the proxy server guide.
  • Check if the license type is "On-line" (supplied within the OLXXXXX.zip archive, not the SLXXXXX.zip one)
  • Check if the license is sufficient to request the desired number of workers. Each license is issued for a specific number of workers; thus, it is not possible to run the container if the number of requested workers exceeds the number defined in the license.
  • Contact us to check whether the license has expired or been deactivated.

Permanent container restart

  • Check if the allocated RAM is sufficient (at least 2Gb RAM per worker is required)
  • Check if the container has access to the internet, at least the https://lic.regulaforensics.com/ URL. In case a direct internet connection is not an option, please configure Docker to use the proxy server guide.

Why do I get a 'null' or "Result of this type is not available" response?

  1. Make sure that the image meets our quality requirements
  2. Check if the document you submitted actually contains the requested result type

Error "Processing timeout". How to increase the maximum document processing time?

In the config.yaml file, by default located in the root folder of the Web Service installation, set the parameters:

  • servicewebServerworkers
  • servicewebServertimeout

Note that this method will not work for Windows, as in this OS the only option is the single worker and no timeout.

Failing health check

Configuring applications health check is not a trivial topic. Our web service behavior makes this topic even more nuanced. On the one side, it's as simple as querying one HTTP endpoint http://localhost:8080/api/ping, which produces a simple json output:

{
  "app-name": "Regula Document Reader Web API",
  "license-id": "00000000-0000-0000-0000-000000000000",
  "license-serial": "OL00000",
  "server-time": "2021-06-28 09:16:00.453891+00:00",
  "valid-until": "2022-12-31T00:00:00Z",
  "version": "6.5.128414.450"
}

However, there are a few factors that can cause a group of sequential checks to fail. One of the most faced issues of our customers is overload on peak times.

Consider the following scenario:

  1. A web server with one worker under load balancer.
  2. A web server backlog is 20 requests, the load balancer performs health check every 30 sec with timeout of 30 sec.
  3. 20 requests come in, 3 of them contain a bad image of a document, that will extend processing to 5 sec.
  4. The health check request comes in and gets queued (as the 21st request).
  5. To process the first 20 requests, the server needs 17 x 1 + 3 x 5=32 sec.
  6. After a while, the health check caller (load balancer) times out.
  7. The load balancer thinks that your application is broken, marks the instance broken, and terminates it or stops routing requests.

That can happen for any number of web servers under a load balancer. A host with an overload is terminated, giving other hosts more requests, causing them to timeout health checks and get released too.

To fix that, we can use the following options (or a combination of them):

  1. Increase the health check timeout to 60s or even higher. Thus, we trade off time to discover really stacked nodes. If a web server on a given node crashes, the health check fails fast with a connection error.
  2. Decrease the backlog size to 10 requests and let requests from a load balancer fail, triggering the load balancer to shift traffic to another instance earlier. In general, use the health check timeout / 3 empirical formula to determine the desired backlog size.
  3. Increase the number of consecutive health check fails required to trigger the load balancer to remove a node from routing.
  4. Increase the health check period to 60s or even higher. Thus, if spike in load is not constant, the server has more time to free the backlog before the queue health check.