Closed muncleben closed 2 years ago
you seem to have the virtualbox network driver. Do you have VirtualBox installed?
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}"
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?
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.
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.
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
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
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.
Thanks, Ben
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.
Did you change the networking mode after running
crc setup
? When changing networking mode, you need to runcrc cleanup && crc setup
before tryingcrc start
again. It looks like the daemons that crc needs (admin-helper, crc daemon) are not running correctly, which is whatcrc 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
close by mistake, reopen it.
@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 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
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.
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.
@rasmusoe Thanks for your hint. I'll give a try with the recent version of CRC. 👍
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.
@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
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 ]
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:
@gbraad , @praveenkumar , @cfergeau With the latest CRC version, the installation gets successful on Windows 10 Enterprise now. But the server is stopped after installation.
Try to start the service:
But get below error:
Is your current user part of the crc-users
group?
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:
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.
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.
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 ..
@vyom-soft Can you open a new issue and provide the details from the issue template? This might be a different issue.
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 acrc 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? Maybecrc 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. 👍
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.
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."
General information
crc setup
before starting it (Yes/No)? YesCRC version
CRC status
CRC config
Host Operating System
Steps to reproduce
Expected
crc start command gets executed successfully.
Actual
Get below error:
Logs
Before gather the logs try following if that fix your issue
Above delete and cleanup actions do not help here.