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
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.
If your version of Harvest is v14.0.2, and the operating system is Windows, there is a cumulative patch that might help - PR18761. If needed, please contact support to obtain a copy. If this does not resolve the problem, many fixes to the Harvest Agent were included in the new version 14..5.01. It is recommended to upgrade to the latest version and retest.