Navcontainerhelper: Container initialization fails after updating Windows and Docker

Created on 28 May 2020  路  8Comments  路  Source: microsoft/navcontainerhelper

Describe the issue
The container initialization fails after updating Windows to 2004 and Docker to the latest version with the following error:

Unable to load DLL 'intl.cpl': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at <ScriptBlock>, C:\Run\SetupVariables.ps1: line 204
at <ScriptBlock>, C:\Run\navstart.ps1: line 24
at <ScriptBlock>, C:\Run\start.ps1: line 233
at <ScriptBlock>, <No file>: line 1
Initialization of container BC failed
In C:\Program Files\WindowsPowerShell\Modules\navcontainerhelper\0.6.5.11\ContainerHandling\Wait-NavContainerReady.ps1:44 Zeichen:17
+ ...             throw "Initialization of container $containerName failed" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Initialization of container BC failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Initialization of container BC failed

Scripts used to create container and cause the issue

New-BCContainer -containerName BC `
            -imageName mcr.microsoft.com/businesscentral/sandbox:de-ltsc2019 `
            -useBestContainerOs `
            -isolation process `
            -licenseFile REDACTED `
            -auth NavUserPassword `
            -useSSL:False `
            -Credential REDACTED `
            -includeCSide:False `
            -accept_eula `
            -accept_outdated `
            -includeTestToolkit:True;

Full output of scripts

NavContainerHelper is version 0.6.5.11
NavContainerHelper is running as administrator
Host is Microsoft Windows 10 Enterprise - 2004
Docker Client Version is 19.03.3
Docker Server Version is 19.03.8
Using image mcr.microsoft.com/businesscentral/sandbox:de-ltsc2019
Creating Container BC
Version: 16.1.12629.12805-de
Style: sandbox
Platform: 16.0.12630.12758
Generic Tag: 0.0.9.99
Container OS Version: 10.0.17763.973 (ltsc2019)
Host OS Version: 10.0.19041.264 (2004)
A better Generic Container OS exists for your host (mcr.microsoft.com/dynamicsnav:10.0.19041.264-generic)
Using generic image mcr.microsoft.com/dynamicsnav:10.0.19041.264-generic
Generic Container OS Version: 10.0.19041.264 (2004)
Generic Tag of better generic: 0.0.9.103
Using locale de-DE
Using process isolation
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file REDACTED
Downloading C:\ProgramData\NavContainerHelper\Extensions\BC\my\license.flf
Files in C:\ProgramData\NavContainerHelper\Extensions\BC\my:
- AdditionalOutput.ps1
- license.flf
- MainLoop.ps1
Creating container BC from image mcr.microsoft.com/dynamicsnav:10.0.19041.264-generic
736bcb02a6591cdc8ff7cf59486d1e6b4c81c43b67a52a6d438d367806958e17
Waiting for container BC to be ready
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Copying Web Client Files
Copying Client Files
Copying ModernDev Files
Copying PowerShell Scripts
Copying ConfigurationPackages
Copying Test Assemblies
Copying Extensions
Copying Applications
Copying Applications.*
Copying ReportBuilder
Changing Database Server Collation to Latin1_General_100_CS_AS
Copying Cronus database
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Installation took 193 seconds
Installation complete
Initializing...
Unable to load DLL 'intl.cpl': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at <ScriptBlock>, C:\Run\SetupVariables.ps1: line 204
at <ScriptBlock>, C:\Run\navstart.ps1: line 24
at <ScriptBlock>, C:\Run\start.ps1: line 233
at <ScriptBlock>, <No file>: line 1Error
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Copying Web Client Files
Copying Client Files
Copying ModernDev Files
Copying PowerShell Scripts
Copying ConfigurationPackages
Copying Test Assemblies
Copying Extensions
Copying Applications
Copying Applications.*
Copying ReportBuilder
Changing Database Server Collation to Latin1_General_100_CS_AS
Copying Cronus database
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Installation took 193 seconds
Installation complete
Initializing...
Unable to load DLL 'intl.cpl': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at <ScriptBlock>, C:\Run\SetupVariables.ps1: line 204
at <ScriptBlock>, C:\Run\navstart.ps1: line 24
at <ScriptBlock>, C:\Run\start.ps1: line 233
at <ScriptBlock>, <No file>: line 1
Initialization of container BC failed
In C:\Program Files\WindowsPowerShell\Modules\navcontainerhelper\0.6.5.11\ContainerHandling\Wait-NavContainerReady.ps1:44 Zeichen:17
+ ...             throw "Initialization of container $containerName failed" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Initialization of container BC failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Initialization of container BC failed

Additional context
It worked before updating Docker and Windows to the latest version.
Docker version:

C:\WINDOWS\system32> docker version
Client:
 Version:           19.03.3
 API version:       1.40
 Go version:        go1.12.10
 Git commit:        2355349d-
 Built:             10/14/2019 16:41:26
 OS/Arch:           windows/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.8
  API version:      1.40 (minimum version 1.24)
  Go version:       go1.12.17
  Git commit:       afacb8b
  Built:            Wed Mar 11 01:37:20 2020
  OS/Arch:          windows/amd64
  Experimental:     false
bug Fix Ready

All 8 comments

If you remove -useBestContainerOS - does the error go away?

Not using -useBestContainerOS produces the following error:

DockerDo : C:\ProgramData\chocolatey\lib\docker-cli\tools\docker.exe: Error response from daemon: hcsshim::CreateComputeSystem 38b154302c4e3bbecfc01a827ac0cd6c775c134f3dc0cf3f62151db225ead5eb: The container operating system does not match the host operating system.
(extra info: {"SystemType":"Container","Name":"38b154302c4e3bbecfc01a827ac0cd6c775c134f3dc0cf3f62151db225ead5eb","Owner":"docker","VolumePath":"\\\\?\\Volume{424b5573-9e67-476c-871a-4713feef1a6f}","IgnoreFlushesDuringBoot":true,"LayerFolderPath":"C:\\ProgramData\\Docker
\\windowsfilter\\38b154302c4e3bbecfc01a827ac0cd6c775c134f3dc0cf3f62151db225ead5eb","Layers":[{"ID":"37d1f467-1763-558c-a2c8-c5a20f0da05f","Path":"C:\\ProgramData\\Docker\\windowsfilter\\a95d55ce8612321c6534f918fda55721c2669c2f06fe35a1fd25ebb2d159fbf2"},{"ID":"531644fc-3
d07-5553-9b1c-c087eb33772c","Path":"C:\\ProgramData\\Docker\\windowsfilter\\08393ed0b5fb52a9fb99d8286d9c869b61867637b10b68ab8f4738e6a7e98c00"},{"ID":"f2599309-dc45-5b7a-940a-9e726301740c","Path":"C:\\ProgramData\\Docker\\windowsfilter\\dd1f557038d9795840907735c1280eeb69
7c89fb879ec63fda7e14f4de17d9c3"},{"ID":"0689a395-e78c-5227-aa7c-0c1d276d2ff9","Path":"C:\\ProgramData\\Docker\\windowsfilter\\06a6d1da7ed5c04d92530999fc025f879c1ede663f1c0dab65c02deca531fc63"},{"ID":"8c785852-3ddd-5681-b15f-b3934ec6addf","Path":"C:\\ProgramData\\Docker\
\windowsfilter\\3801272b2ae410c9f983f47be40261cd44ea54425e4c08937343fa570a32ed16"},{"ID":"a77c4be9-a3c5-5a6a-a24c-277b77e9ac8f","Path":"C:\\ProgramData\\Docker\\windowsfilter\\d6f69fc2fe1b17705363af7c15039bce0cdbebc7795573a83091d95e138c1cde"},{"ID":"b4726d91-d1a3-56e1-9
6e4-893ac4a71a7a","Path":"C:\\ProgramData\\Docker\\windowsfilter\\0081d61550f2a92ac19e6df1717d0aec35dbfbb08752dd37e8e9a2473eeb0d13"},{"ID":"fb772c7b-222d-5497-a85d-bae6c0fbfa1c","Path":"C:\\ProgramData\\Docker\\windowsfilter\\162344f4d115fdd21e7ca793886d2d6a72b8ce4701df
a6cdc2123473b96c7fc9"},{"ID":"71b12486-94b7-5206-8848-a79c6e5e8583","Path":"C:\\ProgramData\\Docker\\windowsfilter\\4661e861a3345edfeca8736255e9adc7f060598267fc7c975bc039a23c784e48"},{"ID":"29adec0d-8653-523b-8cf7-0e9e94fd59be","Path":"C:\\ProgramData\\Docker\\windowsfi
lter\\de597670e4c496c60351c80896f2943db1e56e1214ed4092f28892445eca9143"},{"ID":"2d25ba38-4d34-5f33-9782-951e0fe0b569","Path":"C:\\ProgramData\\Docker\\windowsfilter\\7275f7143fa96c22675e75f617e325b100345883888bc803a82a8b868c957a65"},{"ID":"c5ece901-5b7a-55c6-8abe-91d250
b1ff79","Path":"C:\\ProgramData\\Docker\\windowsfilter\\02621c18886ec3e9dac03516d8f5bcc98af3ee3613ab50640b4faa959d09235f"},{"ID":"4167d5c6-ca2c-5f6c-b0b2-451434c4d659","Path":"C:\\ProgramData\\Docker\\windowsfilter\\c244d12d43d0b55c1a12a380f12f1a310aeb632e01eac40d19c973
215fba7f87"},{"ID":"ae4233f6-4825-5799-bd1f-4d7f77b62944","Path":"C:\\ProgramData\\Docker\\windowsfilter\\736543f4a3ea3f9dc0eef7c96ad29b9078adfad27c0af8f54fcfed813f8d8e32"},{"ID":"00af7b26-5c1d-5675-8169-c56c06f53280","Path":"C:\\ProgramData\\Docker\\windowsfilter\\9204
bf48371c8070e1fa85bfdcff81da209fb1611ce496c13bd07048d6fbd0dd"},{"ID":"f77529d1-2995-5cc0-93c2-2e7971400b3e","Path":"C:\\ProgramData\\Docker\\windowsfilter\\ad08c05613aaf909fac202b8c2bf78e59e648b356b290097e010586c739526aa"},{"ID":"53013d62-9510-5f91-8e38-010a39bf7983","P
ath":"C:\\ProgramData\\Docker\\windowsfilter\\7d4e5cc392e35a42029bda3ff7626f5b25b886062ab862e22a1cc30cc4221e3e"},{"ID":"4fcef7ed-de35-5e8c-8222-dd4dd48a91a2","Path":"C:\\ProgramData\\Docker\\windowsfilter\\b2b66d0d5748b40fcba0c8a7b05960beccc0921273a3b59407d8b25a15e34a19
"},{"ID":"76afc1d1-5b96-594a-a172-f6c562f90e00","Path":"C:\\ProgramData\\Docker\\windowsfilter\\d73d3ce3d66953f3df651ea73e8a5c36a94bb7518d72de4872631252d98294b3"},{"ID":"a94e4d60-440c-5e6c-8c8b-f21ff8dcfed0","Path":"C:\\ProgramData\\Docker\\windowsfilter\\a767423368cc52
dd5090f6b128111495b28f5f7fa102999f0db1c7fed8764dd8"},{"ID":"9f31d99a-525d-5256-9181-6dc2a1e1ca74","Path":"C:\\ProgramData\\Docker\\windowsfilter\\45d50ad29c3b64332a534d4e868082fcc276bd7a84c1b27fa3de4a98063da5de"},{"ID":"b9c1d571-80ca-55e2-b772-7bfa7e955a84","Path":"C:\\
ProgramData\\Docker\\windowsfilter\\71f9039bdab8f31d8ed047cf5c6ef92d24e46a6456c7c00249f36afc204e5f86"},{"ID":"9ce06acb-6320-545a-880c-066bba732480","Path":"C:\\ProgramData\\Docker\\windowsfilter\\8a87f96be1f8876c1a48efac2b621c70a0e45e65676c272b624939e4874c924f"},{"ID":"
648c5fc2-1725-539b-81e2-5b723e0073bd","Path":"C:\\ProgramData\\Docker\\windowsfilter\\db669c3da0f3ca464abf23360f1e8f2b55b2b084e59e3d464c5446238430c9e2"},{"ID":"736a2627-c6e3-51f4-a781-995a7516a51b","Path":"C:\\ProgramData\\Docker\\windowsfilter\\68f3d134fac101d383228af5
5e2f91dc8beb8233fa437238baf2b20e38f3360a"},{"ID":"7f971657-a700-5b00-a5a6-7950cf30a7bb","Path":"C:\\ProgramData\\Docker\\windowsfilter\\379e64415d73a555124a7dee3d7153447a5acd8bda2869cec6e7c67f4f664bc3"},{"ID":"2af947aa-fec8-59f9-bf86-b53ff72af437","Path":"C:\\ProgramDat
a\\Docker\\windowsfilter\\abe3e677483df8af1dbccf41346dcc0945dbde6408c8f0aec16d8b1150f86776"},{"ID":"c5ed44b2-d443-576d-9a6e-491d781cefca","Path":"C:\\ProgramData\\Docker\\windowsfilter\\bade695877e9249293594fbb1520ab71e284bea05b5175e6041859ebb3eed977"},{"ID":"d8f69a64-4
061-5033-aaeb-3e8d4b538f70","Path":"C:\\ProgramData\\Docker\\windowsfilter\\49b4b1f82e583c88b360bf712ab8cb7144a8295a3423bfbe79c7b93827bca088"},{"ID":"b2aae826-5a06-52ed-afc9-9ab00e00545e","Path":"C:\\ProgramData\\Docker\\windowsfilter\\4b196c08448b9c5ce4ab2d0fa46b0987c1
df5c10fc9938ef94cd557fc584ce3f"},{"ID":"c9bddd6e-8e95-5fbc-a633-abc5258a8c2c","Path":"C:\\ProgramData\\Docker\\windowsfilter\\92acdbc3feadf7b0a35998a83ce158988516ab986f77e3d0910985cba82d9370"},{"ID":"5f536cc6-d7d9-5dc9-a35f-9df486f1747a","Path":"C:\\ProgramData\\Docker\
\windowsfilter\\d796b6e704a3c531410dc93e7cc59e450eae5c65879d283d7fc76efee6986a39"},{"ID":"972fb5b1-6046-5a5f-821d-6cffe06b4946","Path":"C:\\ProgramData\\Docker\\windowsfilter\\2ecd4dfc4f390afe238d179c6ee167d65ea840fe5d050b0608f42b54a60174e8"},{"ID":"ab2f40d2-4d83-5407-b
5c5-717c352e6303","Path":"C:\\ProgramData\\Docker\\windowsfilter\\dd1c948f1f4a8e4ea11d55e6e8f49f4c5b15b1e82753ed32f61f5981a5fe3791"},{"ID":"7c017c30-0707-5118-8340-52ac1d1e737a","Path":"C:\\ProgramData\\Docker\\windowsfilter\\99d8276b7e6533e6716b2b70b53c7e79345a4646a3f1
0751578b85bb69388a21"},{"ID":"192a588a-00d2-5c7b-ace2-c0ab5f7269fb","Path":"C:\\ProgramData\\Docker\\windowsfilter\\423e1af20c9bbe57c11de9423821bf954e0e342f60de4c15ad4141a72188652f"}],"HostName":"BC","MappedDirectories":[{"HostPath":"c:\\programdata\\navcontainerhelper\
\extensions\\bc\\my","ContainerPath":"c:\\run\\my","ReadOnly":false,"BandwidthMaximum":0,"IOPSMaximum":0,"CreateInUtilityVM":false},{"HostPath":"c:\\programdata\\navcontainerhelper","ContainerPath":"c:\\programdata\\navcontainerhelper","ReadOnly":false,"BandwidthMaximum
":0,"IOPSMaximum":0,"CreateInUtilityVM":false}],"HvPartition":false,"EndpointList":["a80b0e57-8c15-46c6-8b6d-d4b907a00bf2"],"AllowUnqualifiedDNSQuery":true}).
ExitCode: 125
Commandline: docker run --env licenseFile="c:\run\my\license.flf" --name BC --hostname BC --env auth=NavUserPassword --env username="apt" --env ExitOnError=N --env locale=de-DE --env databaseServer="" --env databaseInstance="" --volume
"C:\ProgramData\NavContainerHelper:C:\ProgramData\NavContainerHelper" --volume "C:\ProgramData\NavContainerHelper\Extensions\BC\my:C:\Run\my" --isolation process --restart unless-stopped --env enableApiServices=Y --env useSSL=N --env
securePassword=76492d1116743f0423413b16050a5345MgB8AFkASQBEADUAeAAvAHEAWgA5AFMASgBwAHcAQgBKACsAVgA2AG0AdABPAEEAPQA9AHwAYgBlAGQAOAA2AGUAOQAxADQAYwBmADMAMgA1AGQAZgBiADUAMAA1AGUANQAzADkAMQBmADUANQAyADAAYQAyAA== --env passwordKeyFile="c:\run\my\aes.key" --env
removePasswordKeyFile=Y --env accept_eula=Y --env accept_outdated=Y --detach mcr.microsoft.com/businesscentral/sandbox:de-ltsc2019
In C:\Program Files\WindowsPowerShell\Modules\navcontainerhelper\0.6.5.11\ContainerHandling\New-NavContainer.ps1:1273 Zeichen:19
+ ...       if (!(DockerDo -accept_eula -accept_outdated:$accept_outdated - ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DockerDo

Sorry - you need to remove -isolation process too and run hyperv

Using hyperv works for me.

Will process isolation and useBestContainerOS come back? Or are those features not supported with Windows 2004 / Docker 19.03.3 anymore?

Servercore 2004 was shipped today - and I have just (an hour ago) created the generic image for that.
It should work - but it seems like you found a bug - something not working in 2004, and it fails on my 2004 as well (because this is a non en-us container).
When the bug is fixed, -usebestcontaineros is sufficient - it will take the best and use process if possible.

Okay, thank you!

You should be able to retry with -useBestcontainerOS within the next 10 minutes and get process isolation working. You probably need -alwaysPull the first time - tag of the new 2004 generic should be 104.

Yes it is working now. Thank you! 馃憤

Was this page helpful?
0 / 5 - 0 ratings