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

[BUG] Unable to start CRC on Catalina #1033

Closed
gitjps opened this issue Feb 22, 2020 · 5 comments
Closed

[BUG] Unable to start CRC on Catalina #1033

gitjps opened this issue Feb 22, 2020 · 5 comments
Labels
kind/bug Something isn't working status/stale Issue went stale; did not receive attention or no reply from the OP

Comments

@gitjps
Copy link

gitjps commented Feb 22, 2020

General information

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

CRC version

crc version: 1.6.0+8ef676f
OpenShift version: 4.3.0 (embedded in binary)

CRC status (no output)

CRC config

# Put `crc config view` output here

Host Operating System

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

Steps to reproduce

  1. crc setup
  2. crc start
  3. crc console

Expected

web console

Actual

empty console

Logs

% ./crc start
INFO Checking if oc binary is cached              
INFO Checking if running as non-root              
INFO Checking if HyperKit is installed            
INFO Checking if crc-driver-hyperkit is installed 
INFO Checking file permissions for /etc/resolver/testing 
INFO Checking file permissions for /etc/hosts     
INFO A CodeReady Containers VM for OpenShift 4.3.0 is already running 
Started the OpenShift cluster
WARN The cluster might report a degraded or error state. This is expected since several operators have been disabled to lower the resource usage. For more information, please consult the documentation 
jps@MacBook-Pro crc-macos-1.6.0-amd64 % ./crc console
Opening the OpenShift Web Console in the default browser...
 % crc start --log-level debug
DEBU No new version available. The latest version is 1.6.0 
INFO Checking if oc binary is cached              
DEBU oc binary already cached                     
INFO Checking if running as non-root              
INFO Checking if HyperKit is installed            
DEBU Checking if hyperkit is installed            
INFO Checking if crc-driver-hyperkit is installed 
DEBU Checking if crc-driver-hyperkit is installed 
DEBU Running '/Users/jps/.crc/bin/crc-driver-hyperkit version' 
DEBU crc-driver-hyperkit is already installed in /Users/jps/.crc/bin/crc-driver-hyperkit 
INFO Checking file permissions for /etc/resolver/testing 
INFO Checking file permissions for /etc/hosts     
Checking file: /Users/jps/.crc/machines/crc/.crc-exist
? Copy it from https://cloud.redhat.com/openshift/install/crc/installer-provisioned
? Image pull secret *************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************INFO Loading bundle: crc_hyperkit_4.3.0.crcbundle ... *****************************************************************************************************************************************************INFO Creating CodeReady Containers VM for OpenShift 4.3.0... **********************************************************************************************************************************************Found binary path at /Users/jps/.crc/bin/crc-driver-hyperkit***********************************************************************************************************************************************Launching plugin server for driver hyperkit****************************************************************************************************************************************************************Plugin server listening at address 127.0.0.1:54394*********************************************************************************************************************************************************() Calling .GetVersion*************************************************************************************************************************************************************************************Using API Version  1***************************************************************************************************************************************************************************************() Calling .SetConfigRaw***********************************************************************************************************************************************************************************() Calling .GetMachineName*********************************************************************************************************************************************************************************(crc) Calling .GetMachineName******************************************************************************************************************************************************************************(crc) Calling .DriverName**********************************************************************************************************************************************
Running pre-create checks...
(crc) Calling .PreCreateCheck
(crc) DBG | exe=/Users/jps/.crc/bin/crc-driver-hyperkit uid=0
(crc) Calling .GetConfigRaw
Creating machine...
(crc) Calling .Create
(crc) DBG | exe=/Users/jps/.crc/bin/crc-driver-hyperkit uid=0
(crc) Downloading /Users/jps/.crc/cache/crc.disk from file:///Users/jps/.crc/cache/crc_hyperkit_4.3.0/crc.qcow2...
(crc) DBG | exe=/Users/jps/.crc/bin/crc-driver-hyperkit uid=0
(crc) DBG | clean start, hyperkit pid file doesn't exist: /Users/jps/.crc/machines/crc/hyperkit.pid
(crc) DBG | Using hyperkit binary from /Users/jps/.crc/bin/hyperkit
(crc) DBG | Using UUID c3d68012-0208-11ea-9fd7-f2189899ab08
(crc) DBG | Generated MAC e:f0:e3:c7:4f:be
(crc) DBG | Starting with cmdline: BOOT_IMAGE=(hd0,gpt1)/ostree/rhcos-9a8c2fd60f5219ecf823c685ed70097b8c55bb8b0d43e4192737ea7918630918/vmlinuz-4.18.0-147.3.1.el8_1.x86_64 rhcos.root=crypt_rootfs console=tty0 console=ttyS0,115200n8 ignition.platform.id=qemu rd.luks.options=discard ostree=/ostree/boot.0/rhcos/9a8c2fd60f5219ecf823c685ed70097b8c55bb8b0d43e4192737ea7918630918/0
(crc) DBG | Trying to execute /Users/jps/.crc/bin/hyperkit -A -u -F /Users/jps/.crc/machines/crc/hyperkit.pid -c 4 -m 8192M -s 0:0,hostbridge -s 31,lpc -s 1:0,virtio-net -U c3d68012-0208-11ea-9fd7-f2189899ab08 -s 2:0,virtio-blk,file:///Users/jps/.crc/machines/crc/crc.disk,format=qcow -s 3,virtio-rnd -l com1,autopty=/Users/jps/.crc/machines/crc/tty,log=/Users/jps/.crc/machines/crc/console-ring -f kexec,/Users/jps/.crc/cache/crc_hyperkit_4.3.0/vmlinuz-4.18.0-147.3.1.el8_1.x86_64,/Users/jps/.crc/cache/crc_hyperkit_4.3.0/initramfs-4.18.0-147.3.1.el8_1.x86_64.img,earlyprintk=serial BOOT_IMAGE=(hd0,gpt1)/ostree/rhcos-9a8c2fd60f5219ecf823c685ed70097b8c55bb8b0d43e4192737ea7918630918/vmlinuz-4.18.0-147.3.1.el8_1.x86_64 rhcos.root=crypt_rootfs console=tty0 console=ttyS0,115200n8 ignition.platform.id=qemu rd.luks.options=discard ostree=/ostree/boot.0/rhcos/9a8c2fd60f5219ecf823c685ed70097b8c55bb8b0d43e4192737ea7918630918/0
(crc) DBG | exe=/Users/jps/.crc/bin/crc-driver-hyperkit uid=0
(crc) DBG | hyperkit pid from json: 3621
(crc) DBG | Searching for e:f0:e3:c7:4f:be in /var/db/dhcpd_leases ...
(crc) DBG | Found 5 entries in /var/db/dhcpd_leases!
(crc) DBG | dhcp entry: {Name:crc-w6th5-master-0 IPAddress:192.168.64.6 HWAddress:e:f0:e3:c7:4f:be ID:1,e:f0:e3:c7:4f:be Lease:0x5e52335a}
(crc) DBG | Found match: e:f0:e3:c7:4f:be
(crc) Calling .GetConfigRaw
(crc) DBG | IP: 192.168.64.6
(crc) Calling .DriverName
(crc) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(crc) Calling .GetState
(crc) DBG | exe=/Users/jps/.crc/bin/crc-driver-hyperkit uid=0
(crc) DBG | hyperkit pid from json: 3621
Machine is up and running!
Machine successfully created
Created /Users/jps/.crc/machines/crc/.crc-exist
(crc) Calling .GetState
(crc) DBG | exe=/Users/jps/.crc/bin/crc-driver-hyperkit uid=0
(crc) DBG | hyperkit pid from json: 3621
Found binary path at /Users/jps/.crc/bin/crc-driver-hyperkit
Launching plugin server for driver hyperkit
Plugin server listening at address 127.0.0.1:54405
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
DEBU Waiting until ssh is available               
(crc) Calling .GetSSHHostname
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/jps/.crc/cache/crc_hyperkit_4.3.0/id_rsa_crc (-r--------)
&{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected] -o IdentitiesOnly=yes -i /Users/jps/.crc/cache/crc_hyperkit_4.3.0/id_rsa_crc -p 22] /usr/bin/ssh <nil>}
DEBU About to run SSH command:
exit 0             
DEBU SSH cmd err, output: exit status 255:        
DEBU error: Temporary Error: ssh command error:
command : exit 0
err     : exit status 255
output  :  - sleeping 1s 
DEBU retry loop 1                                 
(crc) Calling .GetSSHHostname
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/jps/.crc/cache/crc_hyperkit_4.3.0/id_rsa_crc (-r--------)
&{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected] -o IdentitiesOnly=yes -i /Users/jps/.crc/cache/crc_hyperkit_4.3.0/id_rsa_crc -p 22] /usr/bin/ssh <nil>}
DEBU About to run SSH command:
exit 0             
DEBU SSH cmd err, output: exit status 255:        
DEBU error: Temporary Error: ssh command error:
command : exit 0
err     : exit status 255
output  :  - 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
Using SSH private key: /Users/jps/.crc/cache/crc_hyperkit_4.3.0/id_rsa_crc (-r--------)
&{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected] -o IdentitiesOnly=yes -i /Users/jps/.crc/cache/crc_hyperkit_4.3.0/id_rsa_crc -p 22] /usr/bin/ssh <nil>}
DEBU About to run SSH command:
exit 0             
DEBU SSH cmd err, output: exit status 255:        
DEBU error: Temporary Error: ssh command error:
command : exit 0
err     : exit status 255
output  :  - sleeping 1s 
ERRO Failed to connect to the CRC VM with SSH     
Making call to close driver server
(crc) Calling .Close
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
@gitjps gitjps added the kind/bug Something isn't working label Feb 22, 2020
@gbraad
Copy link
Contributor

gbraad commented Feb 24, 2020

Please provide more information, especially a title.

the crc console as described in the steps is not working as the cluster never started. Can you describe your environment, installed and/or running software, especially like anti-virus, VPN or other network related tools.

@gbraad gbraad changed the title [BUG] [BUG] Unable to start CRC on Catalina Feb 24, 2020
@gbraad
Copy link
Contributor

gbraad commented Feb 24, 2020

Note: this title Unable to start CRC on Catalina now is not the case, but it would provide more details (and raises attention).

@praveenkumar
Copy link
Member

As part of the logs I can only get following message which means VM is started but the ssh connection is not working. I think same what @morningspace experienced some time back but that was just him.

DEBU retry loop 59                                
(crc) Calling .GetSSHHostname
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: external
Using SSH private key: /Users/jps/.crc/cache/crc_hyperkit_4.3.0/id_rsa_crc (-r--------)
&{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null [email protected] -o IdentitiesOnly=yes -i /Users/jps/.crc/cache/crc_hyperkit_4.3.0/id_rsa_crc -p 22] /usr/bin/ssh <nil>}
DEBU About to run SSH command:
exit 0             
DEBU SSH cmd err, output: exit status 255:        
DEBU error: Temporary Error: ssh command error:
command : exit 0
err     : exit status 255
output  :  - sleeping 1s 
ERRO Failed to connect to the CRC VM with SSH   

@gbraad
Copy link
Contributor

gbraad commented Feb 26, 2020

his colleagues didn't have the problem, so it might be related to stuff that is installed or configured (likely changed instead of a default)

@stale
Copy link

stale bot commented Apr 26, 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 Apr 26, 2020
@stale stale bot closed this as completed May 10, 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 status/stale Issue went stale; did not receive attention or no reply from the OP
Projects
None yet
Development

No branches or pull requests

3 participants