Skip to content

[Bug]: Next Major UI Not working #3971

Open
@MatthewMcCarthy7

Description

@MatthewMcCarthy7

BCContainerhelper version

6.1.5-preview1324

Describe the issue

We have download the Next Major Image for the last couple of days, and when you go to open up the Container in the Browser from Docker, it just says getting ready and newer opens the UI. We are trying to look into some issue from our Next Major Pipeline. When running from a Pipeline, there are no issues with the test scripts. When you go to the Event Viewer, you see a lot of errors about "The specified string is not formatted correctly".

Image

Command or script used to produce the issue

New-BCContainer -doNotCheckHealth
-updateHosts -containerName $ContainerName
-artifactUrl $artifactUrl -auth NavUserPassword
-Credential $credential -memoryLimit 8g
-licenseFile "C:\License\LIC.bclicense" -assignPremiumPlan
-includeTestToolkit -includeTestLibrariesOnly
-alwaysPull -accept_eula
-accept_outdated `
-accept_insiderEula

Full output of the command or script

-accept_insiderEula

Downloading Platform index to C:\Users\Administrator\AppData\Local\Temp\2\bcContainerHelper.platform.json
Downloading base index to C:\Users\Administrator\AppData\Local\Temp\2\bcContainerHelper.base.json
Downloading Platform index to C:\Users\Administrator\AppData\Local\Temp\2\bcContainerHelper.platform.json
Downloading us index to C:\Users\Administrator\AppData\Local\Temp\2\bcContainerHelper.us.json
BcContainerHelper is version 6.1.5-preview1324
BcContainerHelper is running as administrator
HyperV is Disabled
Host is Microsoft Windows Server 2019 Standard - 10.0.17763.7009
UsePsSession is True
UsePwshForBc24 is True
UseWinRmSession is allow
UseSslForWinRmSession is True
Docker Client Version is 24.0.7
Docker Server Version is 24.0.7
Removing Session NextMajor
Removing container NextMajor
Removing entries from hosts
Removing NextMajor from container hosts file
Removing NextMajor-* from container hosts file
Removing Desktop shortcuts
Removing C:\ProgramData\BcContainerHelper\Extensions\NextMajor
Downloading artifact /sandbox/27.0.35790.0/us
Downloading C:\Users\Administrator\AppData\Local\Temp\2\fdf7092f-a748-499f-b360-a171d134ab04.zip
Error downloading..., retrying in 4 seconds...
Unpacking artifact to tmp folder using 7zip
Downloading platform artifact /sandbox/27.0.35790.0/platform
Downloading C:\Users\Administrator\AppData\Local\Temp\2\042b5ce1-3d58-4616-8ec3-52cb5fb99104.zip
Unpacking artifact to tmp folder using 7zip
Downloading Prerequisite Components
Downloading c:\bcartifacts.cache\sandbox\27.0.35790.0\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
Downloading c:\bcartifacts.cache\sandbox\27.0.35790.0\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
Fetching all docker images
Fetching all docker volumes
Pulling image mcr.microsoft.com/businesscentral:ltsc2019-dev
ltsc2019-dev: Pulling from businesscentral
803f4a9590cb: Already exists
a6910108ef19: Pulling fs layer
7b63d3c6e98b: Pulling fs layer
5e81d7699543: Pulling fs layer
ae18aaf4c649: Pulling fs layer
39f4ad03c371: Pulling fs layer
ae18aaf4c649: Waiting
39f4ad03c371: Waiting
70a2a99f85f1: Pulling fs layer
70a2a99f85f1: Waiting
93b5adf408a1: Pulling fs layer
674b4bfe2b06: Pulling fs layer
93b5adf408a1: Waiting
674b4bfe2b06: Waiting
848275c011df: Pulling fs layer
848275c011df: Waiting
6c6254330d7a: Pulling fs layer
6c6254330d7a: Waiting
5b8867272026: Pulling fs layer
5b8867272026: Waiting
65fbb886b9ae: Pulling fs layer
9c7bfc04f502: Pulling fs layer
65fbb886b9ae: Waiting
9c7bfc04f502: Waiting
7b63d3c6e98b: Verifying Checksum
7b63d3c6e98b: Download complete
ae18aaf4c649: Verifying Checksum
ae18aaf4c649: Download complete
39f4ad03c371: Verifying Checksum
39f4ad03c371: Download complete
70a2a99f85f1: Download complete
93b5adf408a1: Verifying Checksum
93b5adf408a1: Download complete
a6910108ef19: Download complete
848275c011df: Verifying Checksum
848275c011df: Download complete
6c6254330d7a: Verifying Checksum
6c6254330d7a: Download complete
5b8867272026: Verifying Checksum
5b8867272026: Download complete
65fbb886b9ae: Verifying Checksum
65fbb886b9ae: Download complete
9c7bfc04f502: Download complete
5e81d7699543: Verifying Checksum
5e81d7699543: Download complete
a6910108ef19: Pull complete
7b63d3c6e98b: Pull complete
674b4bfe2b06: Verifying Checksum
674b4bfe2b06: Download complete
5e81d7699543: Pull complete
ae18aaf4c649: Pull complete
39f4ad03c371: Pull complete
70a2a99f85f1: Pull complete
93b5adf408a1: Pull complete
674b4bfe2b06: Pull complete
848275c011df: Pull complete
6c6254330d7a: Pull complete
5b8867272026: Pull complete
65fbb886b9ae: Pull complete
9c7bfc04f502: Pull complete
Digest: sha256:ce4ad5f63f1f1f969756ee9e52de29e4ed56a8c6121b525481d41fbb8c7d7ce9
Status: Downloaded newer image for mcr.microsoft.com/businesscentral:ltsc2019-dev
mcr.microsoft.com/businesscentral:ltsc2019-dev
Using image mcr.microsoft.com/businesscentral:ltsc2019-dev
Disabling Health Check (always report healthy)
Creating Container NextMajor
Style: sandbox
Multitenant: Yes
Version: 27.0.35790.0
Platform: 27.0.35736.0
Generic Tag: 1.0.2.71-dev
Container OS Version: 10.0.17763.7434 (ltsc2019)
Host OS Version: 10.0.17763.7009 (ltsc2019)
Host OS and Base Image Container OS doesn't match, recommended isolation mode is hyperv. HyperV is not installed, recommending process isolation instead.
Using process isolation
Using locale en-US
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file C:\License\VEL.bclicense
Additional Parameters:
--expose 5986
Files in C:\ProgramData\BcContainerHelper\Extensions\NextMajor\my:

  • AdditionalOutput.ps1
  • AdditionalSetup.ps1
  • HelperFunctions.ps1
  • license.bclicense
  • MainLoop.ps1
  • SetupNavUsers.ps1
  • SetupVariables.ps1
  • updatehosts.ps1
    Creating container NextMajor from image mcr.microsoft.com/businesscentral:ltsc2019-dev
    1b0f134dc5b2042ac9034920a08b069309acbd619dc74e9cbb3069b59ea397e7
    Waiting for container NextMajor to be ready
    Using artifactUrl https://bcinsider-fvh2ekdjecfjd6gk.b02.azurefd.net/sandbox/27.0.35790.0/us
    Using installer from C:\Run\270
    Installing Business Central: multitenant=True, installOnly=False, filesOnly=False, includeTestToolkit=False, includeTestLibrariesOnly=False, includeTestFrameworkOnly=False, include
    PerformanceToolkit=False, appArtifactPath=c:\dl\sandbox\27.0.35790.0\us, platformArtifactPath=c:\dl\sandbox\27.0.35790.0\platform, databasePath=c:\dl\sandbox\27.0.35790.0\us\Busine
    ssCentral-US.bak, licenseFilePath=c:\dl\sandbox\27.0.35790.0\us\Cronus.bclicense, rebootContainer=True
    Installing from artifacts
    Starting Local SQL Server
    Starting Internet Information Server
    Copying Service Tier Files
    c:\dl\sandbox\27.0.35790.0\platform\ServiceTier\pfiles64
    c:\dl\sandbox\27.0.35790.0\platform\ServiceTier\System64
    Copying Web Client Files
    c:\dl\sandbox\27.0.35790.0\platform\WebClient\pfiles\Microsoft Dynamics NAV
    Copying ModernDev Files
    c:\dl\sandbox\27.0.35790.0\platform
    c:\dl\sandbox\27.0.35790.0\platform\ModernDev\pfiles\Microsoft Dynamics NAV
    Copying additional files
    Copying ConfigurationPackages
    C:\dl\sandbox\27.0.35790.0\us\ConfigurationPackages
    Copying Test Assemblies
    C:\dl\sandbox\27.0.35790.0\platform\Test Assemblies
    Copying Extensions
    C:\dl\sandbox\27.0.35790.0\us\Extensions
    Copying Applications
    C:\dl\sandbox\27.0.35790.0\platform\Applications
    Copying Applications.US
    C:\dl\sandbox\27.0.35790.0\us\Applications.US
    Copying dependencies
    Importing PowerShell Modules
    Restoring CRONUS Demo Database
    Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
    Exporting Application to CRONUS
    Removing Application from tenant
    Modifying Business Central Service Tier Config File for Docker
    Creating Business Central Service Tier
    Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
    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 288 seconds
    Installation complete
    Initializing...
    Setting host.containerhelper.internal to 172.29.160.1 in container hosts file
    Starting Container
    Hostname is NextMajor
    PublicDnsName is NextMajor
    Using NavUserPassword Authentication
    Creating Self Signed Certificate
    Self Signed Certificate Thumbprint 1B522C6E98A7BD2F14273D47ABB2B71D45E5D096
    DNS identity NextMajor
    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.bclicense'
    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 matt 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 MATT
    Enable PSRemoting and setup user for winrm
    Creating self-signed certificate for winrm
    Container IP Address: 172.29.166.118
    Container Hostname : NextMajor
    Container Dns Name : NextMajor
    Web Client : http://NextMajor/BC/?tenant=default
    Dev. Server : http://NextMajor
    Dev. ServerInstance : BC
    Dev. Server Tenant : default
    Setting NextMajor to 172.29.166.118 in host hosts file
    Setting NextMajor-default to 172.29.166.118 in host hosts file
    Setting NextMajor-default to 172.29.166.118 in container hosts file

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

Container Total Physical Memory is 24.0Gb
Container Free Physical Memory is 2.3Gb

Initialization took 55 seconds
Ready for connections!
Reading CustomSettings.config from NextMajor
Creating Desktop Shortcuts for NextMajor
Synchronizing Permissions Mock on default
App successfully synchronized
Installing Permissions Mock on default
App successfully installed
Synchronizing Test Runner on default
App successfully synchronized
Installing Test Runner on default
App successfully installed
Synchronizing Any on default
App successfully synchronized
Installing Any on default
App successfully installed
Synchronizing Library Assert on default
App successfully synchronized
Installing Library Assert on default
App successfully installed
Skipping app 'C:\Applications.US\Microsoft_Permissions Mock_27.0.35790.0.app' as it is already installed
Synchronizing Library Variable Storage on default
App successfully synchronized
Installing Library Variable Storage on default
App successfully installed
Publishing C:\ProgramData\BcContainerHelper\Extensions\NextMajor\938edbeb-74fd-454b-83c8-fc92ae72e8b1\Microsoft_System Application Test Library_27.0.35790.0.app
Synchronizing System Application Test Library on tenant default
Installing System Application Test Library on tenant default
App Microsoft_System Application Test Library_27.0.35790.0.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\NextMajor\37387056-92be-4a2d-9e35-0039dd26acc4\Microsoft_Business Foundation Test Libraries_27.0.35790.0.app
Synchronizing Business Foundation Test Libraries on tenant default
Installing Business Foundation Test Libraries on tenant default
App Microsoft_Business Foundation Test Libraries_27.0.35790.0.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\NextMajor\541512f9-50fd-43b0-b091-3054dc01653b\Microsoft_Tests-TestLibraries_27.0.35790.0.app
Synchronizing Tests-TestLibraries on tenant default
Installing Tests-TestLibraries on tenant default
App Microsoft_Tests-TestLibraries_27.0.35790.0.app successfully published
Synchronizing AI Test Toolkit on default
App successfully synchronized
Installing AI Test Toolkit on default
App successfully installed
TestToolkit successfully imported
Cleanup old dotnet core assemblies
Container NextMajor successfully created

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

Additional information

Image

Does this happen every time?

Yes

Did this used to work?

Yes

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions