Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup failure: Error getting config for native Go SSH: open The system cannot find the file specified. #784

Closed
east4ming opened this issue Nov 2, 2019 · 26 comments
Labels
kind/bug Something isn't working os/windows priority/minor status/need more information Issue needs more information before it will be looked at status/stale Issue went stale; did not receive attention or no reply from the OP

Comments

@east4ming
Copy link

General information

  • OS: Windows
  • Hypervisor: Hyper-V
  • Did you run crc setup before starting it (Yes)?

CRC version

crc version: 1.0.0+575079b
OpenShift version: 4.2.0 (embedded in binary)

CRC status

ERRO error: CreateFile C:\Users\8000619804\.crc\machines\crc\kubeconfig: The system cannot find the file specified.
 - exit status 1

CRC config

Host Operating System

Host Name:                 HQIT3RD014D
OS Name:                   Microsoft Windows 10 企业版
OS Version:                10.0.18362 N/A Build 18362
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Member Workstation
OS Build Type:             Multiprocessor Free
Registered Owner:          Windows 用户
Registered Organization:
Product ID:                00329-10180-00000-AA912
Original Install Date:     2019/5/23 星期四, 21:59:14
System Boot Time:          2019/11/2 星期六, 18:27:11
System Manufacturer:       Dell Inc.
System Model:              ChengMing 3980
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 158 Stepping 10 GenuineIntel ~3000 Mhz
BIOS Version:              Dell Inc. 2.13.0, 2019/5/29 星期三
Windows Directory:         C:\WINDOWS
System Directory:          C:\WINDOWS\system32
Boot Device:               \Device\HarddiskVolume2
System Locale:             zh-cn;Chinese (China)
Input Locale:              zh-cn;Chinese (China)
Time Zone:                 (UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi
Total Physical Memory:     16,204 MB
Available Physical Memory: 9,369 MB
Virtual Memory: Max Size:  23,884 MB
Virtual Memory: Available: 14,873 MB
Virtual Memory: In Use:    9,011 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    **********
Logon Server:              \\PMANKYDC
Hotfix(s):                 6 Hotfix(s) Installed.
                           [01]: KB4515871
                           [02]: KB4497727
                           [03]: KB4503308
                           [04]: KB4508433
                           [05]: KB4516115
                           [06]: KB4512508
Network Card(s):           5 NIC(s) Installed.
                           [01]: Hyper-V Virtual Ethernet Adapter
                                 Connection Name: vEthernet (外部虚拟交换机)
                                 DHCP Enabled:    Yes
                                 DHCP Server:     10.1.98.41
                                 IP address(es)
                                 [01]: 10.99.188.73
                                 [02]: fe80::1145:25c7:abe6:10a7
                           [02]: Hyper-V Virtual Ethernet Adapter
                                 Connection Name: vEthernet (Default Switch)
                                 DHCP Enabled:    No
                                 IP address(es)
                                 [01]: 172.18.20.49
                                 [02]: fe80::8ca5:85b1:ec83:40d1
                           [03]: Realtek PCIe GbE Family Controller
                                 Connection Name: 以太网
                                 DHCP Enabled:    Yes
                                 DHCP Server:     N/A
                                 IP address(es)
                           [04]: Realtek RTL8188EU Wireless LAN 802.11n USB 2.0 Network Adapter
                                 Connection Name: WLAN
                                 Status:          Media disconnected
                           [05]: Hyper-V Virtual Ethernet Adapter
                                 Connection Name: vEthernet (DockerNAT)
                                 DHCP Enabled:    No
                                 IP address(es)
                                 [01]: 10.0.75.1
                                 [02]: fe80::8849:2f2c:e19a:7785
Hyper-V Requirements:      A hypervisor has been detected. Features required for Hyper-V will not be displayed.

Steps to reproduce

  1. crc setup
  2. crc start

Expected

can start

Actual

INFO Checking if running as normal user                                                                                                                                             INFO Checking if oc binary is cached
INFO Check Windows 10 release
INFO Hyper-V installed and operational
INFO Is user a member of the Hyper-V Administrators group
INFO Does the Hyper-V virtual switch exist
? Image pull secret [? for help] 
...
INFO Loading bundle: crc_hyperv_4.2.0.crcbundle ...
INFO Creating CodeReady Containers VM for OpenShift 4.2.0...
INFO Verifying validity of the cluster certificates ...
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO unknown error occurred
ERRO Error determining host IP: Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred
Temporary Error: unknown error occurred

Logs

DEBU Unable to find out if a new version is available: Get https://mirror.openshift.com/pub/openshift-v4/clients/crc/latest/release-info.json: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
INFO Checking if running as normal user
INFO Checking if oc binary is cached
DEBU oc binary already cached
INFO Check Windows 10 release
INFO Hyper-V installed and operational
INFO Is user a member of the Hyper-V Administrators group
INFO Does the Hyper-V virtual switch exist
Checking file: C:\Users\8000619804\.crc\machines\crc\.crc-exist
Found binary path at D:\Program Files\crc\crc-windows-1.0.0-amd64\crc.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:54866
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(crc) Calling .GetBundleName
(crc) Calling .DriverName
(crc) Calling .GetState
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Off
(crc) DBG |
(crc) DBG | [stderr =====>] :
INFO Starting CodeReady Containers VM for OpenShift 4.2.0...
(crc) Calling .Start
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Start-VM crc
(crc) DBG | [stdout =====>] :
(crc) DBG | [stderr =====>] :
(crc) Waiting for host to start...
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] :
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] :
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] :
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] :
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : fe80::c729:752b:264e:bd56
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetConfigRaw
(crc) Calling .GetState
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
Found binary path at D:\Program Files\crc\crc-windows-1.0.0-amd64\crc.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:54883
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
DEBU Waiting until ssh is available
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : fe80::c729:752b:264e:bd56
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\8000619804\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
DEBU retry loop 1
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : fe80::c729:752b:264e:bd56
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\8000619804\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
DEBU retry loop 2
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : fe80::c729:752b:264e:bd56
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\8000619804\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
DEBU retry loop 3
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : fe80::c729:752b:264e:bd56
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\8000619804\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
DEBU retry loop 4
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : fe80::c729:752b:264e:bd56
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\8000619804\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
DEBU retry loop 5
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : fe80::c729:752b:264e:bd56
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\8000619804\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
DEBU retry loop 6
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : fe80::c729:752b:264e:bd56
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\8000619804\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
DEBU retry loop 7
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : fe80::c729:752b:264e:bd56
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\8000619804\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
DEBU retry loop 8
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : fe80::c729:752b:264e:bd56
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\8000619804\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
DEBU retry loop 9
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : fe80::c729:752b:264e:bd56
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\8000619804\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
ERRO Failed to connect to the CRC VM with SSH
Making call to close driver server
(crc) Calling .Close
(crc) DBG | Closing plugin on server side
Successfully made call to close driver server
Making call to close connection to plugin binary
Making call to close driver server
(crc) Calling .Close
(crc) DBG | Closing plugin on server side
Successfully made call to close driver server
Making call to close connection to plugin binary
@gbraad
Copy link
Contributor

gbraad commented Nov 4, 2019

Please check permission on the folder: C:\Users\8000619804\.crc\machines\crc\ as several issues relate to this. Kubeconfig not found, ssh key not being stored there, etc.

can you also describe the setup more, like why your username is a set of numbers? are you in a corporate environment?

Note: it is likely not related to permissions, but the fact the IP wasn't given or IPv6 was returned first

@gbraad gbraad changed the title [BUG]start error "Error determining host IP" Startup failure: Error getting config for native Go SSH: open The system cannot find the file specified. Nov 4, 2019
@gbraad gbraad added kind/bug Something isn't working os/windows priority/minor status/need more information Issue needs more information before it will be looked at labels Nov 4, 2019
@gbraad
Copy link
Contributor

gbraad commented Nov 4, 2019

I also notice you are getting a IPv6 address fe80::c729:752b:264e:bd56. This will likely result in issues...

... how is your networking configured? As you using a VPN at the moment of starting the CRC instance?

@gbraad
Copy link
Contributor

gbraad commented Nov 6, 2019

I think we should add a check to the IPAddresses like:

			if ip.To4() != nil && ip.IsGlobalUnicast() {
				return ip, nil
			}

like we did in Minishift (however we did this as part of the post-flight), but now part of the driver

@gbraad
Copy link
Contributor

gbraad commented Nov 6, 2019

Also see: machine-drivers/machine#23

@tsmaeder
Copy link

Please check permission on the folder: C:\Users\8000619804\.crc\machines\crc\ as several issues relate to this. Kubeconfig not found, ssh key not being stored there, etc.

@gbraad I have this problem, too. So what are the permissions supposed to be?

@piellick
Copy link

piellick commented Nov 15, 2019

Hy everyone, same probleme for me with crc 1.1.0 and hyperV. Someone has a workaround ?

@piellick
Copy link

Hi Everyone, someone could explain where the problem is ? HYperV network configuration ? Or a bug on crc ?

@gbraad
Copy link
Contributor

gbraad commented Nov 19, 2019

It is not a bug on CRC, but rather the behaviour of a library we use. Also, it seems that in most of the aforementioned logs, IPv6 wins out as the address that was given to the VM. This should not be the case as IPv4 is the default. In other words, it is unexepcted behaviour from the hypervisor and libmachine. We are looking into this.

Make sure DHCP is enable for the Default Switch network adapter:

PS> Set-NetIPInterface -InterfaceAlias 'vEthernet (Default Switch)' -dhcp enable

... but disable the one which allows IPv6:

PS> Set-NetIPInterface -InterfaceAlias 'vEthernet (Default Switch)' -AddressFamily IPv6 -dhcp disable

Please report back if this helped

@piellick
Copy link

piellick commented Nov 19, 2019

Hi @gbraad thanks,

i try to create a dedicated virtual Switch , assign this switch to crc VM and assign dhcp configuration on it .

PS C:\WINDOWS\system32> Set-NetIPInterface -InterfaceAlias 'vEthernet (crc)' -AddressFamily IPv6 -dhcp disable
PS C:\WINDOWS\system32> Set-NetIPInterface -InterfaceAlias 'vEthernet (crc)' -dhcp enable

But CRC still catching IP v6 adresse ... i couldn't find knowledge base about DHCP "server" on HyperV .. are you sure that is possible ?

Another solution could be to assign a static IP on the virtual Switch (on the network interface of the Host hyperV windows) and ask at the startup of the crc machine an IP through the prompt.

PS C:\codeready\crc-windows-1.1.0-amd64> .\crc.exe start --log-level debug
DEBU No new version available. The latest version is 1.1.0
INFO Checking if running as normal user
INFO Checking if oc binary is cached
DEBU oc binary already cached
INFO Check Windows 10 release
INFO Hyper-V installed and operational
INFO Is user a member of the Hyper-V Administrators group
INFO Does the Hyper-V virtual switch exist
Checking file: C:\Users\XXX\.crc\machines\crc\.crc-exist
Found binary path at C:\codeready\crc-windows-1.1.0-amd64\crc.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:53172
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(crc) Calling .GetBundleName
(crc) Calling .DriverName
(crc) Calling .GetState
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Off
(crc) DBG |
(crc) DBG | [stderr =====>] :
INFO Starting CodeReady Containers VM for OpenShift 4.2.2...
(crc) Calling .Start
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Start-VM crc
(crc) DBG | [stdout =====>] :
(crc) Waiting for host to start...
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] :
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] :
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] :
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : fe80::e5af:b2ba:3d32:aa04
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetConfigRaw
(crc) Calling .GetState
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
Found binary path at C:\codeready\crc-windows-1.1.0-amd64\crc.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:53183
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
DEBU Waiting until ssh is available
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : fe80::e5af:b2ba:3d32:aa04
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\XXX\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
DEBU retry loop 1
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : fe80::e5af:b2ba:3d32:aa04
(crc) DBG |

@gbraad
Copy link
Contributor

gbraad commented Nov 19, 2019

@piellick CRC at the moment does NOT use any network switch different from the "Default Switch".

https://github.com/code-ready/crc/blob/667c50689512f881fa60c6bef88ef2d31a0bf2fc/pkg/crc/machine/hyperv/driver_windows.go#L21-L22

Only with #722 this will be possible. So yes, it will get IPv6 on the Default Switch as the changes you made are on a dedicated switch.

Can you make them on the Default Switch instead, for testing purposes?

Note: I do not have the issue, or unable to reproduce, as what you are all seeing at this moment.

@gbraad
Copy link
Contributor

gbraad commented Nov 19, 2019

Another solution could be to assign a static IP on the virtual Switch (on the network interface of the Host hyperV windows) and ask at the startup of the crc machine an IP through the prompt.

This is not possible. We added such functionality to Minishift, but this needed modifications to the startup script and passing configuration information in on startup by the message bus. We will likely not redo this for crc. Also, the Default Switch does not play well with pre-assigned addresses, as an address is only valid after it was granted by the DHCRequest->DHCPOffer exchange.

@piellick
Copy link

piellick commented Nov 19, 2019

@gbraad , i did a incredible tunned Vm attached to same virtual switch than CRC with an embedded DHCP server. CRC as now an ipv4 IP but new problem. How SSH key is created ? through the "start" script ?


Found binary path at C:\codeready\crc-windows-1.1.0-amd64\crc.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:51582
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
DEBU Waiting until ssh is available
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.10.20
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\XXX\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
DEBU retry loop 1
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.10.20
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\XXX\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
DEBU retry loop 2
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.10.20
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\XXX\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
DEBU retry loop 3
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 192.168.10.20
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
<nil>
DEBU error: Temporary Error: Error getting config for native Go SSH: open C:\Users\XXX\.crc\machines\crc\id_rsa: The system cannot find the file specified. - sleeping 1s
PS C:\codeready\crc-windows-1.1.0-amd64>

@gbraad
Copy link
Contributor

gbraad commented Nov 19, 2019 via email

@piellick
Copy link

piellick commented Nov 19, 2019

ok thanks but how to debug please ? Or use openSSH windows and not native go implementation. I founded a lot of issues about it but no documentation.

@gbraad
Copy link
Contributor

gbraad commented Nov 19, 2019 via email

@piellick
Copy link

piellick commented Nov 19, 2019 via email

@gbraad
Copy link
Contributor

gbraad commented Nov 19, 2019

Have you hard coded the fact of using the default virtual switch

The Virtual Switch is assumed to be used throughout the lifetime for now. It is not in scripts or whatever (as we run commands), BUT it shows you are now using an untested setup.

i have created a dedicated virtual switch , assigned crc VM

This means you are not using the expected setup; you have modified an instance and assume this works. This is untested.

I have asked you in a previous message to disable the DHCP server on the Default Switch and test this way for now.

PS> Set-NetIPInterface -InterfaceAlias 'vEthernet (Default Switch)' -AddressFamily IPv6 -dhcp disable

Any other setup will not be debugged by me at this moment, as this also involves routes and other settings that might now be wrongly provided by the DHCP server you have running.

@piellick
Copy link

piellick commented Nov 19, 2019

hi @gbraad no problem i understand, same problem with the default virtual switch and IPv6 DHCP disabled through your command :

i have now a dhcp offer by default virtual switch (172.17.67.187)

=================================================================

PS C:\codeready\crc-windows-1.1.0-amd64> .\crc.exe start --log-level debug
DEBU No new version available. The latest version is 1.1.0
INFO Checking if running as normal user
INFO Checking if oc binary is cached
DEBU oc binary already cached
INFO Check Windows 10 release
INFO Hyper-V installed and operational
INFO Is user a member of the Hyper-V Administrators group
INFO Does the Hyper-V virtual switch exist
Checking file: C:\Users\Prost.crc\machines\crc.crc-exist
Found binary path at C:\codeready\crc-windows-1.1.0-amd64\crc.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:53517
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(crc) Calling .GetBundleName
(crc) Calling .DriverName
(crc) Calling .GetState
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Off
(crc) DBG |
(crc) DBG | [stderr =====>] :
INFO Starting CodeReady Containers VM for OpenShift 4.2.2...
(crc) Calling .Start
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Start-VM crc
(crc) DBG | [stdout =====>] :
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) Waiting for host to start...
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] :
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] :
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] :
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 172.17.67.187
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetConfigRaw
(crc) Calling .GetState
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
Found binary path at C:\codeready\crc-windows-1.1.0-amd64\crc.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:53520
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
DEBU Waiting until ssh is available
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 172.17.67.187
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native

DEBU error: Temporary Error: Error getting config for native Go SSH: ssh: no key found - sleeping 1s
DEBU retry loop 1
(crc) Calling .GetSSHHostname
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM crc ).state
(crc) DBG | [stdout =====>] : Running
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) DBG | [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive (( Hyper-V\Get-VM crc ).networkadapters[0]).ipaddresses[0]
(crc) DBG | [stdout =====>] : 172.17.67.187
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native

@gbraad
Copy link
Contributor

gbraad commented Nov 19, 2019

@piellick at the moment it shows the expected IP address; 172.17.67.187 on the Default Switch. It is not the 'same' error as above as Error getting config for native Go SSH: ssh: no key found and different from Error getting config for native Go SSH: open C:\Users\8000619804\.crc\machines\crc\id_rsa: The system cannot find the file specified.

The

No key found

and

The system cannot find the file specified

come from different parts in the code.

The no key found likely has a file, but this file is not valid for authenitcation, while the cannot find the file is related to a missing file.

It is however different from the kubeconfig as mentioned and likely this is unrele\ated.

@gbraad
Copy link
Contributor

gbraad commented Nov 19, 2019

Please make sure you are running this against a new instance, use crc delete -f before attemtping to start again.

@gbraad
Copy link
Contributor

gbraad commented Nov 19, 2019

@east4ming can you try disabling IPv6 on the Default Switch?

PS> Set-NetIPInterface -InterfaceAlias 'vEthernet (Default Switch)' -AddressFamily IPv6 -dhcp disable

and rerun the start after a crc delete -f.

@gbraad
Copy link
Contributor

gbraad commented Nov 19, 2019

@tsmaeder can you try the same as above ^^^, disabling IPv6 on a new instance? I believe something went wrong in the authentication flow and the 'not found' is a result of this. It is likely not a permission issue, but rather an expectation error in the key exchange code (which fails to login due to IPv6 perhaps).

@tsmaeder
Copy link

Unfortunately, this started working for me. Not sure when i'll have time to get back to try setting up crc, I'm afraid.

@gbraad
Copy link
Contributor

gbraad commented Nov 19, 2019

Thanks. so it is not a persistent issue. Waiting for the OP to come backto us.
It might have been related to a recent patch that got pushed as I noticed a recent increase in issues surrounding Hyper-V.

@piellick
Copy link

piellick commented Nov 20, 2019

Please make sure you are running this against a new instance, use crc delete -f before attemtping to start again.

Hi @gbraad , same problem if i run 'crc delete -f` before .

@stale
Copy link

stale bot commented Feb 11, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status/stale Issue went stale; did not receive attention or no reply from the OP label Feb 11, 2020
@stale stale bot closed this as completed Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working os/windows priority/minor status/need more information Issue needs more information before it will be looked at status/stale Issue went stale; did not receive attention or no reply from the OP
Projects
None yet
Development

No branches or pull requests

4 participants