microsoft / navcontainerhelper

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

Run-AlValidation failing due to signed app being seen as unsigned app #3194

Closed kpipic closed 1 year ago

kpipic commented 1 year ago

Describe the issue Run-AlValidation failing due to signed app being seen as unsigned app

Scripts used to create container and cause the issue

Run-AlValidation -installApps @($installApps) -previousApps @($previousApps) -apps @( $appFile ) -validateCurrent -countries "hr" -affixes "eve" -supportedCountries "hr" -failOnError -throwOnError

Full output of scripts

1 errors found in NavBiz d.o.o._NavBiz Personal Protective Equipment_22.0.20230926.104523.app on https://bcartifacts.azureedge.net/sandbox/22.5.59966.60789/hr:
NavBiz d.o.o._NavBiz Personal Protective Equipment_22.0.20230926.104523.app is not signed, result is UnknownError

  _____                          ___      __   _ _     _       _   _               ______    _ _                
 |  __ \                   /\   | \ \    / /  | (_)   | |     | | (_)             |  ____|  (_) |               
 | |__) |   _ _ __ ______ /  \  | |\ \  / /_ _| |_  __| | __ _| |_ _  ___  _ __   | |__ __ _ _| |_   _ _ __ ___ 
 |  _  / | | | '_ \______/ /\ \ | | \ \/ / _` | | |/ _` |/ _` | __| |/ _ \| '_ \  |  __/ _` | | | | | | '__/ _ \
 | | \ \ |_| | | | |    / ____ \| |  \  / (_| | | | (_| | (_| | |_| | (_) | | | | | | | (_| | | | |_| | | |  __/
 |_|  \_\__,_|_| |_|   /_/    \_\_|   \/ \__,_|_|_|\__,_|\__,_|\__|_|\___/|_| |_| |_|  \__,_|_|_|\__,_|_|  \___|

Run-AlValidation Telemetry Correlation Id: c2452383-8353-4806-a9f1-d026fe25f21d
1 errors found in NavBiz d.o.o._NavBiz Personal Protective Equipment_22.0.20230926.104523.app on https://bcartifacts.az/
ureedge.net/sandbox/22.5.59966.60789/hr:
NavBiz d.o.o._NavBiz Personal Protective Equipment_22.0.20230926.104523.app is not signed, result is UnknownError
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\5.0.6\AppHandling\Run-AlValidation.ps1:580 char:5
+     throw ($validationResult -join "`n")
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (1 errors found ...s UnknownError
:String) [], RuntimeException
    + FullyQualifiedErrorId : 1 errors found in NavBiz d.o.o._NavBiz Personal Protective Equipment_22.0.20230926.10452 
   3.app on https://bcartifacts.azureedge.net/sandbox/22.5.59966.60789/hr:
NavBiz d.o.o._NavBiz Personal Protective Equipment_22.0.20230926.104523.app is not signed, result is UnknownError
...

Screenshots image

image

Additional context image image

freddydk commented 1 year ago

This was fixed yesterday in the latest version (5.0.7 preview)

freddydk commented 1 year ago

The reason is the same as #3190 - missing a dependency in the container. 5.0.7 preview has the fix - will ship this to prod today or tomorrow.

kpipic commented 1 year ago

It works with:

Install-Module BcContainerHelper -force -allowPrerelease

Thanks!