HodorNV / ALOps

ALOps
59 stars 24 forks source link

App Publish - No published extensions match the specified parameter values. #703

Closed ptrk-tr closed 11 months ago

ptrk-tr commented 11 months ago

Describe the bug Since around the 10th of November we are running into a weird behavior with our Production Release Pipeline, where the pipeline runs into error in the ALOps App Publish step. The error is "No published extensions match the specified parameter values.". The pipeline contains 4 tasks which are all ALOps App Publish tasks to publish to our BC22.1 DE OnPrem environment. The first app gets published like expected but on the second app the pipeline fails with the aforementioned error.

Additional Information: The VM is running Windows Server 2022 Datacenter Azure Edition, a list of installed Windows Updates can be found in the screenshot section.

The VM running the Dev/Staging environments is running Windows Server 2019 Datacenter.

DevOps Agent:

Looking into the extension management page in BC shows that the second app has been published in the erroring run (see screenshot below) but looking into the pipeline log it's missing the entire *** Published App section.

I've also tried re-running the pipeline and disabling Publish steps 1,2 and 4 so only App 3 would get published but with the same error.

I've had to redact the company identifying information but I hope nothing of value was lost by doing that ;).

the used yaml please provide the yaml that you used. It helps you put the yaml like this:

steps:

- task: Hodor.hodor-alops.alopspublishtask.ALOpsAppPublish@1

  displayName: 'Publish BC BASE to PROD'

  inputs:

    nav_serverinstance: API

    nav_artifact_app_filter: '*<redacted name> BASE*.app'

    forcesync: true

steps:

- task: Hodor.hodor-alops.alopspublishtask.ALOpsAppPublish@1

  displayName: 'Publish ZEITWIRTSCHAFT to PROD'

  inputs:

    nav_serverinstance: API

    nav_artifact_app_filter: '*<redacted name> Zeitwirtschaft*.app'

steps:

- task: Hodor.hodor-alops.alopspublishtask.ALOpsAppPublish@1

  displayName: 'Publish SQL TOOLS to PROD'

  inputs:

    nav_serverinstance: API

    nav_artifact_app_filter: '*SQL Tools*.app'

    forcesync: true

steps:

- task: Hodor.hodor-alops.alopspublishtask.ALOpsAppPublish@1

  displayName: 'Publish BC API to PROD'

  inputs:

    nav_serverinstance: API

    nav_artifact_app_filter: '*<redacted name> API*.app'

the output (first app) Also the complete output is necessary for us to see what is going on. Also use backtics:

2023-11-23T09:57:19.3964164Z ##[section]Starting: Publish BC BASE to PROD
2023-11-23T09:57:19.4158512Z ==============================================================================
2023-11-23T09:57:19.4158866Z Task         : ALOps App Publish
2023-11-23T09:57:19.4159039Z Description  : Publish AL Extension to Business Central
2023-11-23T09:57:19.4159333Z Version      : 1.461.5079
2023-11-23T09:57:19.4159475Z Author       : Hodor
2023-11-23T09:57:19.4160543Z Help         : Publish Business Central extension to service tier.
2023-11-23T09:57:19.4160879Z ==============================================================================
2023-11-23T09:57:20.9499778Z *** Validate configuration
2023-11-23T09:57:21.2193898Z *** Task Inputs:
2023-11-23T09:57:21.2268177Z 
2023-11-23T09:57:21.2384501Z name                                                                                                              value
2023-11-23T09:57:21.2385893Z ----                                                                                                              -----
2023-11-23T09:57:21.2392647Z usedocker                                                                                                         False
2023-11-23T09:57:21.2393359Z fixed_tag                                                                                                              
2023-11-23T09:57:21.2394161Z installpublishedapps                                                                                               True
2023-11-23T09:57:21.2395000Z installaltesttool                                                                                                 False
2023-11-23T09:57:21.2395866Z install_al_app_names                                                                             Tests-TestLibraries...
2023-11-23T09:57:21.2396477Z strictappnames                                                                                                    False
2023-11-23T09:57:21.2397068Z nav_serverinstance                                                                                                  API
2023-11-23T09:57:21.2400465Z artifact_path                                                                                                          
2023-11-23T09:57:21.2401527Z nav_artifact_app_filter                                                                               *<redacted name> BASE*.app
2023-11-23T09:57:21.2402756Z skip_verification                                                                                                  True
2023-11-23T09:57:21.2403640Z forceinstall                                                                                                      False
2023-11-23T09:57:21.2404191Z forcesync                                                                                                          True
2023-11-23T09:57:21.2404885Z publish_scope                                                                                                    Global
2023-11-23T09:57:21.2405402Z tenant                                                                                                          default
2023-11-23T09:57:21.2405962Z batch_publish_folder                                                                                                   
2023-11-23T09:57:21.2406657Z publisherazureactivedirectorytenantid                                                                                  
2023-11-23T09:57:21.2407360Z blocksymbolsonly                                                                                                  False
2023-11-23T09:57:21.2408020Z 
2023-11-23T09:57:21.2427572Z 
2023-11-23T09:57:21.2440739Z 
2023-11-23T09:57:21.2639595Z *** For documentation, please visit   : https://www.alops.be/documentation
2023-11-23T09:57:21.2645978Z 
2023-11-23T09:57:21.5480936Z *** ALOps License:
2023-11-23T09:57:21.5504310Z   * Licensed To: <redacted name> (RepositoryPer5 License)
2023-11-23T09:57:21.5510498Z 
2023-11-23T09:57:21.5642009Z *** Importing required PS-Functions
2023-11-23T09:57:21.8213590Z *** Install AL TestTool: False
2023-11-23T09:57:21.8223557Z *** Working folder: C:\agent\_work\r1\a
2023-11-23T09:57:21.8233089Z *** Artifact folder: C:\agent\_work\r1\a
2023-11-23T09:57:21.8265229Z ***
2023-11-23T09:57:21.8342540Z *** Dynamic resolve App file.
2023-11-23T09:57:21.8352468Z *** Scanning [System.DefaultWorkingDirectory].
2023-11-23T09:57:21.8421914Z *** Scanning [System.ArtifactsDirectory].
2023-11-23T09:57:21.8490037Z *** Multiple App files found with filter [*<redacted name> BASE*.app].
2023-11-23T09:57:21.8559480Z   * C:\agent\_work\r1\a\_BC Prod Build\<redacted name> Apps\<redacted name> BASE_22.1.202347.6333.app
2023-11-23T09:57:21.8593088Z *** Resolved App File: [C:\agent\_work\r1\a\_BC Prod Build\<redacted name> Apps\<redacted name> BASE_22.1.202347.6333.app].
2023-11-23T09:57:21.8981045Z *** Import NAV/BC Management DLL's [False]
2023-11-23T09:57:21.9039828Z *** Loading assemblies for ServiceTier [API].
2023-11-23T09:57:22.2630971Z *** Loading assemblies from: [C:\program files\microsoft dynamics 365 business central\220\service]
2023-11-23T09:57:22.3409295Z *** Selected module: [C:\program files\microsoft dynamics 365 business central\220\service\Management\Microsoft.Dynamics.Nav.Management.dll]
2023-11-23T09:57:22.3420117Z *** Loading module: [C:\program files\microsoft dynamics 365 business central\220\service\Management\Microsoft.Dynamics.Nav.Management.dll]
2023-11-23T09:57:22.4409806Z *** Selected module: [C:\program files\microsoft dynamics 365 business central\220\service\Management\Microsoft.Dynamics.Nav.Apps.Management.dll]
2023-11-23T09:57:22.4420283Z *** Loading module: [C:\program files\microsoft dynamics 365 business central\220\service\Management\Microsoft.Dynamics.Nav.Apps.Management.dll]
2023-11-23T09:57:22.5346805Z 
2023-11-23T09:57:22.5387582Z **************************************
2023-11-23T09:57:22.5393244Z  * App File = [C:\agent\_work\r1\a\_BC Prod Build\<redacted name> Apps\<redacted name> BASE_22.1.202347.6333.app]
2023-11-23T09:57:22.5401241Z 
2023-11-23T09:57:23.2770705Z  * App.ID        = d806ff66-a90a-4489-8938-690ee9046f3f
2023-11-23T09:57:23.2800853Z  * App.Name      = <redacted name> BASE
2023-11-23T09:57:23.2825151Z  * App.Publisher = <redacted name>
2023-11-23T09:57:23.2850605Z  * App.Version   = 22.1.202347.6333
2023-11-23T09:57:24.3828639Z  => Publishing App '<redacted name> BASE v22.1.202347.6333'
2023-11-23T09:58:09.1682336Z *** Get Tenants
2023-11-23T09:58:10.5705677Z *** Tenant Info:
2023-11-23T09:58:10.5846731Z 
2023-11-23T09:58:10.5847134Z 
2023-11-23T09:58:10.5847557Z ServerInstance                         : MicrosoftDynamicsNavServer$API
2023-11-23T09:58:10.5848058Z DatabaseName                           : BC_Production
2023-11-23T09:58:10.5848523Z DatabaseServer                         : <redacted name>.database.windows.net
2023-11-23T09:58:10.5848955Z DatabaseUserName                       : ***
2023-11-23T09:58:10.5849363Z State                                  : Operational
2023-11-23T09:58:10.5849717Z DetailedState                          : 
2023-11-23T09:58:10.5855832Z DeletionState                          : Not deleted
2023-11-23T09:58:10.5856289Z IsInExclusiveAccessMode                : False
2023-11-23T09:58:10.5856730Z TenantDataVersion                      : 22.1.55890.56216
2023-11-23T09:58:10.5860645Z Compression                            : Unspecified
2023-11-23T09:58:10.5861451Z Id                                     : default
2023-11-23T09:58:10.5863072Z AlternateId                            : {}
2023-11-23T09:58:10.5863832Z ValidAudiences                         : {}
2023-11-23T09:58:10.5864307Z AllowAppDatabaseWrite                  : True
2023-11-23T09:58:10.5864812Z NasServicesEnabled                     : False
2023-11-23T09:58:10.5865611Z RunNasWithAdminRights                  : False
2023-11-23T09:58:10.5867320Z EncryptionProvider                     : LocalKeyFile
2023-11-23T09:58:10.5868376Z AzureKeyVaultSettings                  : 
2023-11-23T09:58:10.5874979Z DefaultCompany                         : <redacted name>
2023-11-23T09:58:10.5875756Z DefaultTimeZone                        : (UTC) Coordinated Universal Time
2023-11-23T09:58:10.5876513Z ExchangeAuthenticationMetadataLocation : https://outlook.office365.com/
2023-11-23T09:58:10.5877632Z AadTenantId                            : <redacted>
2023-11-23T09:58:10.5878220Z ApplicationInsightsConnectionString    : 
2023-11-23T09:58:10.5878689Z DisplayName                            : 
2023-11-23T09:58:10.5879123Z EnvironmentName                        : 
2023-11-23T09:58:10.5879582Z EnvironmentType                        : Production
2023-11-23T09:58:10.5880083Z EnvironmentSettings                    : 
2023-11-23T09:58:10.5880424Z 
2023-11-23T09:58:10.5880628Z 
2023-11-23T09:58:10.5880814Z 
2023-11-23T09:58:10.5881270Z 
2023-11-23T09:58:10.5881554Z *** Published App:
2023-11-23T09:58:10.5947801Z 
2023-11-23T09:58:10.5947964Z 
2023-11-23T09:58:10.5948315Z ServerInstance                        : MicrosoftDynamicsNavServer$API
2023-11-23T09:58:10.5949074Z ExtensionDataVersion                  : 22.1.202347.6330
2023-11-23T09:58:10.5949495Z IsInstalled                           : False
2023-11-23T09:58:10.5949835Z SyncState                             : NotSynced
2023-11-23T09:58:10.5950205Z NeedsUpgrade                          : False
2023-11-23T09:58:10.5950511Z IsPublished                           : True
2023-11-23T09:58:10.5950819Z Brief                                 : 
2023-11-23T09:58:10.5951091Z Description                           : 
2023-11-23T09:58:10.5951386Z CompatibilityId                       : 1.0.0.0
2023-11-23T09:58:10.5951710Z PrivacyStatement                      : 
2023-11-23T09:58:10.5951972Z Eula                                  : 
2023-11-23T09:58:10.5952237Z Help                                  : 
2023-11-23T09:58:10.5952502Z Url                                   : 
2023-11-23T09:58:10.5952760Z Logo                                  : 
2023-11-23T09:58:10.5953039Z DeveloperTenantId                     : 
2023-11-23T09:58:10.5953310Z ScreenShots                           : {}
2023-11-23T09:58:10.5953869Z Dependencies                          : {Continia OPplus, Continia Software, 22.1.1.256272, False, Application, 
2023-11-23T09:58:10.5954641Z                                         Microsoft, 22.1.0.0, False, DEXPRO Freeze, DEXPRO Solutions GmbH, 1.1.0.0, 
2023-11-23T09:58:10.5955658Z                                         False, Comsol Sanscreen, Comsol Unternehmenslösungen AG, 21.1.9.20, False...}
2023-11-23T09:58:10.5956206Z Capabilities                          : {}
2023-11-23T09:58:10.5956693Z PackageId                             : db961718-bd9f-4875-8c1f-bd96013d0e56
2023-11-23T09:58:10.5957108Z PublisherAzureActiveDirectoryTenantId : 
2023-11-23T09:58:10.5957572Z AppId                                 : d806ff66-a90a-4489-8938-690ee9046f3f
2023-11-23T09:58:10.5957982Z Name                                  : <redacted name> BASE
2023-11-23T09:58:10.5958527Z Publisher                             : <redacted name>
2023-11-23T09:58:10.5958978Z Version                               : 22.1.202347.6333
2023-11-23T09:58:10.5959344Z ExtensionType                         : ModernDev
2023-11-23T09:58:10.5959689Z Scope                                 : Global
2023-11-23T09:58:10.5959991Z Tenant                                : 
2023-11-23T09:58:10.5960173Z 
2023-11-23T09:58:10.5960427Z 
2023-11-23T09:58:10.5960474Z 
2023-11-23T09:58:10.5960538Z 
2023-11-23T09:58:10.5961810Z *** Sync Tenant default
2023-11-23T09:58:11.5129794Z *** Sync App [<redacted name> BASE] on tenant [default]
2023-11-23T09:58:22.1241406Z *** App Already installed, doing upgrade default
2023-11-23T09:58:22.1251046Z   * Current version: 22.1.202347.6330
2023-11-23T09:58:22.1260295Z   * New version: 22.1.202347.6333
2023-11-23T09:58:22.1304818Z *** Sync App [<redacted name> BASE] on tenant [default]
2023-11-23T09:58:23.4375652Z *** Tenant Dataupgrade default
2023-11-23T09:59:38.6339988Z  * UnPublishing Old App '<redacted name> BASE v22.1.202347.6330'.
2023-11-23T09:59:40.4994645Z 
2023-11-23T09:59:40.4995972Z **************************************
2023-11-23T09:59:40.4996283Z 
2023-11-23T09:59:40.5001634Z *** AL-Extension Published to ALOps Repository
2023-11-23T09:59:40.5004209Z *** Cleanup VSTS Environment: True
2023-11-23T09:59:41.5545888Z ##[section]Finishing: Publish BC BASE to PROD

the output (2nd app)

2023-11-23T09:59:41.5579017Z ##[section]Starting: Publish ZEITWIRTSCHAFT to PROD
2023-11-23T09:59:41.5721461Z ==============================================================================
2023-11-23T09:59:41.5721816Z Task         : ALOps App Publish
2023-11-23T09:59:41.5721987Z Description  : Publish AL Extension to Business Central
2023-11-23T09:59:41.5722274Z Version      : 1.461.5079
2023-11-23T09:59:41.5722425Z Author       : Hodor
2023-11-23T09:59:41.5722529Z Help         : Publish Business Central extension to service tier.
2023-11-23T09:59:41.5722836Z ==============================================================================
2023-11-23T09:59:42.8695007Z *** Validate configuration
2023-11-23T09:59:43.0673441Z *** Task Inputs:
2023-11-23T09:59:43.0729469Z 
2023-11-23T09:59:43.0839540Z name                                                                                                              value
2023-11-23T09:59:43.0840946Z ----                                                                                                              -----
2023-11-23T09:59:43.0841561Z usedocker                                                                                                         False
2023-11-23T09:59:43.0842321Z fixed_tag                                                                                                              
2023-11-23T09:59:43.0842917Z installpublishedapps                                                                                               True
2023-11-23T09:59:43.0843778Z installaltesttool                                                                                                 False
2023-11-23T09:59:43.0844908Z install_al_app_names                                                                             Tests-TestLibraries...
2023-11-23T09:59:43.0845880Z strictappnames                                                                                                    False
2023-11-23T09:59:43.0846514Z nav_serverinstance                                                                                                  API
2023-11-23T09:59:43.0847206Z artifact_path                                                                                                          
2023-11-23T09:59:43.0848258Z nav_artifact_app_filter                                                                     *<redacted name> Zeitwirtschaft*.app
2023-11-23T09:59:43.0848962Z skip_verification                                                                                                  True
2023-11-23T09:59:43.0849898Z forceinstall                                                                                                      False
2023-11-23T09:59:43.0850568Z forcesync                                                                                                         False
2023-11-23T09:59:43.0851394Z publish_scope                                                                                                    Global
2023-11-23T09:59:43.0852184Z tenant                                                                                                          default
2023-11-23T09:59:43.0853330Z batch_publish_folder                                                                                                   
2023-11-23T09:59:43.0854088Z publisherazureactivedirectorytenantid                                                                                  
2023-11-23T09:59:43.0855034Z blocksymbolsonly                                                                                                  False
2023-11-23T09:59:43.0855465Z 
2023-11-23T09:59:43.0876889Z 
2023-11-23T09:59:43.0890734Z 
2023-11-23T09:59:43.1794075Z *** For documentation, please visit   : https://www.alops.be/documentation
2023-11-23T09:59:43.1801291Z 
2023-11-23T09:59:43.4590192Z *** ALOps License:
2023-11-23T09:59:43.4614461Z   * Licensed To: <redacted name> (RepositoryPer5 License)
2023-11-23T09:59:43.4620821Z 
2023-11-23T09:59:43.4768324Z *** Importing required PS-Functions
2023-11-23T09:59:43.6065850Z *** Install AL TestTool: False
2023-11-23T09:59:43.6075844Z *** Working folder: C:\agent\_work\r1\a
2023-11-23T09:59:43.6085377Z *** Artifact folder: C:\agent\_work\r1\a
2023-11-23T09:59:43.6097656Z ***
2023-11-23T09:59:43.6181845Z *** Dynamic resolve App file.
2023-11-23T09:59:43.6190974Z *** Scanning [System.DefaultWorkingDirectory].
2023-11-23T09:59:43.6260396Z *** Scanning [System.ArtifactsDirectory].
2023-11-23T09:59:43.6328338Z *** Multiple App files found with filter [*<redacted name> Zeitwirtschaft*.app].
2023-11-23T09:59:43.6395577Z   * C:\agent\_work\r1\a\_BC Prod Build\<redacted name> Apps\<redacted name> Zeitwirtschaft_22.1.202347.6333.app
2023-11-23T09:59:43.6430418Z *** Resolved App File: [C:\agent\_work\r1\a\_BC Prod Build\<redacted name> Apps\<redacted name> Zeitwirtschaft_22.1.202347.6333.app].
2023-11-23T09:59:43.6675847Z *** Import NAV/BC Management DLL's [False]
2023-11-23T09:59:43.6727080Z *** Loading assemblies for ServiceTier [API].
2023-11-23T09:59:43.9812561Z *** Loading assemblies from: [C:\program files\microsoft dynamics 365 business central\220\service]
2023-11-23T09:59:44.0162430Z *** Selected module: [C:\program files\microsoft dynamics 365 business central\220\service\Management\Microsoft.Dynamics.Nav.Management.dll]
2023-11-23T09:59:44.0172393Z *** Loading module: [C:\program files\microsoft dynamics 365 business central\220\service\Management\Microsoft.Dynamics.Nav.Management.dll]
2023-11-23T09:59:44.0904057Z *** Selected module: [C:\program files\microsoft dynamics 365 business central\220\service\Management\Microsoft.Dynamics.Nav.Apps.Management.dll]
2023-11-23T09:59:44.0913606Z *** Loading module: [C:\program files\microsoft dynamics 365 business central\220\service\Management\Microsoft.Dynamics.Nav.Apps.Management.dll]
2023-11-23T09:59:44.1626010Z 
2023-11-23T09:59:44.1662178Z **************************************
2023-11-23T09:59:44.1672462Z  * App File = [C:\agent\_work\r1\a\_BC Prod Build\<redacted name> Apps\<redacted name> Zeitwirtschaft_22.1.202347.6333.app]
2023-11-23T09:59:44.1677811Z 
2023-11-23T09:59:44.4660049Z  * App.ID        = 922846ca-3c26-4f94-b64a-83f9968b7013
2023-11-23T09:59:44.4691067Z  * App.Name      = <redacted name> Zeitwirtschaft
2023-11-23T09:59:44.4720630Z  * App.Publisher = <redacted name>
2023-11-23T09:59:44.4737390Z  * App.Version   = 22.1.202347.6333
2023-11-23T09:59:44.8058964Z  => Publishing App '<redacted name> Zeitwirtschaft v22.1.202347.6333'
2023-11-23T09:59:47.8407230Z *** Get Tenants
2023-11-23T09:59:48.1539760Z *** Tenant Info:
2023-11-23T09:59:48.1654229Z 
2023-11-23T09:59:48.1658345Z 
2023-11-23T09:59:48.1659190Z ServerInstance                         : MicrosoftDynamicsNavServer$API
2023-11-23T09:59:48.1659811Z DatabaseName                           : BC_Production
2023-11-23T09:59:48.1660383Z DatabaseServer                         : <redacted name>.database.windows.net
2023-11-23T09:59:48.1660946Z DatabaseUserName                       : ***
2023-11-23T09:59:48.1661629Z State                                  : Operational
2023-11-23T09:59:48.1662326Z DetailedState                          : 
2023-11-23T09:59:48.1662759Z DeletionState                          : Not deleted
2023-11-23T09:59:48.1663131Z IsInExclusiveAccessMode                : False
2023-11-23T09:59:48.1663535Z TenantDataVersion                      : 22.1.55890.56216
2023-11-23T09:59:48.1663958Z Compression                            : Unspecified
2023-11-23T09:59:48.1664302Z Id                                     : default
2023-11-23T09:59:48.1664613Z AlternateId                            : {}
2023-11-23T09:59:48.1665143Z ValidAudiences                         : {}
2023-11-23T09:59:48.1665681Z AllowAppDatabaseWrite                  : True
2023-11-23T09:59:48.1666050Z NasServicesEnabled                     : False
2023-11-23T09:59:48.1666379Z RunNasWithAdminRights                  : False
2023-11-23T09:59:48.1666754Z EncryptionProvider                     : LocalKeyFile
2023-11-23T09:59:48.1668230Z AzureKeyVaultSettings                  : 
2023-11-23T09:59:48.1668596Z DefaultCompany                         : <redacted name>
2023-11-23T09:59:48.1670676Z DefaultTimeZone                        : (UTC) Coordinated Universal Time
2023-11-23T09:59:48.1671424Z ExchangeAuthenticationMetadataLocation : https://outlook.office365.com/
2023-11-23T09:59:48.1672830Z AadTenantId                            : <redacted>
2023-11-23T09:59:48.1673616Z ApplicationInsightsConnectionString    : 
2023-11-23T09:59:48.1673983Z DisplayName                            : 
2023-11-23T09:59:48.1674271Z EnvironmentName                        : 
2023-11-23T09:59:48.1674611Z EnvironmentType                        : Production
2023-11-23T09:59:48.1675108Z EnvironmentSettings                    : 
2023-11-23T09:59:48.1675305Z 
2023-11-23T09:59:48.1675351Z 
2023-11-23T09:59:48.1675395Z 
2023-11-23T09:59:48.1675453Z 
2023-11-23T09:59:48.1675601Z *** Published App:
2023-11-23T09:59:48.1689252Z 
2023-11-23T09:59:48.1698536Z *** Sync Tenant default
2023-11-23T09:59:48.2513736Z *** Sync App [<redacted name> Zeitwirtschaft] on tenant [default]
2023-11-23T09:59:48.3263481Z *** Install App [<redacted name> Zeitwirtschaft] on tenant [default]
2023-11-23T09:59:48.7120423Z ##[error]No published extensions match the specified parameter values.
2023-11-23T09:59:48.7697604Z ##[section]Finishing: Publish ZEITWIRTSCHAFT to PROD

Expected behavior I expected the pipeline to sync and install/upgrade the apps successfully.

Screenshots Extension Management in BC: grafik

Installed Windows Updates since the error occuring: grafik

Installed PowerShell Version: grafik

Additional context This only happens in this particular Release Pipeline, our Release Pipelines for Dev/Staging work normally. The pipeline hasn't been touched (only now, when I tried running it on another Agent), so no changes there and at that time no changes were published by the ALOps extension, so I'm really confused as how this error came out of the blue.

As this is impacting our Production environment and making it basically impossible to push updates to that environment this is a rather pressing problem, so please forgive me for directly mentioning you @waldo1001 @AdminHodor.

If I can provide any more information for you, I'll be glad to help where I can since this is probably a b**** to reproduce, if at all possible.

Best regards.

AdminHodor commented 11 months ago

Dear @ptrk-tr,

but looking into the pipeline log it's missing the entire *** Published App section. This give already some insight. So the App gets published, what we can see earlier in the log. Later in the process, we retrieve the app information from the NST, which in this case does NOT return any info.

What is printed in the "*** Published App section" is retrieved via the standard BC-Cmdlets.

$PublishedTenantApp = Get-NAVAppInfo -ServerInstance $ServerInstance `
                                                 -Name $AppInfo.Name `
                                                 -Publisher $AppInfo.Publisher `
                                                 -Version $AppInfo.Version `
                                                 -TenantSpecificProperties `
                                                 -Tenant $Tenant.Id

The variable "$AppInfo", parameters NAME,PUBLISHER and Version are fetched from the App.json (Manifest). The "Version" is a typed object, no trouble expected. The Name and Publisher are text fields and could have some encoding issues with special characters, although we would expect is this is an issue it would also manifest on your DEV/TEST environment.

Could you please check manually on the NST what BC return with the following command:

Get-NAVAppInfo -ServerInstance "API" -TenantSpecificProperties -Tenant "default"

Then check if the forementioned app is listed, and if the NAME and PUBLISHER mentioned in the printout match those found in the App.JSON.

Kind regards,

ptrk-tr commented 11 months ago

Hey, thanks for the fast response and sorry it took me a while to come back to this.

I built a temporary workaround by spinning up an NST on the Dev server (running on Windows Server 2019 OS) and hooking that up to the Production database, then used another Release Pipeline to publish packages (which worked fine). So I had to wait until most of the people left the office to publish new packages again, for some reason people get annoyed after a while when they constantly get kicked out because I keep publishing apps to the environment they work in). Anyway, results are in and Get-NAVAppInfo doesn't pick up the published but not installed app at all on the Windows Server 2022 Datacenter Azure Edition, it's missing from the list completely, while I can see it in the Extension Management page in BC.

PS C:\Users\AzAdmin> Get-NAVAppInfo -ServerInstance "API" -TenantSpecificProperties -Tenant "default" | Where-Object {$_.Name -like "*Zeitwirtschaft*"}

Id                     : 922846ca-3c26-4f94-b64a-83f9968b7013
Name                   : <name redacted> Zeitwirtschaft
Version                : 22.1.202347.6333
Publisher              : <name redacted>
ExtensionType          : ModernDev
Scope                  : Global
Tenant                 : 
Is Installed           : True
Extension Data Version : 22.1.202347.6333
Needs Upgrade          : False
Sync State             : Synced
Is Published           : True

PS C:\Users\AzAdmin>

Running the same command on the Dev server shows me both apps, the currently installed one with Version 6333 and the published but not installed version 6353:

PS C:\Windows\system32> Get-NAVAppInfo -ServerInstance "Production" -TenantSpecificProperties -Tenant "default" | Where-Object {$_.Name -like "*Zeitwirtschaft*"}

Id                     : 922846ca-3c26-4f94-b64a-83f9968b7013
Name                   : <name redacted> Zeitwirtschaft
Version                : 22.1.202347.6353
Publisher              : <name redacted>
ExtensionType          : ModernDev
Scope                  : Global
Tenant                 : 
Is Installed           : False
Extension Data Version : 22.1.202347.6333
Needs Upgrade          : False
Sync State             : NotSynced
Is Published           : True

Id                     : 922846ca-3c26-4f94-b64a-83f9968b7013
Name                   : <name redacted> Zeitwirtschaft
Version                : 22.1.202347.6333
Publisher              : <name redacted>
ExtensionType          : ModernDev
Scope                  : Global
Tenant                 : 
Is Installed           : True
Extension Data Version : 22.1.202347.6333
Needs Upgrade          : False
Sync State             : Synced
Is Published           : True

PS C:\Windows\system32> 

Best regards.

waldo1001 commented 11 months ago

Hi @ptrk-tr - is there anything else we can do you think? Or do we close this issue?

ptrk-tr commented 11 months ago

Hey @waldo1001,

as this seems more of a Microsoft/Windows Update issue than an ALOps one I'll close this issue for now.

In case you were able to repro this issue, maybe relaying it to Microsoft to investigate it might be something to think about.

As for now the (temporary) workaround does its job and I'll continue investigating when I get back to the office.

Thanks for the fast response!