crc-org / crc

CRC is a tool to help you run containers. It manages a local OpenShift 4.x cluster, Microshift or a Podman VM optimized for testing and development purposes
https://crc.dev
Apache License 2.0
1.25k stars 240 forks source link

crc setup/start cannot be executed complete successfully #2594

Closed muncleben closed 2 years ago

muncleben commented 3 years ago

General information

CRC version

CodeReady Containers version: 1.29.1+bc5f4409
OpenShift version: 4.7.18 (embedded in executable)

CRC status

PS C:\lab\RedHatCRC> crc status --log-level debug
DEBU HTTP-PROXY: http://127.0.0.1:8080, HTTPS-PROXY: http://127.0.0.1:8080, NO-PROXY: 127.0.0.1,localhost,.bpshare.com,.internal.bpshare.cloud, proxyCAFile:
DEBU CodeReady Containers version: 1.29.1+bc5f4409
DEBU OpenShift version: 4.7.18 (embedded in executable)
DEBU Running 'crc status'
DEBU Checking file: U:\.crc\machines\crc\.crc-exist
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseId).ReleaseId'
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").EditionID'
Machine does not exist. Use 'crc start' to create it

CRC config

PS C:\lab\RedHatCRC> crc config view
- consent-telemetry                     : yes
- network-mode                          : user

Host Operating System

PS C:\lab\RedHatCRC> systeminfo

Host Name:                 localhost
OS Name:                   Microsoft Windows 10 Enterprise
OS Version:                10.0.19042 N/A Build 19042
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Member Workstation
OS Build Type:             Multiprocessor Free
Registered Owner:          BPSHARE
Registered Organization:   BPSHARE
Product ID:                00000-00000-00000-0000
Original Install Date:     6/23/2021, 2:25:42 PM
System Boot Time:          7/21/2021, 12:56:27 PM
System Manufacturer:       LENOVO
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 142 Stepping 10 GenuineIntel ~1696 Mhz
BIOS Version:              LENOVO N24ET61W (1.36 ), 10/13/2020
Windows Directory:         C:\WINDOWS
System Directory:          C:\WINDOWS\system32
Boot Device:               \Device\HarddiskVolume2
System Locale:             en-us;English (United States)
Total Physical Memory:     16,218 MB
Available Physical Memory: 10,823 MB
Virtual Memory: Max Size:  25,434 MB
Virtual Memory: Available: 19,361 MB
Virtual Memory: In Use:    6,073 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    BPSHARE.com
Hotfix(s):                 7 Hotfix(s) Installed.
                           [01]: KB4576478
                           [02]: KB4562830
                           [03]: KB4570334
                           [04]: KB4577266
                           [05]: KB4577586
                           [06]: KB5004237
                           [07]: KB5003742
Network Card(s):           5 NIC(s) Installed.
                           [01]: VirtualBox Host-Only Ethernet Adapter
                                 Connection Name: Ethernet 2
                                 DHCP Enabled:    No
                                 IP address(es)
                                 [01]: 192.168.32.1
                                 [02]: fe80::800:27ff:fe00:f
                           [02]: Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64
                                 Connection Name: Internet
                                 Status:          Hardware not present
                           [03]: Intel(R) Ethernet Connection (4) I219-LM
                                 Connection Name: Ethernet
                                 Status:          Media disconnected
                           [04]: Intel(R) Dual Band Wireless-AC 8265
                                 Connection Name: Wi-Fi
                                 DHCP Enabled:    Yes
                                 DHCP Server:     1.1.1.1
                                 IP address(es)
                                 [01]: 192.168.115.111
                           [05]: Bluetooth Device (Personal Area Network)
                                 Connection Name: Bluetooth Network Connection
                                 Status:          Media disconnected
Hyper-V Requirements:      A hypervisor has been detected. Features required for Hyper-V will not be displayed.

Steps to reproduce

  1. Download and extract the CodeReady Containers archive from https://cloud.redhat.com/openshift/create/local on my Windows 10 Enterprise
  2. Place the binary in my $PATH .
  3. Open Windows Terminal, start to run: crc setup
  4. Get prompt information to reboot system.
  5. Reboot system
  6. Open Windows Terminal, start to run: crc setup to complete the setup process.

Expected

crc start command gets executed successfully.

Actual

Get below error:

PS C:\lab\RedHatCRC> crc start --log-level debug
DEBU HTTP-PROXY: http://127.0.0.1:8080, HTTPS-PROXY: http://127.0.0.1:8080, NO-PROXY: 127.0.0.1,localhost,.bpshare.com, proxyCAFile:
DEBU CodeReady Containers version: 1.29.1+bc5f4409
DEBU OpenShift version: 4.7.18 (embedded in executable)
DEBU Running 'crc start'
DEBU Total memory of system is 17005862912 bytes
DEBU No new version available. The latest version is 1.29.1
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseId).ReleaseId'
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").EditionID'
Is 'crc daemon' running? Cannot reach daemon API: Get "http://unix/api/version": open \\.\pipe\crc-http: The system cannot find the file specified.

Logs

PS C:\lab\RedHatCRC> crc setup --log-level debug
DEBU HTTP-PROXY: http://127.0.0.1:8080, HTTPS-PROXY: http://127.0.0.1:8080, NO-PROXY: 127.0.0.1,localhost,.bpshare.com,, proxyCAFile:
DEBU CodeReady Containers version: 1.29.1+bc5f4409
DEBU OpenShift version: 4.7.18 (embedded in executable)
DEBU Running 'crc setup'
INFO Checking if crc-admin-helper executable is cached
DEBU Running 'U:\.crc\bin\crc-admin-helper-windows.exe --version'
DEBU Found crc-admin-helper-windows.exe version 0.0.6
DEBU crc-admin-helper executable already cached
INFO Checking for obsolete admin-helper executable
DEBU Checking if an older admin-helper executable is installed
DEBU No older admin-helper executable found
INFO Checking if running on a supported CPU architecture
INFO Checking minimum RAM requirements
DEBU Total memory of system is 17005862912 bytes
INFO Checking if running in a shell with administrator rights
DEBU Running '$currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent());$currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)'
INFO Checking Windows 10 release
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseId).ReleaseId'
INFO Checking Windows edition
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").EditionID'
DEBU Running on Windows Enterprise edition
INFO Checking if Hyper-V is installed and operational
DEBU Running '@(Get-Wmiobject Win32_ComputerSystem).HypervisorPresent'
DEBU Running '@(Get-Service vmms).Status'
INFO Checking if crc-users group exists
DEBU Running 'Get-LocalGroup -Name crc-users'
DEBU Command failed: exit status 1
DEBU stdout:
DEBU stderr: Get-LocalGroup : Group crc-users was not found.
At line:1 char:43
+ ... ogressPreference = 'SilentlyContinue'; Get-LocalGroup -Name crc-users
+                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (crc-users:String) [Get-LocalGroup], GroupNotFoundException
    + FullyQualifiedErrorId : GroupNotFound,Microsoft.PowerShell.Commands.GetLocalGroupCommand

DEBU 'crc-users' group does not exist: exit status 1
INFO Creating crc-users group
INFO Will run as admin: create crc-users group
DEBU Running 'C:\Users\dev001\AppData\Local\Temp\crcScripts379267583\runAsAdmin.ps1'
INFO Checking if current user is in Hyper-V group and crc-users group
DEBU Running 'Get-LocalGroupMember -Name crc-users -Member 'bpshare\dev001''
DEBU Command failed: exit status 1
DEBU stdout:
DEBU stderr: Get-LocalGroupMember : Principal bpshare\dev001 was not found.
At line:1 char:43
+ ... yContinue'; Get-LocalGroupMember -Name crc-users -Member 'bpshare\dev001 ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (bpshare\dev001:String) [Get-LocalGroupMember], PrincipalNotFoundException
    + FullyQualifiedErrorId : PrincipalNotFound,Microsoft.PowerShell.Commands.GetLocalGroupMemberCommand

DEBU exit status 1
INFO Adding current user to group
DEBU Running 'Get-LocalGroupMember -Name crc-users -Member 'bpshare\dev001''
DEBU Command failed: exit status 1
DEBU stdout:
DEBU stderr: Get-LocalGroupMember : Principal bpshare\dev001 was not found.
At line:1 char:43
+ ... yContinue'; Get-LocalGroupMember -Name crc-users -Member 'bpshare\dev001 ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (bpshare\dev001:String) [Get-LocalGroupMember], PrincipalNotFoundException
    + FullyQualifiedErrorId : PrincipalNotFound,Microsoft.PowerShell.Commands.GetLocalGroupMemberCommand

INFO Will run as admin: adding current user to crc-users group
DEBU Running 'C:\Users\dev001\AppData\Local\Temp\crcScripts159028050\runAsAdmin.ps1'
DEBU Running '$sid = New-Object System.Security.Principal.SecurityIdentifier("S-1-5-32-578")
        @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole($sid)'
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseId).ReleaseId'
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").EditionID'
Please reboot your system and run 'crc setup' to complete the setup process
PS C:\lab\RedHatCRC>

Before gather the logs try following if that fix your issue

$ crc delete -f
$ crc cleanup
$ crc setup
$ crc start --log-level debug

Above delete and cleanup actions do not help here.

gbraad commented 3 years ago

you seem to have the virtualbox network driver. Do you have VirtualBox installed?

xgxtbku commented 3 years ago

I faced a kinda similar issue but with AzureAD user installation on Windows. (Had this: DEBU stderr: Get-LocalGroupMember : Principal AzureAD\xgxtbku was not found. everywhere literally. ) I needed to restart the pc as you but it didn't solved the issue at all. The domain name was not in the String value. I dont know if it helps in your case but this thread had the solution for me:

Set up your username with this snippet before: $env:USERNAME="${env:USERDOMAIN}\${env:USERNAME}"

muncleben commented 3 years ago

you seem to have the virtualbox network driver. Do you have VirtualBox installed?

Yes, I did install VirtualBox on my laptop. Should I uninstall it?

muncleben commented 3 years ago

I faced a kinda similar issue but with AzureAD user installation on Windows. (Had this: DEBU stderr: Get-LocalGroupMember : Principal AzureAD\xgxtbku was not found. everywhere literally. ) I needed to restart the pc as you but it didn't solved the issue at all. The domain name was not in the String value. I dont know if it helps in your case but this thread had the solution for me:

Set up your username with this snippet before: $env:USERNAME="${env:USERDOMAIN}${env:USERNAME}"

Ah, thanks for your hint. 👍 I'll give a try.

muncleben commented 3 years ago

you seem to have the virtualbox network driver. Do you have VirtualBox installed?

@gbraad

I uninstalled the virtualbox all stuffs on my laptop. Still same issue, here are some crc setup debug logs:

DEBU Running 'Get-VMSwitch crc | ForEach-Object { $_.Name }'
DEBU Command failed: exit status 1
DEBU stdout:
DEBU stderr: Get-VMSwitch : **Hyper-V was unable to find a virtual switch with name "crc".**
At line:1 char:43
+ $ProgressPreference = 'SilentlyContinue'; Get-VMSwitch crc | ForEach- ...
+                                           ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (crc:String) [Get-VMSwitch], VirtualizationException
    + FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVMSwitch
DEBU Running '[Console]::OutputEncoding = [Text.Encoding]::UTF8; Get-VMSwitch -Id c08cb7b8-9b3c-408e-8e30-5e16a3aeb444 | ForEach-Object { $_.Name }'
INFO **Found Virtual Switch to use: Default Switch**
INFO Checking if admin-helper daemon is installed
DEBU Get "http://unix/version": open \\.\pipe\crc-admin-helper: The system cannot find the file specified.
muncleben commented 3 years ago

I faced a kinda similar issue but with AzureAD user installation on Windows. (Had this: DEBU stderr: Get-LocalGroupMember : Principal AzureAD\xgxtbku was not found. everywhere literally. ) I needed to restart the pc as you but it didn't solved the issue at all. The domain name was not in the String value. I dont know if it helps in your case but this thread had the solution for me:

Set up your username with this snippet before: $env:USERNAME="${env:USERDOMAIN}${env:USERNAME}"

Ah, thanks for your hint. 👍 I'll give a try.

I faced a kinda similar issue but with AzureAD user installation on Windows. (Had this: DEBU stderr: Get-LocalGroupMember : Principal AzureAD\xgxtbku was not found. everywhere literally. ) I needed to restart the pc as you but it didn't solved the issue at all. The domain name was not in the String value. I dont know if it helps in your case but this thread had the solution for me:

Set up your username with this snippet before: $env:USERNAME="${env:USERDOMAIN}${env:USERNAME}"

@xgxtbku ,

Just FYI.

I checked the local users and groups, my domain user account can be added into crc-user group successfully without set up username with the snippet.

Thanks, Ben

gbraad commented 3 years ago

The crc switch is for override purpose. Better to use the usermode networking setup. On the wiki you can find more details.

Also, make sure your current user is added to the crc users group

muncleben commented 3 years ago

The crc switch is for override purpose. Better to use the usermode networking setup. On the wiki you can find more details.

Also, make sure your current user is added to the crc users group

Hi @gbraad ,

Actually, I checked the mode and I'm sure I'm using the user mode:

PS C:\lab\RedHatCRC> crc config view

I also checked that the crc user group gets created successfully and my domain user is in the crc user group.

image

image

Thanks, Ben

cfergeau commented 3 years ago

Did you change the networking mode after running crc setup? When changing networking mode, you need to run crc cleanup && crc setup before trying crc start again. It looks like the daemons that crc needs (admin-helper, crc daemon) are not running correctly, which is what crc setup should be taking care of.

muncleben commented 3 years ago

Did you change the networking mode after running crc setup? When changing networking mode, you need to run crc cleanup && crc setup before trying crc start again. It looks like the daemons that crc needs (admin-helper, crc daemon) are not running correctly, which is what crc setup should be taking care of.

Hi @cfergeau , thanks for your comments.

I did not change the networking mode after running crc setup, I just following the documentation to do the environment setup. The networking mode is network-mode: user

May I know which mode should I change to? after running crc setup?

Thanks, Ben

muncleben commented 3 years ago

close by mistake, reopen it.

praveenkumar commented 3 years ago

@muncleben Can you try following and let us know the output?

> crc delete
> crc cleanup
> crc config view
> crc setup --log-level debug
// Check if you have tray on the windows and also there should be a process of `crc daemon`
> crc start --log-level debug
muncleben commented 3 years ago

@muncleben Can you try following and let us know the output?

> crc delete
> crc cleanup
> crc config view
> crc setup --log-level debug
// Check if you have tray on the windows and also there should be a process of `crc daemon`
> crc start --log-level debug

Hi @praveenkumar , Thanks for your input, I saved all the output as attached txt file, please help check it. And BTW, I did not see any new tray on my windows when run crc setup. crc_setup_output.txt

rasmusoe commented 3 years ago

I have the exact same problem. However tonight i noticed that the tray.exe is flagged as a trojan by windows defender. This happend to me after trying to install the most recent version of CRC.

image

muncleben commented 3 years ago

I have the exact same problem. However tonight i noticed that the tray.exe is flagged as a trojan by windows defender. This happend to me after trying to install the most recent version of CRC.

image

@rasmusoe Thanks for your hint. I'll give a try with the recent version of CRC. 👍

muncleben commented 3 years ago

I have the exact same problem. However tonight i noticed that the tray.exe is flagged as a trojan by windows defender. This happend to me after trying to install the most recent version of CRC.

image

@rasmusoe , Thanks a lot and I did a try on my laptop, the crc setup and crc start can be processed now, but I got below error after I run oc login -u developer https://api.crc.testing:6443:

error: dial tcp 127.0.0.1:6443: connectex: No connection could be made because the target machine actively refused it. - verify you have provided the correct host and port and that the server is currently running.

Then I checked status with crc status: Error getting ip: IP not found

The error is same as this issue: #2654

gbraad commented 3 years ago

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

this suggests the crc daemon does not run/starts properly.

On Sun, Aug 22, 2021 at 1:39 PM Ben Jia @.***> wrote:

I have the exact same problem. However tonight i noticed that the tray.exe is flagged as a trojan by windows defender. This happend to me after trying to install the most recent version of CRC.

[image: image] https://user-images.githubusercontent.com/10193178/130293051-308146e7-16e4-4640-9417-1e88f9f43dba.png

@rasmusoe https://github.com/rasmusoe , Thanks a lot and I did a try on my laptop, the crc setup and crc start can be processed now, but I got below error after I run oc login -u developer https://api.crc.testing:6443 :

PS C:\Users\userId> oc login -u developer https://api.crc.testing:6443 error: dial tcp 127.0.0.1:6443: connectex: No connection could be made because the target machine actively refused it. - verify you have provided the correct host and port and that the server is currently running.

Then I checked status with crc status: PS C:\Users\userId>crc status Error getting ip: IP not found

The error is same as this issue: #2654 https://github.com/code-ready/crc/issues/2654

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/code-ready/crc/issues/2594#issuecomment-903216768, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAOZT33HNIH64H3LVR7ILT6CEPRANCNFSM5AXGQ5OA .

--

Gerard Braad | http://gbraad.nl

STEM is the source, but BUILD is how you develop! [ Better Understanding Involves Learning and Doing ]

muncleben commented 3 years ago

Is 'crc daemon' running? Cannot reach daemon API: Get " http://unix/api/version": open \.\pipe\crc-http: The system cannot find the file specified. this suggests the crc daemon does not run/starts properly. On Sun, Aug 22, 2021 at 1:39 PM Ben Jia @.***> wrote: I have the exact same problem. However tonight i noticed that the tray.exe is flagged as a trojan by windows defender. This happend to me after trying to install the most recent version of CRC. [image: image] https://user-images.githubusercontent.com/10193178/130293051-308146e7-16e4-4640-9417-1e88f9f43dba.png @rasmusoe https://github.com/rasmusoe , Thanks a lot and I did a try on my laptop, the crc setup and crc start can be processed now, but I got below error after I run oc login -u developer https://api.crc.testing:6443 : PS C:\Users\userId> oc login -u developer https://api.crc.testing:6443 error: dial tcp 127.0.0.1:6443: connectex: No connection could be made because the target machine actively refused it. - verify you have provided the correct host and port and that the server is currently running. Then I checked status with crc status: PS C:\Users\userId>crc status Error getting ip: IP not found The error is same as this issue: #2654 <#2654> — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#2594 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAOZT33HNIH64H3LVR7ILT6CEPRANCNFSM5AXGQ5OA . -- Gerard Braad | http://gbraad.nl STEM is the source, but BUILD is how you develop! [ Better Understanding Involves Learning and Doing ]

@gbraad , I'm running crc setup --log-level debug and I can see the uncompressing process, the interesting thing is the uncompressing location: it's on my network drive folder, my home drive is set to network share folder by company IT rules. Should I avoid this? Refer to below screenshot:

image

muncleben commented 3 years ago

@gbraad , @praveenkumar , @cfergeau With the latest CRC version, the installation gets successful on Windows 10 Enterprise now. But the server is stopped after installation.

image

Try to start the service: image

But get below error: image image

gbraad commented 3 years ago

Is your current user part of the crc-users group?

muncleben commented 3 years ago

Is your current user part of the crc-users group?

@gbraad , Yes, my current domain user is in crc-users group, here is the screenshot of my local users and groups: image

kevprice83 commented 3 years ago

I'm getting the same issue with latest CRC release. crc setup indicates no issues:

➜ crc setup --log-level debug
DEBU CodeReady Containers version: 1.33.1+3cfaa10f
DEBU OpenShift version: 4.8.12 (bundle installed at C:\Program Files\CodeReady Containers\crc_hyperv_4.8.12.crcbundle)
DEBU Running 'crc setup'
INFO Checking if current user is in Hyper-V Admins group
DEBU Running '$sid = New-Object System.Security.Principal.SecurityIdentifier("S-1-5-32-578")
        @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole($sid)'
INFO Checking if CRC bundle is extracted in '$HOME/.crc'
INFO Checking if C:\Program Files\CodeReady Containers\crc_hyperv_4.8.12.crcbundle exists
DEBU C:\Program Files\CodeReady Containers\crc_hyperv_4.8.12.crcbundle exists
Your system is correctly setup for using CodeReady Containers, you can now run 'crc start' to start the OpenShift cluster
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseId).ReleaseId'
DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").EditionID'

Running on Windows 10 Pro and been using CRC for quite some time already on this machine.

crc start fails with the same error as reported in this issue and if I try to execute .\crc-tray.exe manually it fails with an error code and tells me to run crc setup again. It goes around in a loop like this even if I reboot the machine.

kevprice83 commented 3 years ago

I fixed the issue above by running the installer again and choosing the option to Remove. It didn't give that option the first time round following the upgrade steps in the documentation, only to replace what was already there. I performed a crc cleanup and then performed the fresh install (again) and now the tray executable runs correctly. Maybe something is not removed/cleaned up correctly when performing an install as an upgrade? Maybe crc cleanup is also required between upgrades?

I have another issue around DNS and wildcard domains not resolving but I'll open a new issue for that if I can't find an existing one. Hope the above helps someone else with a similar problem though.

vyom-soft commented 2 years ago

I am facing the same issue with the newest 1.34.0. vyomsoft@vs:~/crc/1.34.0$ ./crc start --log-level debug time="2021-10-28T13:48:24+02:00" level=warning msg="Could not load system CA pool: crypto/x509: system root pool is no t available on Windows" DEBU CodeReady Containers version: 1.34.0+34c31851 DEBU OpenShift version: 4.9.0 (bundle installed at C:\Users\vyomsoft\crc\1.34.0\crc_hyperv_4.9.0.crcbundle) DEBU Running 'crc start' DEBU Total memory of system is 34087849984 bytes Is CodeReady Containers tray application running? Cannot reach daemon API: Get "http://unix/api/version": open \.\pip e\crc-http: The system cannot find the stated file crc-srart-log.txt ..

cfergeau commented 2 years ago

@vyom-soft Can you open a new issue and provide the details from the issue template? This might be a different issue.

muncleben commented 2 years ago

I fixed the issue above by running the installer again and choosing the option to Remove. It didn't give that option the first time round following the upgrade steps in the documentation, only to replace what was already there. I performed a crc cleanup and then performed the fresh install (again) and now the tray executable runs correctly. Maybe something is not removed/cleaned up correctly when performing an install as an upgrade? Maybe crc cleanup is also required between upgrades?

I have another issue around DNS and wildcard domains not resolving but I'll open a new issue for that if I can't find an existing one. Hope the above helps someone else with a similar problem though.

@kevprice83 Thanks a lot for your hints. 👍

stale[bot] commented 2 years ago

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.

rob-4x4 commented 2 years ago

I am getting it as well...

"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 34137378816 bytes DEBU No new version available. The latest version is 2.0.1 DEBU Checking file: C:\Users\xxx.crc\machines\crc.crc-exist DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ReleaseId).ReleaseId' DEBU Running '(Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").EditionID' 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."