microsoft / navcontainerhelper

Official Microsoft repository for BcContainerHelper, a PowerShell module, which makes it easier to work with Business Central Containers on Docker.
MIT License
382 stars 246 forks source link

New-BcContainer 'Sandbox' NextMajor. The license file is corrupt. #2734

Closed dkorinets closed 1 year ago

dkorinets commented 1 year ago

hi Freddy, Have an issue with my nextMajor pipeline.

"The license file is corrupt. Error Code: Unknown error." The dev license was generated today (13.10.22) for BC21. compatible with the current release and all other old BC releases.

$containerName = 'bc22-us' $auth = 'UserPassword' $navAdminUsername = "bc" $securePassword = convertto-securestring "bc" -asplaintext -force $credential = New-Object System.Management.Automation.PSCredential($navAdminUsername, $securePassword) $sasToken = "?sv=....3D" $artifactUrl = Get-BcArtifactUrl -country 'us' -type 'Sandbox' -select NextMajor -sasToken $sasToken $licenseFileUri = "C:\...\Scripts\5331246.flf" New-BcContainer -accept_eula -containerName $containerName -credential $credential -auth $auth -artifactUrl $artifactUrl -multitenant:$false -includeTestToolkit -includeTestLibrariesOnly -includePerformanceToolkit -assignPremiumPlan -licenseFile $licenseFileUri -memoryLimit 8G -includeAL -doNotExportObjectsToText -vsixFile (Get-LatestAlLanguageExtensionUrl) -updateHosts -EnableTaskScheduler:$false

`BcContainerHelper is version 4.0.5 BcContainerHelper is running as administrator Hyper-V is Enabled UsePsSession is True Host is Microsoft Windows 10 Enterprise - 1909 Docker Client Version is 20.10.17 Docker Server Version is 20.10.17 Removing Session bc22-us Removing container bc22-us Removing entries from hosts Removing bc22-us from container hosts file Removing bc22-us-* from container hosts file Removing Desktop shortcuts Removing C:\ProgramData\BcContainerHelper\Extensions\bc22-us Fetching all docker images Fetching all docker volumes Using image mcr.microsoft.com/businesscentral:10.0.18363.1556 Creating Container bc22-us Style: sandbox Multitenant: No Version: 22.0.47754.0 Platform: 22.0.47698.0 Generic Tag: 1.0.2.13 Container OS Version: 10.0.18363.1556 (1909) Host OS Version: 10.0.18363.2274 (1909) Using hyperv isolation Using locale en-US Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable) Downloading C:\ProgramData\BcContainerHelper\Extensions\bc22-us\Microsoft.VisualStudio.Services.VSIXPackage.vsix Using license file C:\Work\Sana\Dev\NavExtension\Scripts\5331246.flf Additional Parameters: --env customNavSettings=EnableTaskScheduler=False Files in C:\ProgramData\BcContainerHelper\Extensions\bc22-us\my:

freddydk commented 1 year ago

Could you email me your license file so that I can test it? freddyk at microsoft dot com

dkorinets commented 1 year ago

sent

freddydk commented 1 year ago

@dkorinets thanks, I can repro that - but only with the .flf file. The .bclicense file works. Please try using the .bclicense file instead of the .flf file.

I have asked the team whether this is as expected or whether the .flf also should work.

freddydk commented 1 year ago

Version 22 only supports .bclicense is the answer

dkorinets commented 1 year ago

I see, good to kwow. Thank you