The command unims -register returns "Unable to connect to UVMS: error 300 (-1)" in case of a timeout

Document ID : KB000085660
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
In case there is an error in the registration of a DUAS on a UVMS, the error message does not provide useful information to the user:
Examples:
$UNI_DIR_EXEC/unims -register -mshost uvms.domain.com -msport 4184 -login dummy -pwd password--> Incorrect login
$UNI_DIR_EXEC/unims -register -mshost uvms.domain.com -msport 4184 -login admin -pwd wrong_password--> Incorrect password
The same error on the command unims -register appears after a timeout of 15 seconds in case there is a network issue between the uvms and the node.
Unable to connect to UVMS: error 300 (-1)

Patch level detected:Dollar Universe 6.1.00
Product Version: Dollar.Universe 6.1.0

Description :When trying to register a node ( when installing or registering somewhere else), the command unims -register throws the error 300.
It is impossible to know wether the issue is related to a wrong login / password or a timeout on the reply from the uvms to the request.
Environment:
OS: All
Cause:
Cause type:
Defect
Root Cause: N/A
Resolution:
The command unims -register will now throw an error 205 for timeout errors when waiting for the reply of the UVMS.

The new return of the command is:
######################
Unable to connect to UVMS: error 205 (check U_UVMS_TIMEOUT parameter) (-1)
######################


Therefore, you will need to increase the value of the variable U_UVMS_TIMEOUT (15 seconds by default).

For that, you can launch the following command to increase it to 60 seconds:

$UNI_DIR_EXEC/unisetvar U_UVMS_TIMEOUT 60

Fix Status: Released

Fix Version(s):
Component: Application.Server
Version: Dollar.Universe 6.7.21
Additional Information:
Workaround :
N/A