bstansell / conserver

Logged, multi-user access to device consoles
https://www.conserver.com/
BSD 3-Clause "New" or "Revised" License
128 stars 38 forks source link

"console: FileRead(): SSL error on fd 3" on Rocky Linux #76

Open UweSauter opened 2 years ago

UweSauter commented 2 years ago

On a recently fresh installation of Rocky Linux I often get disconnected like:

# console n061901
[Enter `^Ec?' for help]
console: FileRead(): SSL error on fd 3
# echo $?
0

This is both the case with 8.2.2-4 provided by EPEL as well as a self-compiled 8.2.6 from a customized SPEC file.

Currently, this version of OpenSSL is installed:

# yum list installed | grep openssl
openssl.x86_64                              1:1.1.1k-5.el8_5                       @baseos       
openssl-devel.x86_64                        1:1.1.1k-5.el8_5                       @baseos-85    
openssl-libs.x86_64                         1:1.1.1k-5.el8_5                       @baseos       
openssl-pkcs11.x86_64                       0.4.10-2.el8                           @baseos

Disabling SSL support during compilation only removes the error message but still disconnects:

# console n061901
[Enter `^Ec?' for help]
# echo $?
0

Any thoughts where to start debugging? If necessary I can share my configuration.

conserver.spec.txt conserver-nokrb-noopenssl.spec.txt

UweSauter commented 2 years ago

More information: If I run ipmiconsole -u ADMIN -p PASSWORD -h n061901 the disruption of the connection does not happen.

UweSauter commented 2 years ago

Well, now I also get [-- Conserver reconfigured - console has been (re)moved --] instead of console: FileRead(): SSL error on fd 3

faxm0dem commented 11 months ago

We have the exact same behaviour on Rocky Linux 8

write(2, "FileRead(): SSL error on fd 3", 29FileRead(): SSL error on fd 3) = 29
faxm0dem commented 8 months ago

@UweSauter do you still see the issue ?

UweSauter commented 8 months ago

@faxm0dem Yes, I do. Currently I have installed:

# yum list installed | grep -e conserver -e openssl
conserver.x86_64                            8.2.7-1.el8                              @@commandline 
conserver-client.x86_64                     8.2.7-1.el8                              @@commandline 
openssl.x86_64                              1:1.1.1k-9.el8_7                         @baseos-87    
openssl-devel.x86_64                        1:1.1.1k-9.el8_7                         @baseos-87    
openssl-libs.x86_64                         1:1.1.1k-9.el8_7                         @baseos       
openssl-pkcs11.x86_64                       0.4.10-3.el8                             @baseos-88

The disconnects happen most often during the BIOS phase of a server reboot up until the login prompt is shown. Could it be that some special symbols transferred via IPMI and then sent through the conserver <-> console connection trigger this?

EDIT: typo

faxm0dem commented 8 months ago

I get disconnects all the time, but at random times. For instance, I just up a console and afer a few seconds I get a disconnect. 1701946042-rmd

faxm0dem commented 4 months ago

This also happens in RHEL8.

However, RHEL9 works just fine !