microsoft / AL-Go

The plug-and-play DevOps solution for Business Central app development on GitHub
MIT License
293 stars 124 forks source link

localDevEnv.ps1: Error when running: ALTER DATABASE [CRONUS] SET ONLINE #103

Closed achim-t closed 2 years ago

achim-t commented 2 years ago

Scenario 1, Step 10

F5 in VS Code:

  _                     _   _____             ______
 | |                   | | |  __ \           |  ____|
 | |     ___   ___ __ _| | | |  | | _____   __ |__   _ ____   __
 | |    / _ \ / __/ _` | | | |  | |/ _ \ \ / /  __| | '_ \ \ / /
 | |____ (_) | (__ (_| | | | |__| |  __/\ V /| |____| | | \ V /
 |______\___/ \___\__,_|_| |_____/ \___| \_/ |______|_| |_|\_/

This script will create a docker based local development environment for your project.

NOTE: You need to have Docker installed, configured and be able to create Business Central containers for this to work.
If this fails, you can setup a cloud based development environment by running cloudDevEnv.ps1

All apps and test apps will be compiled and published to the environment in the development scope.
The script will also modify launch.json to have a Local Sandbox configuration point to your environment.

Checking .github\AL-Go-Settings.json
Reading .github\AL-Go-Settings.json
Checking .AL-Go\settings.json
Reading .AL-Go\settings.json
Checking .github\.settings.json
Checking .AL-Go\.settings.json
Checking .AL-Go\ataeschner.settings.json
Checking System Requirements

Container name
--------------
Please enter the name of the container to create (default bcserver) algo
algo selected

Authentication mechanism for container
--------------------------------------
a Windows Authentication
b Username/Password authentication

Select authentication mechanism for container (default b)
Username/Password authentication selected

LicenseFileUrl
--------------
When developing PTEs, you can optionally specify a developer licensefile with permissions to object IDs of your dependant apps

Local path or a secure download URL to license file  (default none)
none selected

Downloading BcContainerHelper latest version
Using 7zip
BcContainerHelper version 3.0.7
BcContainerHelper emits usage statistics telemetry to Microsoft
Checking .github\AL-Go-Settings.json
Reading .github\AL-Go-Settings.json
Checking .AL-Go\settings.json
Reading .AL-Go\settings.json
Checking .github\localDevEnv.settings.json
Checking .AL-Go\localDevEnv.settings.json
Checking .AL-Go\ataeschner.settings.json
Checking type
Checking appFolders and testFolders
Application Dependency 19.0.0.0
Checking artifact setting
Downloading artifacts from https://bcartifacts.azureedge.net/sandbox/20.0.37253.40114/us
Updating app- and test Dependencies
Analyzing Test App Dependencies
WARNING: No test apps found in testFolders in .AL-Go\settings.json
  _____                               _
 |  __ \                             | |
 | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___
 |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
 | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
 |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/

Pipeline name               localDevEnv
Container name              algo
Image name
ArtifactUrl                 https://bcartifacts.azureedge.net/sandbox/20.0.37253.40114/us
SasToken                    Not Specified
BcAuthContext               Not Specified
Environment
ReUseContainer              False
KeepContainer               True
Auth                        UserPassword
Credential                  Specified
CompanyName
MemoryLimit                 8G
Enable Task Scheduler       False
Assign Premium Plan         False
Install Test Runner         False
Install Test Framework      False
Install Test Libraries      False
Install Perf. Toolkit       False
InstallOnlyReferencedApps   True
generateDependencyArtifact  False
CopySymbolsFromContainer    False
enableCodeCop               False
enableAppSourceCop          False
enableUICop                 False
enablePerTenantExtensionCop True
doNotPerformUpgrade         False
uninstallRemovedApps        False
escapeFromCops              False
doNotBuildTests             False
doNotRunTests               True
doNotRunBcptTests           False
useDefaultAppSourceRuleSet  False
rulesetFile
azureDevOps                 False
gitLab                      False
gitHubActions               False
License file                Not specified
CodeSignCertPfxFile         Not specified
CodeSignCertPfxPassword     Not specified
CodeSignCertIsSelfSigned    False
KeyVaultCertPfxFile         Not specified
KeyVaultCertPfxPassword     Not specified
KeyVaultClientId
BuildOutputFile             C:\Users\ataeschner\Documents\AL\shiny-octo-computing-machine\BuildOutput.txt
TestResultsFile             C:\Users\ataeschner\Documents\AL\shiny-octo-computing-machine\TestResults.xml
BcptTestResultsFile         C:\Users\ataeschner\Documents\AL\shiny-octo-computing-machine\bcptTestResults.json
TestResultsFormat           JUnit
AdditionalCountries
PackagesFolder
OutputFolder
BuildArtifactFolder
CreateRuntimePackages       False
AppVersion
AppBuild                    0
AppRevision                 0
Install Apps
- None
Install Test Apps
- None
Previous Apps
- None
Application folders
- C:\Users\ataeschner\Documents\AL\shiny-octo-computing-machine\MySpecialApp
Test application folders
- None
BCPT Test application folders
- None
Custom CodeCops
- None

  _____       _ _ _                                          _        _
 |  __ \     | | (_)                                        (_)      (_)
 | |__) |   _| | |_ _ __   __ _    __ _  ___ _ __   ___ _ __ _  ___   _ _ __ ___   __ _  __ _  ___
 |  ___/ | | | | | | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \
 | |   | |_| | | | | | | | (_| | | (_| |  __/ | | |  __/ |  | | (__  | | | | | | | (_| | (_| |  __/
 |_|    \__,_|_|_|_|_| |_|\__, |  \__, |\___|_| |_|\___|_|  |_|\___| |_|_| |_| |_|\__,_|\__, |\___|
                           __/ |   __/ |                                                 __/ |
                          |___/   |___/                                                 |___/

Pulling mcr.microsoft.com/businesscentral:10.0.20348.643

Pulling generic image took 2 seconds

   _____                _   _                               _        _
  / ____|              | | (_)                             | |      (_)
 | |     _ __ ___  __ _| |_ _ _ __   __ _    ___ ___  _ __ | |_ __ _ _ _ __   ___ _ __
 | |    | '__/ _ \/ _` | __| | '_ \ / _` |  / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
 | |____| | |  __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | |  __/ |
  \_____|_|  \___|\__,_|\__|_|_| |_|\__, |  \___\___/|_| |_|\__\__,_|_|_| |_|\___|_|
                                     __/ |
                                    |___/

BcContainerHelper is version 3.0.7
BcContainerHelper is running as administrator
Hyper-V is Enabled
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container algo
Removing algo from container hosts file
Removing algo-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\algo
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container algo
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40114
Platform: 20.0.37114.40052
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale en-US
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Additional Parameters:
--volume "C:\Users\ataeschner\Documents\AL\shiny-octo-computing-machine:c:\sources"
--env customNavSettings=EnableTaskScheduler=False
Files in C:\ProgramData\BcContainerHelper\Extensions\algo\my:
- AdditionalOutput.ps1
- MainLoop.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container algo from image mcr.microsoft.com/businesscentral:10.0.20348.643
13efafcf541a721bb3cb236216a1ad5b5bf69713f4d4028d42e00a6a89904033
Waiting for container algo to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40114/us
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\sandbox\20.0.37253.40114\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40114\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40114\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40114\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\20.0.37253.40114\us\BusinessCentral-US.bak
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is algo
PublicDnsName is algo
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Copying Database on localhost\SQLEXPRESS from CRONUS to tenant
Taking database CRONUS offline
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Putting database CRONUS back online
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET ONLINE
User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
at Invoke-SqlCmdWithRetry, C:\Run\HelperFunctions.ps1: line 434
at Copy-NavDatabase, C:\Run\HelperFunctions.ps1: line 203
at <ScriptBlock>, C:\Run\SetupDatabase.ps1: line 166
at <ScriptBlock>, C:\Run\navstart.ps1: line 122
at <ScriptBlock>, C:\Run\start.ps1: line 363
at <ScriptBlock>, <No file>: line 1Error
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40114/us
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\sandbox\20.0.37253.40114\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40114\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40114\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40114\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\20.0.37253.40114\us\BusinessCentral-US.bak
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is algo
PublicDnsName is algo
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Copying Database on localhost\SQLEXPRESS from CRONUS to tenant
Taking database CRONUS offline
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Putting database CRONUS back online
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET ONLINE
User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
at Invoke-SqlCmdWithRetry, C:\Run\HelperFunctions.ps1: line 434
at Copy-NavDatabase, C:\Run\HelperFunctions.ps1: line 203
at <ScriptBlock>, C:\Run\SetupDatabase.ps1: line 166
at <ScriptBlock>, C:\Run\navstart.ps1: line 122
at <ScriptBlock>, C:\Run\start.ps1: line 363
at <ScriptBlock>, <No file>: line 1
New-BcContainer Telemetry Correlation Id: 3367781c-2e3e-4b8c-b9df-3b56ee41f0bc
Run-AlPipeline Telemetry Correlation Id: a548a9e5-4182-48fe-a105-574897d800c6
Removing BcContainerHelper
Press ENTER to close this window:

I can create other BC containers, this script works fine:

$accept_eula = $true

$auth = "UserPassword"
$credential = get-credential -UserName $env:USERNAME -Message "Using $auth Authentication. Please enter your Windows credentials."
$artifactUrl = Get-BCArtifactUrl -country de 
$containerName = "runtest4"
$licenseFile = "##############"
New-BcContainer -accept_eula `
                -containerName $containerName `
                -artifactUrl $artifactUrl `
                -auth $auth `
                -credential $credential `
                -licenseFile $licenseFile `
                -updateHosts `
                -isolation hyperv `
                -assignPremiumPlan `
                -multitenant:$false 
freddydk commented 2 years ago

Does the working script also work if you remove -multitenant:$false?

achim-t commented 2 years ago

Yes.

freddydk commented 2 years ago

Could you share the output from running the second script (the working one) for me to compare?

achim-t commented 2 years ago
BcContainerHelper version 3.0.7
BcContainerHelper emits usage statistics telemetry to Microsoft
BcContainerHelper is version 3.0.7
BcContainerHelper is running as administrator
Hyper-V is Enabled
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container runtest4
Removing runtest4 from container hosts file
Removing runtest4-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\runtest4
Downloading application artifact /sandbox/20.0.37253.40140/de
Downloading C:\Users\ataeschner\AppData\Local\Temp\c5722c9b-a103-42b5-aad0-d1480dcdbedd.zip
Unpacking application artifact to tmp folder using 7zip
Downloading platform artifact /sandbox/20.0.37253.40140/platform
Downloading C:\Users\ataeschner\AppData\Local\Temp\0893919f-8075-4daa-bbaf-49c40d89612c.zip
Unpacking platform artifact to tmp folder using 7zip
Downloading Prerequisite Components
Downloading c:\bcartifacts.cache\sandbox\20.0.37253.40140\platform\Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\OpenXMLSDKv25.msi
Downloading c:\bcartifacts.cache\sandbox\20.0.37253.40140\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
Downloading c:\bcartifacts.cache\sandbox\20.0.37253.40140\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40140
Platform: 20.0.37114.40119
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (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 C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- license.flf
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
37a4edbf1367bb699d90f45ee6394666143314a783b5a78ae8c46bc1ec2c085a
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40140/de
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\sandbox\20.0.37253.40140\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40140\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40140\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40140\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\20.0.37253.40140\de\BusinessCentral-DE.bak
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'
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40140\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40140\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40140\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40140\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40140\platform
c:\dl\sandbox\20.0.37253.40140\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40140\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40140\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40140\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40140\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40140\de\Applications.DE
Starting Business Central Service Tier
Importing 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
Stopping Business Central Service Tier
Installation took 110 seconds
Installation complete
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
WARNING: Container starts with TimeZone = Mitteleuropäische Zeit, which is not recognized in the list of TimeZones.
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 3B3959E8864FF8362277CD09C7D0889148ECFD11
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Enabling Financials User Experience
Using license file 'c:\run\my\license.flf'
Import License
Dismounting Tenant
Mounting Tenant
Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
Sync'ing Tenant
Tenant is Operational
Creating http download site
Setting SA Password and enabling SA
Creating ataeschner as SQL User and add to sysadmin
WARNING: This license is not compatible with this version of Business Central.
Creating SUPER user
WARNING: The password that you entered does not meet the minimum requirements. 
It should be at least 8 characters long and contain at least one uppercase 
letter, one lowercase letter, and one number.
WARNING: This license is not compatible with this version of Business Central.
WARNING: This license is not compatible with this version of Business Central.
WARNING: This license is not compatible with this version of Business Central.
Assign Premium plan for ATAESCHNER
Container IP Address: 172.30.202.140
Container Hostname  : runtest4
Container Dns Name  : runtest4
Web Client          : http://runtest4/BC/?tenant=default
Dev. Server         : http://runtest4
Dev. ServerInstance : BC
Dev. Server Tenant  : default
Setting runtest4 to 172.30.202.140 in host hosts file
Setting runtest4-default to 172.30.202.140 in host hosts file
Setting runtest4-default to 172.30.202.140 in container hosts file

Files:
http://runtest4:8080/ALLanguage.vsix

Container Total Physical Memory is 8.5Gb
Container Free Physical Memory is 5.5Gb

Initialization took 25 seconds
Ready for connections!
Reading CustomSettings.config from runtest4
Creating Desktop Shortcuts for runtest4
Container runtest4 successfully created

Use:
Get-BcContainerEventLog -containerName runtest4 to retrieve a snapshot of the event log from the container
Get-BcContainerDebugInfo -containerName runtest4 to get debug information about the container
Enter-BcContainer -containerName runtest4 to open a PowerShell prompt inside the container
Remove-BcContainer -containerName runtest4 to remove the container again
docker logs runtest4 to retrieve information about URL's again
freddydk commented 2 years ago

Thanks - will investigate and get back

freddydk commented 2 years ago

The big difference here is that the working one is using hyperv isolation could you delete the line with isolation hyperv in the working one and add this line: -myscripts @("https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/HelperFunctions.ps1")

and then share the output?

achim-t commented 2 years ago
$accept_eula = $true

$auth = "UserPassword"
$credential = get-credential -UserName $env:USERNAME -Message "Using $auth Authentication. Please enter your Windows credentials."
$artifactUrl = Get-BCArtifactUrl -country de 
$containerName = "runtest4"
$licenseFile = "C:\Users\ataeschner\Desktop\fin.flf"
New-BcContainer -accept_eula `
                -containerName $containerName `
                -artifactUrl $artifactUrl `
                -auth $auth `
                -credential $credential `
                -licenseFile $licenseFile `
                -updateHosts `
                -myscripts @("https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/HelperFunctions.ps1")
                -assignPremiumPlan 
BcContainerHelper version 3.0.7
BcContainerHelper emits usage statistics telemetry to Microsoft
BcContainerHelper is version 3.0.7
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container runtest4
Removing runtest4 from container hosts file
Removing runtest4-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\runtest4
Downloading application artifact /sandbox/20.0.37253.40150/de
Downloading C:\Users\ataeschner\AppData\Local\Temp\4c2a1947-2f39-4680-be03-6b2dc98cc9c2.zip
Unpacking application artifact to tmp folder using 7zip
Downloading platform artifact /sandbox/20.0.37253.40150/platform
Downloading C:\Users\ataeschner\AppData\Local\Temp\1ce8eaae-50f5-44e2-8fa0-5bce4ef182fd.zip
Unpacking platform artifact to tmp folder using 7zip
Downloading Prerequisite Components
Downloading c:\bcartifacts.cache\sandbox\20.0.37253.40150\platform\Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\OpenXMLSDKv25.msi
Downloading c:\bcartifacts.cache\sandbox\20.0.37253.40150\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
Downloading c:\bcartifacts.cache\sandbox\20.0.37253.40150\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40150
Platform: 20.0.37114.40119
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\HelperFunctions.ps1
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- HelperFunctions.ps1
- license.flf
- MainLoop.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
82ac717f6cecbe896caa82c8bfdb6dc01c2fa800fccb1ec2f15d586335f1cacc
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40150/de
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\sandbox\20.0.37253.40150\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40150\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40150\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40150\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\20.0.37253.40150\de\BusinessCentral-DE.bak
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Copying Database on localhost\SQLEXPRESS from CRONUS to tenant
Taking database CRONUS offline
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Putting database CRONUS back online
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET ONLINE
User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
at Invoke-SqlCmdWithRetry, C:\Run\my\HelperFunctions.ps1: line 434
at Copy-NavDatabase, C:\Run\my\HelperFunctions.ps1: line 203
at <ScriptBlock>, C:\Run\SetupDatabase.ps1: line 166
at <ScriptBlock>, C:\Run\navstart.ps1: line 122
at <ScriptBlock>, C:\Run\start.ps1: line 363
at <ScriptBlock>, <No file>: line 1Error
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40150/de
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\sandbox\20.0.37253.40150\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40150\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40150\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40150\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\20.0.37253.40150\de\BusinessCentral-DE.bak
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Copying Database on localhost\SQLEXPRESS from CRONUS to tenant
Taking database CRONUS offline
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Putting database CRONUS back online
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET ONLINE
User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
at Invoke-SqlCmdWithRetry, C:\Run\my\HelperFunctions.ps1: line 434
at Copy-NavDatabase, C:\Run\my\HelperFunctions.ps1: line 203
at <ScriptBlock>, C:\Run\SetupDatabase.ps1: line 166
at <ScriptBlock>, C:\Run\navstart.ps1: line 122
at <ScriptBlock>, C:\Run\start.ps1: line 363
at <ScriptBlock>, <No file>: line 1
New-BcContainer Telemetry Correlation Id: b93b6872-c022-47f2-97db-10e1cf7c8848
Initialization of container runtest4 failed
In C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.7\ContainerHandling\Wait-NavContainerReady.ps1:42 Zeichen:17
+ ...             throw "Initialization of container $containerName failed" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Initialization ...runtest4 failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Initialization of container runtest4 failed
freddydk commented 2 years ago

Great, thank - and once more (added some debug info)

achim-t commented 2 years ago
BcContainerHelper version 3.0.7
BcContainerHelper emits usage statistics telemetry to Microsoft
BcContainerHelper is version 3.0.7
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container runtest4
Removing runtest4 from container hosts file
Removing runtest4-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\runtest4
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40150
Platform: 20.0.37114.40119
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\HelperFunctions.ps1
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- HelperFunctions.ps1
- license.flf
- MainLoop.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
f2218c13a3d179617f734781e55e8591197082a634d3c303c063568b53684330
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40150/de
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\sandbox\20.0.37253.40150\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40150\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40150\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40150\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\20.0.37253.40150\de\BusinessCentral-DE.bak
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Copying Database on localhost\SQLEXPRESS from CRONUS to tenant
Taking database CRONUS offline
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting......... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting............ - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting............... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting.................. - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting..................... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting........................ - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting........................... - retrying
Error when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Putting database CRONUS back online
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting......... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting............ - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting............... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting.................. - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting..................... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting........................ - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting........................... - retrying
Error when running: ALTER DATABASE [CRONUS] SET ONLINE
User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
at Invoke-SqlCmdWithRetry, C:\Run\my\HelperFunctions.ps1: line 434
at Copy-NavDatabase, C:\Run\my\HelperFunctions.ps1: line 203
at <ScriptBlock>, C:\Run\SetupDatabase.ps1: line 166
at <ScriptBlock>, C:\Run\navstart.ps1: line 122
at <ScriptBlock>, C:\Run\start.ps1: line 363
at <ScriptBlock>, <No file>: line 1Error
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40150/de
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\sandbox\20.0.37253.40150\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40150\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40150\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40150\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\20.0.37253.40150\de\BusinessCentral-DE.bak
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Copying Database on localhost\SQLEXPRESS from CRONUS to tenant
Taking database CRONUS offline
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting......... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting............ - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting............... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting.................. - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting..................... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting........................ - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting........................... - retrying
Error when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Putting database CRONUS back online
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting......... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting............ - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting............... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting.................. - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting..................... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting........................ - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting........................... - retrying
Error when running: ALTER DATABASE [CRONUS] SET ONLINE
User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
at Invoke-SqlCmdWithRetry, C:\Run\my\HelperFunctions.ps1: line 434
at Copy-NavDatabase, C:\Run\my\HelperFunctions.ps1: line 203
at <ScriptBlock>, C:\Run\SetupDatabase.ps1: line 166
at <ScriptBlock>, C:\Run\navstart.ps1: line 122
at <ScriptBlock>, C:\Run\start.ps1: line 363
at <ScriptBlock>, <No file>: line 1
New-BcContainer Telemetry Correlation Id: 1b7e750c-f37e-4b8f-8664-f093a7d09362
Initialization of container runtest4 failed
In C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.7\ContainerHandling\Wait-NavContainerReady.ps1:42 Zeichen:17
+ ...             throw "Initialization of container $containerName failed" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Initialization ...runtest4 failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Initialization of container runtest4 failed
freddydk commented 2 years ago

Getting closer - could you add another override:

-myscripts @("https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/HelperFunctions.ps1", "https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/SetupDatabase.ps1")

I guess this is what they call remote debugging...

achim-t commented 2 years ago

Those 10 retries take a long time.

$accept_eula = $true

$auth = "UserPassword"
$credential = get-credential -UserName $env:USERNAME -Message "Using $auth Authentication. Please enter your Windows credentials."
$artifactUrl = Get-BCArtifactUrl -country de 
$containerName = "runtest4"
$licenseFile = "C:\Users\ataeschner\Desktop\fin.flf"
New-BcContainer -accept_eula `
                -containerName $containerName `
                -artifactUrl $artifactUrl `
                -auth $auth `
                -credential $credential `
                -licenseFile $licenseFile `
                -updateHosts `
                -myscripts @("https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/HelperFunctions.ps1", "https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/SetupDatabase.ps1")
                -assignPremiumPlan 
BcContainerHelper version 3.0.7
BcContainerHelper emits usage statistics telemetry to Microsoft
BcContainerHelper is version 3.0.7
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container runtest4
Removing runtest4 from container hosts file
Removing runtest4-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\runtest4
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40190
Platform: 20.0.37114.40159
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\HelperFunctions.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\SetupDatabase.ps1
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- HelperFunctions.ps1
- license.flf
- MainLoop.ps1
- SetupDatabase.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
1dfb28c68e53f81e8e40406cebcfe23ee6a63bb152148c19e7aa61297d6ffaa6
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40190/de
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\sandbox\20.0.37253.40190\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40190\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40190\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40190\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\20.0.37253.40190\de\BusinessCentral-DE.bak
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Copying Database on localhost\SQLEXPRESS from CRONUS to tenant
Taking database CRONUS offline
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting......... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting............ - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting............... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting.................. - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting..................... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting........................ - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting........................... - retrying
Error when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Putting database CRONUS back online
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting......... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting............ - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting............... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting.................. - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting..................... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting........................ - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting........................... - retrying
Error when running: ALTER DATABASE [CRONUS] SET ONLINE
User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
at Invoke-SqlCmdWithRetry, C:\Run\my\HelperFunctions.ps1: line 434
at Copy-NavDatabase, C:\Run\my\HelperFunctions.ps1: line 203
at <ScriptBlock>, C:\Run\my\SetupDatabase.ps1: line 171
at <ScriptBlock>, C:\Run\navstart.ps1: line 122
at <ScriptBlock>, C:\Run\start.ps1: line 363
at <ScriptBlock>, <No file>: line 1Error
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40190/de
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\sandbox\20.0.37253.40190\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40190\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40190\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40190\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\20.0.37253.40190\de\BusinessCentral-DE.bak
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Copying Database on localhost\SQLEXPRESS from CRONUS to tenant
Taking database CRONUS offline
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting......... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting............ - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting............... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting.................. - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting..................... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting........................ - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting........................... - retrying
Error when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Putting database CRONUS back online
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting......... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting............ - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting............... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting.................. - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting..................... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting........................ - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting........................... - retrying
Error when running: ALTER DATABASE [CRONUS] SET ONLINE
User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
at Invoke-SqlCmdWithRetry, C:\Run\my\HelperFunctions.ps1: line 434
at Copy-NavDatabase, C:\Run\my\HelperFunctions.ps1: line 203
at <ScriptBlock>, C:\Run\my\SetupDatabase.ps1: line 171
at <ScriptBlock>, C:\Run\navstart.ps1: line 122
at <ScriptBlock>, C:\Run\start.ps1: line 363
at <ScriptBlock>, <No file>: line 1
New-BcContainer Telemetry Correlation Id: 04c42333-1fb7-45a6-8c2c-d5d8ef37101f
Initialization of container runtest4 failed
In C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.7\ContainerHandling\Wait-NavContainerReady.ps1:42 Zeichen:17
+ ...             throw "Initialization of container $containerName failed" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Initialization ...runtest4 failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Initialization of container runtest4 failed
freddydk commented 2 years ago

Removed the 10 retries and removed the attempt to determine collation. retry?

(Thanks a million for the help)

achim-t commented 2 years ago
BcContainerHelper version 3.0.7
BcContainerHelper emits usage statistics telemetry to Microsoft
BcContainerHelper is version 3.0.7
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container runtest4
Removing runtest4 from container hosts file
Removing runtest4-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\runtest4
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40190
Platform: 20.0.37114.40159
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\HelperFunctions.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\SetupDatabase.ps1
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- HelperFunctions.ps1
- license.flf
- MainLoop.ps1
- SetupDatabase.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
a6dd4e5ff1da7d12e7e732a6ed2ca5f05a3f34a9e09771b2c05af1abb47e3a4e
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40190/de
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\sandbox\20.0.37253.40190\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40190\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40190\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40190\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\20.0.37253.40190\de\BusinessCentral-DE.bak
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Copying Database on localhost\SQLEXPRESS from CRONUS to tenant
Taking database CRONUS offline
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Putting database CRONUS back online
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET ONLINE
User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
at Invoke-SqlCmdWithRetry, C:\Run\my\HelperFunctions.ps1: line 434
at Copy-NavDatabase, C:\Run\my\HelperFunctions.ps1: line 203
at <ScriptBlock>, C:\Run\my\SetupDatabase.ps1: line 171
at <ScriptBlock>, C:\Run\navstart.ps1: line 122
at <ScriptBlock>, C:\Run\start.ps1: line 363
at <ScriptBlock>, <No file>: line 1Error
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40190/de
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\sandbox\20.0.37253.40190\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40190\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40190\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40190\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\20.0.37253.40190\de\BusinessCentral-DE.bak
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Copying Database on localhost\SQLEXPRESS from CRONUS to tenant
Taking database CRONUS offline
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Putting database CRONUS back online
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET ONLINE
User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
at Invoke-SqlCmdWithRetry, C:\Run\my\HelperFunctions.ps1: line 434
at Copy-NavDatabase, C:\Run\my\HelperFunctions.ps1: line 203
at <ScriptBlock>, C:\Run\my\SetupDatabase.ps1: line 171
at <ScriptBlock>, C:\Run\navstart.ps1: line 122
at <ScriptBlock>, C:\Run\start.ps1: line 363
at <ScriptBlock>, <No file>: line 1
New-BcContainer Telemetry Correlation Id: 35c9120b-312f-4494-afb5-fa1a2865dc42
Initialization of container runtest4 failed
In C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.7\ContainerHandling\Wait-NavContainerReady.ps1:42 Zeichen:17
+ ...             throw "Initialization of container $containerName failed" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Initialization ...runtest4 failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Initialization of container runtest4 failed
freddydk commented 2 years ago

Could you try to add this as well

"https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/navinstall.ps1"

achim-t commented 2 years ago
New-BcContainer -accept_eula `
                -containerName $containerName `
                -artifactUrl $artifactUrl `
                -auth $auth `
                -credential $credential `
                -licenseFile $licenseFile `
                -updateHosts `
                -myscripts @("https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/HelperFunctions.ps1", "https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/SetupDatabase.ps1","https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/navinstall.ps1")
                -assignPremiumPlan 
BcContainerHelper is version 3.0.7
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container runtest4
Removing runtest4 from container hosts file
Removing runtest4-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\runtest4
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40190
Platform: 20.0.37114.40159
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\HelperFunctions.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\SetupDatabase.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\navinstall.ps1
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- HelperFunctions.ps1
- license.flf
- MainLoop.ps1
- navinstall.ps1
- SetupDatabase.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
68312761c34f06447984da07c801f0b007fd6640a429ecccadcce6635174861d
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40190/de
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\sandbox\20.0.37253.40190\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40190\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40190\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40190\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Restoring CRONUS Demo Database
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Copying Database on localhost\SQLEXPRESS from CRONUS to tenant
Taking database CRONUS offline
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Putting database CRONUS back online
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET ONLINE
User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
at Invoke-SqlCmdWithRetry, C:\Run\my\HelperFunctions.ps1: line 434
at Copy-NavDatabase, C:\Run\my\HelperFunctions.ps1: line 203
at <ScriptBlock>, C:\Run\my\SetupDatabase.ps1: line 171
at <ScriptBlock>, C:\Run\navstart.ps1: line 122
at <ScriptBlock>, C:\Run\start.ps1: line 363
at <ScriptBlock>, <No file>: line 1Error
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40190/de
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\sandbox\20.0.37253.40190\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40190\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40190\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40190\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Restoring CRONUS Demo Database
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Copying Database on localhost\SQLEXPRESS from CRONUS to tenant
Taking database CRONUS offline
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Putting database CRONUS back online
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET ONLINE
User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
at Invoke-SqlCmdWithRetry, C:\Run\my\HelperFunctions.ps1: line 434
at Copy-NavDatabase, C:\Run\my\HelperFunctions.ps1: line 203
at <ScriptBlock>, C:\Run\my\SetupDatabase.ps1: line 171
at <ScriptBlock>, C:\Run\navstart.ps1: line 122
at <ScriptBlock>, C:\Run\start.ps1: line 363
at <ScriptBlock>, <No file>: line 1
New-BcContainer Telemetry Correlation Id: f05e34e1-601a-4466-87ab-795d8ee2449c
Initialization of container runtest4 failed
In C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.7\ContainerHandling\Wait-NavContainerReady.ps1:42 Zeichen:17
+ ...             throw "Initialization of container $containerName failed" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Initialization ...runtest4 failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Initialization of container runtest4 failed
freddydk commented 2 years ago

OK, so I removed the collation thingy - but now it crashes on restore DB Now I inserted a sleep for 5 minutes to see whether this is a race condition. A 5 minute sleep is obviously not the solution if this works - but just an indication whether this is a timing issue. Could you try once more?

achim-t commented 2 years ago

I don't think that took 5 minutes.

BcContainerHelper is version 3.0.7
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container runtest4
Removing runtest4 from container hosts file
Removing runtest4-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\runtest4
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40190
Platform: 20.0.37114.40159
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\HelperFunctions.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\SetupDatabase.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\navinstall.ps1
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- HelperFunctions.ps1
- license.flf
- MainLoop.ps1
- navinstall.ps1
- SetupDatabase.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
d8140a6081653404adf47dd8cfe46a2a2760849ea4343b15701fea8b2a756b42
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40190/de
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\sandbox\20.0.37253.40190\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40190\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40190\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40190\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules

Status   Name               DisplayName                           
------   ----               -----------                           
Running  MSSQL$SQLEXPRESS   SQL Server (SQLEXPRESS)               
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Copying Database on localhost\SQLEXPRESS from CRONUS to tenant
Taking database CRONUS offline
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Putting database CRONUS back online
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET ONLINE
User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
at Invoke-SqlCmdWithRetry, C:\Run\my\HelperFunctions.ps1: line 434
at Copy-NavDatabase, C:\Run\my\HelperFunctions.ps1: line 203
at <ScriptBlock>, C:\Run\my\SetupDatabase.ps1: line 171
at <ScriptBlock>, C:\Run\navstart.ps1: line 122
at <ScriptBlock>, C:\Run\start.ps1: line 363
at <ScriptBlock>, <No file>: line 1Error
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40190/de
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\sandbox\20.0.37253.40190\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40190\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40190\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40190\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules

Status   Name               DisplayName                           
------   ----               -----------                           
Running  MSSQL$SQLEXPRESS   SQL Server (SQLEXPRESS)               
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Copying Database on localhost\SQLEXPRESS from CRONUS to tenant
Taking database CRONUS offline
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET OFFLINE WITH ROLLBACK IMMEDIATE
Putting database CRONUS back online
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting... - retrying
Warning, exception when running: ALTER DATABASE [CRONUS] SET ONLINE
Exception was: User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
Waiting...... - retrying
Error when running: ALTER DATABASE [CRONUS] SET ONLINE
User does not have permission to alter database 'CRONUS', the database does not exist, or the database is not in a state that allows access checks.
ALTER DATABASE statement failed.
at Invoke-SqlCmdWithRetry, C:\Run\my\HelperFunctions.ps1: line 434
at Copy-NavDatabase, C:\Run\my\HelperFunctions.ps1: line 203
at <ScriptBlock>, C:\Run\my\SetupDatabase.ps1: line 171
at <ScriptBlock>, C:\Run\navstart.ps1: line 122
at <ScriptBlock>, C:\Run\start.ps1: line 363
at <ScriptBlock>, <No file>: line 1
New-BcContainer Telemetry Correlation Id: 2610e637-fd8c-437b-95fe-20c12d1d9562
Initialization of container runtest4 failed
In C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.7\ContainerHandling\Wait-NavContainerReady.ps1:42 Zeichen:17
+ ...             throw "Initialization of container $containerName failed" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Initialization ...runtest4 failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Initialization of container runtest4 failed
freddydk commented 2 years ago

Could you remove navinstall and setupdatabase from the myscripts and add

"https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/start.ps1"

instead?

achim-t commented 2 years ago

I found these four errors in the event logs (of the host).

exec's CreateProcess() failed [namespace=moby module=libcontainerd container=d8140a6081653404adf47dd8cfe46a2a2760849ea4343b15701fea8b2a756b42 exec=19de398489c25f202adf9fce05ae340bcfef53354a43ca2687bd8ee7a971c70d error=container d8140a6081653404adf47dd8cfe46a2a2760849ea4343b15701fea8b2a756b42 encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The user name or password is incorrect. (0x52e)]

Error running exec 19de398489c25f202adf9fce05ae340bcfef53354a43ca2687bd8ee7a971c70d in container: container d8140a6081653404adf47dd8cfe46a2a2760849ea4343b15701fea8b2a756b42 encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The user name or password is incorrect. (0x52e)

exec's CreateProcess() failed [module=libcontainerd namespace=moby container=d8140a6081653404adf47dd8cfe46a2a2760849ea4343b15701fea8b2a756b42 exec=35709ca0116b223cbfd4d11f4176a2df7c528f32fe486a7d11c23d87a470c2f1 error=container d8140a6081653404adf47dd8cfe46a2a2760849ea4343b15701fea8b2a756b42 encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The user name or password is incorrect. (0x52e)]

Error running exec 35709ca0116b223cbfd4d11f4176a2df7c528f32fe486a7d11c23d87a470c2f1 in container: container d8140a6081653404adf47dd8cfe46a2a2760849ea4343b15701fea8b2a756b42 encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The user name or password is incorrect. (0x52e)

Do you try to use my entered authentication? Because the password I supply to New-BcContainer differs from my user account's.

freddydk commented 2 years ago

I create a user inside the container - but it doesn't get to that. Did you try the latest override (start) - did that give these entries?

achim-t commented 2 years ago

Still running that one.

The entries were created on the previous try (also the ones before that). Notice how the container-id matches to the script output.

achim-t commented 2 years ago

Apparently stuck at this step.

PS C:\Users\ataeschner> $auth = "UserPassword"
$credential = get-credential -UserName $env:USERNAME -Message "Using $auth Authentication. Please enter your Windows credentials."
$artifactUrl = Get-BCArtifactUrl -country de 
$containerName = "runtest4"
$licenseFile = "C:\Users\ataeschner\Desktop\fin.flf"
New-BcContainer -accept_eula `
                -containerName $containerName `
                -artifactUrl $artifactUrl `
                -auth $auth `
                -credential $credential `
                -licenseFile $licenseFile `
                -updateHosts `
                -myscripts @("https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/HelperFunctions.ps1", "https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/start.ps1")
                -assignPremiumPlan 
BcContainerHelper version 3.0.7
BcContainerHelper emits usage statistics telemetry to Microsoft
BcContainerHelper is version 3.0.7
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container runtest4
Removing runtest4 from container hosts file
Removing runtest4-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\runtest4
Downloading application artifact /sandbox/20.0.37253.40208/de
Downloading C:\Users\ataeschner\AppData\Local\Temp\3fa2557f-ee6c-4935-9a64-432cf6bb27db.zip
Unpacking application artifact to tmp folder using 7zip
Downloading platform artifact /sandbox/20.0.37253.40208/platform
Downloading C:\Users\ataeschner\AppData\Local\Temp\4796dda9-23aa-4855-8d9e-f9bdd6878a18.zip
Unpacking platform artifact to tmp folder using 7zip
Downloading Prerequisite Components
Downloading c:\bcartifacts.cache\sandbox\20.0.37253.40208\platform\Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\OpenXMLSDKv25.msi
Downloading c:\bcartifacts.cache\sandbox\20.0.37253.40208\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
Downloading c:\bcartifacts.cache\sandbox\20.0.37253.40208\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40208
Platform: 20.0.37114.40159
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\HelperFunctions.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\start.ps1
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- HelperFunctions.ps1
- license.flf
- MainLoop.ps1
- SetupVariables.ps1
- start.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
5111023db7dbf4ae93a9824dfd08a62f3dddd9426bcc7c77d09482ff7fc0a3a4
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40208/de
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\sandbox\20.0.37253.40208\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40208\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40208\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40208\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\20.0.37253.40208\de\BusinessCentral-DE.bak
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40208/de
Using installer from 
Copying Platform Artifacts
c:\dl\sandbox\20.0.37253.40208\platform
Copying Application Artifacts
Copying Database
Copying ConfigurationPackages
c:\dl\sandbox\20.0.37253.40208\de\ConfigurationPackages
Copying Extensions
c:\dl\sandbox\20.0.37253.40208\de\Extensions
Copying Applications.*
c:\dl\sandbox\20.0.37253.40208\de\Applications.*
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
freddydk commented 2 years ago

Could you try to re-add navinstall to myscripts I have removed the multi-threaded copy - which should allow me to see were exactly it fails.

achim-t commented 2 years ago

Stuck again.

PS C:\Users\ataeschner> New-BcContainer -accept_eula `
                -containerName $containerName `
                -artifactUrl $artifactUrl `
                -auth $auth `
                -credential $credential `
                -licenseFile $licenseFile `
                -updateHosts `
                -myscripts @("https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/HelperFunctions.ps1", "https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/start.ps1","https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/navinstall.ps1")
                -assignPremiumPlan 
BcContainerHelper is version 3.0.7
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container runtest4
Removing runtest4 from container hosts file
Removing runtest4-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\runtest4
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40208
Platform: 20.0.37114.40159
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\HelperFunctions.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\start.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\navinstall.ps1
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- HelperFunctions.ps1
- license.flf
- MainLoop.ps1
- navinstall.ps1
- SetupVariables.ps1
- start.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
e48e2f717c38023e685d50aa6add471fb1675530407f81e6f9bf4743e9a6eb98
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40208/de
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\sandbox\20.0.37253.40208\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40208\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40208\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40208\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40208\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40208\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40208\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40208\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40208\platform
c:\dl\sandbox\20.0.37253.40208\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
'C:\dl\sandbox\20.0.37253.40208\de\ConfigurationPackages'
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40208\de\ConfigurationPackages
'C:\dl\sandbox\20.0.37253.40208\platform\Test Assemblies'
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40208\platform\Test Assemblies
''
''
'C:\dl\sandbox\20.0.37253.40208\de\Extensions'
Copying Extensions
C:\dl\sandbox\20.0.37253.40208\de\Extensions
'C:\dl\sandbox\20.0.37253.40208\platform\Applications'
Copying Applications
C:\dl\sandbox\20.0.37253.40208\platform\Applications
'C:\dl\sandbox\20.0.37253.40208\de\Applications.DE'
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40208\de\Applications.DE
''
Copying dependencies
Copying ReportBuilder
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40208/de
Using installer from 
Copying Platform Artifacts
c:\dl\sandbox\20.0.37253.40208\platform
Copying Application Artifacts
Copying Database
Copying ConfigurationPackages
c:\dl\sandbox\20.0.37253.40208\de\ConfigurationPackages
Copying Extensions
c:\dl\sandbox\20.0.37253.40208\de\Extensions
Copying Applications.*
c:\dl\sandbox\20.0.37253.40208\de\Applications.*
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
freddydk commented 2 years ago

Looks like it crashed during reportbuilder copy - i removed that now You can re-run

achim-t commented 2 years ago
BcContainerHelper is version 3.0.7
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40208
Platform: 20.0.37114.40159
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\HelperFunctions.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\start.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\navinstall.ps1
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- HelperFunctions.ps1
- license.flf
- MainLoop.ps1
- navinstall.ps1
- SetupVariables.ps1
- start.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
49779ff8826550679bd22d89685f4075889f86ad3ff0bed9b4f131c6c5ec78f6
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40208/de
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\sandbox\20.0.37253.40208\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40208\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40208\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40208\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40208\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40208\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40208\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40208\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40208\platform
c:\dl\sandbox\20.0.37253.40208\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
'C:\dl\sandbox\20.0.37253.40208\de\ConfigurationPackages'
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40208\de\ConfigurationPackages
'C:\dl\sandbox\20.0.37253.40208\platform\Test Assemblies'
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40208\platform\Test Assemblies
''
''
'C:\dl\sandbox\20.0.37253.40208\de\Extensions'
Copying Extensions
C:\dl\sandbox\20.0.37253.40208\de\Extensions
'C:\dl\sandbox\20.0.37253.40208\platform\Applications'
Copying Applications
C:\dl\sandbox\20.0.37253.40208\platform\Applications
'C:\dl\sandbox\20.0.37253.40208\de\Applications.DE'
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40208\de\Applications.DE
''
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\20.0.37253.40208\de\BusinessCentral-DE.bak
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40208/de
Using installer from 
Copying Platform Artifacts
c:\dl\sandbox\20.0.37253.40208\platform
Copying Application Artifacts
Copying Database
Copying ConfigurationPackages
c:\dl\sandbox\20.0.37253.40208\de\ConfigurationPackages
Copying Extensions
c:\dl\sandbox\20.0.37253.40208\de\Extensions
Copying Applications.*
c:\dl\sandbox\20.0.37253.40208\de\Applications.*
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
Waiting for c:\$tmp$\Applications.*\E\Any.Source.zip to be available
freddydk commented 2 years ago

Then we are back at database collation failing. I will try to collect the infos from all these outputs and work on adding some resilience over the weekend (need to run now) I am very thankful to have somebody who can repro this problem consistently - if you are OK with trying a couple of times more next week - it would be great. Thanks

achim-t commented 2 years ago

Yeah, sure.

freddydk commented 2 years ago

If you could retry with this parameters, I should know whether it is possible to fix this.

 -myscripts @("https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/HelperFunctions.ps1", "https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/start.ps1","https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/navinstall.ps1")
achim-t commented 2 years ago
New-BcContainer -accept_eula `
                -containerName $containerName `
                -artifactUrl $artifactUrl `
                -auth $auth `
                -credential $credential `
                -licenseFile $licenseFile `
                -updateHosts `
                 -myscripts @("https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/HelperFunctions.ps1", "https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/start.ps1","https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/navinstall.ps1")
                -assignPremiumPlan 
BcContainerHelper version 3.0.7
BcContainerHelper emits usage statistics telemetry to Microsoft
BcContainerHelper is version 3.0.7
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container runtest4
Removing runtest4 from container hosts file
Removing runtest4-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\runtest4
Downloading application artifact /sandbox/20.0.37253.40301/de
Downloading C:\Users\ataeschner\AppData\Local\Temp\9a062129-a2ad-4fbd-bb26-527598d54040.zip
Unpacking application artifact to tmp folder using 7zip
Downloading platform artifact /sandbox/20.0.37253.40301/platform
Downloading C:\Users\ataeschner\AppData\Local\Temp\c89b857b-41ad-4648-b489-ba20860a7e33.zip
Unpacking platform artifact to tmp folder using 7zip
Downloading Prerequisite Components
Downloading c:\bcartifacts.cache\sandbox\20.0.37253.40301\platform\Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\OpenXMLSDKv25.msi
Downloading c:\bcartifacts.cache\sandbox\20.0.37253.40301\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
Downloading c:\bcartifacts.cache\sandbox\20.0.37253.40301\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40301
Platform: 20.0.37114.40239
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\HelperFunctions.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\start.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\navinstall.ps1
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- HelperFunctions.ps1
- license.flf
- MainLoop.ps1
- navinstall.ps1
- SetupVariables.ps1
- start.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
75a1ad58c490eb0690f870e4d7eb0547c75c5625b0a2d5711b8c20ab3f84fd67
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
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\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
Using installer from 
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
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'
Starting Business Central Service Tier
Importing 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
Stopping Business Central Service Tier
Installation took 129 seconds
Installation complete
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 3A7605D8F0E2398AD8AC18D2DC5721816995AC17
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Restarting Container
PublicDnsName unchanged
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Starting Service Tier
Container IP Address: 172.30.200.164
Container Hostname  : runtest4
Container Dns Name  : runtest4
Web Client          : http://runtest4/BC/?tenant=default
Setting runtest4 to 172.30.200.164 in host hosts file
Setting runtest4-default to 172.30.200.164 in host hosts file
Setting runtest4-default to 172.30.200.164 in container hosts file

Files:
Cannot find path 'C:\inetpub\wwwroot\http' because it does not exist.
at <ScriptBlock>, C:\Run\navstart.ps1: line 266
at <ScriptBlock>, C:\Run\my\start.ps1: line 368
at <ScriptBlock>, C:\Run\start.ps1: line 32
at <ScriptBlock>, <No file>: line 1Error
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
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\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
Using installer from 
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
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'
Starting Business Central Service Tier
Importing 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
Stopping Business Central Service Tier
Installation took 129 seconds
Installation complete
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 3A7605D8F0E2398AD8AC18D2DC5721816995AC17
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Initializing...
Setting host.docker.internal to 192.168.244.169 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.169 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.30.192.1 in container hosts file
Restarting Container
PublicDnsName unchanged
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Starting Service Tier
Container IP Address: 172.30.200.164
Container Hostname  : runtest4
Container Dns Name  : runtest4
Web Client          : http://runtest4/BC/?tenant=default
Setting runtest4 to 172.30.200.164 in host hosts file
Setting runtest4-default to 172.30.200.164 in host hosts file
Setting runtest4-default to 172.30.200.164 in container hosts file

Files:
Cannot find path 'C:\inetpub\wwwroot\http' because it does not exist.
at <ScriptBlock>, C:\Run\navstart.ps1: line 266
at <ScriptBlock>, C:\Run\my\start.ps1: line 368
at <ScriptBlock>, C:\Run\start.ps1: line 32
at <ScriptBlock>, <No file>: line 1
New-BcContainer Telemetry Correlation Id: bf19ff10-7760-4c6f-9d92-f846e46c3750
Initialization of container runtest4 failed
In C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.7\ContainerHandling\Wait-NavContainerReady.ps1:42 Zeichen:17
+ ...             throw "Initialization of container $containerName failed" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Initialization ...runtest4 failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Initialization of container runtest4 failed
freddydk commented 2 years ago

It might look the same - but it actually got a lot further, to now fail where the web client is created - and this time, it didn't restart during installation at all.

I have added 2 extra overrides, which you can include in the -myScripts with some additional dumping and a small fix:

"https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/navstart.ps1" "https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/SetupWebClient.ps1"

Thanks

achim-t commented 2 years ago
New-BcContainer -accept_eula `
                -containerName $containerName `
                -artifactUrl $artifactUrl `
                -auth $auth `
                -credential $credential `
                -licenseFile $licenseFile `
                -updateHosts `
                -myscripts @("https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/HelperFunctions.ps1", "https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/start.ps1","https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/navinstall.ps1","https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/navstart.ps1","https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/SetupWebClient.ps1")
                -assignPremiumPlan 
BcContainerHelper version 3.0.7
BcContainerHelper emits usage statistics telemetry to Microsoft
BcContainerHelper is version 3.0.7
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container runtest4
Removing runtest4 from container hosts file
Removing runtest4-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\runtest4
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40301
Platform: 20.0.37114.40239
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\HelperFunctions.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\start.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\navinstall.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\navstart.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\SetupWebClient.ps1
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- HelperFunctions.ps1
- license.flf
- MainLoop.ps1
- navinstall.ps1
- navstart.ps1
- SetupVariables.ps1
- SetupWebClient.ps1
- start.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
7f8ed7f1c0f78c363ee02ec2f1999b804f70ecde3ef3eb052f1df02c37fdf68e
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
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\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
Using installer from 
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
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'
Starting Business Central Service Tier
Importing 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
Stopping Business Central Service Tier
Installation took 129 seconds
Installation complete
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 69EEE5D1EEB6115C8548F7EC33D31E70445E8012
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
a
b
c
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
Using installer from 
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Removing database tenant
Removing Database tenant from localhost\SQLEXPRESS
Restoring CRONUS Demo Database
Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
Removing database CRONUS
Removing Database CRONUS from localhost\SQLEXPRESS
Exporting Application to CRONUS
Removing Application from tenant
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Service 'Dynamics 365 Business Central Server [BC] (MicrosoftDynamicsNavServer$BC)' cannot be created due to the following error: The specified service already exists
at <ScriptBlock>, C:\Run\my\navinstall.ps1: line 309
at <ScriptBlock>, C:\Run\my\start.ps1: line 230
at <ScriptBlock>, C:\Run\start.ps1: line 32
at <ScriptBlock>, <No file>: line 1Error
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
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\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
Using installer from 
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
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'
Starting Business Central Service Tier
Importing 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
Stopping Business Central Service Tier
Installation took 129 seconds
Installation complete
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 69EEE5D1EEB6115C8548F7EC33D31E70445E8012
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
a
b
c
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
Using installer from 
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Removing database tenant
Removing Database tenant from localhost\SQLEXPRESS
Restoring CRONUS Demo Database
Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
Removing database CRONUS
Removing Database CRONUS from localhost\SQLEXPRESS
Exporting Application to CRONUS
Removing Application from tenant
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Service 'Dynamics 365 Business Central Server [BC] (MicrosoftDynamicsNavServer$BC)' cannot be created due to the following error: The specified service already exists
at <ScriptBlock>, C:\Run\my\navinstall.ps1: line 309
at <ScriptBlock>, C:\Run\my\start.ps1: line 230
at <ScriptBlock>, C:\Run\start.ps1: line 32
at <ScriptBlock>, <No file>: line 1
New-BcContainer Telemetry Correlation Id: 7698285f-bbf9-4bcb-9aa1-24df45976303
Initialization of container runtest4 failed
In C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.7\ContainerHandling\Wait-NavContainerReady.ps1:42 Zeichen:17
+ ...             throw "Initialization of container $containerName failed" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Initialization ...runtest4 failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Initialization of container runtest4 failed
freddydk commented 2 years ago

Added a small fix and some additional dumps The container might end up in a never-ending restart loop with this fix - in that case, just cancel it after a few times of a b c lines, thanks

achim-t commented 2 years ago
BcContainerHelper is version 3.0.7
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container runtest4
Removing runtest4 from container hosts file
Removing runtest4-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\runtest4
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40301
Platform: 20.0.37114.40239
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\HelperFunctions.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\start.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\navinstall.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\navstart.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\SetupWebClient.ps1
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- HelperFunctions.ps1
- license.flf
- MainLoop.ps1
- navinstall.ps1
- navstart.ps1
- SetupVariables.ps1
- SetupWebClient.ps1
- start.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
056a147bdb433993844dabb1876722d9d23a9316b051f4ca6d4baf43b829fac3
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
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\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
Using installer from 
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
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'
Starting Business Central Service Tier
Importing 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
Stopping Business Central Service Tier
Installation took 117 seconds
Installation complete
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 67EC9491FBAA39DDFFAB1BC46A621E306D7A4972
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
a
b
c
New-NAVWebServerInstance -PublishFolder C:\Program Files\Microsoft Dynamics NAV\200\Web Client\WebPublish -WebServerInstance BC -Server localhost -ServerInstance BC -ClientServicesCredentialT
ype NavUserPassword -ClientServicesPort 7046 -WebSitePort 80
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Restarting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 6A0214D4222F46945C44B6EB15BEA97E67667495
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
a
b
c
New-NAVWebServerInstance -PublishFolder C:\Program Files\Microsoft Dynamics NAV\200\Web Client\WebPublish -WebServerInstance BC -Server localhost -ServerInstance BC -ClientServicesCredentialT
ype NavUserPassword -ClientServicesPort 7046 -WebSitePort 80
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Restarting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 4302ECD53968BD6813D773D82B8F55697EBFEDE5
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
a
b
c
freddydk commented 2 years ago

added some additional dumps in the web client installer. Could you add

"https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/NAVWebClientManagement.psm1"

(note .psm1 not .ps1) and retry?

achim-t commented 2 years ago
New-BcContainer -accept_eula `
                -containerName $containerName `
                -artifactUrl $artifactUrl `
                -auth $auth `
                -credential $credential `
                -licenseFile $licenseFile `
                -updateHosts `
                -myscripts @("https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/HelperFunctions.ps1", "https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/start.ps1","https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/navinstall.ps1","https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/navstart.ps1","https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/SetupWebClient.ps1","https://raw.githubusercontent.com/microsoft/nav-docker/master/override/issue2434/NAVWebClientManagement.psm1")
                -assignPremiumPlan
BcContainerHelper is version 3.0.7
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container runtest4
Removing runtest4 from container hosts file
Removing runtest4-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\runtest4
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40301
Platform: 20.0.37114.40239
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\HelperFunctions.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\start.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\navinstall.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\navstart.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\SetupWebClient.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\NAVWebClientManagement.psm1
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- HelperFunctions.ps1
- license.flf
- MainLoop.ps1
- navinstall.ps1
- navstart.ps1
- NAVWebClientManagement.psm1
- SetupVariables.ps1
- SetupWebClient.ps1
- start.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
843ff843535e20b15353ccad402a8c047bdc6c81005ab18bef09d60ac7615399
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
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\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
Using installer from 
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
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'
Starting Business Central Service Tier
Importing 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
Stopping Business Central Service Tier
Installation took 127 seconds
Installation complete
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint D65D74500278A8C83FE78A5DCA4DF6F0D395445A
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
a
b
c
New-NAVWebServerInstance -PublishFolder C:\Program Files\Microsoft Dynamics NAV\200\Web Client\WebPublish -WebServerInstance BC -Server localhost -ServerInstance BC -ClientServicesCredentialT
ype NavUserPassword -ClientServicesPort 7046 -WebSitePort 80
1
Using application pool name: BC
Using default container name: NavWebApplicationContainer
Copy files to WWW root C:\inetpub\wwwroot\BC
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Restarting Container
Restart count 1
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint A0E2DDC321CCEDBD6A9179A577C46DA9CDFC3F86
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
a
b
c
New-NAVWebServerInstance -PublishFolder C:\Program Files\Microsoft Dynamics NAV\200\Web Client\WebPublish -WebServerInstance BC -Server localhost -ServerInstance BC -ClientServicesCredentialT
ype NavUserPassword -ClientServicesPort 7046 -WebSitePort 80
1
Using application pool name: BC
Using default container name: NavWebApplicationContainer
Remove C:\inetpub\wwwroot\BC
Copy files to WWW root C:\inetpub\wwwroot\BC
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Restarting Container
Restart count 2
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 3CE0F57C2A7C672691587F5CAE33225CC8F6FADA
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
a
b
c
New-NAVWebServerInstance -PublishFolder C:\Program Files\Microsoft Dynamics NAV\200\Web Client\WebPublish -WebServerInstance BC -Server localhost -ServerInstance BC -ClientServicesCredentialT
ype NavUserPassword -ClientServicesPort 7046 -WebSitePort 80
1
Using application pool name: BC
Using default container name: NavWebApplicationContainer
Remove C:\inetpub\wwwroot\BC
Copy files to WWW root C:\inetpub\wwwroot\BC
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Restarting Container
Restart count 3
Error starting container
at <ScriptBlock>, C:\Run\my\navstart.ps1: line 41
at <ScriptBlock>, C:\Run\my\start.ps1: line 368
at <ScriptBlock>, C:\Run\start.ps1: line 32
at <ScriptBlock>, <No file>: line 1Error
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
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\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
Using installer from 
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
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'
Starting Business Central Service Tier
Importing 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
Stopping Business Central Service Tier
Installation took 127 seconds
Installation complete
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint D65D74500278A8C83FE78A5DCA4DF6F0D395445A
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
a
b
c
New-NAVWebServerInstance -PublishFolder C:\Program Files\Microsoft Dynamics NAV\200\Web Client\WebPublish -WebServerInstance BC -Server localhost -ServerInstance BC -ClientServicesCredentialT
ype NavUserPassword -ClientServicesPort 7046 -WebSitePort 80
1
Using application pool name: BC
Using default container name: NavWebApplicationContainer
Copy files to WWW root C:\inetpub\wwwroot\BC
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Restarting Container
Restart count 1
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint A0E2DDC321CCEDBD6A9179A577C46DA9CDFC3F86
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
a
b
c
New-NAVWebServerInstance -PublishFolder C:\Program Files\Microsoft Dynamics NAV\200\Web Client\WebPublish -WebServerInstance BC -Server localhost -ServerInstance BC -ClientServicesCredentialT
ype NavUserPassword -ClientServicesPort 7046 -WebSitePort 80
1
Using application pool name: BC
Using default container name: NavWebApplicationContainer
Remove C:\inetpub\wwwroot\BC
Copy files to WWW root C:\inetpub\wwwroot\BC
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Restarting Container
Restart count 2
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 3CE0F57C2A7C672691587F5CAE33225CC8F6FADA
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
a
b
c
New-NAVWebServerInstance -PublishFolder C:\Program Files\Microsoft Dynamics NAV\200\Web Client\WebPublish -WebServerInstance BC -Server localhost -ServerInstance BC -ClientServicesCredentialT
ype NavUserPassword -ClientServicesPort 7046 -WebSitePort 80
1
Using application pool name: BC
Using default container name: NavWebApplicationContainer
Remove C:\inetpub\wwwroot\BC
Copy files to WWW root C:\inetpub\wwwroot\BC
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Restarting Container
Restart count 3
Error starting container
at <ScriptBlock>, C:\Run\my\navstart.ps1: line 41
at <ScriptBlock>, C:\Run\my\start.ps1: line 368
at <ScriptBlock>, C:\Run\start.ps1: line 32
at <ScriptBlock>, <No file>: line 1
New-BcContainer Telemetry Correlation Id: c27de68b-b911-431d-b3f6-479a4e00b28d
Initialization of container runtest4 failed
In C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.7\ContainerHandling\Wait-NavContainerReady.ps1:42 Zeichen:17
+ ...             throw "Initialization of container $containerName failed" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Initialization ...runtest4 failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Initialization of container runtest4 failed
freddydk commented 2 years ago

So, now it crashes when trying to copy files... I have replaced copy-item with robocopy - let's see if that changes anything? (I have earlier seen copy-item to cause problems)

achim-t commented 2 years ago
BcContainerHelper is version 3.0.7
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container runtest4
Removing runtest4 from container hosts file
Removing runtest4-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\runtest4
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40301
Platform: 20.0.37114.40239
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\HelperFunctions.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\start.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\navinstall.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\navstart.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\SetupWebClient.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\NAVWebClientManagement.psm1
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- HelperFunctions.ps1
- license.flf
- MainLoop.ps1
- navinstall.ps1
- navstart.ps1
- NAVWebClientManagement.psm1
- SetupNavUsers.ps1
- SetupVariables.ps1
- SetupWebClient.ps1
- start.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
be21b0ea15638a3a992e15a1e85521cd30c3a919bbbf3acefa12079b704aa88b
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
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\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
Using installer from 
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
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'
Starting Business Central Service Tier
Importing 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
Stopping Business Central Service Tier
Installation took 116 seconds
Installation complete
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 798F2732F914BBC94696DB5C0DE538A27E72743C
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
a
b
c
New-NAVWebServerInstance -PublishFolder C:\Program Files\Microsoft Dynamics NAV\200\Web Client\WebPublish -WebServerInstance BC -Server localhost -ServerInstance BC -ClientServicesCredentialT
ype NavUserPassword -ClientServicesPort 7046 -WebSitePort 80
1
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
d
e
f
g
Enabling Financials User Experience
Using license file 'c:\run\my\license.flf'
Import License
Dismounting Tenant
Mounting Tenant
Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
Sync'ing Tenant
Tenant is Operational
Creating http download site
Setting SA Password and enabling SA
Creating ataeschner as SQL User and add to sysadmin
WARNING: This license is not compatible with this version of Business Central.
Creating SUPER user
WARNING: The password that you entered does not meet the minimum requirements. 
It should be at least 8 characters long and contain at least one uppercase 
letter, one lowercase letter, and one number.
WARNING: This license is not compatible with this version of Business Central.
WARNING: This license is not compatible with this version of Business Central.
WARNING: This license is not compatible with this version of Business Central.
Assign Premium plan for ATAESCHNER
Container IP Address: 172.30.192.123
Container Hostname  : runtest4
Container Dns Name  : runtest4
Web Client          : http://runtest4/BC/?tenant=default
Dev. Server         : http://runtest4
Dev. ServerInstance : BC
Dev. Server Tenant  : default
Setting runtest4 to 172.30.192.123 in host hosts file
Setting runtest4-default to 172.30.192.123 in host hosts file
Setting runtest4-default to 172.30.192.123 in container hosts file

Files:
http://runtest4:8080/ALLanguage.vsix

Container Total Physical Memory is 31.7Gb
Container Free Physical Memory is 10.0Gb

Initialization took 60 seconds
Ready for connections!
Reading CustomSettings.config from runtest4
container be21b0ea15638a3a992e15a1e85521cd30c3a919bbbf3acefa12079b704aa88b encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The RPC server is unav
ailable. (0x6ba)
New-BcContainer Telemetry Correlation Id: bd6b432a-b8df-4c6c-95f6-b1a0e06795bc
ScriptHalted
In C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.7\ContainerHandling\Invoke-ScriptInNavContainer.ps1:114 Zeichen:17
+                 throw
+                 ~~~~~
    + CategoryInfo          : OperationStopped: (:) [], RuntimeException
    + FullyQualifiedErrorId : ScriptHalted
freddydk commented 2 years ago

It looks like the container is created and the error now happens post-creation - does the container work? Is the webclient available here: http://runtest4/BC/?tenant=default

freddydk commented 2 years ago

Also, could you try to run the script as Administrator?

achim-t commented 2 years ago

I can download symbols and publish to the container, but the webclient isn't available.

freddydk commented 2 years ago

What error do you get when accessing the web client URL?

achim-t commented 2 years ago

Generic time out.

image

freddydk commented 2 years ago

If you run the script as administrator - will it then complete successfully? And does that change anything on the web client? Did you try to clean cookies etc. in the browser?

achim-t commented 2 years ago

Running as admin doesn't produce an error. The web client is still not available.

I used a new incognito browser window, so there shouldn't be any cookies saved. A simple curl to http://runtest4/BC also times out.

BcContainerHelper version 3.0.7
BcContainerHelper emits usage statistics telemetry to Microsoft
BcContainerHelper is version 3.0.7
BcContainerHelper is running as administrator
Hyper-V is Enabled
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container runtest4
Removing runtest4 from container hosts file
Removing runtest4-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\runtest4
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40301
Platform: 20.0.37114.40239
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\HelperFunctions.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\start.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\navinstall.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\navstart.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\SetupWebClient.ps1
Downloading C:\ProgramData\BcContainerHelper\Extensions\runtest4\my\NAVWebClientManagement.psm1
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- HelperFunctions.ps1
- license.flf
- MainLoop.ps1
- navinstall.ps1
- navstart.ps1
- NAVWebClientManagement.psm1
- SetupNavUsers.ps1
- SetupVariables.ps1
- SetupWebClient.ps1
- start.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
f3fa9e51ab37b1c785ce0a34078e2b7fa2cd744468a4721f075cc6baa9d0cf2c
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
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\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
Using installer from 
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
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'
Starting Business Central Service Tier
Importing 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
Stopping Business Central Service Tier
Installation took 116 seconds
Installation complete
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 51D82E7F415189D2D3B5FBEA80C6267E0DFDBC6E
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
a
b
c
New-NAVWebServerInstance -PublishFolder C:\Program Files\Microsoft Dynamics NAV\200\Web Client\WebPublish -WebServerInstance BC -Server localhost -ServerInstance BC -ClientServicesCredentialT
ype NavUserPassword -ClientServicesPort 7046 -WebSitePort 80
1
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
d
e
f
g
Enabling Financials User Experience
Using license file 'c:\run\my\license.flf'
Import License
Dismounting Tenant
Mounting Tenant
Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
Sync'ing Tenant
Tenant is Operational
Creating http download site
Setting SA Password and enabling SA
Creating ataeschner as SQL User and add to sysadmin
WARNING: This license is not compatible with this version of Business Central.
Creating SUPER user
WARNING: The password that you entered does not meet the minimum requirements. 
It should be at least 8 characters long and contain at least one uppercase 
letter, one lowercase letter, and one number.
WARNING: This license is not compatible with this version of Business Central.
WARNING: This license is not compatible with this version of Business Central.
WARNING: This license is not compatible with this version of Business Central.
Assign Premium plan for ATAESCHNER
Container IP Address: 172.30.204.113
Container Hostname  : runtest4
Container Dns Name  : runtest4
Web Client          : http://runtest4/BC/?tenant=default
Dev. Server         : http://runtest4
Dev. ServerInstance : BC
Dev. Server Tenant  : default
Setting runtest4 to 172.30.204.113 in host hosts file
Setting runtest4-default to 172.30.204.113 in host hosts file
Setting runtest4-default to 172.30.204.113 in container hosts file

Files:
http://runtest4:8080/ALLanguage.vsix

Container Total Physical Memory is 31.7Gb
Container Free Physical Memory is 7.1Gb

Initialization took 65 seconds
Ready for connections!
Reading CustomSettings.config from runtest4
Creating Desktop Shortcuts for runtest4
Container runtest4 successfully created

Use:
Get-BcContainerEventLog -containerName runtest4 to retrieve a snapshot of the event log from the container
Get-BcContainerDebugInfo -containerName runtest4 to get debug information about the container
Enter-BcContainer -containerName runtest4 to open a PowerShell prompt inside the container
Remove-BcContainer -containerName runtest4 to remove the container again
docker logs runtest4 to retrieve information about URL's again
freddydk commented 2 years ago

I can see that all the failing samples were also running as non administrator - just to make sure that running as administrator doesn't actually fix everything - could you try to remove the myscripts totally and re-run as admin (but still without hyperv)

achim-t commented 2 years ago
BcContainerHelper is version 3.0.7
BcContainerHelper is running as administrator
Hyper-V is Enabled
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Removing container runtest4
Removing runtest4 from container hosts file
Removing runtest4-* from container hosts file
Removing C:\ProgramData\BcContainerHelper\Extensions\runtest4
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643
Creating Container runtest4
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40301
Platform: 20.0.37114.40239
Generic Tag: 1.0.2.1
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest4\my:
- AdditionalOutput.ps1
- license.flf
- MainLoop.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container runtest4 from image mcr.microsoft.com/businesscentral:10.0.20348.643
aa8446e5756ab3af3ad2caeee04b6a0a65608943e004a1a692431058f66fa7b7
Waiting for container runtest4 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
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\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\20.0.37253.40301\de\BusinessCentral-DE.bak
Restoring CRONUS Demo Database
Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
Exporting Application to CRONUS
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint D5E911AB74C8409A4522A6503E31CA233C5537FC
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Service Tier doesn't exist / is not installed
at <ScriptBlock>, C:\Run\navstart.ps1: line 153
at <ScriptBlock>, C:\Run\start.ps1: line 363
at <ScriptBlock>, <No file>: line 1Error
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
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\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\20.0.37253.40301\de\BusinessCentral-DE.bak
Restoring CRONUS Demo Database
Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
Exporting Application to CRONUS
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest4
PublicDnsName is runtest4
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint D5E911AB74C8409A4522A6503E31CA233C5537FC
DNS identity runtest4
Modifying Service Tier Config File with Instance Specific Settings
Service Tier doesn't exist / is not installed
at <ScriptBlock>, C:\Run\navstart.ps1: line 153
at <ScriptBlock>, C:\Run\start.ps1: line 363
at <ScriptBlock>, <No file>: line 1
New-BcContainer Telemetry Correlation Id: aaac0812-31ee-4071-a5f3-65909b41579b
Initialization of container runtest4 failed
In C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.7\ContainerHandling\Wait-NavContainerReady.ps1:42 Zeichen:17
+ ...             throw "Initialization of container $containerName failed" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Initialization ...runtest4 failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Initialization of container runtest4 failed
freddydk commented 2 years ago

Thanks - will try to collect all the learnings and get back

freddydk commented 2 years ago

Could you remove the -myscripts and use this instead:

-useGenericImage "$(Get-BestGenericImageName)-dev"

and then use a new name (not used before for the container) - like testforfk :-)

Thanks

achim-t commented 2 years ago

New error message.

Webserver is not available, publishing apps works.

BcContainerHelper is version 3.0.7
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 21H2
Docker Client Version is 20.10.13
Docker Server Version is 20.10.13
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:10.0.20348.643-dev
Creating Container runtest6
Style: sandbox
Multitenant: Yes
Version: 20.0.37253.40301
Platform: 20.0.37114.40239
Generic Tag: 1.0.2.2
Container OS Version: 10.0.20348.643 (ltsc2022)
Host OS Version: 10.0.22000.613 (21H2)
Using process isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file C:\Users\ataeschner\Desktop\fin.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\runtest6\my:
- AdditionalOutput.ps1
- license.flf
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container runtest6 from image mcr.microsoft.com/businesscentral:10.0.20348.643-dev
fbe6ff540c1e5fadb9293beaa7ac501187710f7f82003789b27c0047505a4a01
Waiting for container runtest6 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
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\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.0.37253.40301/de
Using installer from 
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\Program Files
c:\dl\sandbox\20.0.37253.40301\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.0.37253.40301\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.0.37253.40301\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.0.37253.40301\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.0.37253.40301\platform
c:\dl\sandbox\20.0.37253.40301\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.0.37253.40301\de\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.0.37253.40301\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.0.37253.40301\de\Extensions
Copying Applications
C:\dl\sandbox\20.0.37253.40301\platform\Applications
Copying Applications.DE
C:\dl\sandbox\20.0.37253.40301\de\Applications.DE
Copying dependencies
Copying ReportBuilder
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'
Starting Business Central Service Tier
Importing 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
Stopping Business Central Service Tier
Installation took 122 seconds
Installation complete
Initializing...
Setting host.docker.internal to 192.168.244.162 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.244.162 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.30.192.1 in container hosts file
Starting Container
Hostname is runtest6
PublicDnsName is runtest6
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint EB293E1BC002F281451C19D7C90278FA5E0DBAEB
DNS identity runtest6
Modifying Service Tier Config File with Instance Specific Settings
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
Enabling Financials User Experience
Using license file 'c:\run\my\license.flf'
Import License
Dismounting Tenant
Mounting Tenant
Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
Sync'ing Tenant
Tenant is Operational
Creating http download site
Setting SA Password and enabling SA
Creating ataeschner as SQL User and add to sysadmin
WARNING: This license is not compatible with this version of Business Central.
Creating SUPER user
WARNING: The password that you entered does not meet the minimum requirements. 
It should be at least 8 characters long and contain at least one uppercase 
letter, one lowercase letter, and one number.
WARNING: This license is not compatible with this version of Business Central.
WARNING: This license is not compatible with this version of Business Central.
WARNING: This license is not compatible with this version of Business Central.
Assign Premium plan for ATAESCHNER
Container IP Address: 172.30.204.171
Container Hostname  : runtest6
Container Dns Name  : runtest6
Web Client          : http://runtest6/BC/?tenant=default
Dev. Server         : http://runtest6
Dev. ServerInstance : BC
Dev. Server Tenant  : default
Setting runtest6 to 172.30.204.171 in host hosts file
Setting runtest6-default to 172.30.204.171 in host hosts file
Setting runtest6-default to 172.30.204.171 in container hosts file

Files:
http://runtest6:8080/ALLanguage.vsix

Container Total Physical Memory is 31.7Gb
Container Free Physical Memory is 12.3Gb

Initialization took 58 seconds
Ready for connections!
Reading CustomSettings.config from runtest6
container fbe6ff540c1e5fadb9293beaa7ac501187710f7f82003789b27c0047505a4a01 encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The RPC server is unav
ailable. (0x6ba)
New-BcContainer Telemetry Correlation Id: 1290e091-2d68-4f72-b98a-9529f44785fa
ScriptHalted
In C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.7\ContainerHandling\Invoke-ScriptInNavContainer.ps1:114 Zeichen:17
+                 throw
+                 ~~~~~
    + CategoryInfo          : OperationStopped: (:) [], RuntimeException
    + FullyQualifiedErrorId : ScriptHalted