Agent login failed error code -174.Cant receive message

Document ID : KB000097265
Last Modified Date : 21/05/2018
Show Technical Document Details
When we try to execute hrefresh to release a file to the server, we experienced an error that the connection cannot be established and the agent process on the server will automatically go down. We restarted the agent and tried to release the file again, and again, the agent process went down.

The error message in the HRefresh log file is:
Attempting to log into remote agent... 
Agent login failed (error code = -174). <Can't receive message> 
CA Harvest SCM version 12 and up
Agent component on a Linux or Unix platform
To troubleshoot we did the following:

We reviewed the HRefresh log from the "release" (hrefresh) that was failing and found the hsync command that was being executed. 

We copied the command and pasted it into Notepad. 

We then deleted the -er <dfo file> parameter and replaced it with -rusr <userid> and -rpw <password>, using login credentials that we know are successful for that agent machine. 

We ran the modified hsync command from the broker machine and it was successful. We did not get the "-174" error code. 

We backed up the current <dfo file> and created a new one with the same name using the svrenc command. We provided the userid and password that were successful with the hsync command. 

When we retried the "release" (hrefresh), this time it was successful. We did not get the "-174" error code.
The solution is to verify the correct login credentials for the agent machine and build a new encrypted password file using the "svrenc" command.