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] crc start fails as dependent service not started -- Daemon not available - Cannot reach daemon API: Get "http://unix/api/version" #3086

Closed
miltonabatista opened this issue Mar 26, 2022 · 8 comments
Labels
kind/bug Something isn't working status/need triage status/stale Issue went stale; did not receive attention or no reply from the OP

Comments

@miltonabatista
Copy link

miltonabatista commented Mar 26, 2022

General information

  • OS: Windows 11 Pro
  • Hypervisor: Hyper-V
  • Did you run crc setup before starting it (Yes/No)? Yes
  • Running CRC on: Laptop

CRC version

CodeReady Containers version: 2.0.1+f0fcd50e
OpenShift version: 4.10.3
Podman version: 3.4.4

CRC status

C:\Users\test >crc status --log-level debug
DEBU CodeReady Containers version: 2.0.1+f0fcd50e
DEBU OpenShift version: 4.10.3
DEBU Podman version: 3.4.4
DEBU Running 'crc status'
DEBU Checking file: C:\Users\test\.crc\machines\crc\.crc-exist
Machine does not exist. Use 'crc start' to create itcrc status --log-level debug
DEBU CodeReady Containers version: 2.0.1+f0fcd50e
DEBU OpenShift version: 4.10.3
DEBU Podman version: 3.4.4
DEBU Running 'crc status'
DEBU Checking file: C:\Users\test\.crc\machines\crc\.crc-exist
Machine does not exist. Use 'crc start' to create it

CRC config

crc config view
- consent-telemetry                     : no

Host Operating System

Host Name:                 LAPTOP01
OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.22000 N/A Build 22000
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Registered Owner:          test
Registered Organization:   N/A
Original Install Date:     1/24/2022, 7:30:17 PM
System Boot Time:          3/26/2022, 8:21:58 AM
System Manufacturer:       Dell Inc.
System Model:              Vostro 15 5510
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 140 Stepping 2 GenuineIntel ~2918 Mhz
BIOS Version:              Dell Inc. 2.7.1, 2/15/2022
Windows Directory:         C:\Windows
System Directory:          C:\Windows\system32
Boot Device:               \Device\HarddiskVolume1
System Locale:             pt-br;Portuguese (Brazil)
Input Locale:              pt-br;Portuguese (Brazil)
Time Zone:                 (UTC-03:00) Brasilia
Total Physical Memory:     16,123 MB
Available Physical Memory: 9,383 MB
Virtual Memory: Max Size:  20,219 MB
Virtual Memory: Available: 11,806 MB
Virtual Memory: In Use:    8,413 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    WORKGROUP
Logon Server:              \\LAPTOP01
Hotfix(s):                 3 Hotfix(s) Installed.
                           [01]: KB5010474
                           [02]: KB5011493
                           [03]: KB5009641
Network Card(s):           7 NIC(s) Installed.
                           [01]: Intel(R) Wi-Fi 6 AX201 160MHz
                                 Connection Name: Wi-Fi
                                 DHCP Enabled:    Yes
                                 DHCP Server:     N/A
                                 IP address(es)
                           [02]: Realtek PCIe GbE Family Controller
                                 Connection Name: Ethernet
                                 Status:          Media disconnected
                           [03]: Microsoft Wi-Fi Direct Virtual Adapter
                                 Connection Name: ConexÆo Local* 2
                                 Status:          Media disconnected
                           [04]: Check Point Virtual Network Adapter For Endpoint VPN Client
                                 Connection Name: Ethernet 3
                                 Status:          Media disconnected
                           [05]: VMware Virtual Ethernet Adapter for VMnet1
                                 Connection Name: VMware Network Adapter VMnet1
                                 DHCP Enabled:    No
                           [06]: VMware Virtual Ethernet Adapter for VMnet8
                                 Connection Name: VMware Network Adapter VMnet8
                                 DHCP Enabled:    No
                                 IP address(es)
                           [07]: Microsoft Network Adapter Multiplexor Driver
                                 Connection Name: Ponte de Rede
                                 DHCP Enabled:    Yes
                                 DHCP Server:     10.0.0.1
                                 IP address(es)
                                 [01]: 10.0.0.110
Hyper-V Requirements:      VM Monitor Mode Extensions: Yes
                           Virtualization Enabled In Firmware: Yes
                           Second Level Address Translation: Yes
                           Data Execution Prevention Available: Yes

Steps to reproduce

  1. install crc
  2. run crc setup
  3. run crc start

Expected

successful run crc start

Actual

Is CodeReady Containers tray application running? Cannot reach daemon API: Get "http://unix/api/version": open \.\pipe\crc-http: The system cannot find the file specified.

Logs

C:\Users\test> crc start --log-level debug
DEBU CodeReady Containers version: 2.0.1+f0fcd50e
DEBU OpenShift version: 4.10.3
DEBU Podman version: 3.4.4
DEBU Running 'crc start'
DEBU Total memory of system is 16905961472 bytes
DEBU No new version available. The latest version is 2.0.1
DEBU Checking file: C:\Users\test\.crc\machines\crc\.crc-exist
Is CodeReady Containers tray application running? Cannot reach daemon API: Get "http://unix/api/version": open \\.\pipe\crc-http: The system cannot find the file specified.
@miltonabatista miltonabatista added kind/bug Something isn't working status/need triage labels Mar 26, 2022
@miltonabatista miltonabatista changed the title [BUG] [BUG] crc start :: Cannot reach daemon API: Get "http://unix/api/version": open \\.\pipe\crc-http: The system cannot find the file specified. Mar 26, 2022
@praveenkumar
Copy link
Member

@miltonabatista After installing the crc make sure you start it from the Start application and follow the guided flow.
Crc

@miltonabatista
Copy link
Author

@praveenkumar After remove all configuation and run codeReady Containers I select openshift and put pull-secret.
The setup wizard is on this screen one hour.
Even after the crc completes the download.
Wizard:
run setup

Download:
crc-download

@gbraad
Copy link
Contributor

gbraad commented Mar 28, 2022

I believe you have issues with your network connection.
Instead of the onboarding flow, you can run crc setup from a command prompt.

Please let me know what the output is.

@gbraad gbraad changed the title [BUG] crc start :: Cannot reach daemon API: Get "http://unix/api/version": open \\.\pipe\crc-http: The system cannot find the file specified. [BUG] crc start fails as dependent service not started -- Daemon not available - Cannot reach daemon API: Get "http://unix/api/version" Mar 28, 2022
@gbraad
Copy link
Contributor

gbraad commented Mar 28, 2022

This might be related to the scenario where crc start is directly started from the command line,.

c:\Program Files\CodeReady Containers>crc start
WARN A new version (2.0.1) has been published on https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/2.0.1/crc-windows-installer.zip
Is 'crc daemon' running? Cannot reach daemon API: Get "http://unix/api/version": open \\.\pipe\crc-http: The system cannot find the file specified.

Ref: #3083

Just in your case not sure why the issue is also affecting the setup flow. This might be because you describe two scenarios.

  • start not working when the daemon is not running.
  • the download is slow/not happening.

@gbraad
Copy link
Contributor

gbraad commented Mar 28, 2022

#3088

@ksingh7
Copy link

ksingh7 commented Apr 13, 2022

@gbraad @praveenkumar so i am getting the same error on MacOS

Is '/Applications/CodeReady Containers.app' running? Cannot reach daemon API: Get "http://unix/api/version": dial unix /Users/karasing/.crc/crc-http.sock: connect: no such file or directory
  • Detailed Logs
 ✘ karasing@karasing-mac  ~  crc setup
CodeReady Containers is constantly improving and we would like to know more about usage (more details at https://developers.redhat.com/article/tool-data-collection)
Your preference can be changed manually if desired using 'crc config set consent-telemetry <yes/no>'
Would you like to contribute anonymous usage statistics? [y/N]: y
Thanks for helping us! You can disable telemetry with the command 'crc config set consent-telemetry no'.
INFO Using bundle path /Users/karasing/.crc/cache/crc_hyperkit_4.10.3_amd64.crcbundle
INFO Checking if running as non-root
INFO Checking if crc-admin-helper executable is cached
INFO Checking for obsolete admin-helper executable
INFO Checking if running on a supported CPU architecture
INFO Checking minimum RAM requirements
INFO Checking if running emulated on a M1 CPU
INFO Checking if HyperKit is installed
INFO Checking if qcow-tool is installed
INFO Checking if crc-driver-hyperkit is installed
INFO Checking if CRC bundle is extracted in '$HOME/.crc'
INFO Checking if /Users/karasing/.crc/cache/crc_hyperkit_4.10.3_amd64.crcbundle exists
INFO Getting bundle for the CRC executable
INFO Downloading crc_hyperkit_4.10.3_amd64.crcbundle
3.12 GiB / 3.12 GiB [-----------------------------------------------------------------------------------------] 100.00% 36.78 MiB p/s
INFO Uncompressing /Users/karasing/.crc/cache/crc_hyperkit_4.10.3_amd64.crcbundle
crc.qcow2: 12.51 GiB / 12.51 GiB [------------------------------------------------------------------------------------------] 100.00%
INFO Checking if old launchd config for tray autostart exists
Your system is correctly setup for using CodeReady Containers. Use 'crc start' to start the instance
crc setup  128.14s user 26.14s system 70% cpu 3:37.38 total
 karasing@karasing-mac  ~ 

 karasing@karasing-mac  ~  crc start --log-level debug
DEBU CodeReady Containers version: 2.0.1+f0fcd50e
DEBU OpenShift version: 4.10.3
DEBU Podman version: 3.4.4
DEBU Running 'crc start'
DEBU Total memory of system is 34359738368 bytes

DEBU No new version available. The latest version is 2.0.1
DEBU Checking file: /Users/karasing/.crc/machines/crc/.crc-exist
DEBU Running 'sw_vers -productVersion'

Is '/Applications/CodeReady Containers.app' running? Cannot reach daemon API: Get "http://unix/api/version": dial unix /Users/karasing/.crc/crc-http.sock: connect: no such file or directory
 ✘ karasing@karasing-mac  ~ 

And for the record i have the CRC MacOS App running and available in the system tray

@gbraad
Copy link
Contributor

gbraad commented Apr 13, 2022

Should be addressed in the new release. Unfortunately they experience issues with publishing it.

For now, run crc daemon in a seperate shell session or background

@stale
Copy link

stale bot commented Jun 12, 2022

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 Jun 12, 2022
@stale stale bot closed this as completed Jul 10, 2022
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/need triage 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