Skip to content

Cannot reach daemon API: Get "http://unix/api/version": dial unix crc-http.sock: connect: no such file or director #5035

@odockal

Description

@odockal

General information

Cannot start crc with microshift preset on Fedora 42.

Operating System

Linux

Hypervisor

KVM

Did you run crc setup before crc start?

yes

Running on

Laptop

Steps to reproduce

  1. crc config set preset microshift
  2. crc setup
  3. crc start

CRC version

$ crc version
CRC version: 2.56.0+cb4c91
OpenShift version: 4.20.1
MicroShift version: 4.20.0

CRC status

$ crc status
ERRO crc does not seem to be setup correctly, have you run 'crc setup'?

CRC config

$ crc config view 
- consent-telemetry                     : no
- preset                                : microshift

Host Operating System

NAME="Fedora Linux"
VERSION="42 (Workstation Edition)"

Expected behavior

CRC is started.

Actual behavior

$ crc start
ERRO Is 'crc daemon' running? Cannot reach daemon API: Get "http://unix/api/version": dial unix /home/odockal/.crc/crc-http.sock: connect: no such file or directory 

CRC Logs

$ crc setup
INFO Using bundle path /home/odockal/.crc/cache/crc_microshift_libvirt_4.20.0_amd64.crcbundle 
INFO Checking if running as non-root              
INFO Checking if running inside WSL2              
INFO Checking if crc-admin-helper executable is cached 
INFO Checking if running on a supported CPU architecture 
INFO Checking if crc executable symlink exists    
INFO Checking minimum RAM requirements            
INFO Check if Podman binary exists in: /home/odockal/.crc/bin/oc 
INFO Checking if Virtualization is enabled        
INFO Checking if KVM is enabled                   
INFO Checking if libvirt is installed             
INFO Checking if user is part of libvirt group    
INFO Checking if active user/process is currently part of the libvirt group 
INFO Checking if libvirt daemon is running        
INFO Checking if a supported libvirt version is installed 
INFO Checking if crc-driver-libvirt is installed  
INFO Checking crc daemon systemd service          
INFO Checking crc daemon systemd socket units     
INFO Checking if vsock is correctly configured    
INFO Checking if CRC bundle is extracted in '$HOME/.crc' 
INFO Checking if /home/odockal/.crc/cache/crc_microshift_libvirt_4.20.0_amd64.crcbundle exists 
Your system is correctly setup for using CRC. Use 'crc start' to start the instance

$ crc start --log-level=debug
DEBU CRC version: 2.56.0+cb4c91                   
DEBU OpenShift version: 4.20.1                    
DEBU MicroShift version: 4.20.0                   
DEBU Running 'crc start'                          
DEBU Total memory of system is 66816577536 bytes  
DEBU No new version available. The latest version is 2.56.0 
DEBU file not found: /home/odockal/.crc/machines/crc/.crc-exist 
ERRO Is 'crc daemon' running? Cannot reach daemon API: Get "http://unix/api/version": dial unix /home/odockal/.crc/crc-http.sock: connect: no such file or directory 

$ crc setup --log-level debug
DEBU CRC version: 2.56.0+cb4c91                   
DEBU OpenShift version: 4.20.1                    
DEBU MicroShift version: 4.20.0                   
DEBU Running 'crc setup'                          
INFO Using bundle path /home/odockal/.crc/cache/crc_libvirt_4.20.1_amd64.crcbundle 
DEBU resolv.conf file path: /etc/resolv.conf      
INFO Checking if running as non-root              
INFO Checking if running inside WSL2              
INFO Checking if crc-admin-helper executable is cached 
DEBU Running '/home/odockal/.crc/bin/crc-admin-helper-linux-amd64 --version' 
DEBU Found crc-admin-helper-linux-amd64 version 0.5.5 
DEBU crc-admin-helper executable already cached   
INFO Checking if running on a supported CPU architecture 
DEBU GOARCH is amd64 GOOS is linux                
INFO Checking if crc executable symlink exists    
INFO Checking minimum RAM requirements            
DEBU Total memory of system is 66816577536 bytes  
INFO Check if Podman binary exists in: /home/odockal/.crc/bin/oc 
INFO Checking if Virtualization is enabled        
DEBU Checking if the vmx/svm flags are present in /proc/cpuinfo 
DEBU CPU virtualization flags are good            
INFO Checking if KVM is enabled                   
DEBU Checking if /dev/kvm exists                  
DEBU /dev/kvm was found                           
INFO Checking if libvirt is installed             
DEBU Checking if 'virsh' is available             
DEBU 'virsh' was found in /usr/bin/virsh          
DEBU Checking 'virsh capabilities' for libvirtd/qemu availability 
DEBU Running 'virsh --readonly --connect qemu:///system capabilities' 
DEBU Found x86_64 hypervisor with 'hvm' capabilities 
INFO Checking if user is part of libvirt group    
DEBU Checking if current user is part of the libvirt group 
DEBU Current user is already in the libvirt group 
INFO Checking if active user/process is currently part of the libvirt group 
INFO Checking if libvirt daemon is running        
DEBU Checking if libvirtd service is running      
DEBU Running 'systemctl status virtqemud.socket'  
DEBU virtqemud.socket is running                  
INFO Checking if a supported libvirt version is installed 
DEBU Checking if libvirt version is >=8.0.0       
DEBU Running 'virsh -v'                           
INFO Checking if crc-driver-libvirt is installed  
DEBU Checking if crc-driver-libvirt-amd64 is installed 
DEBU Running '/home/odockal/.crc/bin/crc-driver-libvirt-amd64 version' 
DEBU Found crc-driver-libvirt-amd64 version 0.13.10 
DEBU crc-driver-libvirt-amd64 is already installed 
INFO Checking crc daemon systemd service          
DEBU Checking crc daemon systemd service          
DEBU Checking if crc-daemon.service is running    
DEBU Running 'systemctl --user status crc-daemon.service' 
DEBU Command failed: exit status 3                
DEBU stdout: * crc-daemon.service - CRC daemon
     Loaded: loaded (/home/odockal/.config/systemd/user/crc-daemon.service; static)
    Drop-In: /usr/lib/systemd/user/service.d
             `-10-timeout-abort.conf
     Active: inactive (dead) since Tue 2025-12-02 09:47:06 CET; 4h 38min ago
   Duration: 18h 21.716s
 Invocation: 70e9fe2c1ef644b1b7fdcec820936926
TriggeredBy: * crc-vsock.socket
             * crc-http.socket
    Process: 1105551 ExecStart=/home/odockal/.crc/bin/crc daemon (code=exited, status=0/SUCCESS)
   Main PID: 1105551 (code=exited, status=0/SUCCESS)
   Mem peak: 25.4M
        CPU: 5.179s

Dec 02 09:41:03 odockal-thinkpadp1gen7.tpb.csb crc[1105551]: @ - - [02/Dec/2025:09:41:03 +0100] "GET /api/version HTTP/1.1" 200 103
Dec 02 09:41:03 odockal-thinkpadp1gen7.tpb.csb crc[1105551]: @ - - [02/Dec/2025:09:41:03 +0100] "GET /api/config HTTP/1.1" 200 1557
Dec 02 09:44:08 odockal-thinkpadp1gen7.tpb.csb crc[1105551]: @ - - [02/Dec/2025:09:44:08 +0100] "GET /api/config HTTP/1.1" 200 1557
Dec 02 09:44:09 odockal-thinkpadp1gen7.tpb.csb crc[1105551]: @ - - [02/Dec/2025:09:44:09 +0100] "GET /api/config HTTP/1.1" 200 1557
Dec 02 09:44:10 odockal-thinkpadp1gen7.tpb.csb crc[1105551]: @ - - [02/Dec/2025:09:44:10 +0100] "GET /api/config HTTP/1.1" 200 1557
Dec 02 09:44:39 odockal-thinkpadp1gen7.tpb.csb crc[1105551]: level=error msg="[02/Dec/2025:09:44:39 +0100] \"GET /api/status\" Response Body: Machine does not exist. Use 'crc start' to create it\n"
Dec 02 09:44:39 odockal-thinkpadp1gen7.tpb.csb crc[1105551]: @ - - [02/Dec/2025:09:44:39 +0100] "GET /api/status HTTP/1.1" 500 52
Dec 02 09:47:06 odockal-thinkpadp1gen7.tpb.csb systemd[2851]: Stopping crc-daemon.service - CRC daemon...
Dec 02 09:47:06 odockal-thinkpadp1gen7.tpb.csb systemd[2851]: Stopped crc-daemon.service - CRC daemon.
Dec 02 09:47:06 odockal-thinkpadp1gen7.tpb.csb systemd[2851]: crc-daemon.service: Consumed 5.179s CPU time, 25.4M memory peak. 
DEBU stderr:                                      
DEBU crc-daemon.service is neither running nor listening 
DEBU Checking if crc-daemon.service has the expected content 
INFO Checking crc daemon systemd socket units     
DEBU Checking crc daemon systemd socket units     
DEBU Checking if crc-http.socket is running       
DEBU Running 'systemctl --user status crc-http.socket' 
DEBU crc-http.socket is listening                 
DEBU Checking if crc-http.socket has the expected content 
DEBU Checking if crc-vsock.socket is running      
DEBU Running 'systemctl --user status crc-vsock.socket' 
DEBU crc-vsock.socket is listening                
DEBU Checking if crc-vsock.socket has the expected content 
INFO Checking if vsock is correctly configured    
DEBU Running 'getcap /usr/local/bin/crc'          
INFO Checking if CRC bundle is extracted in '$HOME/.crc' 
INFO Checking if /home/odockal/.crc/cache/crc_libvirt_4.20.1_amd64.crcbundle exists 
DEBU /home/odockal/.crc/cache/crc_libvirt_4.20.1_amd64.crcbundle exists 
Your system is correctly setup for using CRC. Use 'crc start' to start the instance

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions