OCR ocr2rest and ocr2worker
Service overview
| Management | wfmanager (start | stop | restart | status) ocr2rest wfmanager (start | stop | restart | status) ocr2worker |
|---|---|
| Log files | Access logs: <INSTALL_DIR>/supervisord/log/ocr2rest.out.logError logs: <INSTALL_DIR>/supervisord/log/ocr2rest.err.logAccess logs: <INSTALL_DIR>/supervisord/log/ocr2worker.out.logError logs: <INSTALL_DIR>/supervisord/log/ocr2worker.err.log |
| Startup scripts | <INSTALL_DIR>/supervisord/apps/ocr2-rest.ini
<INSTALL_DIR>/supervisord/apps/ocr2-worker.ini |
| Configuration files | /ocr/etc/ocr-rest.yml/ocr/etc/ocr-worker.yml |
| Default Ports | tcp 9002 |
Default parameters
| Configuration file | Name | Default value | Description |
|---|---|---|---|
config.yml | install_dir | /opt/workfusion | Directory to put user files, logs, and configs. |
config.yml | ocr_hostname | ocr.example.com | FQDN for OCR DNS name. |
config.yml | ocr_abbyy_pool_size | 2 | Number of OCR concurrent executions. Should match the license productivity. |
config.yml | ocr_spring_profiles_active | disabled-auth,mongoDbQueue,gridfs-storage,mongo-task | Default value. |
Troubleshooting
Check if TCP port 9002 is available:
netstat command output
$ netstat -tnlp | grep 9002 tcp6 0 0 127.0.0.1:9002 :::* LISTEN 20808/javass command output
$ ss -ltn | egrep '9002' LISTEN 0 100 ::ffff:127.0.0.1:9002 :::*lsof command output
$ lsof -P -n -i :9002 | grep LISTEN java 20808 wfuser 27u IPv6 99257 0t0 TCP 127.0.0.1:9002 (LISTEN)Count the number of running OCR processes:
pgrep command output
ps -C java -opid,cmd | grep -c "ocr-rest-" ps -C java -opid,cmd | grep -c "ocr-worker-"Check the default main log files:
- Access logs:
<INSTALL_DIR>/supervisord/log/ocr2\*.out.log - Error logs:
<INSTALL_DIR>/supervisord/log/ocr2\*.err.log
$ tail -f <INSTALL_DIR>/supervisord/log/ocr2*.log- Access logs:
Use the Wfmanager util to check the OCR out (access) log:
wfmanager tail ocr2rest wfmanager tail ocr2worker