crc: Install fails with looping .crc/machines/crc/id_rsa: no such file or directory

General information

  • OS: Mac
  • Hypervisor: hyperkit
  • Did you run crc setup before starting it (Yes/No)?: Yes

CRC version

crc version
crc version: 1.7.0+fa7e558
OpenShift version: 4.3.1 (embedded in binary)

have also attempted several other 4.x versions

CRC status

crc status
ERRO error: stat /Users/et2448/.crc/machines/crc/kubeconfig: no such file or directory
 - exit status 1 

CRC config

<no output>

Host Operating System

sw_vers
ProductName:    Mac OS X
ProductVersion: 10.15.3
BuildVersion:   19D76

Steps to reproduce

  1. download crc binary, clear the security for the binary system prefs -> security
  2. crc setup
  3. crc start will hang as described in “actual”

Expected

should complete install, or at least timeout and point at some failing step

Actual

INFO Creating CodeReady Containers VM for OpenShift 4.3.1…

Logs

when attempting start for 2nd time with log I get to this step:

DEBU error: Temporary Error: stat /Users/et2448/.crc/machines/crc/id_rsa: no such file or directory - sleeping 1s 
DEBU retry loop 57                                
(crc) Calling .GetSSHHostname
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: external
<nil>
DEBU error: Temporary Error: stat /Users/et2448/.crc/machines/crc/id_rsa: no such file or directory - sleeping 1s 
DEBU retry loop 58                                
(crc) Calling .GetSSHHostname
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: external
<nil>
DEBU error: Temporary Error: stat /Users/et2448/.crc/machines/crc/id_rsa: no such file or directory - sleeping 1s 
DEBU retry loop 59                                
(crc) Calling .GetSSHHostname
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: external
<nil>
DEBU error: Temporary Error: stat /Users/et2448/.crc/machines/crc/id_rsa: no such file or directory - sleeping 1s 
ERRO Failed to connect to the CRC VM with SSH -- host might be unreachable 
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
Successfully made call to close driver server
Making call to close connection to plugin binary
(crc) DBG | Closing plugin on server side

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 34 (16 by maintainers)

Most upvoted comments

That does not really help with debugging the issue.

@owen-sun The error 1DEBU error: Temporary Error: stat /Users/owen/.crc/machines/crc/id_rsa: no such file or directory - indicates something failed during the initial generation of the machien specific key. Can you do a

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

@owen-sun it was never fixed. I gave up. Guess they’re not code ready after all…

lol - yes, it’s a typo-clone 😃 - fixed I’ve attempted install several times and always delete ~/.crc I’ll get back with the updates

@davidkarlsen Can you do following and also put complete logs to a gist ?

$ crc delete
$ rm -fr ~/.crc
$ crc setup
$ crc start --log-level debug