Error: F_JG057F: TLS Negotiation Failed: I/O Error Occurred: Connection Reset by Peer
Issue
The following error appears:
F_JG057F: TLS negotiation failed: I/O error occurred: Connection reset by peer.
Environment
HVR 6
Resolution
This error indicates that the HVR hub failed to establish a connection with the HVR agent listener, which operates as a systemd service.
To resolve this issue, perform the following to gather as much relevant information as possible:
- Locate related errors in the systemd log using the following command:Replace hvr.socket with the applicable systemd unit file name if it differs.
journalctl -u hvr.socket
- Locate related error entries in the /var/log/messages directory.
There are four potential causes for this issue:
- Security Enhanced Linux (SELinux) is preventing the hvragentlistener binary from starting. To resolve this issue, do either of the following:
- Adjust the SELinux context of the HVR binary files using the following command:
chcon -R -t bin_t $HVR_HOME/bin/
. - Disable SELinux by setting the
SELINUX
parameter todisabled
in the /etc/selinux/config directory.
- Adjust the SELinux context of the HVR binary files using the following command:
- Your systemd version is outdated. If your systemd version is lower than the version specified below, remove the applicable line from the /etc/systemd/system/hvr.socket file.
TriggerLimitIntervalSec
: Version 230 or higher.TriggerLimitBurs
: Version 230 or higher.MaxConnectionsPerSource
: Version 232 or higher.
- You have incorrectly specified usernames, HVR environment variables, or binary and folder paths in the /etc/systemd/system/hvr service file.
- You have not granted the HVR user appropriate access to all files and directories in hvr_home and hvr_config.