Closed DBiernat closed 2 years ago
@mtaanquist - are you saying the the new image also fixes the real-time protection issue?
Yes, exactly. I've now spun up two new containers, with the same script as I used in the previous issue, only adding the new image, and haven't had any errors during the setup.
They take quite a bit longer to set up when real-time protection is enabled (around 11 minutes versus 3 minutes), but that's negligible as long as it works.
I just ran into an issue with the new image and setting up a new container. I'm trying to set up a 14.35 container, and it is constantly restarting, and attempting to install components.
BcContainerHelper is version 3.0.7
BcContainerHelper is running as administrator
Hyper-V is Enabled
Host is Microsoft Windows 10 Enterprise - 21H2
Docker Client Version is 20.10.14
Docker Server Version is 20.10.14
Downloading application artifact /onprem/14.35.48518.0/dk
Downloading C:\Users\mt\AppData\Local\Temp\b2ced519-33d0-4157-a82c-37f87f51e623.zip
Unpacking application artifact to tmp folder using Expand-Archive
Downloading platform artifact /onprem/14.35.48518.0/platform
Downloading C:\Users\mt\AppData\Local\Temp\5fc194fc-fc56-4b44-a226-65752d0bb7bc.zip
Unpacking platform artifact to tmp folder using Expand-Archive
Downloading Prerequisite Components
Downloading c:\bcartifacts.cache\onprem\14.35.48518.0\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
Downloading c:\bcartifacts.cache\onprem\14.35.48518.0\platform\Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\OpenXMLSDKv25.msi
Downloading c:\bcartifacts.cache\onprem\14.35.48518.0\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.19041.1415-dev
Creating Container bcdev140
Style: onprem
Multitenant: No
Version: 14.35.48518.0
Platform: 14.0.48501.0
Generic Tag: 1.0.2.2
Container OS Version: 10.0.19041.1415 (2004)
Host OS Version: 10.0.19044.1645 (21H2)
Using process isolation
Using locale da-DK
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file C:\Path\To\Licenses\BC 14 DEV.flf
Additional Parameters:
--env customNavSettings=EnableTaskScheduler=True
Files in C:\ProgramData\BcContainerHelper\Extensions\bcdev140\my:
- AdditionalOutput.ps1
- AdditionalSetup.ps1
- license.flf
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container bcdev140 from image mcr.microsoft.com/businesscentral:10.0.19041.1415-dev
34b496e445861047006058a51767ecb3250a4521a4e722ef128777cf4c5323a4
Waiting for container bcdev140 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/onprem/14.35.48518.0/dk
Using installer from C:\Run\130
Copying Platform Artifacts
c:\dl\onprem\14.35.48518.0\platform
Copying Application Artifacts
Copying Database
Using artifactUrl https://bcartifacts.azureedge.net/onprem/14.35.48518.0/dk
Using installer from
Unexpected restart during artifact copy, retrying...
Copying Platform Artifacts
c:\dl\onprem\14.35.48518.0\platform
Copying Application Artifacts
Copying Database
Copying Installers
c:\dl\onprem\14.35.48518.0\dk\Installers
Copying TestToolKit
c:\dl\onprem\14.35.48518.0\dk\TestToolKit
Copying UpgradeToolKit
c:\dl\onprem\14.35.48518.0\dk\UpgradeToolKit
Copying Extensions
c:\dl\onprem\14.35.48518.0\dk\Extensions
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
... (Ctrl^C)
Disabling real-time protection makes this work again. The other two containers I managed to set up without issue, were BC19 and BC20.
use generic image works for me
output:
BcContainerHelper is version 3.0.7
BcContainerHelper is running as administrator
Hyper-V is Enabled
Host is Microsoft Windows 10 Enterprise - 20H2
Docker Client Version is 20.10.14
Docker Server Version is 20.10.14
Removing NSSFinanceCZ-20 from container hosts file
Removing NSSFinanceCZ-20-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\NSSFinanceCZ-20
Fetching all docker images
Fetching all docker volumes
Pulling image mcr.microsoft.com/businesscentral:10.0.19042.1645-dev
10.0.19042.1645-dev: Pulling from businesscentral
18ae6bebe21d: Already exists
44a67477f452: Already exists
82a0f632b543: Already exists
083e618a1407: Already exists
75e5edcac5f7: Already exists
514af23b5fb7: Already exists
aedd10a71b63: Already exists
6fd5f4b10361: Already exists
f9118939d9b2: Already exists
091d5005ee56: Already exists
cd50cf24f38e: Already exists
f81156164dba: Already exists
0badc1f33857: Already exists
dd8d0b07dbb6: Already exists
60f6292c329b: Already exists
1adeba6d8223: Pulling fs layer
8c05540ce7d2: Pulling fs layer
8c05540ce7d2: Verifying Checksum
8c05540ce7d2: Download complete
1adeba6d8223: Verifying Checksum
1adeba6d8223: Download complete
1adeba6d8223: Pull complete
8c05540ce7d2: Pull complete
Digest: sha256:8b009126f9e65d2c8e749c9b9d15573f297454137bf0f62abb16ca5dad98523c
Status: Downloaded newer image for mcr.microsoft.com/businesscentral:10.0.19042.1645-dev
mcr.microsoft.com/businesscentral:10.0.19042.1645-dev
Using image mcr.microsoft.com/businesscentral:10.0.19042.1645-dev
Creating Container NSSFinanceCZ-20
Style: onprem
Multitenant: No
Version: 20.0.37253.38230
Platform: 20.0.37114.38150
Generic Tag: 1.0.2.2
Container OS Version: 10.0.19042.1645 (20H2)
Host OS Version: 10.0.19042.1645 (20H2)
Using process isolation
Using locale cs-CZ
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file \\srv-file01.navisys.local\Produkty\Licence\Navisys\D365BC200\Latest\4805287.flf
Additional Parameters:
--cpu-count 4 --dns=8.8.8.8 -e customnavsettings=ClientServicesMaxUploadSize=2000,MaxStreamReadSize=2147483647,SqlManagementCommandTimeout=-1,SOAPServicesOperationTimeout=00:30:00,NavHttpClientMaxTimeout=00:30:00,NavHttpClientMaxResponseContentSize=15,ClientServicesKeepAliveInterval=00:02:00,NavHttpClientMaxTimeout=00:30:00,EnableTaskScheduler=True
--volume C:\Containers\NSSFinanceCZ-20\RapidStarts:C:\Temp\RapidStarts
--volume C:\Containers\NSSFinanceCZ-20\TempFiles:C:\Temp\TempFiles
--volume C:\Containers\NSSFinanceCZ-20\Agent:C:\Agent
--volume C:\Containers\NSSFinanceCZ-20\Packages:C:\Temp\Packages
--volume C:\Containers\NSSFinanceCZ-20\Backups:C:\Temp\Backups
Files in C:\ProgramData\BcContainerHelper\Extensions\NSSFinanceCZ-20\my:
- AdditionalOutput.ps1
- license.flf
- MainLoop.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container NSSFinanceCZ-20 from image mcr.microsoft.com/businesscentral:10.0.19042.1645-dev
49b12db062999eadf889ac52b4ed178139bf7ce16060311528c0d2e09396508b
Waiting for container NSSFinanceCZ-20 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/onprem/20.0.37253.38230/cz
Using installer from C:\Run\150-new
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\onprem\20.0.37253.38230\platform\ServiceTier\Program Files
c:\dl\onprem\20.0.37253.38230\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\onprem\20.0.37253.38230\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\onprem\20.0.37253.38230\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\onprem\20.0.37253.38230\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\onprem\20.0.37253.38230\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\onprem\20.0.37253.38230\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\onprem\20.0.37253.38230\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\onprem\20.0.37253.38230\platform
c:\dl\onprem\20.0.37253.38230\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\onprem\20.0.37253.38230\platform\ConfigurationPackages
Copying Test Assemblies
C:\dl\onprem\20.0.37253.38230\platform\Test Assemblies
Copying Applications
C:\dl\onprem\20.0.37253.38230\cz\Applications
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Restoring CRONUS Demo Database
Setting CompatibilityLevel for CRONUS on localhost\SQLEXPRESS
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Starting Business Central Service Tier
Importing license file
Stopping Business Central Service Tier
Installation took 182 seconds
Installation complete
Initializing...
Setting host.docker.internal to 192.168.10.178 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.10.178 in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to 127.0.0.1 in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to 172.17.16.1 in container hosts file
Starting Container
Hostname is NSSFinanceCZ-20
PublicDnsName is NSSFinanceCZ-20
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 8AC2F3CF1AB2B5054E06B3A23DB54D59BBC062EC
DNS identity NSSFinanceCZ-20
Modifying Service Tier Config File with Instance Specific Settings
Modifying Service Tier Config File with settings from environment variable
Setting ClientServicesMaxUploadSize to 2000
Setting MaxStreamReadSize to 2147483647
Setting SqlManagementCommandTimeout to -1
Setting SOAPServicesOperationTimeout to 00:30:00
Setting NavHttpClientMaxTimeout to 00:30:00
Setting NavHttpClientMaxResponseContentSize to 15
Setting ClientServicesKeepAliveInterval to 00:02:00
Setting NavHttpClientMaxTimeout to 00:30:00
Setting EnableTaskScheduler to True
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Using application pool name: BC
Using default container name: NavWebApplicationContainer
Copy files to WWW root C:\inetpub\wwwroot\BC
Create the application pool BC
Create website: NavWebApplicationContainer without SSL
Update configuration: navsettings.json
Done Configuring Web Client
Using license file 'c:\run\my\license.flf'
Import License
Creating http download site
Setting SA Password and enabling SA
Creating Admin as SQL User and add to sysadmin
Creating SUPER user
Container IP Address: 172.17.25.92
Container Hostname : NSSFinanceCZ-20
Container Dns Name : NSSFinanceCZ-20
Web Client : http://NSSFinanceCZ-20/BC/
Dev. Server : http://NSSFinanceCZ-20
Dev. ServerInstance : BC
Setting NSSFinanceCZ-20 to 172.17.25.92 in host hosts file
Files:
http://NSSFinanceCZ-20:8080/ALLanguage.vsix
Container Total Physical Memory is 19.9Gb
Container Free Physical Memory is 3.2Gb
Initialization took 55 seconds
Ready for connections!
Reading CustomSettings.config from NSSFinanceCZ-20
Creating Desktop Shortcuts for NSSFinanceCZ-20
Container NSSFinanceCZ-20 successfully created
Use:
Get-BcContainerEventLog -containerName NSSFinanceCZ-20
to retrieve a snapshot of the event log from the container
Get-BcContainerDebugInfo -containerName NSSFinanceCZ-20
to get debug information about the container
Enter-BcContainer -containerName NSSFinanceCZ-20
to open a PowerShell prompt inside the container
Remove-BcContainer -containerName NSSFinanceCZ-20
to remove the container again
docker logs NSSFinanceCZ-20
to retrieve information about URL's again
@mtaanquist - I will double check the older installers (for 14) as well. I also found a strange issue on one of my build machines with the new image - will have to check that as well.
One bug with the new image is that it doesn't work with -imagename "my" (implicit caching of images) Will fix these things and republish - run some more tests and when all seems to work - I will publish a new preview of BcContainerHelper which automatically selects the -dev image if bcContainerHelper is a preview version
Yet another new generic image with -dev created - version 1.0.2.3 - that one should fix all known issues.
Hi Freddy,
I tried setting up a new BC14 container, but I ran into the same issue still. I'm not sure what your version 1.0.2.3 refers to, as my image name I get from Get-BestGenericImageName
is mcr.microsoft.com/businesscentral:10.0.19041.1415
(and I'm adding the -dev
myself.).
Even if I include the script, you posted earlier, it still doesn't go through. There was an interesting bit in the output that I noticed:
Copying Platform Artifacts
c:\dl\onprem\14.36.48675.0\platform
Using artifactUrl https://bcartifacts.azureedge.net/onprem/14.36.48675.0/dk
Using installer from
Unexpected restart during artifact copy, retrying...
Copying Platform Artifacts
The line Using installer from
usually has a path proceeding it, and it's missing. Also, the Unexpected restart
I haven't seen before, but it is what I can see happening in Docker Desktop.
The generic tag in the output needs to be 1.0.2.3
else do a new docker pull
Creating Container NSSFinanceCZ-20 Style: onprem Multitenant: No Version: 20.0.37253.38230 Platform: 20.0.37114.38150 Generic Tag: 1.0.2.2 Container OS Version: 10.0.19042.1645 (20H2) Host OS Version: 10.0.19042.1645 (20H2)
I just tried
docker pull mcr.microsoft.com/businesscentral:10.0.19041.1415-dev
get-bccontainerimagelabels -imagename mcr.microsoft.com/businesscentral:10.0.19041.1415-dev
displays
created : 202205091453
eula : https://go.microsoft.com/fwlink/?linkid=861843
maintainer : Dynamics SMB
osversion : 10.0.19041.1415
tag : 1.0.2.3
Thanks for that, freddy--I wasn't sure where I was looking.
I'm still having the issue that the Docker container is restarting several times during the setup process for a BC 14 container. Here's the output of one I just tried:
BcContainerHelper is version 3.0.8-preview589
BcContainerHelper is running as administrator
Hyper-V is Enabled
Host is Microsoft Windows 10 Enterprise - 21H2
Docker Client Version is 20.10.14
Docker Server Version is 20.10.14
Removing Session bcdev140
Removing container bcdev140
Removing entires from hosts
Removing bcdev140 from container hosts file
Removing bcdev140-* from container hosts file
Removing Desktop shortcuts
Removing C:\ProgramData\BcContainerHelper\Extensions\bcdev140
Fetching all docker images
Fetching all docker volumes
Pulling image mcr.microsoft.com/businesscentral:10.0.19041.1415-dev
10.0.19041.1415-dev: Pulling from businesscentral
Digest: sha256:28794884314e35aa77594a1476e8f0e8e2e727c805f391bf284cc3c04d6b574f
Status: Image is up to date for mcr.microsoft.com/businesscentral:10.0.19041.1415-dev
mcr.microsoft.com/businesscentral:10.0.19041.1415-dev
Using image mcr.microsoft.com/businesscentral:10.0.19041.1415-dev
Creating Container bcdev140
Style: onprem
Multitenant: No
Version: 14.36.48675.0
Platform: 14.0.48664.0
Generic Tag: 1.0.2.3
Container OS Version: 10.0.19041.1415 (2004)
Host OS Version: 10.0.19044.1645 (21H2)
Using process isolation
Using locale da-DK
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file C:\BC 14 DEV.flf
Additional Parameters:
--env customNavSettings=EnableTaskScheduler=True
Files in C:\ProgramData\BcContainerHelper\Extensions\bcdev140\my:
- AdditionalOutput.ps1
- AdditionalSetup.ps1
- license.flf
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container bcdev140 from image mcr.microsoft.com/businesscentral:10.0.19041.1415-dev
7ec8f1ece68f45877ef30311ad6144f3ac8f0851ec4df29b853cdcac06506d0f
Waiting for container bcdev140 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/onprem/14.36.48675.0/dk
Using installer from C:\Run\130
Copying Platform Artifacts
c:\dl\onprem\14.36.48675.0\platform
Using artifactUrl https://bcartifacts.azureedge.net/onprem/14.36.48675.0/dk
Using installer from
Unexpected restart during artifact copy, retrying...
Copying Platform Artifacts
c:\dl\onprem\14.36.48675.0\platform
Copying Application Artifacts
Copying Database
Copying Installers
c:\dl\onprem\14.36.48675.0\dk\Installers
Copying TestToolKit
c:\dl\onprem\14.36.48675.0\dk\TestToolKit
Copying UpgradeToolKit
c:\dl\onprem\14.36.48675.0\dk\UpgradeToolKit
Copying Extensions
c:\dl\onprem\14.36.48675.0\dk\Extensions
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
C:\NAVDVD\ServiceTier\Program Files
C:\NAVDVD\ServiceTier\System64Folder
Copying PowerShell Scripts
C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration
C:\NAVDVD\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
C:\NAVDVD\WebClient\Microsoft Dynamics NAV
Copying Windows Client Files
C:\NAVDVD\RoleTailoredClient\program files\Microsoft Dynamics NAV
C:\NAVDVD\RoleTailoredClient\systemFolder
C:\NAVDVD\ClickOnceInstallerTools\Program Files\Microsoft Dynamics NAV
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 TestToolKit
C:\NAVDVD\TestToolKit
Copying UpgradeToolKit
C:\NAVDVD\UpgradeToolKit
Copying Extensions
C:\NAVDVD\Extensions
Copying ClientUserSettings
Copying ReportBuilder
In the Event Viewer in Windows, I see these same two entries from docker pop up when it restarts:
exec's CreateProcess() failed [module=libcontainerd namespace=moby exec=9b239f49a3ffe4740e01a472b2479d89cfd8c6667bd1297088460364a7c2d784 error=container 7ec8f1ece68f45877ef30311ad6144f3ac8f0851ec4df29b853cdcac06506d0f encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The user name or password is incorrect. (0x52e) container=7ec8f1ece68f45877ef30311ad6144f3ac8f0851ec4df29b853cdcac06506d0f]
Error running exec 9b239f49a3ffe4740e01a472b2479d89cfd8c6667bd1297088460364a7c2d784 in container: container 7ec8f1ece68f45877ef30311ad6144f3ac8f0851ec4df29b853cdcac06506d0f encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The user name or password is incorrect. (0x52e)
Getting the event log from the container I'm trying to set up, shows that powershell.exe crashed due to ntdll.dll (apologies for the Danish to any non-Danish readers):
Navn på program med fejl: powershell.exe, version: 10.0.19041.546, tidsstempel: 0x7eda4115
Navn på modul med fejl: ntdll.dll, version: 10.0.19041.1566, tidsstempel: 0x1be73aa8
Undtagelseskode: 0xc0000409
Forskydning med fejl 0x000000000008c56f
Proces-id 0x1cf4
Programmets starttidspunkt 0x01d863d3ec511e87
Programsti: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Modulsti: C:\Windows\SYSTEM32\ntdll.dll
Rapport-id: 2b6e082b-1590-4519-989b-b94b4292a5d1
Fuldt navn på program med fejl:
Relativt program-id for program med fejl:
Please let me know if there's any other information I can provide.
Is there no more output after Copying ReportBuilder?
The first "Using Installer from C:\Run\130" will actually copy the content of the 130 folder in the image to c:\run and remove the 130 folder - meaning that the second time around (after a reboot) it says "Using Installer from" - that is OK. I cannot force it not to restart - I am trying to recover after the reboot. All versions after 15 uses the same installer - 14 uses a different, which I tried to patch.
It just repeats the same steps after the Copying ReportBuilder step. Although, in trying reproduce this, I got a different error message at the end.
BcContainerHelper is version 3.0.8-preview589
BcContainerHelper is running as administrator
Hyper-V is Enabled
Host is Microsoft Windows 10 Enterprise - 21H2
Docker Client Version is 20.10.14
Docker Server Version is 20.10.14
Removing Session bcdev140
Removing container bcdev140
Removing entires from hosts
Removing bcdev140 from container hosts file
Removing bcdev140-* from container hosts file
Removing Desktop shortcuts
Removing C:\ProgramData\BcContainerHelper\Extensions\bcdev140
Fetching all docker images
Fetching all docker volumes
Pulling image mcr.microsoft.com/businesscentral:10.0.19041.1415-dev
10.0.19041.1415-dev: Pulling from businesscentral
Digest: sha256:28794884314e35aa77594a1476e8f0e8e2e727c805f391bf284cc3c04d6b574f
Status: Image is up to date for mcr.microsoft.com/businesscentral:10.0.19041.1415-dev
mcr.microsoft.com/businesscentral:10.0.19041.1415-dev
Using image mcr.microsoft.com/businesscentral:10.0.19041.1415-dev
Creating Container bcdev140
Style: onprem
Multitenant: No
Version: 14.36.48675.0
Platform: 14.0.48664.0
Generic Tag: 1.0.2.3
Container OS Version: 10.0.19041.1415 (2004)
Host OS Version: 10.0.19044.1645 (21H2)
Using process isolation
Using locale da-DK
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file C:\BC 14 DEV.flf
Additional Parameters:
--env customNavSettings=EnableTaskScheduler=True
Files in C:\ProgramData\BcContainerHelper\Extensions\bcdev140\my:
- AdditionalOutput.ps1
- AdditionalSetup.ps1
- license.flf
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container bcdev140 from image mcr.microsoft.com/businesscentral:10.0.19041.1415-dev
f2bcb641f9b79eccba49dba61d13842d117977a0d9554298cdc59a007faeb58d
Waiting for container bcdev140 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/onprem/14.36.48675.0/dk
Using installer from C:\Run\130
Copying Platform Artifacts
c:\dl\onprem\14.36.48675.0\platform
Using artifactUrl https://bcartifacts.azureedge.net/onprem/14.36.48675.0/dk
Using installer from
Unexpected restart during artifact copy, retrying...
Copying Platform Artifacts
c:\dl\onprem\14.36.48675.0\platform
Copying Application Artifacts
Copying Database
Copying Installers
c:\dl\onprem\14.36.48675.0\dk\Installers
Copying TestToolKit
c:\dl\onprem\14.36.48675.0\dk\TestToolKit
Copying UpgradeToolKit
c:\dl\onprem\14.36.48675.0\dk\UpgradeToolKit
Copying Extensions
c:\dl\onprem\14.36.48675.0\dk\Extensions
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
C:\NAVDVD\ServiceTier\Program Files
C:\NAVDVD\ServiceTier\System64Folder
Copying PowerShell Scripts
C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration
C:\NAVDVD\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
C:\NAVDVD\WebClient\Microsoft Dynamics NAV
Copying Windows Client Files
C:\NAVDVD\RoleTailoredClient\program files\Microsoft Dynamics NAV
C:\NAVDVD\RoleTailoredClient\systemFolder
C:\NAVDVD\ClickOnceInstallerTools\Program Files\Microsoft Dynamics NAV
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 TestToolKit
C:\NAVDVD\TestToolKit
Copying UpgradeToolKit
C:\NAVDVD\UpgradeToolKit
Copying Extensions
C:\NAVDVD\Extensions
Copying ClientUserSettings
Copying ReportBuilder
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
C:\NAVDVD\ServiceTier\Program Files
C:\NAVDVD\ServiceTier\System64Folder
Copying PowerShell Scripts
C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration
C:\NAVDVD\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
C:\NAVDVD\WebClient\Microsoft Dynamics NAV
Copying Windows Client Files
C:\NAVDVD\RoleTailoredClient\program files\Microsoft Dynamics NAV
C:\NAVDVD\RoleTailoredClient\systemFolder
C:\NAVDVD\ClickOnceInstallerTools\Program Files\Microsoft Dynamics NAV
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 TestToolKit
C:\NAVDVD\TestToolKit
Copying UpgradeToolKit
C:\NAVDVD\UpgradeToolKit
Copying Extensions
C:\NAVDVD\Extensions
Copying ClientUserSettings
Copying ReportBuilder
Restoring CRONUS Demo Database
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
start...
Starting Internet Information Server
Copying Service Tier Files
C:\NAVDVD\ServiceTier\Program Files
C:\NAVDVD\ServiceTier\System64Folder
Copying PowerShell Scripts
C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration
C:\NAVDVD\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
C:\NAVDVD\WebClient\Microsoft Dynamics NAV
Copying Windows Client Files
C:\NAVDVD\RoleTailoredClient\program files\Microsoft Dynamics NAV
C:\NAVDVD\RoleTailoredClient\systemFolder
C:\NAVDVD\ClickOnceInstallerTools\Program Files\Microsoft Dynamics NAV
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 TestToolKit
C:\NAVDVD\TestToolKit
Copying UpgradeToolKit
C:\NAVDVD\UpgradeToolKit
Copying Extensions
C:\NAVDVD\Extensions
Copying ClientUserSettings
Copying ReportBuilder
Restoring CRONUS Demo Database
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
C:\NAVDVD\ServiceTier\Program Files
C:\NAVDVD\ServiceTier\System64Folder
Copying PowerShell Scripts
C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration
C:\NAVDVD\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
C:\NAVDVD\WebClient\Microsoft Dynamics NAV
Copying Windows Client Files
C:\NAVDVD\RoleTailoredClient\program files\Microsoft Dynamics NAV
C:\NAVDVD\RoleTailoredClient\systemFolder
C:\NAVDVD\ClickOnceInstallerTools\Program Files\Microsoft Dynamics NAV
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 TestToolKit
C:\NAVDVD\TestToolKit
Copying UpgradeToolKit
C:\NAVDVD\UpgradeToolKit
Copying Extensions
C:\NAVDVD\Extensions
Copying ClientUserSettings
Copying ReportBuilder
Restoring CRONUS Demo Database
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
C:\NAVDVD\ServiceTier\Program Files
C:\NAVDVD\ServiceTier\System64Folder
Copying PowerShell Scripts
C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration
C:\NAVDVD\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
C:\NAVDVD\WebClient\Microsoft Dynamics NAV
Copying Windows Client Files
C:\NAVDVD\RoleTailoredClient\program files\Microsoft Dynamics NAV
C:\NAVDVD\RoleTailoredClient\systemFolder
C:\NAVDVD\ClickOnceInstallerTools\Program Files\Microsoft Dynamics NAV
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 TestToolKit
C:\NAVDVD\TestToolKit
Copying UpgradeToolKit
C:\NAVDVD\UpgradeToolKit
Copying Extensions
C:\NAVDVD\Extensions
Copying ClientUserSettings
Copying ReportBuilder
Restoring CRONUS Demo Database
The database restore operation failed due to the following error returned by SQL Server:
The tail of the log for the database "CRONUS" has not been backed up. Use BACKUP LOG WITH NORECOVERY to backup the log if it contains work you do not want to lose. Use the WITH REPLACE or WITH STOPAT clause of the RESTORE statement to just overwrite the contents of the log.
RESTORE DATABASE is terminating abnormally.
at <ScriptBlock>, C:\Run\navinstall.ps1: line 140
at <ScriptBlock>, C:\Run\start.ps1: line 355
at <ScriptBlock>, <No file>: line 1Error
Using artifactUrl https://bcartifacts.azureedge.net/onprem/14.36.48675.0/dk
Using installer from C:\Run\130
Copying Platform Artifacts
c:\dl\onprem\14.36.48675.0\platform
Using artifactUrl https://bcartifacts.azureedge.net/onprem/14.36.48675.0/dk
Using installer from
Unexpected restart during artifact copy, retrying...
Copying Platform Artifacts
c:\dl\onprem\14.36.48675.0\platform
Copying Application Artifacts
Copying Database
Copying Installers
c:\dl\onprem\14.36.48675.0\dk\Installers
Copying TestToolKit
c:\dl\onprem\14.36.48675.0\dk\TestToolKit
Copying UpgradeToolKit
c:\dl\onprem\14.36.48675.0\dk\UpgradeToolKit
Copying Extensions
c:\dl\onprem\14.36.48675.0\dk\Extensions
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
C:\NAVDVD\ServiceTier\Program Files
C:\NAVDVD\ServiceTier\System64Folder
Copying PowerShell Scripts
C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration
C:\NAVDVD\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
C:\NAVDVD\WebClient\Microsoft Dynamics NAV
Copying Windows Client Files
C:\NAVDVD\RoleTailoredClient\program files\Microsoft Dynamics NAV
C:\NAVDVD\RoleTailoredClient\systemFolder
C:\NAVDVD\ClickOnceInstallerTools\Program Files\Microsoft Dynamics NAV
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 TestToolKit
C:\NAVDVD\TestToolKit
Copying UpgradeToolKit
C:\NAVDVD\UpgradeToolKit
Copying Extensions
C:\NAVDVD\Extensions
Copying ClientUserSettings
Copying ReportBuilder
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
C:\NAVDVD\ServiceTier\Program Files
C:\NAVDVD\ServiceTier\System64Folder
Copying PowerShell Scripts
C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration
C:\NAVDVD\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
C:\NAVDVD\WebClient\Microsoft Dynamics NAV
Copying Windows Client Files
C:\NAVDVD\RoleTailoredClient\program files\Microsoft Dynamics NAV
C:\NAVDVD\RoleTailoredClient\systemFolder
C:\NAVDVD\ClickOnceInstallerTools\Program Files\Microsoft Dynamics NAV
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 TestToolKit
C:\NAVDVD\TestToolKit
Copying UpgradeToolKit
C:\NAVDVD\UpgradeToolKit
Copying Extensions
C:\NAVDVD\Extensions
Copying ClientUserSettings
Copying ReportBuilder
Restoring CRONUS Demo Database
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
start...
Starting Internet Information Server
Copying Service Tier Files
C:\NAVDVD\ServiceTier\Program Files
C:\NAVDVD\ServiceTier\System64Folder
Copying PowerShell Scripts
C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration
C:\NAVDVD\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
C:\NAVDVD\WebClient\Microsoft Dynamics NAV
Copying Windows Client Files
C:\NAVDVD\RoleTailoredClient\program files\Microsoft Dynamics NAV
C:\NAVDVD\RoleTailoredClient\systemFolder
C:\NAVDVD\ClickOnceInstallerTools\Program Files\Microsoft Dynamics NAV
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 TestToolKit
C:\NAVDVD\TestToolKit
Copying UpgradeToolKit
C:\NAVDVD\UpgradeToolKit
Copying Extensions
C:\NAVDVD\Extensions
Copying ClientUserSettings
Copying ReportBuilder
Restoring CRONUS Demo Database
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
C:\NAVDVD\ServiceTier\Program Files
C:\NAVDVD\ServiceTier\System64Folder
Copying PowerShell Scripts
C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration
C:\NAVDVD\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
C:\NAVDVD\WebClient\Microsoft Dynamics NAV
Copying Windows Client Files
C:\NAVDVD\RoleTailoredClient\program files\Microsoft Dynamics NAV
C:\NAVDVD\RoleTailoredClient\systemFolder
C:\NAVDVD\ClickOnceInstallerTools\Program Files\Microsoft Dynamics NAV
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 TestToolKit
C:\NAVDVD\TestToolKit
Copying UpgradeToolKit
C:\NAVDVD\UpgradeToolKit
Copying Extensions
C:\NAVDVD\Extensions
Copying ClientUserSettings
Copying ReportBuilder
Restoring CRONUS Demo Database
Using installer from
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
C:\NAVDVD\ServiceTier\Program Files
C:\NAVDVD\ServiceTier\System64Folder
Copying PowerShell Scripts
C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration
C:\NAVDVD\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
C:\NAVDVD\WebClient\Microsoft Dynamics NAV
Copying Windows Client Files
C:\NAVDVD\RoleTailoredClient\program files\Microsoft Dynamics NAV
C:\NAVDVD\RoleTailoredClient\systemFolder
C:\NAVDVD\ClickOnceInstallerTools\Program Files\Microsoft Dynamics NAV
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 TestToolKit
C:\NAVDVD\TestToolKit
Copying UpgradeToolKit
C:\NAVDVD\UpgradeToolKit
Copying Extensions
C:\NAVDVD\Extensions
Copying ClientUserSettings
Copying ReportBuilder
Restoring CRONUS Demo Database
The database restore operation failed due to the following error returned by SQL Server:
The tail of the log for the database "CRONUS" has not been backed up. Use BACKUP LOG WITH NORECOVERY to backup the log if it contains work you do not want to lose. Use the WITH REPLACE or WITH STOPAT clause of the RESTORE statement to just overwrite the contents of the log.
RESTORE DATABASE is terminating abnormally.
at <ScriptBlock>, C:\Run\navinstall.ps1: line 140
at <ScriptBlock>, C:\Run\start.ps1: line 355
at <ScriptBlock>, <No file>: line 1
New-BcContainer Telemetry Correlation Id: 40e6146c-023a-4448-a849-4d466c8899f4
Initialization of container bcdev140 failed
At C:\Users\mt\Documents\WindowsPowerShell\Modules\BcContainerHelper\3.0.8\ContainerHandlin
g\Wait-NavContainerReady.ps1:42 char:17
+ ... throw "Initialization of container $containerName failed" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Initialization ...bcdev140 failed:String) [], RuntimeException
+ FullyQualifiedErrorId : Initialization of container bcdev140 failed
I'm guessing it's got too many attempts at restoring the database, due to them being interrupted.
You can try to add -myscripts @("https://raw.githubusercontent.com/microsoft/nav-docker/master/generic/Run/130/navinstall.ps1") together with the latest generic -dev image (1.0.2.3)
It might not work - and this might require a bigger change to the installer for 14 (like what was done for 15+ containers a while back).
Yeah, I just tried it, and it doesn't work. I don't get the SQL Server error any longer, but it's still just looping everything from "Using installer from" to "Copying ReportBuilder".
I don't know how big an issue this is. I can still install 19 and 20, with the new generic image, even with real-time protection turned on. Perhaps what's needed is a disclaimer for BC14 to require real-time protection off for the setup?
I will revert the BC14 installer to prior version and add a warning to BcContainerHelper if spinning up a container with process isolation and BC14 - that you might have to disable defender while creating the container.
Thanks for all the work in trying to get this solved. Might see you at DOK2022. 😊
BTW - the latest BcContainerHelper preview - automatically uses the preview image as of today...
@mtaanquist - next containerhelper warning in output:
Hi Freddy, we came across the same issue and noticed it only seems be a problem on our PCs with AMD processors. the PC's with Intel do not need to use HyperV isolation or the myscripts workaround - it is a long shot
Hi Freddy, we came across the same issue and noticed it only seems be a problem on our PCs with AMD processors. the PC's with Intel do not need to use HyperV isolation or the myscripts workaround - it is a long shot
We only use Intel processors, so that can't be the only reason.
Hi Freddy, I can confirm that this command has worked ok for me with an AMD processor and Windows 11 fully updated:
$containerName = 'bc20'
$password = 'P@ssw0rd'
$securePassword = ConvertTo-SecureString -String $password -AsPlainText -Force
$credential = New-Object pscredential 'admin', $securePassword
$auth = 'UserPassword'
$artifactUrl = Get-BcArtifactUrl -type 'Sandbox' -version '20' -country 'es' -select 'Latest'
New-BcContainer `
-accept_eula `
-containerName $containerName `
-credential $credential `
-auth $auth `
-artifactUrl $artifactUrl `
-multitenant:$false `
-updateHosts `
-useGenericImage "$(Get-BestGenericImageName)-dev"
But when I previously ...
a) don't added -useGenericImage
to the command
b) added -imageName $containerName
to the command, with or without -useGenericImage
... I had errors in all cases... I hope this can help you to fix this issue.
Thanks @JavierFuentes Currently, everybody using the preview of BcContainerHelper are automatically also using the preview of the generic image. I will monitor telemetry to see whether any new issues pops up - else I will publish all to prod next week.
Generic image 1.0.2.5 has now shipped together with BcContainerHelper 3.0.8
Generic image 1.0.2.5 has now shipped together with BcContainerHelper 3.0.8
Am I right that all I need to do is update to version 3.0.8 and everything will run as usual? I'm asking, because the following command is using the Generic Image with Tag 1.0.2.1:
New-BcContainer -containerName TESTTEST -artifactUrl (Get-BCArtifactUrl -type OnPrem -version 20 -country w1) -accept_eula -auth Windows -isolation hyperv
It doesn't matter, which BC Version (19 or 20) I'm using.
you might need to use -alwayspull once on your new-bccontainer
🙈, of course! Thanks!
Could you try to add this parameter to your new-bccontainer command:
-myscripts @("https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/HelperFunctions.ps1")
This is an override of helperfunctions which doesn't write back to the collation.txt file.
I had the same problem, and this solved the issue. Thanks.
@hanusatv - the issue was fixed and all generic images were updated - you should no longer override helperfunctions with a file, which is now old.
Reporting the same issue after attempting various fixes mentioned in this thread. The install scripts seems to loop and finally gives up. Any tips?
The command:
New-BcContainer -accept_eula: $true
-containername $containername
-auth NavUserPassword
-credential $credential
-includeCSide
-doNotExportObjectsToText
-myscripts @("https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/HelperFunctions.ps1")
-updateHosts
-useGenericImage "$(Get-BestGenericImageName)"
-alwayspull
-EnableSymbolLoading
-assignPremiumPlan
-shortcuts Desktop
-additionalParameters $additionalParameters
-licenseFile "http://172.21.214.137:8080/license.flf"
-accept_outdated:$true
-navDvdPath 'C:\temp\D365BC DVD - 14.0.36463'
Output:
INFO: Windows 10 21H1/21H2 images are not yet available, using 2004 as these are found to work better than 20H2 on 21H1/21H2
BcContainerHelper is version 3.0.11
BcContainerHelper is running as administrator
Hyper-V is Enabled
UsePsSession is True
Host is Microsoft Windows 10 Pro - 21H2
Docker Client Version is 20.10.16
Docker Server Version is 20.10.16
Removing Session Nav365
Removing container Nav365
Removing entries from hosts
Removing Nav365 from container hosts file
Removing Nav365-* from container hosts file
Removing Desktop shortcuts
Removing C:\ProgramData\BcContainerHelper\Extensions\Nav365
Fetching all docker images
Fetching all docker volumes
Pulling image mcr.microsoft.com/businesscentral:10.0.19041.1415
10.0.19041.1415: Pulling from businesscentral
Digest: sha256:aa9f9d0779654ab9dba736a43141591a70fa419c4a9a57fd8a517086841280ff
Status: Image is up to date 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 Nav365
Style: onprem
Multitenant: No
Version: 14.0.36457.0
Platform: 14.0.36457.0
Generic Tag: 1.0.2.10
Container OS Version: 10.0.19041.1415 (2004)
Host OS Version: 10.0.19044.1766 (21H2)
WARNING: Host OS is 21H1 and Container OS is 2004, defaulting to process isolation. If you experience problems, add -isolation hyperv.
Using process isolation
WARNING: Using process isolation on Windows Desktop OS with generic image version prior to 1.0.2.4 or NAV/BC versions prior to 15.0, might requir
e you to use HyperV isolation or disable Windows Defender while creating the container
Using locale nl-NL
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\Nav365\my\HelperFunctions.ps1
Using license file http://172.21.214.137:8080/license.flf
Downloading C:\ProgramData\BcContainerHelper\Extensions\Nav365\my\license.flf
Additional Parameters:
--volume C:\Projects\dyn365\dockershare:c:\temp
--env bakfile="c:\temp\BC140NL.bak"
--publish 5000:80
--publish 5001:443
--publish 5002-5005:7046-7049
Files in C:\ProgramData\BcContainerHelper\Extensions\Nav365\my:
- AdditionalOutput.ps1
- AdditionalSetup.ps1
- HelperFunctions.ps1
- license.flf
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container Nav365 from image mcr.microsoft.com/businesscentral:10.0.19041.1415
f125a75187f3e06752004c1190c1d28c4f1aefe7c0d8def043bd88adb9bbc253
Waiting for container Nav365 to be ready
Using installer from C:\Run\130
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Using installer from
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 Windows Client Files
Copying PowerShell Scripts
Copying ConfigurationPackages
Copying Test Assemblies
Copying TestToolKit
Copying UpgradeToolKit
Copying Extensions
Copying ClientUserSettings
Copying ReportBuilder
Using installer from
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 Windows Client Files
Copying PowerShell Scripts
Copying ConfigurationPackages
An item with the specified name C:\ConfigurationPackages already exists.
at <ScriptBlock>, C:\Run\navinstall.ps1: line 89
at <ScriptBlock>, C:\Run\navinstall.ps1: line 84
at <ScriptBlock>, C:\Run\start.ps1: line 360
at <ScriptBlock>, <No file>: line 1Error
Using installer from C:\Run\130
Installing Business Central
Installing Url Rewrite
Installing OpenXML
Installing DotNetCore
Using installer from
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 Windows Client Files
Copying PowerShell Scripts
Copying ConfigurationPackages
Copying Test Assemblies
Copying TestToolKit
Copying UpgradeToolKit
Copying Extensions
Copying ClientUserSettings
Copying ReportBuilder
Using installer from
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 Windows Client Files
Copying PowerShell Scripts
Copying ConfigurationPackages
An item with the specified name C:\ConfigurationPackages already exists.
at <ScriptBlock>, C:\Run\navinstall.ps1: line 89
at <ScriptBlock>, C:\Run\navinstall.ps1: line 84
at <ScriptBlock>, C:\Run\start.ps1: line 360
at <ScriptBlock>, <No file>: line 1
New-BcContainer Telemetry Correlation Id: 6b62b721-9c5a-4768-97d5-15ac6acb4919
Initialization of container Nav365 failed
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.11\ContainerHandling\Wait-NavContainerReady.ps1:42 char:17
+ ... throw "Initialization of container $containerName failed" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Initialization ...r Nav365 failed:String) [], RuntimeException
+ FullyQualifiedErrorId : Initialization of container Nav365 failed
The fix was only available for version 15. and up. for 14 and below when you have these errors - you will have to use hyperv isolation.
Hi @freddydk , this is happening unfortunately even with a version 20: Heres my script:
New-BcContainer
-accept_eula
-containerName $containerName
-artifactUrl $artifactUrl #Get-BcArtifactUrl -type 'onprem' -country 'de' -select Closest -version '20.0.0.0'
-licenseFile $licenseFile
-updatehosts
-Credential $creds
-multitenant:$false
-auth Windows
-includeTestToolkit $true
-enableTaskScheduler
-isolation hyperv
`
Heres the output:
`BcContainerHelper version 3.0.11
BcContainerHelper emits usage statistics telemetry to Microsoft
WARNUNG: Die Namen einiger importierter Befehle auf Modul "bcContainerhelper" enthalten nicht genehmigte Verben, sodass deren Auffindbarkeit erschwert werden kann. Wenn Sie die Befehle mit nicht genehmigten Verben finden möchten, führen Sie den Import-Mod
ule-Befehl erneut mit dem Verbose-Parameter aus. Sie können durch Eingeben von "Get-Verb" eine Liste der genehmigten Verben anzeigen.
Removing entries from hosts
Removing BC20-LXS-DEV from container hosts file
Removing BC20-LXS-DEV-* from container hosts file
Removing Desktop shortcuts
Removing C:\ProgramData\BcContainerHelper\Extensions\BC20-LXS-DEV
BcContainerHelper is version 3.0.11
BcContainerHelper is running as administrator
Hyper-V is Enabled
UsePsSession is True
Host is Microsoft Windows 10 Pro - 21H2
Docker Client Version is 20.10.17
Docker Server Version is 20.10.17
Removing Desktop shortcuts
Fetching all docker images
Fetching all docker volumes
ArtifactUrl and ImageName specified
INFO: Windows 10 21H1/21H2 images are not yet available, using 2004 as these are found to work better than 20H2 on 21H1/21H2
WARNING: Unable to find matching generic image for your host OS. Using mcr.microsoft.com/businesscentral:10.0.19041.1415
Image true:onprem-20.0.37253.38230-de already exists
Using image true:onprem-20.0.37253.38230-de
Creating Container BC20-LXS-DEV
Style: onprem
Multitenant: No
Version: 20.0.37253.38230
Platform: 20.0.37114.38150
Generic Tag: 1.0.2.10
Container OS Version: 10.0.19041.1415 (2004)
Host OS Version: 10.0.19044.1826 (21H2)
Using hyperv isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file \\***\TeamData\04-Fulfillment\01_IT\DEV\Business Central\20\7209786.flf
Additional Parameters:
--env customNavSettings=EnableTaskScheduler=True
Files in C:\ProgramData\BcContainerHelper\Extensions\BC20-LXS-DEV\my:
- AdditionalOutput.ps1
- license.flf
- MainLoop.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container BC20-LXS-DEV from image true:onprem-20.0.37253.38230-de
55daafa9ad4ba316f8d77ea8be8332b63fbddd7decfe4b532628a9d2cf9203ff
Waiting for container BC20-LXS-DEV to be ready
Initializing...
Access to the path 'C:\Run\ServiceSettings.ps1' is denied.
at <ScriptBlock>, C:\Run\navstart.ps1: line 23
at <ScriptBlock>, C:\Run\start.ps1: line 377
at <ScriptBlock>, <No file>: line 1Error
Initializing...
Access to the path 'C:\Run\ServiceSettings.ps1' is denied.
at <ScriptBlock>, C:\Run\navstart.ps1: line 23
at <ScriptBlock>, C:\Run\start.ps1: line 377
at <ScriptBlock>, <No file>: line 1
New-BcContainer Telemetry Correlation Id: 361e72b4-f71d-44ef-8314-0acaca57c66b
Initialization of container BC20-LXS-DEV failed
In C:\Program Files\WindowsPowerShell\Modules\bcContainerhelper\3.0.11\ContainerHandling\Wait-NavContainerReady.ps1:42 Zeichen:17
+ ... throw "Initialization of container $containerName failed" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Initialization ...-LXS-DEV failed:String) [], RuntimeException
+ FullyQualifiedErrorId : Initialization of container BC20-LXS-DEV failed
Any suggestions what to do to overcome this?
PS: Sorry, the markdown code-formatting symbol conflicts with powershell scripts.
You can mark code with "Insert Code" when adding code to GitHub to avoid markdown issues.
It looks like your Powershell script is wrongly formatted IncludeTestToolkit is a switch and you should not do
-includeTestToolkit $true
but instead
-includeTestToolkit
or
-includeTestToolkit:$true
or
-includeTestToolkit:$false
You also cannot out-comment the artifacturl in a multi-line powershell command - and you need a terminator after each line, so I assume that the PowerShell script isn't a copy/paste of the command you run?
Thanks alot freddy, this was indeed the issue!
Describe the issue On creating a docker container the following error occurs: Access to the path 'C:\Run\Collation.txt' is denied.
Scripts used to create container and cause the issue
Full output of scripts
Additional context For now it happend all the time. The last time I reinstalled Docker and the error was gone. But today the error occured one again. The same script was running in the past.