You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot create New-BCContainer: hcsshim::ExpandScratchSize failed in Win32: The system cannot find the file specified. "c:\bcartifacts.cache:c:\dl"
#2082
Open
4ampro opened this issue
Mar 24, 2024
· 0 comments
PS C:\WINDOWS\system32> docker version
Client:
Cloud integration: v1.0.35+desktop.11
Version: 25.0.3
API version: 1.44
Go version: go1.21.6
Git commit: 4debf41
Built: Tue Feb 6 21:13:02 2024
OS/Arch: windows/amd64
Context: default
Server: Docker Desktop 4.28.0 (139021)
Engine:
Version: 25.0.3
API version: 1.44 (minimum version 1.24)
Go version: go1.21.6
Git commit: f417435
Built: Tue Feb 6 20:55:49 2024
OS/Arch: windows/amd64
Experimental: false
FULL OUTPUT
BcContainerHelper version 6.0.0
BC.HelperFunctions emits usage statistics telemetry to Microsoft
BcContainerHelper is version 6.0.0
BcContainerHelper is running as administrator
HyperV is Enabled
UsePsSession is True
Host is Microsoft Windows 10 Pro - 10.0.19045.4170
Docker Client Version is 25.0.3
Docker Server Version is 25.0.3
Removing entries from hosts
Removing Container from container hosts file
Removing Container-* from container hosts file
Removing Desktop shortcuts
Removing C:\ProgramData\BcContainerHelper\Extensions\Container
Downloading artifact /sandbox/23.5.16502.17802/us
Downloading C:\Users_[redacted]\AppData\Local\Temp\b589a75d-1a3e-4ff2-945f-b84878a5b6a0.zip
Downloading using WebClient
Unpacking artifact to tmp folder using 7zip
Downloading platform artifact /sandbox/23.5.16502.17802/platform
Downloading C:\Users_[redacted]\AppData\Local\Temp\0702a883-b98f-4d6b-a09e-712a72646755.zip
Downloading using WebClient
Unpacking platform artifact to tmp folder using 7zip
Downloading Prerequisite Components
Downloading c:\bcartifacts.cache\sandbox\23.5.16502.17802\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
Downloading using WebClient
Downloading c:\bcartifacts.cache\sandbox\23.5.16502.17802\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
Downloading using WebClient
Fetching all docker images
Fetching all docker volumes
INFO: Windows 10 21H1/21H2 images are not yet available, using 2004 as these are found to work better than 20H2 on 21H1/21H2
Pulling image mcr.microsoft.com/businesscentral:10.0.19041.1415
10.0.19041.1415: Pulling from businesscentral
295f12394c4f: Already exists
24b98dd3fbc4: Already exists
569a4c4f5ea8: Already exists
00dc665dbda6: Already exists
b3101e626b58: Already exists
75d57e33ed30: Already exists
79eeef77f5a9: Already exists
39a1f9b98c68: Already exists
ea5777e5bc5c: Already exists
cf4f64876b4a: Already exists
6f6166a41130: Already exists
6e2ea32c52ee: Already exists
16c75ecf23ce: Already exists
da5c63bc79fd: Already exists
757ce4d289fa: Already exists
Digest: sha256:ebacb499a2fac2cea24f47ebf710a06b177ee02b289c798760f97cf3f79920ab
Status: Downloaded newer image for mcr.microsoft.com/businesscentral:10.0.19041.1415
mcr.microsoft.com/businesscentral:10.0.19041.1415
Using image mcr.microsoft.com/businesscentral:10.0.19041.1415
Creating Container Container
Style: sandbox
Multitenant: Yes
Version: 23.5.16502.17802
Platform: 23.0.17743.0
Generic Tag: 1.0.2.15
Container OS Version: 10.0.19041.1415 (2004)
Host OS Version: 10.0.19045.4170 (22H2)
WARNING: Host OS is Windows 10 21H1 or newer and Container OS is 2004, defaulting to process isolation. If you experience problems, add -isolation hyperv.
Using process isolation
Using locale en-US
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file C:\Users_[redacted]_\Downloads\7904694 (1).bclicense
Files in C:\ProgramData\BcContainerHelper\Extensions\Container\my:
AdditionalOutput.ps1
license.bclicense
MainLoop.ps1
SetupVariables.ps1
updatehosts.ps1
Creating container Container from image mcr.microsoft.com/businesscentral:10.0.19041.1415
New-BCContainer Telemetry Correlation Id: a85a853f-57f6-4124-a826-c7aeb850d644
DockerDo : docker: Error response from daemon: hcsshim::ExpandScratchSize failed in Win32: The system cannot find the file specified. (0x2).
See 'docker run --help'.
ExitCode: 127
Commandline: docker run --volume "c:\bcartifacts.cache:c:\dl" --label nav= --env isBcSandbox=Y --label version=23.5.16502.17802 --label platform=23.0.17743.0 --label country=US --env
artifactUrl=https://bcartifacts.azureedge.net/sandbox/23.5.16502.17802/us --env multitenant=Y --env licenseFile="c:\run\my\license.bclicense" --name Container --hostname Container --env
auth=NavUserPassword --env username="admin" --env ExitOnError=N --env locale=en-US --env databaseServer="" --env databaseInstance="" --volume
"C:\ProgramData\BcContainerHelper:C:\ProgramData\BcContainerHelper" --volume "C:\ProgramData\BcContainerHelper\Extensions\Container\my:C:\Run\my" --isolation process --restart
unless-stopped --env filesOnly=False --env enableApiServices=Y --env useSSL=N --volume "c:\windows\system32\drivers\etc:C:\driversetc" --env securePassword=76492d1116743f0423413b16050a5345Mg
B8AEIAdAB5AGgAUQAvAFkAWgBSAGcAaQArAEQAWQBLAEIAQQAxACsAUABXAGcAPQA9AHwAOAA3ADQAMgA0ADgANAA4AGQAOAAxADIAOQA3ADMAMwA4ADcAYgAxADgANQBmADEAOQA2ADEANQA0ADQANgAzADUAMAAyADAAMgBlAGQAMAA4AGUAYQBmAGYA
YgAzADUAYgAyAGQAYwAzAGIAMwBhAGQAOQBhADUAMAAzADAAYQA= --env passwordKeyFile="c:\run\my\aes.key" --env removePasswordKeyFile=Y --env accept_eula=Y --env accept_outdated=Y --detach
mcr.microsoft.com/businesscentral:10.0.19041.1415
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.0\ContainerHandling\New-NavContainer.ps1:1969 char:15
... if (!(DockerDo -accept_eula -accept_outdated:$accept_outdated - ...
happens every time.
unable to create New-BCContainer.
Steps:
Uninstalled docker
reboot
reinstall docker
run script in pse as admin
same error, different function: hcsshim::ExpandScratchSize failed
SCRIPT:
$artifactUrl = Get-BCArtifactUrl -country us -select Latest
$licenseFile = 'C:\Users_[redacted]\Downloads_[redacted].bclicense'
$ContainerName = 'Container' #ServerName in launch.json
$UserName = 'admin'
$Password = ConvertTo-SecureString '[redacted]' -AsPlainText -Force
$Credential = New-Object System.Management.Automation.PSCredential ($UserName, $Password)
New-BCContainer
-accept_eula
-containerName $ContainerName
-artifactUrl $artifactUrl
-licenseFile $licenseFile
-auth NavUserPassword
-updateHosts
-Credential $Credential
-alwaysPull `
-includeTestToolkit
CONFIG.JSON:
I added data-root.
{
"auths": {},
"credsStore": "desktop",
"currentContext": "default",
"data-root": "X:\Docker",
"plugins": {
"-x-cli-hints": {
"enabled": "true"
}
}
New-BCContainer
-accept_eula
-containerName $ContainerName
-artifactUrl $artifactUrl
-licenseFile $licenseFile
-auth NavUserPassword
-updateHosts
-Credential $Credential
-alwaysPull `
-includeTestToolkit
FULL ERROR:
New-BCContainer Telemetry Correlation Id: a85a853f-57f6-4124-a826-c7aeb850d644
DockerDo : docker: Error response from daemon: hcsshim::ExpandScratchSize failed in Win32: The system cannot find the file specified. (0x2).
See 'docker run --help'.
ExitCode: 127
Commandline: docker run --volume "c:\bcartifacts.cache:c:\dl" --label nav= --env isBcSandbox=Y --label version=23.5.16502.17802 --label platform=23.0.17743.0 --label country=US --env
artifactUrl=https://bcartifacts.azureedge.net/sandbox/23.5.16502.17802/us --env multitenant=Y --env licenseFile="c:\run\my\license.bclicense" --name Container --hostname Container --env
auth=NavUserPassword --env username="admin" --env ExitOnError=N --env locale=en-US --env databaseServer="" --env databaseInstance="" --volume
"C:\ProgramData\BcContainerHelper:C:\ProgramData\BcContainerHelper" --volume "C:\ProgramData\BcContainerHelper\Extensions\Container\my:C:\Run\my" --isolation process --restart
unless-stopped --env filesOnly=False --env enableApiServices=Y --env useSSL=N --volume "c:\windows\system32\drivers\etc:C:\driversetc" --env securePassword=76492d1116743f0423413b16050a5345Mg
B8AEIAdAB5AGgAUQAvAFkAWgBSAGcAaQArAEQAWQBLAEIAQQAxACsAUABXAGcAPQA9AHwAOAA3ADQAMgA0ADgANAA4AGQAOAAxADIAOQA3ADMAMwA4ADcAYgAxADgANQBmADEAOQA2ADEANQA0ADQANgAzADUAMAAyADAAMgBlAGQAMAA4AGUAYQBmAGYA
YgAzADUAYgAyAGQAYwAzAGIAMwBhAGQAOQBhADUAMAAzADAAYQA= --env passwordKeyFile="c:\run\my\aes.key" --env removePasswordKeyFile=Y --env accept_eula=Y --env accept_outdated=Y --detach
mcr.microsoft.com/businesscentral:10.0.19041.1415
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.0\ContainerHandling\New-NavContainer.ps1:1969 char:15
DOCKER VERSION:
PS C:\WINDOWS\system32> docker version
Client:
Cloud integration: v1.0.35+desktop.11
Version: 25.0.3
API version: 1.44
Go version: go1.21.6
Git commit: 4debf41
Built: Tue Feb 6 21:13:02 2024
OS/Arch: windows/amd64
Context: default
Server: Docker Desktop 4.28.0 (139021)
Engine:
Version: 25.0.3
API version: 1.44 (minimum version 1.24)
Go version: go1.21.6
Git commit: f417435
Built: Tue Feb 6 20:55:49 2024
OS/Arch: windows/amd64
Experimental: false
FULL OUTPUT
BcContainerHelper version 6.0.0
BC.HelperFunctions emits usage statistics telemetry to Microsoft
BcContainerHelper is version 6.0.0
BcContainerHelper is running as administrator
HyperV is Enabled
UsePsSession is True
Host is Microsoft Windows 10 Pro - 10.0.19045.4170
Docker Client Version is 25.0.3
Docker Server Version is 25.0.3
Removing entries from hosts
Removing Container from container hosts file
Removing Container-* from container hosts file
Removing Desktop shortcuts
Removing C:\ProgramData\BcContainerHelper\Extensions\Container
Downloading artifact /sandbox/23.5.16502.17802/us
Downloading C:\Users_[redacted]\AppData\Local\Temp\b589a75d-1a3e-4ff2-945f-b84878a5b6a0.zip
Downloading using WebClient
Unpacking artifact to tmp folder using 7zip
Downloading platform artifact /sandbox/23.5.16502.17802/platform
Downloading C:\Users_[redacted]\AppData\Local\Temp\0702a883-b98f-4d6b-a09e-712a72646755.zip
Downloading using WebClient
Unpacking platform artifact to tmp folder using 7zip
Downloading Prerequisite Components
Downloading c:\bcartifacts.cache\sandbox\23.5.16502.17802\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
Downloading using WebClient
Downloading c:\bcartifacts.cache\sandbox\23.5.16502.17802\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
Downloading using WebClient
Fetching all docker images
Fetching all docker volumes
INFO: Windows 10 21H1/21H2 images are not yet available, using 2004 as these are found to work better than 20H2 on 21H1/21H2
Pulling image mcr.microsoft.com/businesscentral:10.0.19041.1415
10.0.19041.1415: Pulling from businesscentral
295f12394c4f: Already exists
24b98dd3fbc4: Already exists
569a4c4f5ea8: Already exists
00dc665dbda6: Already exists
b3101e626b58: Already exists
75d57e33ed30: Already exists
79eeef77f5a9: Already exists
39a1f9b98c68: Already exists
ea5777e5bc5c: Already exists
cf4f64876b4a: Already exists
6f6166a41130: Already exists
6e2ea32c52ee: Already exists
16c75ecf23ce: Already exists
da5c63bc79fd: Already exists
757ce4d289fa: Already exists
Digest: sha256:ebacb499a2fac2cea24f47ebf710a06b177ee02b289c798760f97cf3f79920ab
Status: Downloaded newer image for mcr.microsoft.com/businesscentral:10.0.19041.1415
mcr.microsoft.com/businesscentral:10.0.19041.1415
Using image mcr.microsoft.com/businesscentral:10.0.19041.1415
Creating Container Container
Style: sandbox
Multitenant: Yes
Version: 23.5.16502.17802
Platform: 23.0.17743.0
Generic Tag: 1.0.2.15
Container OS Version: 10.0.19041.1415 (2004)
Host OS Version: 10.0.19045.4170 (22H2)
WARNING: Host OS is Windows 10 21H1 or newer and Container OS is 2004, defaulting to process isolation. If you experience problems, add -isolation hyperv.
Using process isolation
Using locale en-US
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file C:\Users_[redacted]_\Downloads\7904694 (1).bclicense
Files in C:\ProgramData\BcContainerHelper\Extensions\Container\my:
Creating container Container from image mcr.microsoft.com/businesscentral:10.0.19041.1415
New-BCContainer Telemetry Correlation Id: a85a853f-57f6-4124-a826-c7aeb850d644
DockerDo : docker: Error response from daemon: hcsshim::ExpandScratchSize failed in Win32: The system cannot find the file specified. (0x2).
See 'docker run --help'.
ExitCode: 127
Commandline: docker run --volume "c:\bcartifacts.cache:c:\dl" --label nav= --env isBcSandbox=Y --label version=23.5.16502.17802 --label platform=23.0.17743.0 --label country=US --env
artifactUrl=https://bcartifacts.azureedge.net/sandbox/23.5.16502.17802/us --env multitenant=Y --env licenseFile="c:\run\my\license.bclicense" --name Container --hostname Container --env
auth=NavUserPassword --env username="admin" --env ExitOnError=N --env locale=en-US --env databaseServer="" --env databaseInstance="" --volume
"C:\ProgramData\BcContainerHelper:C:\ProgramData\BcContainerHelper" --volume "C:\ProgramData\BcContainerHelper\Extensions\Container\my:C:\Run\my" --isolation process --restart
unless-stopped --env filesOnly=False --env enableApiServices=Y --env useSSL=N --volume "c:\windows\system32\drivers\etc:C:\driversetc" --env securePassword=76492d1116743f0423413b16050a5345Mg
B8AEIAdAB5AGgAUQAvAFkAWgBSAGcAaQArAEQAWQBLAEIAQQAxACsAUABXAGcAPQA9AHwAOAA3ADQAMgA0ADgANAA4AGQAOAAxADIAOQA3ADMAMwA4ADcAYgAxADgANQBmADEAOQA2ADEANQA0ADQANgAzADUAMAAyADAAMgBlAGQAMAA4AGUAYQBmAGYA
YgAzADUAYgAyAGQAYwAzAGIAMwBhAGQAOQBhADUAMAAzADAAYQA= --env passwordKeyFile="c:\run\my\aes.key" --env removePasswordKeyFile=Y --env accept_eula=Y --env accept_outdated=Y --detach
mcr.microsoft.com/businesscentral:10.0.19041.1415
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.0\ContainerHandling\New-NavContainer.ps1:1969 char:15
The text was updated successfully, but these errors were encountered: