Closed egecov closed 5 months ago
Same Problem here, but only with current artifacts. If I validate against nextMajor, everything works fine.
it helps a lot if you mark the code as code (like I have done above) by adding
3 of these characters: ` before and after.
Same Problem here, but only with current artifacts.
Are you also running Windows Server 2016?
Same Problem here, but only with current artifacts.
Are you also running Windows Server 2016?
No, I am on Windows 10
Creating container for country de
BcContainerHelper is version 6.0.12
BcContainerHelper is running as administrator
HyperV is Enabled
UsePsSession is True
UsePwshForBc24 is True
Host is Microsoft Windows 10 Enterprise - 10.0.19045.4170
Docker Client Version is 20.10.21
Docker Server Version is 20.10.21
Removing Desktop shortcuts
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:ltsc2019-filesonly
Creating Container bcserver
Style: sandbox
Multitenant: Yes
Version: 23.5.16502.17953
Platform: 23.0.17926.0
Generic Tag: 1.0.2.17
Container OS Version: 10.0.17763.5576 (ltsc2019)
Host OS Version: 10.0.19045.4170 (22H2)
Using hyperv isolation
If I am validating against Current and working as administrator, I get the following errors (with end result "Success")
Creating container took 53 seconds
_____ _ _____ _____
| __ \ (_) /\ / ____| / ____|
| |__) | _ _ __ _ __ _ _ __ __ _ / \ _ __ _ __| (___ ___ _ _ _ __ ___ ___| | ___ _ __
| _ / | | | '_ \| '_ \| | '_ \ / _` | / /\ \ | '_ \| '_ \\___ \ / _ \| | | | '__/ __/ _ \ | / _ \| '_ \
| | \ \ |_| | | | | | | | | | | | (_| | / ____ \| |_) | |_) |___) | (_) | |_| | | | (__ __/ |____ (_) | |_) |
|_| \_\__,_|_| |_|_| |_|_|_| |_|\__, | /_/ \_\ .__/| .__/_____/ \___/ \__,_|_| \___\___|\_____\___/| .__/
__/ | | | | | | |
|___/ |_| |_| |_|
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Exception Script Stack Trace:
at <ScriptBlock>, <No file>: line 11
PowerShell Call Stack:
bei Invoke-ScriptInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\ContainerHandling\Invoke-ScriptInNavContainer.ps1: Zeile 87
bei Run-AlCops, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlCops.ps1: Zeile 140
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 477
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 456
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 399
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 363
bei Run-AlValidation, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 361
bei <ScriptBlock>, <Keine Datei>: Zeile 1
Container Free Physical Memory: 7.1Gb
Services in container bcserver:
- No services found
If I am validating against Current and working as normal user (no administrator rights) I get the following errors (with end result "Failure")
Creating container took 49 seconds
_____ _ _____ _____
| __ \ (_) /\ / ____| / ____|
| |__) | _ _ __ _ __ _ _ __ __ _ / \ _ __ _ __| (___ ___ _ _ _ __ ___ ___| | ___ _ __
| _ / | | | '_ \| '_ \| | '_ \ / _` | / /\ \ | '_ \| '_ \\___ \ / _ \| | | | '__/ __/ _ \ | / _ \| '_ \
| | \ \ |_| | | | | | | | | | | | (_| | / ____ \| |_) | |_) |___) | (_) | |_| | | | (__ __/ |____ (_) | |_) |
|_| \_\__,_|_| |_|_| |_|_|_| |_|\__, | /_/ \_\ .__/| .__/_____/ \___/ \__,_|_| \___\___|\_____\___/| .__/
__/ | | | | | | |
|___/ |_| |_| |_|
The 'Expand-Archive' command was found in the module 'Microsoft.PowerShell.Archive', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Archive'.
Exception Script Stack Trace:
at <ScriptBlock>, <No file>: line 5
PowerShell Call Stack:
bei Invoke-ScriptInBcContainer, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\ContainerHandling\Invoke-ScriptInNavContainer.ps1: Zeile 87
bei Run-AlCops, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlCops.ps1: Zeile 140
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 477
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 456
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 399
bei <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 363
bei Run-AlValidation, C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.12\AppHandling\Run-AlValidation.ps1: Zeile 361
bei <ScriptBlock>, <Keine Datei>: Zeile 1
Container Free Physical Memory: 7.1Gb
Services in container bcserver:
- No services found
Validatation against NextMajor works however with or without administration rights. Hope this helps...
The problem here is that it fails to find the latest supported runtime version of the business central version used. I will fix that. Validation continues though - it is just not validated that the runtime version in app.json is OK.
Hi, Thanks for your feedback! I've changed the parameter from -ValidateCurrent to validateNextMinor & validateNextMajor and all errors disappeared.
Hi, I've installed the latest version of the BCCOntainerHelper 6.0.12. I Wonder what is the reason for the error. Whether from the last BC Package version or it is a bug. Can You help me somehow?
Best regards, Evgeni. Thanks in advance!
When I Ran the command :
I have received this message :