navcontainerhelper icon indicating copy to clipboard operation
navcontainerhelper copied to clipboard

[Bug]: The GB artifacts aren't setup for gb localisation

Open nickgoddard777 opened this issue 3 months ago • 4 comments

BCContainerhelper version

6.1.7

Describe the issue

When creating a container using GB as the country on the GetArtifactUrl, the resultant container is not setup for UK. The Cronus licence is set to country United Sates (this is a mjor issue as there is a problem with our licence distirbutor and Microsoft not updating our Partner Agreement and our Dev licence has expired today). Also the User that is created as part of the New-BCContainer script is set to Language and Region = English (United States). We have some tests that are checking the import of dates and these are failing as BC doesn't reconise the date format.

Command or script used to produce the issue

$ContainerName = 'bc264no-lic'

$Auth = 'UserPassword'

$ArtifactUrl = Get-BcArtifactUrl -type 'Sandbox' -country 'gb' ` -select 'Weekly'

$splitArtifactUrl = $artifactUrl.split("/") $Version = $splitArtifactUrl[-2] $ImageName = ($Version.Split(".",4) | Select -Index 0,1) -join "."

$ContainerAlwaysPull = $false $enableSymbolLoading = $false $assignPremiumPlan = $true $includeTestToolkit = $true $includeTestLibrariesOnly = $false $includeTestFrameworkOnly = $false $includePerformanceToolkit = $true

$StartMs = Get-Date

New-BcContainer -accept_insiderEula -accept_eula -containerName $ContainerName -credential $ContainerCredential -auth $Auth -alwaysPull:$ContainerAlwaysPull -imageName $ImageName -addFontsFromPath '\localhost\m$\tools\fonts' -updateHosts -EnableTaskScheduler:$false -additionalParameters $ContainerAdditionalParameters -doNotExportObjectsToText -assignPremiumPlan:$assignPremiumPlan -includeTestToolkit:$includeTestToolkit -includeTestLibrariesOnly:$includeTestLibrariesOnly -includeTestFrameworkOnly:$includeTestFrameworkOnly -includePerformanceToolkit:$includePerformanceToolkit -Verbose -artifactUrl $ArtifactUrl # #-licenseFile $licenseFile

Full output of the command or script

"Initializing...", "Setting host.containerhelper.internal to 000.000.000.000 in container hosts file", "Starting Container", "Hostname is bc264no-lic", "PublicDnsName is bc264no-lic", "Using NavUserPassword Authentication", "Starting Local SQL Server", "WARNING: Waiting for service \u0027SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)\u0027 to ", "start...", "WARNING: Waiting for service \u0027SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)\u0027 to ", "start...", "Starting Internet Information Server", "Creating Self Signed Certificate", "Self Signed Certificate Thumbprint 30F625C23ABCF1AD0F79AF3CEC06D54E89BBDEEC", "DNS identity bc264no-lic", "Modifying Service Tier Config File with Instance Specific Settings", "Modifying Service Tier Config File with settings from environment variable", "Setting EnableTaskScheduler to False", "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", "Creating http download site", "Setting SA Password and enabling SA", "Creating admin as SQL User and add to sysadmin", "Creating SUPER user", "Assign Premium plan for ADMIN", "Enable PSRemoting and setup user for winrm", "Creating self-signed certificate for winrm", "Container IP Address: 000.000.000.000", "Container Hostname : bc264no-lic", "Container Dns Name : bc264no-lic", "Web Client : http://bc264no-lic/BC/", "Dev. Server : http://bc264no-lic", "Dev. ServerInstance : BC", "Setting bc264no-lic to 000.000.000.000 in host hosts file", "", "Files:", "http://bc264no-lic:8080/ALLanguage.vsix", "", "Container Total Physical Memory is 48.0Gb", "Container Free Physical Memory is 13.4Gb", "", "Initialization took 314 seconds", "Ready for connections!", "Initializing...", "Setting host.containerhelper.internal to 000.000.000.000 in container hosts file", "Restarting Container", "PublicDnsName unchanged", "Hostname is bc264no-lic", "PublicDnsName is bc264no-lic", "Using NavUserPassword Authentication", "Starting Local SQL Server", "WARNING: Waiting for service \u0027SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)\u0027 to ", "start...", "WARNING: Waiting for service \u0027SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)\u0027 to ", "start...", "Starting Internet Information Server", "Starting Service Tier", "Container IP Address: 000.000.000.000", "Container Hostname : bc264no-lic", "Container Dns Name : bc264no-lic", "Web Client : http://bc264no-lic/BC/", "Dev. Server : http://bc264no-lic", "Dev. ServerInstance : BC", "Setting bc264no-lic to 000.000.000.000 in host hosts file", "", "Files:", "http://bc264no-lic:8080/ALLanguage.vsix", "", "Container Total Physical Memory is 48.0Gb", "Container Free Physical Memory is 27.5Gb", "", "Initialization took 282 seconds", "Ready for connections!"

Additional information

This affecting both manually created Docker environments (although the user part I can get round by remmbering to go and change my settings) and our AL-Go pipelines (which I can't see how to change user settings)

Does this happen every time?

Yes

Did this used to work?

No

nickgoddard777 avatar Sep 08 '25 15:09 nickgoddard777

The Cronus licence is set to country United Sates (this is a mjor issue as there is a problem with our licence distirbutor and Microsoft not updating our Partner Agreement and our Dev licence has expired today).

Can you elaborate a bit on why it is a major issue that the Cronus license has United States set as its country? I believe we only produce one Cronus license and not one per country, so at the moment there is no such thing as a GB, DE, DK etc. Cronus License. There is only the US Cronus license.

aholstrup1 avatar Sep 09 '25 09:09 aholstrup1

Hi, When our AL-Go build pipeline is running, we are getting the below error. I assumed this is because the date being passed through is in uk format and not US format. I made that assumption as I had already had the issue with the user settings being set the the US and not UK and thought that this must be a similar issue.

In the current company the date you've entered is outside the allowed interval (this is determined by the filter '??11|??12|??01*|??02*', which is defined by the license file).**

Looking at the actual error, the test that is failing is just passing WorkDate, so I wonder if the Cronus licence has a restriction of what dates are acceptable and if the licence is old we might have gone past that time. I have just manually checked this and we can't enter todays date due to the Cronus licence.

This is an issue now because we are unable to renew our developer licence as there has been a major issue affecting quite a few partners between our SMB Provider and Microsoft, not renewing partner agreements which is outlined in this viva engage post

The other part of this issue, regarding the user that is created in the Container being set to US language and region, is a general issue as we need this to be UK, and I would have thought it being reasonable to expect the GB localized artifact to create UK users.

nickgoddard777 avatar Sep 09 '25 15:09 nickgoddard777

Got it! Yeah, unfortunately there is a date restriction on the Cronus license by design so there isn't much we can do about those failures. I believe only certain months of the year are allowed.

I'll see if I can find anything on the User thing you mentioned. Do you know if it used to give you a user with UK English as its language setting?

aholstrup1 avatar Sep 10 '25 05:09 aholstrup1

I don't think it ever has, no. Before we started using AL-Go it was a pain when you created a new container as you'd have to remember to change your settings. But no we are using automated pipelines oin AL-Go this is an issue as we can't change the users Region and Language

nickgoddard777 avatar Sep 10 '25 12:09 nickgoddard777