crc: [BUG] (Windows) Access is denied on bundle extraction during setup; rename from tmp to final location
General information
- OS: Windows
- Hypervisor: Hyper-V
- Did you run
crc setupbefore starting it : Yes - Running CRC on: Laptop
CRC version
# Put `crc version` output here
CodeReady Containers version: 1.22.0+6faff76f
OpenShift version: 4.6.15 (embedded in executable)
CRC status
# Put `crc status --log-level debug` output here
DEBU CodeReady Containers version: 1.22.0+6faff76f
DEBU OpenShift version: 4.6.15 (embedded in executable)
DEBU Running 'crc status'
DEBU Checking file: C:\Users\xxx\.crc\machines\crc\.crc-exist
Machine does not exist. Use 'crc start' to create it
CRC config
# Put `crc config view` output here
consent-telemetry : yes
Host Operating System
# Put the output of `cat /etc/os-release` in case of Linux
# put the output of `sw_vers` in case of Mac
# Put the output of `systeminfo` in case of Windows
Host Name: LAPTOP-P3IVLEKN
OS Name: Microsoft Windows 10 Enterprise
OS Version: 10.0.19041 N/A Build 19041
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Owner: Windows User
Registered Organization:
Product ID: 00330-80000-00000-AA885
Original Install Date: 9/30/2020, 10:03:41 AM
System Boot Time: 2/13/2021, 7:05:04 PM
System Manufacturer: LENOVO
System Model: 20EQS3B400
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 94 Stepping 3 GenuineIntel ~2712 Mhz
BIOS Version: LENOVO N1EET62W (1.35 ), 11/10/2016
Windows Directory: C:\WINDOWS
System Directory: C:\WINDOWS\system32
Boot Device: \Device\HarddiskVolume1
System Locale: en-us;English (United States)
Input Locale: en-us;English (United States)
Time Zone: (UTC-05:00) Eastern Time (US & Canada)
Total Physical Memory: 32,602 MB
Available Physical Memory: 18,472 MB
Virtual Memory: Max Size: 37,466 MB
Virtual Memory: Available: 20,946 MB
Virtual Memory: In Use: 16,520 MB
Page File Location(s): C:\pagefile.sys
Domain: WORKGROUP
Logon Server: \\LAPTOP-P3IVLEKN
Hotfix(s): 9 Hotfix(s) Installed.
[01]: KB4578968
[02]: KB4601050
[03]: KB4561600
[04]: KB4577266
[05]: KB4580325
[06]: KB4586864
[07]: KB4593175
[08]: KB4598481
[09]: KB4601319
Network Card(s): 6 NIC(s) Installed.
[01]: Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64
Connection Name: Ethernet 2
DHCP Enabled: No
IP address(es)
[01]: 9.160.35.244
[02]: fe80::742c:3013:b419:85a7
[02]: Intel(R) Ethernet Connection (2) I219-LM
Connection Name: Ethernet
Status: Media disconnected
[03]: Intel(R) Dual Band Wireless-AC 8260
Connection Name: Wi-Fi
DHCP Enabled: Yes
DHCP Server: 192.168.1.1
IP address(es)
[01]: 192.168.1.181
[02]: fe80::4df:b592:2c12:dd4a
[04]: Hyper-V Virtual Ethernet Adapter
Connection Name: vEthernet (Default Switch) 2
DHCP Enabled: No
IP address(es)
[01]: 172.23.128.1
[02]: fe80::31bf:a33f:8820:233e
[05]: Bluetooth Device (Personal Area Network)
Connection Name: Bluetooth Network Connection
Status: Media disconnected
[06]: Hyper-V Virtual Ethernet Adapter
Connection Name: vEthernet (WSL)
DHCP Enabled: No
IP address(es)
[01]: 172.28.176.1
[02]: fe80::1cf8:a3fb:8c8b:d0d5
Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.
Steps to reproduce
- crc setup
Expected
crc setup should have worked fine
Actual
(base) PS C:\WINDOWS\system32> crc setup INFO Checking if podman remote executable is cached INFO Checking if admin-helper executable is cached INFO Checking if CRC bundle is extracted in ‘$HOME/.crc’ INFO Checking if C:\Users\xxx.crc\cache\crc_hyperv_4.6.15.crcbundle exists INFO Extracting bundle from the CRC executable INFO Ensuring directory C:\Users\xxx.crc\cache exists INFO Uncompressing crc_hyperv_4.6.15.crcbundle crc.vhdx: 12.52 GiB / 12.52 GiB [-----------------------------------------------------------------------------] 100.00% rename C:\Users\xxx.crc\cache\tmp-extract\crc_hyperv_4.6.15 C:\Users\xxxx.crc\cache\crc_hyperv_4.6.15: Access is denied.
Logs
Before gather the logs try following if that fix your issue
$ crc delete -f
$ crc cleanup
$ crc setup
$ crc start --log-level debug
Please consider posting the output of crc start --log-level debug on http://gist.github.com/ and post the link in the issue.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 37 (18 by maintainers)
Commits related to this issue
- #2004 Extract then rename can be too fast for Windows antivirus Add a retry loop as a temporary fix. In the future we should this change to: * read the first bytes of the bundle and get the manifest... — committed to guillaumerose/crc by guillaumerose 3 years ago
- #2004 Extract then rename can be too fast for Windows antivirus Add a retry loop as a temporary fix. In the future we should this change to: * read the first bytes of the bundle and get the manifest... — committed to crc-org/crc by guillaumerose 3 years ago
I experienced a similar error and had to combine the 7zip codec steps with cygwin’s
zstdcommand:From the
.crc\cachefolder:Yes that cache subfolder now exists there and it seemed all fine in the debugger output too.
…AND DONE - my OpenShift cluster just popped up here. All good now.
Was the bundle extracted correctly during the
crc start? I guess yes. If you can confirm that, I merge the quick fix for the next release.You need to delete the running VM. Do
crc delete -fbefore.Same problem.
Just to be sure since this was edited. Are the paths in the error message starting with
C:\Users\xxx.crc\cacheor are theyC:\Users\xxx\.crc\cache(with a\betweenxxxand.crc)? I noticed the same pattern in #2087.