EOS-Solutions / Gordon

Repository to manage Issues related to Gordon apps
https://eos-solutions.github.io/Gordon/
0 stars 0 forks source link

Wizard error -assignPremiumPlan #37

Closed Matteo-Montanari-EOS closed 4 months ago

Matteo-Montanari-EOS commented 4 months ago

Wizard image

image

create this script:

` $containerName = 'BC24-IT-RTM-PERF' $version = '24' $Country = 'it' $LicenseFile = 'C:\Licenses\EOSBCCURRENT4DEV.bclicense'

$credential = get-credential -Message 'insert your credential for the container'

$artifactUrl = Get-BCArtifactUrl -country $Country.ToLower() -type onprem -version $version -select Latest

New-BcContainer $containerName -artifactUrl $artifactUrl -alwaysPull -accept_eula -auth NavUserPassword -Credential $credential -licenseFile $LicenseFile -updateHosts -dns 8.8.8.8 -doNotExportObjectsToText -includeTestToolkit -includeTestLibrariesOnly
-assignPremiumPlan -shortcut None -accept_outdated

iex ". { $(irm https://raw.githubusercontent.com/EOS-Solutions/Scripts/master/Smeagol/install-labs.ps1 -Headers @{"Cache-Control" = "no-cache"}) }"

`

but executed raise this error:

`PS C:\windows\system32> $containerName = 'BC24-IT-RTM-PERF' $version = '24' $Country = 'it' $LicenseFile = 'C:\Licenses\EOSBCCURRENT4DEV.bclicense'

$credential = get-credential -Message 'insert your credential for the container'

$artifactUrl = Get-BCArtifactUrl -country $Country.ToLower() -type onprem -version $version -select Latest

Remove-BcContainer -containerName 'BC23-IT-CU6'

New-BcContainer $containerName -artifactUrl $artifactUrl -alwaysPull -accept_eula -auth NavUserPassword -Credential $credential -licenseFile $LicenseFile -updateHosts -dns 8.8.8.8 -doNotExportObjectsToText -includeTestToolkit -includeTestLibrariesOnly
-assignPremiumPlan -shortcut None -accept_outdated

iex ". { $(irm https://raw.githubusercontent.com/EOS-Solutions/Scripts/master/Smeagol/install-labs.ps1 -Headers @{"Cache-Control" = "no-cache"}) }"

BcContainerHelper version 6.0.15 Setting hostHelperFolder = d:\ProgramData\BcContainerHelper Setting bcartifactsCacheFolder = d:\bcartifacts.cache BC.HelperFunctions emits usage statistics telemetry to Microsoft Running on Windows, PowerShell 5.1.19041.4291

PS C:\windows\system32> $containerName = 'BC24-IT-RTM-PERF' $version = '24' $Country = 'it' $LicenseFile = 'C:\Licenses\EOSBCCURRENT4DEV.bclicense'

$credential = get-credential -Message 'insert your credential for the container'

$artifactUrl = Get-BCArtifactUrl -country $Country.ToLower() -type onprem -version $version -select Latest

Remove-BcContainer -containerName 'BC23-IT-CU6'

New-BcContainer $containerName -artifactUrl $artifactUrl -alwaysPull -accept_eula -auth NavUserPassword -Credential $credential -licenseFile $LicenseFile -updateHosts -dns 8.8.8.8 -doNotExportObjectsToText -includeTestToolkit -includeTestLibrariesOnly
-assignPremiumPlan -shortcut None -accept_outdated

iex ". { $(irm https://raw.githubusercontent.com/EOS-Solutions/Scripts/master/Smeagol/install-labs.ps1 -Headers @{"Cache-Control" = "no-cache"}) }"

BcContainerHelper version 6.0.15 Setting hostHelperFolder = d:\ProgramData\BcContainerHelper Setting bcartifactsCacheFolder = d:\bcartifacts.cache BC.HelperFunctions emits usage statistics telemetry to Microsoft Running on Windows, PowerShell 5.1.19041.4291 Removing Session BC23-IT-CU6 Removing container BC23-IT-CU6 Removing entries from hosts Removing BC23-IT-CU6 from container hosts file Removing BC23-IT-CU6-* from container hosts file Removing Desktop shortcuts Removing d:\ProgramData\BcContainerHelper\Extensions\BC23-IT-CU6 WARNING: Container name should not exceed 15 characters BcContainerHelper is version 6.0.15 BcContainerHelper is running as administrator HyperV is Enabled UsePsSession is True UsePwshForBc24 is True Host is Microsoft Windows 10 Pro - 10.0.19045.4291 Docker Client Version is 25.0.3 Docker Server Version is 25.0.3 Removing Desktop shortcuts Fetching all docker images Fetching all docker volumes Pulling image mcr.microsoft.com/businesscentral:ltsc2019 ltsc2019: Pulling from businesscentral Digest: sha256:b25e1506c6b5feb87d37ba07147453f95d74cebb1292d2b514c62173c9bc7130 Status: Image is up to date for mcr.microsoft.com/businesscentral:ltsc2019 mcr.microsoft.com/businesscentral:ltsc2019 Using image mcr.microsoft.com/businesscentral:ltsc2019 Creating Container BC24-IT-RTM-PERF Style: onprem Multitenant: No Version: 24.0.16410.18056 Platform: 24.0.18037.0 Generic Tag: 1.0.2.20 Container OS Version: 10.0.17763.5696 (ltsc2019) Host OS Version: 10.0.19045.4291 (22H2) Using hyperv isolation Using locale it-IT Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable) Using license file C:\Licenses\EOSBCCURRENT4DEV.bclicense Files in d:\ProgramData\BcContainerHelper\Extensions\BC24-IT-RTM-PERF\my:

Files: http://BC24-IT-RTM-PERF:8080/ALLanguage.vsix

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

Initialization took 50 seconds Ready for connections! Reading CustomSettings.config from BC24-IT-RTM-PERF Creating Desktop Shortcuts for BC24-IT-RTM-PERF Skipping app 'C:\Applications\TestFramework\TestLibraries\permissions mock\Microsoft_Permissions Mock.app' as it is already installed Skipping app 'C:\Applications\TestFramework\TestRunner\Microsoft_Test Runner.app' as it is already installed Publishing C:\ProgramData\BcContainerHelper\Extensions\BC24-IT-RTM-PERF\55aec207-4aa5-4728-b142-9d918a4bf77a\Microsoft_Any.app Synchronizing Any on tenant default Installing Any on tenant default App Microsoft_Any.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\BC24-IT-RTM-PERF\b0f1f85a-929b-4823-9bbd-ffc307759165\Microsoft_Library Assert.app Synchronizing Library Assert on tenant default Installing Library Assert on tenant default App Microsoft_Library Assert.app successfully published Skipping app 'C:\Applications\TestFramework\TestLibraries\permissions mock\Microsoft_Permissions Mock.app' as it is already installed Publishing C:\ProgramData\BcContainerHelper\Extensions\BC24-IT-RTM-PERF\9461b48b-e205-468e-b6d7-0f00277d0d79\Microsoft_Library Variable Storage.app Synchronizing Library Variable Storage on tenant default Installing Library Variable Storage on tenant default App Microsoft_Library Variable Storage.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\BC24-IT-RTM-PERF\b2fec28b-0816-456f-bd39-87ddcae38d65\Microsoft_System Application Test Library.a pp Synchronizing System Application Test Library on tenant default Installing System Application Test Library on tenant default App Microsoft_System Application Test Library.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\BC24-IT-RTM-PERF\33497ba8-51aa-42d0-8524-e4ba4cd5c971\Microsoft_Business Foundation Test Librarie s.app Synchronizing Business Foundation Test Libraries on tenant default Installing Business Foundation Test Libraries on tenant default App Microsoft_Business Foundation Test Libraries.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\BC24-IT-RTM-PERF\1c4abc7a-fce6-46a9-ae18-c1911daf034f\Microsoft_Tests-TestLibraries.app Synchronizing Tests-TestLibraries on tenant default Installing Tests-TestLibraries on tenant default App Microsoft_Tests-TestLibraries.app successfully published TestToolkit successfully imported Cleanup old dotnet core assemblies Container BC24-IT-RTM-PERF successfully created

Use: Get-BcContainerEventLog -containerName BC24-IT-RTM-PERF to retrieve a snapshot of the event log from the container Get-BcContainerDebugInfo -containerName BC24-IT-RTM-PERF to get debug information about the container Enter-BcContainer -containerName BC24-IT-RTM-PERF to open a PowerShell prompt inside the container Remove-BcContainer -containerName BC24-IT-RTM-PERF to remove the container again docker logs BC24-IT-RTM-PERF to retrieve information about URL's again -assignPremiumPlan : Termine '-assignPremiumPlan' non riconosciuto come nome di cmdlet, funzione, programma eseguibile o file script. Controllare l'ortografia del nome o verificare che il percorso sia incluso e corretto, quindi riprovare. In riga:25 car:3

AVVISO: Alcuni nomi di comandi importati dal modulo 'BcContainerHelper' includono verbi non approvati che possono renderli meno individuabili. Per trova re i comandi con verbi non approvati, eseguire di nuovo il comando Import-Module con il parametro Verbose. Per visualizzare l'elenco dei verbi approvati , digitare Get-Verb. Cmdlet Install-RemoteServiceInSession nella posizione 1 della pipeline dei comandi Specificare i valori per i seguenti parametri: ContainerName: `

Matteo-Montanari-EOS commented 4 months ago

BCcontainerHelper upgraded from version 6.0.15 to 6.0.17 but still crash

Matteo-Montanari-EOS commented 4 months ago

Partially resolved

Script generated by wizard (notice light blue parameter): image

Removed extra spaces after testlibrary parameters (not assignPremiumPlan is the same color): image

PremiumPlan bug is resolved. image It ask now for "ContainerName: "

After Copy-Pasting the same container name it ask again for Artifacts User Name (second time, I already write down my credentials)

image

Container Ready