Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run-AlValidation fails for BC25.1 with error App is using runtime version 14.1, latest supported runtime version is 14.0 #3766

Open
farabahar opened this issue Nov 21, 2024 · 2 comments
Assignees

Comments

@farabahar
Copy link

Describe the issue

  • Run-AlValidation fails for BC25.1 with error message "App is using runtime version 14.1, latest supported runtime version is 14.0". The only way to know the validation error is by publishing it to AppSource.

Scripts used to create container and cause the issue

Run-AlValidation -previousApps $PreviousAppDirs  -apps $AppDirs  -installApps $AppDependencyDirs  -affixes $Affixes -countries $Countries -validateNextMajor:$false -validateNextMinor:$false -validateCurrent:$true

Full output of scripts


 | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
 |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/

Container name                  bcserver
Credential                      admin/Qety1102
MemoryLimit                     8G
validateVersion                 
validateCurrent                 True
validateNextMinor               False
validateNextMajor               False
countries                       it
validateCountries               it
affixes                         LSC
supportedCountries              
ObsoleteTagMinAllowedMajorMinor 
vsixFile                        
Install Apps
- C:\Users\x\AppData\Local\Temp\btulfh25.gpw\new\xx-system-app\xx System App_25.1.0.0.app
- C:\Users\x\AppData\Local\Temp\btulfh25.gpw\new\xx-app\xxl_25.1.0.0.app
Previous Apps
- C:\Users\x\AppData\Local\Temp\btulfh25.gpw\previous\1\xx-system-app\xx System App_25.0.4.1372.app
- C:\Users\x\AppData\Local\Temp\btulfh25.gpw\previous\1\xx-app\xx app_25.0.10.1372.app
- C:\Users\x\AppData\Local\Temp\btulfh25.gpw\previous\1\xx-app-it\xx app_it_25.0.0.51.app
Apps
- C:\Users\x\AppData\Local\Temp\btulfh25.gpw\new\xx-app-it\xx app_it_25.1.0.0.app


Pulling mcr.microsoft.com/businesscentral:ltsc2022-filesonly

Pulling generic image took 0 seconds
  _____       _                      _                         _   _  __           _       
 |  __ \     | |                    (_)                       | | (_)/ _|         | |      
 | |  | | ___| |_ ___ _ __ _ __ ___  _ _ __   ___    __ _ _ __| |_ _| |_ __ _  ___| |_ ___ 
 | |  | |/ _ \ __/ _ \ '__| '_ ` _ \| | '_ \ / _ \  / _` | '__| __| |  _/ _` |/ __| __/ __|
 | |__| |  __/ |_  __/ |  | | | | | | | | | |  __/ | (_| | |  | |_| | || (_| | (__| |_\__ \
 |_____/ \___|\__\___|_|  |_| |_| |_|_|_| |_|\___|  \__,_|_|   \__|_|_| \__,_|\___|\__|___/
                                                                                           
Found https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/25.1.25873.26869/it
Using https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/25.1.25873.26869/it

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

Creating container for country it
BcContainerHelper is version 6.0.28
BcContainerHelper is running as administrator
HyperV is Enabled
Host is Microsoft Windows Server 2022 Datacenter Azure Edition - 10.0.20348.2849
UsePsSession is True
UsePwshForBc24 is True
UseWinRmSession is allow
UseSslForWinRmSession is True
Docker Client Version is 27.3.0
Docker Server Version is 27.3.0
Removing Desktop shortcuts
Downloading artifact /sandbox/25.1.25873.26869/it
Downloading C:\Users\TUHQBAMBOO\AppData\Local\Temp\98253f93-3374-4641-94a5-1f0e1c927f2a.zip
Unpacking artifact to tmp folder using Expand-Archive
Downloading platform artifact /sandbox/25.1.25873.26869/platform
Downloading C:\Users\TUHQBAMBOO\AppData\Local\Temp\c4610c52-3eb3-4d93-b514-1036d6b12670.zip
Unpacking artifact to tmp folder using Expand-Archive
Downloading Prerequisite Components
Downloading c:\bcartifacts.cache\sandbox\25.1.25873.26869\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
Downloading c:\bcartifacts.cache\sandbox\25.1.25873.26869\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
Fetching all docker images
Fetching all docker volumes
Using image mcr.microsoft.com/businesscentral:ltsc2022-filesonly
Creating Container bcserver
Style: sandbox
Multitenant: Yes
Version: 25.1.25873.26869
Platform: 25.0.26806.0
Generic Tag: 1.0.2.51
Container OS Version: 10.0.20348.2849 (ltsc2022)
Host OS Version: 10.0.20348.2849 (ltsc2022)
Host and container OS match, recommended isolation mode is process.
Using process isolation
Using locale it-IT
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Downloading C:\ProgramData\BcContainerHelper\Extensions\bcserver\Microsoft.VisualStudio.Services.VSIXPackage.vsix
Additional Parameters:
--expose 5986
--env customNavSettings=EnableTaskScheduler=True
Files in C:\ProgramData\BcContainerHelper\Extensions\bcserver\my:
- AdditionalOutput.ps1
- AdditionalSetup.ps1
- HelperFunctions.ps1
- MainLoop.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container bcserver from image mcr.microsoft.com/businesscentral:ltsc2022-filesonly
f11728bc3da00201f06887f24e7e8adb1d5ae02e80f437001b039756075d0b96
Waiting for container bcserver to be ready
Using artifactUrl https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/25.1.25873.26869/it
Using installer from C:\Run\240
Installing Business Central: multitenant=True, installOnly=False, filesOnly=True, includeTestToolkit=False, includeTestLibrariesOnly=False, includeTestFrameworkOnly=False, includePerformanceToolkit=False, appArtifactPath=c:\dl\sandbox\25.1.25873.26869\it, platformArtifactPath=c:\dl\sandbox\25.1.25873.26869\platform, databasePath=c:\dl\sandbox\25.1.25873.26869\it\BusinessCentral-IT.bak, licenseFilePath=c:\dl\sandbox\25.1.25873.26869\it\Cronus.bclicense, rebootContainer=True
Installing from artifacts
Copying Service Tier Files
c:\dl\sandbox\25.1.25873.26869\platform\ServiceTier\Program Files
c:\dl\sandbox\25.1.25873.26869\platform\ServiceTier\System64Folder
Copying Web Client Files
c:\dl\sandbox\25.1.25873.26869\platform\WebClient\Microsoft Dynamics NAV
Copying ModernDev Files
c:\dl\sandbox\25.1.25873.26869\platform
c:\dl\sandbox\25.1.25873.26869\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\25.1.25873.26869\it\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\25.1.25873.26869\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\25.1.25873.26869\it\Extensions
Copying Applications
C:\dl\sandbox\25.1.25873.26869\platform\Applications
Copying Applications.IT
C:\dl\sandbox\25.1.25873.26869\it\Applications.IT
Copying dependencies
Importing PowerShell Modules
Skipping restore of Cronus database
Modifying Business Central Service Tier Config File for Docker
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Installation took 17 seconds
Installation complete
Ready for connections!
Reading CustomSettings.config from bcserver
Cleanup old dotnet core assemblies

Creating container took 146 seconds
...
...
AL Validation finished in 270 seconds
 __      __   _ _     _       _   _               _____                _ _       
 \ \    / /  | (_)   | |     | | (_)             |  __ \              | | |      
  \ \  / /_ _| |_  __| | __ _| |_ _  ___  _ __   | |__) |___ ___ _   _| | |_ ___ 
   \ \/ / _` | | |/ _` |/ _` | __| |/ _ \| '_ \  |  _  // _ \ __| | | | | __/ __|
    \  / (_| | | | (_| | (_| | |_| | (_) | | | | | | \ \  __\__ \ |_| | | |_\__ \
     \/ \__,_|_|_|\__,_|\__,_|\__|_|\___/|_| |_| |_|  \_\___|___/\__,_|_|\__|___/

Unexpected error while validating app. Error is: App is using runtime version 14.1, latest supported runtime version is 14.0.
  _____                          ___      __   _ _     _       _   _               ______    _ _                
 |  __ \                   /\   | \ \    / /  | (_)   | |     | | (_)             |  ____|  (_) |               
 | |__) |   _ _ __ ______ /  \  | |\ \  / /_ _| |_  __| | __ _| |_ _  ___  _ __   | |__ __ _ _| |_   _ _ __ ___ 
 |  _  / | | | '_ \______/ /\ \ | | \ \/ / _` | | |/ _` |/ _` | __| |/ _ \| '_ \  |  __/ _` | | | | | | '__/ _ \
 | | \ \ |_| | | | |    / ____ \| |  \  / (_| | | | (_| | (_| | |_| | (_) | | | | | | | (_| | | | |_| | | |  __/
 |_|  \_\__,_|_| |_|   /_/    \_\_|   \/ \__,_|_|_|\__,_|\__,_|\__|_|\___/|_| |_| |_|  \__,_|_|_|\__,_|_|  \___|

Additional context

  • Happens only to the apps that has runtime version 14.1. The other apps that have runtime version 14.0 and below are working fine
  • Previously used bccontainerhelper version 6.0.20, updated to 6.0.28 and still facing the same error. Tried the pre-release version, received the same issue.
  • Tried adding parameter -vsixFile preview but still failing
@freddydk
Copy link
Contributor

So you added 14.1 to app.json because your app requires runtime 14.1?
Or because you have a dependency on BC 25.1?

@farabahar
Copy link
Author

So you added 14.1 to app.json because your app requires runtime 14.1? Or because you have a dependency on BC 25.1?

We have a dependency on BC 25.1. Hence, we updated our app.json to this:

...
    "platform": "25.0.0.0",
    "application": "25.1.0.0",
    "runtime": "14.1",
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants