-
Notifications
You must be signed in to change notification settings - Fork 240
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
crc start hangs with SSH issue when running (crc) Calling .GetSSHUsername #908
Comments
Been having the same issue (Fedora 31, libvirt, CRC v1.3.0 Openshift v4.2.10). The retry loop goes on but basically this is the error:
What gives? |
Same issues here on Windows 10 General information
.\crc.exe stop
.\crc.exe delete -f
.\crc.exe setup
.\crc.exe start -n 8.8.8.8 --log-level debug CRC versioncrc version: 1.3.0+918756b
OpenShift version: 4.2.10 (embedded in binary) CRC statusPS C:\OpenShiftCodeReady-1.3.0> .\crc.exe status
ERRO Unable to connect to the server: dial tcp 31.199.53.9:6443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
- exit status 1 CRC config
PS C:\OpenShiftCodeReady-1.3.0> .\crc.exe config view
PS C:\OpenShiftCodeReady-1.3.0> Host Operating SystemPS C:\OpenShiftCodeReady-1.3.0> systeminfo
Host Name: DINO-PC
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19041 N/A Build 19041
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Owner: N/A
Registered Organization: N/A
Product ID: 00330-80000-00000-AA444
Original Install Date: 23/12/2019, 08:28:48
System Boot Time: 26/12/2019, 12:09:34
System Manufacturer: MSI
System Model: MS-7922
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 60 Stepping 3 GenuineIntel ~4000 Mhz
BIOS Version: American Megatrends Inc. V10.6, 13/08/2015
Windows Directory: C:\WINDOWS
System Directory: C:\WINDOWS\system32
Boot Device: \Device\HarddiskVolume2
System Locale: en-us;English (United States)
Input Locale: en-us;English (United States)
Time Zone: (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
Total Physical Memory: 32.720 MB
Available Physical Memory: 4.189 MB
Virtual Memory: Max Size: 39.668 MB
Virtual Memory: Available: 7.076 MB
Virtual Memory: In Use: 32.592 MB
Page File Location(s): C:\pagefile.sys
Domain: WORKGROUP
Logon Server: \\DINO-PC
Hotfix(s): N/A
Network Card(s): 4 NIC(s) Installed.
[01]: Xbox Wireless Adapter for Windows
Connection Name: Ethernet 2
DHCP Enabled: No
IP address(es)
[02]: Realtek PCIe GbE Family Controller
Connection Name: Ethernet
DHCP Enabled: Yes
DHCP Server: 192.168.178.1
IP address(es)
[01]: 192.168.178.87
[02]: fe80::3087:8222:22e0:17e0
[03]: Hyper-V Virtual Ethernet Adapter
Connection Name: vEthernet (Default Switch)
DHCP Enabled: No
IP address(es)
[01]: 172.18.240.1
[02]: fe80::950c:b540:c83a:17c1
[04]: Hyper-V Virtual Ethernet Adapter
Connection Name: vEthernet (WSL)
DHCP Enabled: No
IP address(es)
[01]: 172.18.128.1
[02]: fe80::5417:a718:e576:314a
Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed. Steps to reproduce
ExpectedThe system must connect to the correct VM ip address": while it seems it is connecting to: ActualStuck after trying to pull secret: INFO Adding user's pull secret ...
(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.18.251.67
(crc) DBG |
(crc) DBG | [stderr =====>] :
(crc) Calling .GetSSHPort
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHKeyPath
(crc) Calling .GetSSHUsername
Using SSH client type: native
&{{{<nil> 0 [] [] []} core [0x7b6f70] 0x7b6f40 <nil> [] 0s} 172.18.251.67 22 <nil> <nil>}
DEBU About to run SSH command with hidden output
DEBU Unable to connect to the server: dial tcp 31.199.53.9:6443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
DEBU error: Temporary Error: exit status 1 - sleeping 1s
DEBU retry loop 1
DEBU Unable to connect to the server: dial tcp 31.199.53.9:6443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
DEBU error: Temporary Error: exit status 1 - sleeping 1s
DEBU retry loop 2 This loop continues indefinitely until I cancel the start process with crtl + c. Logshttps://gist.github.com/dinolupo/28b72b111a6e4782613807f8a0b654fe |
@tquigly1287 @hadarsharon @dinolupo By any chance you folks are using crc behind the vpn? |
@praveenkumar Not in my case. |
Alright after looking closely all the users logs looks like all of you have different issue. In case of @tquigly1287 , he didn't waited till the timeout happen due to ssh connection and manually used In case of @dinolupo crc start to create the VM but then dns doesn't work properly, following snip from the logs show it is using different IP. 172.18.251.67 should be the VM IP but then it is querying to 31.199.53.9 when check with the connection.
@hadarsharon In your case the logs which you uploaded looks like you didn't started a fresh crc container but either stopped or manually stopped the process. Can you please try to do |
Hi @praveenkumar, Yes, you are correct I was using a VPN. I have tried the crc start once more with the VPN turned off and it started the cluster. Just to be sure I re-tested the crc with the VPN on and it hangs like before. For reference - I was following this blog post: If you still need logs - to help fix the VPN problem, I can re-run asupply these. Let me know. Thanks for your help, Tim |
@praveenkumar Actually you might be on to something since every time I do crc delete and crc start I get the following error, after which I have to manually change permissions on the file using chmod, then it continues to the error I had originally posted. See log for more info:
My user has sudo permissions, is in the list of sudoers etc. so I don't see why the permission denied error is happening but obviously something is off. |
@hadarsharon This looks like the libvirt setup might be broken for you, what is the output of
|
|
@hadarsharon did you use |
@praveenkumar Yes. `[hsharon@localhost ~]$ ls -lZ ~/.crc/machines/crc/crc -rw------- 1 hsharon hsharon ? 11323703296 Jan 9 11:30 /home/hsharon/.crc/machines/crc/crc |
I have startup "hang" also.
Seems to be same scenario as reported by @tquigly1287. I had Cisco AnyConnect VPN in play. After shutdown of AnyConnect and retry 'start', I now seem to have successful startup.
|
Hi @praveenkumar I am not using any VPN. |
What software are you using besides CRC? What can you find in the
system/menu bar's notification area?
Also, which timezone are you in?
…On Fri, Jan 10, 2020 at 3:50 PM dino lupo ***@***.***> wrote:
VM IP but then it is querying to *31.199.53.9* when check with the
connection.
Hi @praveenkumar <https://github.com/praveenkumar> I am not using any VPN.
I am stuck, let me know if I can help in any way, I am available also for
a shared debugging session if you wish :D
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#908>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAOZXKQSORH4SXEVFR7H3Q5CDKZANCNFSM4J6CL5UA>
.
--
Gerard Braad | http://gbraad.nl
[ Doing Open Source Matters ]
|
Regards, |
it is not a difficult timezone (was there just last week), but even then we could set up a meeting. Sent me an email and will see what we can do. The other software might be services or drivers even, like a virus scanner (mcafee), etc. |
Ok, I wrote an email to your address.
|
Hi, General information
CRC version
CRC status
CRC config
Host Operating System
Steps to reproduce
Expectedcorrect installation Actualerror during start Logs
|
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. |
EDIT: got it fixed (see below).. Hi @praveenkumar , I got exactly the same issue (with crc file ownership , beeing owned somehow by my own user, not qemu), maybe we should have a separate issue for this one!?
here the permissions:
Infos on my OS and libvirt: Fedora 31, with latest updates and kernel (updated 3h ago) UPDATE: Got it fixed :) |
General Information
CRC Version
crc version: 1.3.0+918756b
OpenShift version: 4.2.10 (embedded in binary)
CRC Status
CRC VM: Stopped
OpenShift: Stopped
Disk Usage: 0B of 0B (Inside the CRC VM)
Cache Usage: 13.89GB
Cache Directory: /Users/tq@domain.com/.crc/cache
Issue
When I run "crc start" this initially runs ok, but then hangs.
Running "crc start --log-level debug" shows that the start up hangs here (i did "crc delete -f", then "crc setup" before running with the debug flag, so as to recreate from the beginning):
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/tq@domain.com/.crc/cache/crc_hyperkit_4.2.10/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 core@192.168.64.7 -o IdentitiesOnly=yes -i /Users/tq@domain.com/.crc/cache/crc_hyperkit_4.2.10/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/tq@domain.com/.crc/cache/crc_hyperkit_4.2.10/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 core@192.168.64.7 -o IdentitiesOnly=yes -i /Users/tq@domain.com/.crc/cache/crc_hyperkit_4.2.10/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
This loop continues indefinitely until I cancel the start process with crtl + c.
Up until this point the only changes I had to make was adding my user to the 'wheel' group and giving wheel group rw permissions on /etc/host.
Any help appreciated. Many thanks.
Attached crc.log file.
crc.log
The text was updated successfully, but these errors were encountered: