Skip to content

[BUG]ssh: handshake failed: read tcp 127.0.0.1:52190->127.0.0.1:2222: wsarecv: An existing connection was forcibly closed by the remote host. #3898

Open
@sujithkumble

Description

General information

  • OS: Windows
  • Hypervisor: Hyper-V
  • Did you run crc setup before starting it (Yes/No)? Yes
  • Running CRC on: Laptop / Baremetal-Server / VM: Laptop

CRC version

CRC version: 2.28.0+e1f42d
OpenShift version: 4.13.14
Podman version: 4.4.4

CRC status

DEBU CRC version: 2.28.0+e1f42d
DEBU OpenShift version: 4.13.14
DEBU Podman version: 4.4.4
DEBU Running 'crc status'
CRC VM:          Running
OpenShift:       Unreachable (v4.13.14)
Disk Usage:      0B of 0B (Inside the CRC VM)
Cache Usage:     22.95GB
Cache Directory: C:\Users\Admin\.crc\cache

CRC config

- consent-telemetry                     : no
- nameserver                            : 8.8.8.8

Host Operating System

Host Name:                 DESKTOP-611M9PB
OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.19045 N/A Build 19045
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Registered Owner:          Admin
Registered Organization:
Product ID:                00330-80000-00000-AA585
Original Install Date:     20-10-2023, 07:15:32
System Boot Time:          25-10-2023, 17:29:10
System Manufacturer:       Dell Inc.
System Model:              Vostro 3558
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 61 Stepping 4 GenuineIntel ~1900 Mhz
BIOS Version:              Dell Inc. A11, 22-11-2016
Windows Directory:         C:\Windows
System Directory:          C:\Windows\system32
Boot Device:               \Device\HarddiskVolume1
System Locale:             en-us;English (United States)
Input Locale:              00004009
Time Zone:                 (UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi
Total Physical Memory:     12,199 MB
Available Physical Memory: 6,946 MB
Virtual Memory: Max Size:  14,631 MB
Virtual Memory: Available: 8,428 MB
Virtual Memory: In Use:    6,203 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    WORKGROUP
Logon Server:              \\DESKTOP-611M9PB
Hotfix(s):                 9 Hotfix(s) Installed.
                           [01]: KB5030649
                           [02]: KB5031816
                           [03]: KB5030841
                           [04]: KB5011048
                           [05]: KB5015684
                           [06]: KB5031356
                           [07]: KB5014032
                           [08]: KB5016705
                           [09]: KB5031539
Network Card(s):           6 NIC(s) Installed.
                           [01]: Intel(R) Dual Band Wireless-AC 3160
                                 Connection Name: Wi-Fi
                                 DHCP Enabled:    Yes
                                 DHCP Server:     N/A
                                 IP address(es)
                           [02]: Realtek PCIe GBE Family Controller
                                 Connection Name: Ethernet
                                 Status:          Media disconnected
                           [03]: Bluetooth Device (Personal Area Network)
                                 Connection Name: Bluetooth Network Connection
                                 Status:          Media disconnected
                           [04]: Hyper-V Virtual Ethernet Adapter
                                 Connection Name: vEthernet (Default Switch)
                                 DHCP Enabled:    No
                                 IP address(es)
                                 [01]: 172.27.96.1
                                 [02]: fe80::2ebe:86b2:d92:f302
                           [05]: Microsoft Network Adapter Multiplexor Driver
                                 Connection Name: Network Bridge
                                 DHCP Enabled:    Yes
                                 DHCP Server:     N/A
                                 IP address(es)
                           [06]: Hyper-V Virtual Ethernet Adapter
                                 Connection Name: vEthernet (crc)
                                 DHCP Enabled:    Yes
                                 DHCP Server:     192.168.1.1
                                 IP address(es)
                                 [01]: 192.168.1.7
                                 [02]: fe80::571d:852b:f59d:9dbf
Hyper-V Requirements:      A hypervisor has been detected. Features required for Hyper-V will not be displayed.

Steps to reproduce

  1. Tried crc delete, crc cache delete, crc setup
  2. Also tried to manually add entry in host file, but no luck
  3. Not able to login to Openshift via command line
  4. Also not able to open openshift console.

Expected

able to open openshift console and login to oc via command line

Actual

Not able to login to Openshift via command line
Also not able to open openshift console.

Before gather the logs try following if that fix your issue - Tried but same error.

$ crc delete -f
$ crc cleanup
$ crc setup
$ crc start --log-level debug

Logs

PS C:\Users\Admin> crc start --log-level debug
DEBU CRC version: 2.28.0+e1f42d
DEBU OpenShift version: 4.13.14
DEBU Podman version: 4.4.4
DEBU Running 'crc start'
DEBU Total memory of system is 12791169024 bytes
DEBU No new version available. The latest version is 2.28.0
DEBU Checking file: C:\Users\Admin\.crc\machines\crc\.crc-exist
DEBU Running 'Hyper-V\Get-VM crc | Select-Object -ExpandProperty State'
INFO Using bundle path C:\Users\Admin\.crc\cache\crc_hyperv_4.13.14_amd64.crcbundle
INFO Checking minimum RAM requirements
DEBU Total memory of system is 12791169024 bytes
INFO Checking if running in a shell with administrator rights
DEBU Running '$currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent());$currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)'
INFO Checking Windows release
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseId).ReleaseId'
INFO Checking Windows edition
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").EditionID'
DEBU Running on Windows Professional edition
INFO Checking if Hyper-V is installed and operational
DEBU Running '@(Get-Wmiobject Win32_ComputerSystem).HypervisorPresent'
DEBU Running '@(Get-Service vmms).Status'
INFO Checking if Hyper-V service is enabled
DEBU Running '@(Get-Service vmms).Status'
INFO Checking if crc-users group exists
DEBU Running 'Get-LocalGroup -Name crc-users'
INFO Checking if current user is in crc-users and Hyper-V admins group
DEBU Running '(Get-LocalGroupMember -Group 'crc-users').Name'
DEBU Checking current user is in the 'crc-user' group
DEBU group members: DESKTOP-611M9PB\Admin
DEBU Running '(Get-LocalGroupMember -SID 'S-1-5-32-578').Name'
DEBU Checking current user is in the 'Hyper-v Administrators' group
DEBU group members: DESKTOP-611M9PB\Admin
INFO Checking if vsock is correctly configured
DEBU Running 'Get-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\GuestCommunicationServices\00000400-FACB-11E6-BD58-64006A7986D3"'
INFO Checking if the daemon task powershell script is present
INFO Checking if the daemon task is installed
DEBU Running 'Get-ScheduledTask -TaskName crcDaemon'
DEBU Running '(Get-ScheduledTask -TaskName "crcDaemon").Version'
INFO Checking if the daemon task is running
DEBU Running '(Get-ScheduledTask -TaskName "crcDaemon").State'
INFO Checking admin helper service is running
DEBU Running '(Get-Service crcAdminHelper).Status'
DEBU Checking file: C:\Users\Admin\.crc\machines\crc\.crc-exist
DEBU Copying 'C:\Users\Admin\.crc\cache\crc_hyperv_4.13.14_amd64\oc.exe' to 'C:\Users\Admin\.crc\bin\oc\oc.exe'
DEBU Copying 'C:\Users\Admin\.crc\cache\crc_hyperv_4.13.14_amd64\podman.exe' to 'C:\Users\Admin\.crc\bin\oc\podman.exe'
INFO Loading bundle: crc_hyperv_4.13.14_amd64...
DEBU Checking file: C:\Users\Admin\.crc\machines\crc\.crc-exist
DEBU Running 'Hyper-V\Get-VM crc | Select-Object -ExpandProperty State'
DEBU Copying 'C:\Users\Admin\.crc\cache\crc_hyperv_4.13.14_amd64\oc.exe' to 'C:\Users\Admin\.crc\bin\oc\oc.exe'
DEBU Copying 'C:\Users\Admin\.crc\cache\crc_hyperv_4.13.14_amd64\podman.exe' to 'C:\Users\Admin\.crc\bin\oc\podman.exe'
INFO Starting CRC VM for openshift 4.13.14...
DEBU Updating CRC VM configuration
DEBU Running 'Hyper-V\Start-VM crc'
DEBU Waiting for machine to be running, this may take a few minutes...
DEBU retry loop: attempt 0
DEBU Running 'Hyper-V\Get-VM crc | Select-Object -ExpandProperty State'
DEBU Machine is up and running!
DEBU Running 'Hyper-V\Get-VM crc | Select-Object -ExpandProperty State'
INFO CRC instance is running with IP 127.0.0.1
DEBU Waiting until ssh is available
DEBU retry loop: attempt 0
DEBU Running SSH command: exit 0
DEBU Using ssh private keys: [C:\Users\Admin\.crc\machines\crc\id_ecdsa C:\Users\Admin\.crc\cache\crc_hyperv_4.13.14_amd64\id_ecdsa_crc]
DEBU SSH command results: err: ssh: handshake failed: read tcp 127.0.0.1:52187->127.0.0.1:2222: wsarecv: An existing connection was forcibly closed by the remote host., output:
DEBU error: Temporary error: ssh command error:
command : exit 0
err     : ssh: handshake failed: read tcp 127.0.0.1:52187->127.0.0.1:2222: wsarecv: An existing connection was forcibly closed by the remote host.
 - sleeping 1s
DEBU retry loop: attempt 1
DEBU Running SSH command: exit 0
DEBU Using ssh private keys: [C:\Users\Admin\.crc\machines\crc\id_ecdsa C:\Users\Admin\.crc\cache\crc_hyperv_4.13.14_amd64\id_ecdsa_crc]
DEBU SSH command results: err: ssh: handshake failed: read tcp 127.0.0.1:52188->127.0.0.1:2222: wsarecv: An existing connection was forcibly closed by the remote host., output:
DEBU error: Temporary error: ssh command error:
command : exit 0
err     : ssh: handshake failed: read tcp 127.0.0.1:52188->127.0.0.1:2222: wsarecv: An existing connection was forcibly closed by the remote host.
 - sleeping 1s
DEBU retry loop: attempt 2
DEBU Running SSH command: exit 0
DEBU Using ssh private keys: [C:\Users\Admin\.crc\machines\crc\id_ecdsa C:\Users\Admin\.crc\cache\crc_hyperv_4.13.14_amd64\id_ecdsa_crc]
DEBU SSH command results: err: ssh: handshake failed: read tcp 127.0.0.1:52189->127.0.0.1:2222: wsarecv: An existing connection was forcibly closed by the remote host., output:
DEBU error: Temporary error: ssh command error:
command : exit 0
err     : ssh: handshake failed: read tcp 127.0.0.1:52189->127.0.0.1:2222: wsarecv: An existing connection was forcibly closed by the remote host.
 - sleeping 1s
DEBU retry loop: attempt 3
DEBU Running SSH command: exit 0
DEBU Using ssh private keys: [C:\Users\Admin\.crc\machines\crc\id_ecdsa C:\Users\Admin\.crc\cache\crc_hyperv_4.13.14_amd64\id_ecdsa_crc]
DEBU SSH command results: err: ssh: handshake failed: read tcp 127.0.0.1:52190->127.0.0.1:2222: wsarecv: An existing connection was forcibly closed by the remote host., output:
DEBU error: Temporary error: ssh command error:
command : exit 0
err     : ssh: handshake failed: read tcp 127.0.0.1:52190->127.0.0.1:2222: wsarecv: An existing connection was forcibly closed by the remote host.
 - sleeping 1s

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions