Skip to main content

Hi !

I have installed a docker image for uniface on a ec2 linux machine. I have also installed tomcat to serve the web content. There is a simple static page developed in uniface IDE which I am trying to invoke through tomcat. The tomcat is connected to the docker image through web.xml. When I try to access the page from browser, after some time it fails with message err=-25: getsrv: handle_wait wait failed .

So my guess is tomcat is forwarding the request but the urouter is showing this error. Can somebody help me in right direction ?

I am beginner in uniface.



------------------------------
A Ganu
Mr
Rocket Forum Shared Account
------------------------------

Hi !

I have installed a docker image for uniface on a ec2 linux machine. I have also installed tomcat to serve the web content. There is a simple static page developed in uniface IDE which I am trying to invoke through tomcat. The tomcat is connected to the docker image through web.xml. When I try to access the page from browser, after some time it fails with message err=-25: getsrv: handle_wait wait failed .

So my guess is tomcat is forwarding the request but the urouter is showing this error. Can somebody help me in right direction ?

I am beginner in uniface.



------------------------------
A Ganu
Mr
Rocket Forum Shared Account
------------------------------

Hi,

We have a course re. deploying on Docker which includes an example exercise that configure tomcat and a Uniface appserver. See: How to deploy Uniface solutions using Docker

This may help you diagnose the issue. If you still find yourself stuck, we can step through some diagnostic steps e.g.

  • can you connect the urouter monitor to the appserver
  • are you using the correct JRE/JDK for the version of the WRD
  • what do the urouter & userver log  files report
  • username & password set/check

Hope this helps,

Jason.



------------------------------
Jason Huggins
Director, Enablement & Education
Rocket Internal - All Brands
GB
------------------------------

Hi,

We have a course re. deploying on Docker which includes an example exercise that configure tomcat and a Uniface appserver. See: How to deploy Uniface solutions using Docker

This may help you diagnose the issue. If you still find yourself stuck, we can step through some diagnostic steps e.g.

  • can you connect the urouter monitor to the appserver
  • are you using the correct JRE/JDK for the version of the WRD
  • what do the urouter & userver log  files report
  • username & password set/check

Hope this helps,

Jason.



------------------------------
Jason Huggins
Director, Enablement & Education
Rocket Internal - All Brands
GB
------------------------------

Hi Jason !

Thanks for your reply. 

I have done the setup as mentioned in the supplied exercise. Now I can see wasn*.log file generated and the error is due to licence.

I don't know much about how the uniface licence works.

The situation is , I have a Uniface Community edition installed on my windows laptop. I used its lservrc file for licence on the docker. 

When I do this, I get following error in wasn.log :

Using license manager Sentinel
Using license option LM_LICENSE_FILE /home/uniface/application/lic/lservrc

Requesting licenses from a license file.
Sentinel library version: 9.8.0.48
Non-DBMS file open: /home/uniface/application/adm/usys.ini
Non-DBMS file close:
License File: 210018 - No license code is available for feature USRVESC ver .
License File: 210018 - No license code is available for feature UESC ver .
Checkout of USRVESC;UESC returned: -1 (S:F)
Checkout of license feature USRVESC;UESC failed.
Fatal error: 8011 - A license could not be acquired for USRVESC;UESC.
Fatal error: 8011 - A license could not be acquired for USRVESC;UESC.

Then in one of the forum thread, somebody suggested to remove the reference of licence file. So I added following line in the usys.asn under SETTINGS 

$license_options = LM_LICENSE_FILE=""

Also removed the lservrc file from the ./lic directory .

Then I go following error in wasn.log :

Using license manager Sentinel
Non-DBMS file open: /home/uniface/application/adm/usys.ini
Non-DBMS file close:
Using default for LM_LICENSE_FILE /home/uniface/application/lic/
Checkout of license feature USRVESC;UESC failed.
Fatal error: 8011 - A license could not be acquired for USRVESC;UESC.
Fatal error: 8011 - A license could not be acquired for USRVESC;UESC.

I don't know how to obtain a development licence for the docker image.



------------------------------
A Ganu
Mr
Rocket Forum Shared Account
------------------------------

Hi Jason !

Thanks for your reply. 

I have done the setup as mentioned in the supplied exercise. Now I can see wasn*.log file generated and the error is due to licence.

I don't know much about how the uniface licence works.

The situation is , I have a Uniface Community edition installed on my windows laptop. I used its lservrc file for licence on the docker. 

When I do this, I get following error in wasn.log :

Using license manager Sentinel
Using license option LM_LICENSE_FILE /home/uniface/application/lic/lservrc

Requesting licenses from a license file.
Sentinel library version: 9.8.0.48
Non-DBMS file open: /home/uniface/application/adm/usys.ini
Non-DBMS file close:
License File: 210018 - No license code is available for feature USRVESC ver .
License File: 210018 - No license code is available for feature UESC ver .
Checkout of USRVESC;UESC returned: -1 (S:F)
Checkout of license feature USRVESC;UESC failed.
Fatal error: 8011 - A license could not be acquired for USRVESC;UESC.
Fatal error: 8011 - A license could not be acquired for USRVESC;UESC.

Then in one of the forum thread, somebody suggested to remove the reference of licence file. So I added following line in the usys.asn under SETTINGS 

$license_options = LM_LICENSE_FILE=""

Also removed the lservrc file from the ./lic directory .

Then I go following error in wasn.log :

Using license manager Sentinel
Non-DBMS file open: /home/uniface/application/adm/usys.ini
Non-DBMS file close:
Using default for LM_LICENSE_FILE /home/uniface/application/lic/
Checkout of license feature USRVESC;UESC failed.
Fatal error: 8011 - A license could not be acquired for USRVESC;UESC.
Fatal error: 8011 - A license could not be acquired for USRVESC;UESC.

I don't know how to obtain a development licence for the docker image.



------------------------------
A Ganu
Mr
Rocket Forum Shared Account
------------------------------

Dear Mr. A,

you can't use a Community Edition License for anything else then the Community Edition on that specific machine you have Enabled it.

For any other Operating system, any other Uniface Edition, or any other usage, you will have to purchase a new Entitlement.

You can ask your Uniface Sales Representative for additional Entitlements.



------------------------------
Nico Peereboom
Uniface Anywhere Product specialist
Principal Technical Support Engineer
Rocket Internal - All Brands
Amsterdam NL
------------------------------

Dear Mr. A,

you can't use a Community Edition License for anything else then the Community Edition on that specific machine you have Enabled it.

For any other Operating system, any other Uniface Edition, or any other usage, you will have to purchase a new Entitlement.

You can ask your Uniface Sales Representative for additional Entitlements.



------------------------------
Nico Peereboom
Uniface Anywhere Product specialist
Principal Technical Support Engineer
Rocket Internal - All Brands
Amsterdam NL
------------------------------

I have now got the correct licence file from the company account. But the error still remains same. It also never generates a urouter log, only wasv*.log is generated. Licence file "lservrc" is in correct directory defined in urouter.asn file. Entry in urouter.asn is as follows :

$license_options = LM_LICENSE_FILE=usyslic:lservrc

where usyslic points to the correct directory for licence file.



------------------------------
A Ganu
Mr
Rocket Forum Shared Account
------------------------------

I have now got the correct licence file from the company account. But the error still remains same. It also never generates a urouter log, only wasv*.log is generated. Licence file "lservrc" is in correct directory defined in urouter.asn file. Entry in urouter.asn is as follows :

$license_options = LM_LICENSE_FILE=usyslic:lservrc

where usyslic points to the correct directory for licence file.



------------------------------
A Ganu
Mr
Rocket Forum Shared Account
------------------------------

The license file needs to be configured in Application Assignment files as described in the $LICENSE_OPTIONS documentation. The Uniface URouter  is middleware which orchestrates running UServer processes, and its urouter.asn configuration file doesn't contain license configuration.  You can set $LICENSE_OPTIONS in usys.asn for all Uniface runtime processes, or more commonly you configure it in the assignment file used by userver (e.g. wasv.asn), as defined in urouter.asn.

You will need to restart UServers using the URouter Monitor or by restarting the Uniface URouter service after making this change.

Kind Regards,



------------------------------
David Akerman
Principal Solution & Enablement Architect
Rocket Internal - All Brands
------------------------------


The license file needs to be configured in Application Assignment files as described in the $LICENSE_OPTIONS documentation. The Uniface URouter  is middleware which orchestrates running UServer processes, and its urouter.asn configuration file doesn't contain license configuration.  You can set $LICENSE_OPTIONS in usys.asn for all Uniface runtime processes, or more commonly you configure it in the assignment file used by userver (e.g. wasv.asn), as defined in urouter.asn.

You will need to restart UServers using the URouter Monitor or by restarting the Uniface URouter service after making this change.

Kind Regards,



------------------------------
David Akerman
Principal Solution & Enablement Architect
Rocket Internal - All Brands
------------------------------

Hi David !

Thanks for your suggestions. I have tried setting licence file config in wasv.asn and usys.asn. Still I get the same message as below :

  0:00.462.65 t=1724208128: URouter started at 07-nov-2023 13:45:01
  0:00.466.43 t=1724208128: URouter pid=17;rid=D9D92ED8-7D73-11EE-A361-CF29A08C722D
  0:00.466.76 t=1724208128: UROUTERSTART: waiting for listening threads
  0:00.470.21 t=1724208128: UROUTERSTART: All listening threads started
  1:40.491.48 t=1724208128: clean_sweep: Server startup timed out after 61 seconds, sid=1
  1:40.491.57 t=1658427136: [Tue Nov  7 13:46:42 2023] err=-25: getsrv: handle_wait wait failed
  1:40.491.59 t=1658427136: srvdead: notifying client there is no server
  1:40.491.65 t=1658427136: [Tue Nov  7 13:46:42 2023] err=-25: thpsv: Problems handling request

Contents of the wasv.log file are : 

Using license manager Sentinel
Non-DBMS file open: /home/uniface/application/adm/usys.ini
Non-DBMS file close:
Using license option LM_LICENSE_FILE /home/uniface/application/lic/lservrc

Requesting licenses from a license file.
Sentinel library version: 9.8.0.48
Non-DBMS file open: /home/uniface/application/adm/usys.ini
Non-DBMS file close:
License File: 210018 - No license code is available for feature USRVESC ver .
License File: 210018 - No license code is available for feature UESC ver .
Checkout of USRVESC;UESC returned: -1 (S:F)
Checkout of license feature USRVESC;UESC failed.
Fatal error: 8011 - A license could not be acquired for USRVESC;UESC.
Fatal error: 8011 - A license could not be acquired for USRVESC;UESC.

The entries for USRVESC and UESC are in the licence file. 

Things that I have double checked so far : 

  1. Licence file is in the correct location in the docker as specified by $license_option parameter.
  2. Licence file is in UNIX format and UTF-8 encoded.
  3. File has rights for everyone to read
  4. User "uniface" is used by tomcat to access the application in web.xml. Same user is owner of licence file and uniface services are started under this user. 

Not sure what else can I check.



------------------------------
A Ganu
Mr
Rocket Forum Shared Account
------------------------------

Hi David !

Thanks for your suggestions. I have tried setting licence file config in wasv.asn and usys.asn. Still I get the same message as below :

  0:00.462.65 t=1724208128: URouter started at 07-nov-2023 13:45:01
  0:00.466.43 t=1724208128: URouter pid=17;rid=D9D92ED8-7D73-11EE-A361-CF29A08C722D
  0:00.466.76 t=1724208128: UROUTERSTART: waiting for listening threads
  0:00.470.21 t=1724208128: UROUTERSTART: All listening threads started
  1:40.491.48 t=1724208128: clean_sweep: Server startup timed out after 61 seconds, sid=1
  1:40.491.57 t=1658427136: [Tue Nov  7 13:46:42 2023] err=-25: getsrv: handle_wait wait failed
  1:40.491.59 t=1658427136: srvdead: notifying client there is no server
  1:40.491.65 t=1658427136: [Tue Nov  7 13:46:42 2023] err=-25: thpsv: Problems handling request

Contents of the wasv.log file are : 

Using license manager Sentinel
Non-DBMS file open: /home/uniface/application/adm/usys.ini
Non-DBMS file close:
Using license option LM_LICENSE_FILE /home/uniface/application/lic/lservrc

Requesting licenses from a license file.
Sentinel library version: 9.8.0.48
Non-DBMS file open: /home/uniface/application/adm/usys.ini
Non-DBMS file close:
License File: 210018 - No license code is available for feature USRVESC ver .
License File: 210018 - No license code is available for feature UESC ver .
Checkout of USRVESC;UESC returned: -1 (S:F)
Checkout of license feature USRVESC;UESC failed.
Fatal error: 8011 - A license could not be acquired for USRVESC;UESC.
Fatal error: 8011 - A license could not be acquired for USRVESC;UESC.

The entries for USRVESC and UESC are in the licence file. 

Things that I have double checked so far : 

  1. Licence file is in the correct location in the docker as specified by $license_option parameter.
  2. Licence file is in UNIX format and UTF-8 encoded.
  3. File has rights for everyone to read
  4. User "uniface" is used by tomcat to access the application in web.xml. Same user is owner of licence file and uniface services are started under this user. 

Not sure what else can I check.



------------------------------
A Ganu
Mr
Rocket Forum Shared Account
------------------------------

Hello,

Looking at the nature of the problem, we can help you best through a support call. You can contact us in one of the ways listed on the Rocket Technical Support page here: Rocket Software Customer Support.

Thanks,

Jan Cees



------------------------------
Jan Cees Boogaard
Manager, Customer Support
Rocket Internal - All Brands
NL
------------------------------