navcontainerhelper
navcontainerhelper copied to clipboard
New-BcContainer runs into error: "hcsshim::ImportLayer failed in Win32: The system cannot find the path specified."
Describe the issue
Currently creating a container runs into an error:
An error occurred while creating the container:
re-exec error: exit status 1: output: hcsshim::ImportLayer failed in Win32: The system cannot find the path specified. (0x3)
ExitCode: 1
Commandline: docker build --isolation=hyperv --memory 8G --no-cache --tag bc243-de:sandbox-24.3.21374.21951-de-mt c:\bcartifacts.cache\h4zq4mr0.vuc
Scripts used to create container and cause the issue
New-BcContainer `
-isolation hyperv `
-containerName "bc243-de" `
-licenseFile "License.bclicense" `
-artifactUrl "https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21951/de" `
-auth NavUserPassword `
-shortcuts Desktop `
-useBestContainerOS `
-Credential $credentials `
-updateHosts `
-assignPremiumPlan `
-includeTestToolkit `
-enableTaskScheduler:$false `
-accept_eula `
-memoryLimit 8G `
-imageName "bc243-de"
Docker Version
PS C:\Users\*****> docker version
Client:
Version: 27.0.3
API version: 1.46
Go version: go1.21.11
Git commit: 7d4bcd8
Built: Sat Jun 29 00:03:32 2024
OS/Arch: windows/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 27.0.3
API version: 1.46 (minimum version 1.24)
Go version: go1.21.11
Git commit: 662f78c
Built: Sat Jun 29 00:02:13 2024
OS/Arch: windows/amd64
Experimental: false
BcContainerHelper Version
BcContainerHelper version 6.0.19
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Running on Windows, PowerShell 5.1.22621.2506
Full output of scripts
Output
----------------------------------------
New-BcContainer parameters:
Name Value
---- -----
isolation hyperv
containerName bc243-de
licenseFile License.bclicense
shortcuts Desktop
useBestContainerOS True
credential System.Management.Automation.PSCredential
updateHosts True
memoryLimit 8G
artifactUrl https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21951/de
auth NavUserPassword
assignPremiumPlan True
imageName bc243-de
EnableTaskScheduler False
includeTestToolkit True
accept_eula True
----------------------------------------
Proceed with creating a new container? (y/n): y
BcContainerHelper version 6.0.19
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Running on Windows, PowerShell 5.1.22621.2506
BcContainerHelper is version 6.0.19
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 10.0.22631.3296
UsePsSession is True
UsePwshForBc24 is True
UseWinRmSession is allow
UseSslForWinRmSession is True
Docker Client Version is 27.0.3
Docker Server Version is 27.0.3
Removing Desktop shortcuts
Fetching all docker images
Fetching all docker volumes
ArtifactUrl and ImageName specified
Fetching all docker images
Building multitenant image bc243-de:sandbox-24.3.21374.21951-de-mt based on mcr.microsoft.com/businesscentral:ltsc2022 with https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21951/de
Pulling latest image mcr.microsoft.com/businesscentral:ltsc2022
ltsc2022: Pulling from businesscentral
7c76e5cf7755: Pulling fs layer
eb373ec9afdf: Pulling fs layer
8426b23d3e64: Pulling fs layer
54d1653c74b4: Pulling fs layer
b98a95db17cd: Pulling fs layer
b98a95db17cd: Waiting
54d1653c74b4: Waiting
1b31cad5cb0d: Pulling fs layer
1b31cad5cb0d: Waiting
4ad93726e149: Pulling fs layer
fc7ce74e2e1a: Pulling fs layer
4ad93726e149: Waiting
8fb101093017: Pulling fs layer
fc7ce74e2e1a: Waiting
2e14abbb50cf: Pulling fs layer
8fb101093017: Waiting
da278fa84803: Pulling fs layer
2e14abbb50cf: Waiting
5922f2633c32: Pulling fs layer
da278fa84803: Waiting
77321eca4b1d: Pulling fs layer
5922f2633c32: Waiting
77321eca4b1d: Waiting
921be6f5748c: Pulling fs layer
921be6f5748c: Waiting
8426b23d3e64: Verifying Checksum
8426b23d3e64: Download complete
54d1653c74b4: Verifying Checksum
54d1653c74b4: Download complete
b98a95db17cd: Verifying Checksum
b98a95db17cd: Download complete
1b31cad5cb0d: Verifying Checksum
1b31cad5cb0d: Download complete
4ad93726e149: Verifying Checksum
4ad93726e149: Download complete
fc7ce74e2e1a: Verifying Checksum
fc7ce74e2e1a: Download complete
eb373ec9afdf: Verifying Checksum
eb373ec9afdf: Download complete
2e14abbb50cf: Verifying Checksum
2e14abbb50cf: Download complete
da278fa84803: Verifying Checksum
da278fa84803: Download complete
5922f2633c32: Verifying Checksum
5922f2633c32: Download complete
77321eca4b1d: Verifying Checksum
77321eca4b1d: Download complete
921be6f5748c: Verifying Checksum
921be6f5748c: Download complete
7c76e5cf7755: Verifying Checksum
7c76e5cf7755: Download complete
8fb101093017: Verifying Checksum
8fb101093017: Download complete
7c76e5cf7755: Pull complete
eb373ec9afdf: Pull complete
8426b23d3e64: Pull complete
54d1653c74b4: Pull complete
b98a95db17cd: Pull complete
1b31cad5cb0d: Pull complete
4ad93726e149: Pull complete
fc7ce74e2e1a: Pull complete
8fb101093017: Pull complete
2e14abbb50cf: Pull complete
da278fa84803: Pull complete
5922f2633c32: Pull complete
77321eca4b1d: Pull complete
921be6f5748c: Pull complete
Digest: sha256:c3f4032b6b82ae3c5bcb0a2d15e7d24ba53097f3e7a9c8266163a591fb9ace39
Status: Downloaded newer image for mcr.microsoft.com/businesscentral:ltsc2022
mcr.microsoft.com/businesscentral:ltsc2022
Generic Tag: 1.0.2.38
Container OS Version: 10.0.20348.2529 (ltsc2022)
Host OS Version: 10.0.22631.3296 (23H2)
Using hyperv isolation
Using license file License.bclicense
Files in c:\bcartifacts.cache\h4zq4mr0.vuc\my:
Copying Platform Artifacts
c:\bcartifacts.cache\sandbox\24.3.21374.21951\platform
Copying Database
Copying Licensefile
Copying ConfigurationPackages
C:\bcartifacts.cache\sandbox\24.3.21374.21951\de\ConfigurationPackages
Copying Extensions
C:\bcartifacts.cache\sandbox\24.3.21374.21951\de\Extensions
Copying Applications.DE
C:\bcartifacts.cache\sandbox\24.3.21374.21951\de\Applications.DE
c:\bcartifacts.cache\h4zq4mr0.vuc
Sending build context to Docker daemon 2.802GB
Step 1/6 : FROM mcr.microsoft.com/businesscentral:ltsc2022
---> 44a20f8c96b0
Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=Y artifactUrl=https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21951/de filesOnly=False
---> Running in da06ce3a6936
---> Removed intermediate container da06ce3a6936
---> 7348d2522d65
Step 3/6 : COPY my /run/
---> 4542028a4895
Step 4/6 : COPY NAVDVD /NAVDVD/
---> 8ab974c25ec7
Step 5/6 : RUN \Run\start.ps1 -installOnly -multitenant -includeTestToolkit
---> Running in e65b4e169252
c:\run\my folder doesn't exist, creating it
Using DVD installer from C:\Run\240
Installing Business Central: multitenant=True, installOnly=True, filesOnly=False, includeTestToolkit=True, includeTestLibrariesOnly=False, includeTestFrameworkOnly=False, includePerformanceToolkit=False, appArtifactPath=, platformArtifactPath=, databasePath=, licenseFilePath=, rebootContainer=False
Installing from DVD
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
C:\NAVDVD\ServiceTier\Program Files
C:\NAVDVD\ServiceTier\System64Folder
Copying Web Client Files
C:\NAVDVD\WebClient\Microsoft Dynamics NAV
Copying ModernDev Files
C:\NAVDVD
C:\NAVDVD\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\NAVDVD\ConfigurationPackages
Copying Test Assemblies
C:\NAVDVD\Test Assemblies
Copying Extensions
C:\NAVDVD\Extensions
Copying Applications
C:\NAVDVD\Applications
Copying Applications.DE
C:\NAVDVD\Applications.DE
Copying dependencies
Importing PowerShell Modules
Restoring CRONUS Demo Database
Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
Exporting Application to CRONUS
Removing Application from tenant
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
C:\Applications.DE\Microsoft_Permissions Mock_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Test Runner_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Any_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Library Assert_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Permissions Mock_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Library Variable Storage_24.3.21374.21951.app
C:\Applications.DE\Microsoft_System Application Test Library_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Business Foundation Test Libraries_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-TestLibraries_24.3.21374.21951.app
C:\Applications\System Application\Test\Microsoft_System Application Test.app
C:\Applications\BusinessFoundation\Test\Microsoft_Business Foundation Tests.app
C:\Applications.DE\Microsoft_Tests-Bank_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Cash Flow_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Cost Accounting_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-CRM integration_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Data Exchange_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Dimension_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-ERM_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Fixed Asset_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-General Journal_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Graph_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Integration_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Invoicing_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Job_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Local_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Marketing_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Misc_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Monitor Sensitive Fields_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Permissions_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Physical Inventory_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Prepayment_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Rapid Start_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Report_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Resource_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Reverse_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-SCM_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-SMB_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Upgrade_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-User_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-VAT_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Workflow_24.3.21374.21951.app
Starting Business Central Service Tier
Importing CRONUS license file
Copying Database on localhost\SQLEXPRESS from tenant to default
Taking database tenant offline
Copying database files
Attaching files as new Database default
Putting database tenant back online
Mounting tenant database
Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
Sync'ing Tenant
Tenant is Operational
Permissions Mock is already published
Synchronizing Permissions Mock
Installing Permissions Mock
Test Runner is already published
Synchronizing Test Runner
Installing Test Runner
Any is already published
Synchronizing Any
Installing Any
Library Assert is already published
Synchronizing Library Assert
Installing Library Assert
Skipping Permissions Mock as it is already installed
Library Variable Storage is already published
Synchronizing Library Variable Storage
Installing Library Variable Storage
Publishing C:\Applications.DE\Microsoft_System Application Test Library_24.3.21374.21951.app
Synchronizing System Application Test Library
Installing System Application Test Library
Publishing C:\Applications.DE\Microsoft_Business Foundation Test Libraries_24.3.21374.21951.app
Synchronizing Business Foundation Test Libraries
Installing Business Foundation Test Libraries
Publishing C:\Applications.DE\Microsoft_Tests-TestLibraries_24.3.21374.21951.app
Synchronizing Tests-TestLibraries
Installing Tests-TestLibraries
Publishing C:\Applications\System Application\Test\Microsoft_System Application Test.app
Synchronizing System Application Test
Installing System Application Test
Publishing C:\Applications\BusinessFoundation\Test\Microsoft_Business Foundation Tests.app
Synchronizing Business Foundation Tests
Installing Business Foundation Tests
Publishing C:\Applications.DE\Microsoft_Tests-Bank_24.3.21374.21951.app
Synchronizing Tests-Bank
Installing Tests-Bank
Publishing C:\Applications.DE\Microsoft_Tests-Cash Flow_24.3.21374.21951.app
Synchronizing Tests-Cash Flow
Installing Tests-Cash Flow
Publishing C:\Applications.DE\Microsoft_Tests-Cost Accounting_24.3.21374.21951.app
Synchronizing Tests-Cost Accounting
Installing Tests-Cost Accounting
Publishing C:\Applications.DE\Microsoft_Tests-CRM integration_24.3.21374.21951.app
Synchronizing Tests-CRM integration
Installing Tests-CRM integration
Publishing C:\Applications.DE\Microsoft_Tests-Data Exchange_24.3.21374.21951.app
Synchronizing Tests-Data Exchange
Installing Tests-Data Exchange
Publishing C:\Applications.DE\Microsoft_Tests-Dimension_24.3.21374.21951.app
Synchronizing Tests-Dimension
Installing Tests-Dimension
Publishing C:\Applications.DE\Microsoft_Tests-ERM_24.3.21374.21951.app
Synchronizing Tests-ERM
Installing Tests-ERM
Publishing C:\Applications.DE\Microsoft_Tests-Fixed Asset_24.3.21374.21951.app
Synchronizing Tests-Fixed Asset
Installing Tests-Fixed Asset
Publishing C:\Applications.DE\Microsoft_Tests-General Journal_24.3.21374.21951.app
Synchronizing Tests-General Journal
Installing Tests-General Journal
Publishing C:\Applications.DE\Microsoft_Tests-Graph_24.3.21374.21951.app
Synchronizing Tests-Graph
Installing Tests-Graph
Publishing C:\Applications.DE\Microsoft_Tests-Integration_24.3.21374.21951.app
Synchronizing Tests-Integration
Installing Tests-Integration
Publishing C:\Applications.DE\Microsoft_Tests-Invoicing_24.3.21374.21951.app
Synchronizing Tests-Invoicing
Installing Tests-Invoicing
Publishing C:\Applications.DE\Microsoft_Tests-Job_24.3.21374.21951.app
Synchronizing Tests-Job
Installing Tests-Job
Publishing C:\Applications.DE\Microsoft_Tests-Local_24.3.21374.21951.app
Synchronizing Tests-Local
Installing Tests-Local
Publishing C:\Applications.DE\Microsoft_Tests-Marketing_24.3.21374.21951.app
Synchronizing Tests-Marketing
Installing Tests-Marketing
Publishing C:\Applications.DE\Microsoft_Tests-Misc_24.3.21374.21951.app
Synchronizing Tests-Misc
Installing Tests-Misc
Publishing C:\Applications.DE\Microsoft_Tests-Monitor Sensitive Fields_24.3.21374.21951.app
Synchronizing Tests-Monitor Sensitive Fields
Installing Tests-Monitor Sensitive Fields
Publishing C:\Applications.DE\Microsoft_Tests-Permissions_24.3.21374.21951.app
Synchronizing Tests-Permissions
Installing Tests-Permissions
Publishing C:\Applications.DE\Microsoft_Tests-Physical Inventory_24.3.21374.21951.app
Synchronizing Tests-Physical Inventory
Installing Tests-Physical Inventory
Publishing C:\Applications.DE\Microsoft_Tests-Prepayment_24.3.21374.21951.app
Synchronizing Tests-Prepayment
Installing Tests-Prepayment
Publishing C:\Applications.DE\Microsoft_Tests-Rapid Start_24.3.21374.21951.app
Synchronizing Tests-Rapid Start
Installing Tests-Rapid Start
Publishing C:\Applications.DE\Microsoft_Tests-Report_24.3.21374.21951.app
Synchronizing Tests-Report
Installing Tests-Report
Publishing C:\Applications.DE\Microsoft_Tests-Resource_24.3.21374.21951.app
Synchronizing Tests-Resource
Installing Tests-Resource
Publishing C:\Applications.DE\Microsoft_Tests-Reverse_24.3.21374.21951.app
Synchronizing Tests-Reverse
Installing Tests-Reverse
Publishing C:\Applications.DE\Microsoft_Tests-SCM_24.3.21374.21951.app
Synchronizing Tests-SCM
Installing Tests-SCM
Publishing C:\Applications.DE\Microsoft_Tests-SMB_24.3.21374.21951.app
Synchronizing Tests-SMB
Installing Tests-SMB
Publishing C:\Applications.DE\Microsoft_Tests-Upgrade_24.3.21374.21951.app
Synchronizing Tests-Upgrade
Installing Tests-Upgrade
Publishing C:\Applications.DE\Microsoft_Tests-User_24.3.21374.21951.app
Synchronizing Tests-User
Installing Tests-User
Publishing C:\Applications.DE\Microsoft_Tests-VAT_24.3.21374.21951.app
Synchronizing Tests-VAT
Installing Tests-VAT
Publishing C:\Applications.DE\Microsoft_Tests-Workflow_24.3.21374.21951.app
Synchronizing Tests-Workflow
Installing Tests-Workflow
Stopping Business Central Service Tier
Installation took 979 seconds
Installation complete
New-Bcimage Telemetry Correlation Id: b99e5ba0-216c-400d-adc8-3345a5184d3b
New-BCContainer Telemetry Correlation Id: 542a7e2f-a192-46b2-95fd-e1bf2df3547d
An error occurred while creating the container:
re-exec error: exit status 1: output: hcsshim::ImportLayer failed in Win32: The system cannot find the path specified. (0x3)
ExitCode: 1
Commandline: docker build --isolation=hyperv --memory 8G --no-cache --tag bc243-de:sandbox-24.3.21374.21951-de-mt c:\bcartifacts.cache\h4zq4mr0.vuc
Press any key to continue...:
Screenshots
Additional context
-
does it happen all the time? Yes
-
did it use to work? Yes (I was on holidays for 3 weeks, before that it worked all successfully, now my containers are not getting created anymore - I have no single clue why.. :-( )
Edit: My colleague which successfully created a new container 2 days ago tested it now, and he also gets the same error. BcContainerHelper version: 6.0.20-preview1214 Docker Version: 26.1.0