Error: F_JG057F: Connection Reset by Peer / Too Many Incoming Connections
While testing the connection to hvragent, the following error appears:
F_JG057F TLS negotiation failed: I/O error occurred: Connection reset by peer
In addition, Capture and Integrate jobs fail with the following error:
F_JG0582 TLS negotation failed: No communication
Checking the HVR.socket status using the command systemctl status hvr.socket
reveals a high number of refused connections. After checking the systemd log and the /var/log/messages directory for relevant errors using the commands journalctl -u hvr.socket
and cat /var/log/messages | grep hvr
, the following error appears:
Too many incoming connections from source, dropping connection.
NOTE: For more causes and solutions related to the
F_JG057F Connection reset by peer
error, see Error: F_JG057F: TLS Negotiation Failed: I/O Error Occurred: Connection Reset by Peer.
Environment
- HVR 6
- HVR Agent: Running as a systemctl service
Resolution
To resolve this issue, do the following:
- Temporarily resolve the issue by running the following commands:
systemctl daemon-reload systemctl reset-failed # Clear all failed services systemctl restart hvr.socket # Restart the HVR socket service
- Prevent systemd from error accounting by modifying the
ExecStart
parameter in the/etc/systemd/system/hvr@.service
file. Run the following command, replacing<path_to_hvragent>
with the full path tohvr_home/bin/hvragent
:ExecStart=-<path_to_hvragent>
- Reload and restart the service using the following commands:
systemctl daemon-reload systemctl restart hvr.socket
Cause
systemd tracks non-zero exit statuses or abnormal exits due to signals. After a certain number of failures, it disables the service. As a result, this issue occurs when the number of failed or refused connection attempts exceeds the limit.
Adding the prefix -
to the ExecStart
parameter disables error accounting in systemd, ensuring only valid connections are counted. This reduces the number of connections counted against the limit, preventing the errors.