crc-org / tray-macos

Small tray app for crc to perform common cluster operations
Apache License 2.0
5 stars 5 forks source link

Unable to re-start CRC on big sur #72

Open anjannath opened 3 years ago

anjannath commented 3 years ago

Starting a stopped crc instance fails with the following error:

time="2021-03-02T21:00:16+05:30" level=debug msg="retry loop: attempt 4"
time="2021-03-02T21:00:16+05:30" level=debug msg="Running SSH command: exit 0"
time="2021-03-02T21:00:16+05:30" level=debug msg="Using ssh private keys: [/Users/redhat/.crc/cache/crc_hyperkit_4.7.0/id_ecdsa_crc /Users/redhat/.crc/machines/crc/id_ecdsa]"
time="2021-03-02T21:01:16+05:30" level=debug msg="SSH command results: err: dial tcp 192.168.64.49:22: i/o timeout, output: "
time="2021-03-02T21:01:16+05:30" level=debug msg="error: Temporary error: ssh command error:\ncommand : exit 0\nerr     : dial tcp 192.168.64.49:22: i/o timeout\\n - sleeping 1s"
time="2021-03-02T21:01:17+05:30" level=debug msg="RetryAfter timeout after 5 tries"
time="2021-03-02T21:01:17+05:30" level=debug msg="Making call to close driver server"
time="2021-03-02T21:01:17+05:30" level=debug msg="(crc) Calling .Close"
time="2021-03-02T21:01:17+05:30" level=debug msg="Successfully made call to close driver server"
time="2021-03-02T21:01:17+05:30" level=debug msg="Making call to close connection to plugin binary"
time="2021-03-02T21:01:17+05:30" level=debug msg="(crc) DBG | time=\"2021-03-02T21:01:17+05:30\" level=debug msg=\"Closing plugin on server side\""
time="2021-03-02T21:01:17+05:30" level=error msg="Failed to connect to the CRC VM with SSH -- host might be unreachable: Temporary error: ssh command error:\ncommand : exit 0\nerr     : dial tcp 192.168.64.49:22: i/o timeout\\n (x5)"

running crc status at this state shows:

redhat@blr-crc-macserver ~ % crc status --log-level debug
DEBU CodeReady Containers version: 1.23.0+6acfacb2 
DEBU OpenShift version: 4.7.0 (embedded in executable) 
DEBU Running 'crc status'                         
DEBU Checking file: /Users/redhat/.crc/machines/crc/.crc-exist 
DEBU Checking file: /Users/redhat/.crc/machines/crc/.crc-exist 
DEBU Found binary path at /Users/redhat/.crc/bin/crc-driver-hyperkit 
DEBU Launching plugin server for driver hyperkit  
DEBU Plugin server listening at address 127.0.0.1:54248 
DEBU () Calling .GetVersion                       
DEBU Using API Version 1                          
DEBU () Calling .SetConfigRaw                     
DEBU () Calling .GetMachineName                   
DEBU (crc) Calling .GetState                      
DEBU (crc) DBG | time="2021-03-03T13:35:26+05:30" level=debug msg="exe=/Users/redhat/.crc/bin/crc-driver-hyperkit uid=0" 
DEBU (crc) DBG | time="2021-03-03T13:35:26+05:30" level=debug msg="hyperkit pid from json: 21538" 
DEBU (crc) Calling .GetBundleName                 
DEBU (crc) Calling .GetIP                         
DEBU Running SSH command: df -B1 --output=size,used,target /sysroot | tail -1 
DEBU Using ssh private keys: [/Users/redhat/.crc/machines/crc/id_ecdsa] 

DEBU SSH command results: err: dial tcp 192.168.64.49:22: i/o timeout, output:  
DEBU Making call to close driver server           
DEBU (crc) Calling .Close                         
DEBU Successfully made call to close driver server 
DEBU Making call to close connection to plugin binary 
DEBU (crc) DBG | time="2021-03-03T13:36:26+05:30" level=debug msg="Closing plugin on server side" 
Cannot get root partition usage: ssh command error:
command : df -B1 --output=size,used,target /sysroot | tail -1
err     : dial tcp 192.168.64.49:22: i/o timeout\n

Full logs: https://gist.github.com/adrianriobo/2305dd998d70d2dce47eabe08abcfabf