Error "There are no licenses on 127.0.0.1" has occurred on docker container

  • 79 Views
  • Last Post 27 December 2018
anno posted this 26 December 2018

Hello,

When I run Java sample "Hello.java", I faced an error. It says  "There are no licenses on 127.0.0.1". Could you please tell me how can I solve this problem.

Backgrounds

- I use docker container.
- I use Ubuntu16.04 for docker image.
- my license is cloud trial license
- My install process is following

Select activation type:
1) Local server
2) Remote server

=>1

Enter project id:

=>

Do you want to set cloud license params?(y/n)

=> y

Enter license path: /app/ocr/license/SWATxxxxxxxxxxxxxxxxxxxx.ABBYY.Cloud.ActivationToken

Enter license password:  xxxxxxxxxxxxxxx==

 

Configuring samples.. /opt/ABBYY/FREngine12

completed

FineReader Engine is configured for licensing service located on localhost.

Installing licensing service..

Licensing service is already installed, but not running, choose:

1) Remove a previously installed service

2) Run a previously installed service, do not install new one

#? 2

Do you want to activate/deactivate/view licenses now?(y/n) n

Activation completed.

 

Licensing service seems active.

root@8459d06a3eb7:/opt/ABBYY/FREngine12# ps aux

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND

root      7628  0.0  0.2  22052  4544 pts/1    Ss   13:49   0:01 bash

root     10674  0.0  1.0 1027800 22068 ?       Ssl  15:15   0:00 /usr/local/bin/ABBYY/SDK/12/Licensing/LicensingService -start

root     11259  0.0  0.1  36124  3220 pts/1    R+   15:40   0:00 ps aux

My FRE version is FRE12R2GM_Linux_part_1366_4_build_12.2.27.1845.sh

Many thanks in advance.

Order By: Standard | Newest | Votes
Nadezhda A. Solovyeva posted this 27 December 2018

Hello Anno,

Please set up the license path and password in your code, so that you will be able to use the Cloud License. In order to do so, please edit your file "Hello.java"

The code line is

engine = Engine.InitializeEngine( SamplesConfig.GetDllFolder(), SamplesConfig.GetCustomerProjectId(),             SamplesConfig.GetLicensePath(), SamplesConfig.GetLicensePassword(), "", "", false );

Please replace SamplesConfig.GetCustomerProjectId() by your Project ID (it was in your license e-mail), SamplesConfig.GetLicensePath() by a folder name, where your license token file resides and SamplesConfig.GetLicensePassword() by your password.

anno posted this 27 December 2018

Thanks for your kind help Nadezhda.

 

I already tried that one. I use SampleConfig.java which is generated by activatefre.sh.
I tried some variation.

When Project id / Activation Token path / Cloud password are all incorrect:

Initializing Engine...
ABBYY FineReader Engine is not licensed.

  When Project id / Activation Token Path are correct but Cloud password is incorrect: 

Initializing Engine...
Failed to communicate with the cloud licensing service.

  When Project id is incorrect but Activation token and Cloud password are correct:

root@174a77d1b979:/opt/ABBYY/FREngine12/Samples/Java/Hello# ./run.sh
Initializing Engine...
ABBYY FineReader Engine is not licensed.

  Project id / Cloud password are correct but Activation Token is incorrect.

root@174a77d1b979:/opt/ABBYY/FREngine12/Samples/Java/Hello# ./run.sh
Initializing Engine...
There are no licenses on 127.0.0.1

  only Project id is correct: 

root@174a77d1b979:/opt/ABBYY/FREngine12/Samples/Java/Hello# ./run.sh
Initializing Engine...
There are no licenses on 127.0.0.1

  only Cloud password is correct: 

Initializing Engine...
ABBYY FineReader Engine is not licensed.

  only Activation Token is correct:

root@174a77d1b979:/opt/ABBYY/FREngine12/Samples/Java/Hello# ./run.sh
Initializing Engine...
Failed to communicate with the cloud licensing service.

  Everything is correct:

root@174a77d1b979:/opt/ABBYY/FREngine12/Samples/Java/Hello# ./run.sh
Initializing Engine...
There are no licenses on 127.0.0.1

I found that "no licenses on 127.0.0.1" error has occurred only when project id is correct. Do you have any idea why this is happen?   many thanks in advance.  

Close