Closed sh-aba closed 3 years ago
The problem is in the last step before removing the container - Removing the container is just the cleanup. It tries to download the installApps : https://Companybusinesscentralapps.blob.core.windows.net/Companycore/1-CompanySystemsInc._CompanyCore_17.3.1.0.app - which it cannot. Maybe you need a sastoken or like on that - it doesn't support any authentication in downloading.
You are right. Now I am getting this error. I think it is related to SASToken.
Removing container took 8 seconds
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.13-preview440\Misc\Copy-FileToNavContainer.ps1:34 char:13
Copy-Item -Path $localPath -Destination $tempFile
+ CategoryInfo : ObjectNotFound: (G:\DevOpsBuildA...ignCertPfxFile):String) [Copy-Item], ItemNotFoundExce
ption
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand
##[error]PowerShell exited with code '1'.
It is not related to the SAStoken. It looks more like the CodeSignCertPfxFile is wrongly specified,
Are you following the Hands On Lab here: https://aka.ms/cicdhol ?
Some part, yes I don't use CodeSignCertPfxFile Is it mandatory to use?
It looks like it has a value - it should be blank if not used.
alternatively - post the full output - then I can see parameters and much more info - and advice.
2021-06-10T18:28:51.6507089Z ##[section]Starting: Run Pipeline
2021-06-10T18:28:51.6695856Z ==============================================================================
2021-06-10T18:28:51.6696143Z Task : PowerShell
2021-06-10T18:28:51.6696376Z Description : Run a PowerShell script on Linux, macOS, or Windows
2021-06-10T18:28:51.6696599Z Version : 2.186.0
2021-06-10T18:28:51.6696799Z Author : Microsoft Corporation
2021-06-10T18:28:51.6697070Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2021-06-10T18:28:51.6697381Z ==============================================================================
2021-06-10T18:28:52.5412459Z Generating script.
2021-06-10T18:28:52.5454145Z Formatted command: . 'G:\DevOpsBuildAgent\_work\9\s\scripts\DevOps-Pipeline.ps1' -version "ci" -appBuild 461 -appRevision 0
2021-06-10T18:28:52.5783576Z ========================== Starting Command Output ===========================
2021-06-10T18:28:52.5986616Z ##[command]"C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'G:\DevOpsBuildAgent\_work\_temp\018a627f-23cc-4eb0-aebf-f47d14d6484e.ps1'"
2021-06-10T18:28:52.8973108Z
2021-06-10T18:28:52.8980422Z Id Name PSJobTypeName State HasMoreData Location Command
2021-06-10T18:28:52.8987078Z -- ---- ------------- ----- ----------- -------- -------
2021-06-10T18:28:52.8992888Z 1 eaa3bfd3-cc8... NotStarted False ...
2021-06-10T18:28:52.9886779Z G:\DevOpsBuildAgent\_work\9\s
2021-06-10T18:28:53.0621609Z Set artifact = bcartifacts.azureedge.net/sandbox/17.3.20469.20653/ca
2021-06-10T18:28:53.0666508Z Set pipelineName = Company Project-ci
2021-06-10T18:28:53.0703206Z Set containerName = Companyerpapp1-CompanyProject-ci
2021-06-10T18:28:53.0988236Z Set installApps = 'https://Companybusinesscentralapps.blob.core.windows.net/Companycore/1-CompanySystemsInc._CompanyCore_17.3.1.0.app?sp=r&st=2021-06-08T17:07:35Z&se=2021-06-09T01:07:35Z&spr=https&sv=2020-02-10&sr=b&sig=y00TGoYGNTvhSm5l21GviVfO0tPm6KFVjOl2bDBUExY%3D'
2021-06-10T18:28:53.1009388Z Set previousApps = ''
2021-06-10T18:28:53.1031279Z Set appSourceCopMandatoryAffixes = 'CompanyProject'
2021-06-10T18:28:53.1038965Z Set appSourceCopSupportedCountries = ''
2021-06-10T18:28:53.1060015Z Set appFolders = 'app,base'
2021-06-10T18:28:53.1081264Z Set testFolders = 'test'
2021-06-10T18:28:53.1103599Z Set memoryLimit = '6G'
2021-06-10T18:28:53.1125720Z Set additionalCountries = ''
2021-06-10T18:28:53.1133026Z Set genericImageName = ''
2021-06-10T18:28:53.1155562Z Set vaultNameForLocal = 'BuildVariables'
2021-06-10T18:28:53.1177558Z Set bcContainerHelperVersion = 'preview'
2021-06-10T18:28:53.1286876Z Set installTestFramework = True
2021-06-10T18:28:53.1320302Z Set installTestLibraries = True
2021-06-10T18:28:53.1342930Z Set installPerformanceToolkit = False
2021-06-10T18:28:53.1365540Z Set enableCodeCop = False
2021-06-10T18:28:53.1392537Z Set enableAppSourceCop = False
2021-06-10T18:28:53.1419179Z Set enablePerTenantExtensionCop = False
2021-06-10T18:28:53.1441185Z Set enableUICop = False
2021-06-10T18:28:53.1468839Z Set doNotSignApps = False
2021-06-10T18:28:53.1491669Z Set doNotRunTests = False
2021-06-10T18:28:53.1514181Z Set cacheImage = True
2021-06-10T18:28:53.1537335Z Set CreateRuntimePackages = True
2021-06-10T18:28:54.4070759Z BcContainerHelper version 2.0.13-preview440
2021-06-10T18:28:57.7980102Z Determining artifacts to use
2021-06-10T18:28:58.7026952Z _____ _
2021-06-10T18:28:58.7032547Z | __ \ | |
2021-06-10T18:28:58.7037955Z | |__) |_ _ _ __ __ _ _ __ ___ ___| |_ ___ _ __ ___
2021-06-10T18:28:58.7042969Z | ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
2021-06-10T18:28:58.7048358Z | | | (_| | | | (_| | | | | | | __/ |_ __/ | \__ \
2021-06-10T18:28:58.7053886Z |_| \__,_|_| \__,_|_| |_| |_|\___|\__\___|_| |___/
2021-06-10T18:28:58.7056864Z
2021-06-10T18:28:58.7062413Z Pipeline name Company Project-ci
2021-06-10T18:28:58.7067403Z Container name Companyerpapp1-CompanyProject-ci
2021-06-10T18:28:58.7073029Z Image name bcimage
2021-06-10T18:28:58.7078298Z ArtifactUrl https://bcartifacts.azureedge.net/sandbox/17.3.20469.20653/ca
2021-06-10T18:28:58.7085018Z SasToken Not Specified
2021-06-10T18:28:58.7094459Z BcAuthContext Not Specified
2021-06-10T18:28:58.7102836Z Environment
2021-06-10T18:28:58.7113147Z ReUseContainer False
2021-06-10T18:28:58.7123820Z KeepContainer False
2021-06-10T18:28:58.7273735Z Credential admin/Tycu1697
2021-06-10T18:28:58.7655297Z MemoryLimit 6G
2021-06-10T18:28:58.7664666Z Enable Task Scheduler False
2021-06-10T18:28:58.7675394Z Assign Premium Plan False
2021-06-10T18:28:58.7685904Z Install Test Runner False
2021-06-10T18:28:58.7696155Z Install Test Framework True
2021-06-10T18:28:58.7706760Z Install Test Libraries True
2021-06-10T18:28:58.7716939Z Install Perf. Toolkit False
2021-06-10T18:28:58.7727311Z CopySymbolsFromContainer False
2021-06-10T18:28:58.7737364Z enableCodeCop False
2021-06-10T18:28:58.7747205Z enableAppSourceCop False
2021-06-10T18:28:58.7757131Z enableUICop False
2021-06-10T18:28:58.7767075Z enablePerTenantExtensionCop False
2021-06-10T18:28:58.7777018Z escapeFromCops False
2021-06-10T18:28:58.7786930Z useDefaultAppSourceRuleSet False
2021-06-10T18:28:58.7793880Z rulesetFile
2021-06-10T18:28:58.7803811Z azureDevOps False
2021-06-10T18:28:58.7814342Z License file Specified
2021-06-10T18:28:58.7821678Z CodeSignCertPfxFile Not specified
2021-06-10T18:28:58.7832055Z TestResultsFile G:\DevOpsBuildAgent\_work\9\s\TestResults.xml
2021-06-10T18:28:58.7841168Z TestResultsFormat JUnit
2021-06-10T18:28:58.7868273Z AdditionalCountries
2021-06-10T18:28:58.7878079Z PackagesFolder G:\DevOpsBuildAgent\_work\9\s\.packages
2021-06-10T18:28:58.7887922Z OutputFolder G:\DevOpsBuildAgent\_work\9\s\.output
2021-06-10T18:28:58.7897899Z BuildArtifactFolder G:\DevOpsBuildAgent\_work\9\a
2021-06-10T18:28:58.7907719Z CreateRuntimePackages True
2021-06-10T18:28:58.7917473Z AppBuild 461
2021-06-10T18:28:58.7927506Z AppRevision 0
2021-06-10T18:28:58.7932711Z Install Apps
2021-06-10T18:28:58.8017101Z - https://Companybusinesscentralapps.blob.core.windows.net/Companycore/1-CompanySystemsInc._CompanyCore_17.3.1.0.app?sp=r&st=2021-06-08T17:07:35Z&se=2021-06-09T01:07:35Z&spr=https&sv=2020-02-10&sr=b&sig=y00TGoYGNTvhSm5l21GviVfO0tPm6KFVjOl2bDBUExY%3D
2021-06-10T18:28:58.8022049Z Install Test Apps
2021-06-10T18:28:58.8027726Z - None
2021-06-10T18:28:58.8033033Z Previous Apps
2021-06-10T18:28:58.8037893Z - None
2021-06-10T18:28:58.8043203Z Application folders
2021-06-10T18:28:58.8059471Z - G:\DevOpsBuildAgent\_work\9\s\app
2021-06-10T18:28:58.8064847Z Test application folders
2021-06-10T18:28:58.8080982Z - G:\DevOpsBuildAgent\_work\9\s\test
2021-06-10T18:28:58.8325519Z
2021-06-10T18:28:58.8330930Z _____ _ _ _ _ _
2021-06-10T18:28:58.8336227Z | __ \ | | (_) (_) (_)
2021-06-10T18:28:58.8341459Z | |__) | _| | |_ _ __ __ _ __ _ ___ _ __ ___ _ __ _ ___ _ _ __ ___ __ _ __ _ ___
2021-06-10T18:28:58.8346439Z | ___/ | | | | | | '_ \ / _` | / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \
2021-06-10T18:28:58.8351500Z | | | |_| | | | | | | | (_| | | (_| | __/ | | | __/ | | | (__ | | | | | | | (_| | (_| | __/
2021-06-10T18:28:58.8356402Z |_| \__,_|_|_|_|_| |_|\__, | \__, |\___|_| |_|\___|_| |_|\___| |_|_| |_| |_|\__,_|\__, |\___|
2021-06-10T18:28:58.8361306Z __/ | __/ | __/ |
2021-06-10T18:28:58.8366066Z |___/ |___/ |___/
2021-06-10T18:28:58.8368295Z
2021-06-10T18:29:01.9186670Z Pulling mcr.microsoft.com/businesscentral:10.0.14393.4402
2021-06-10T18:49:09.4142485Z
2021-06-10T18:49:09.4148136Z Pulling generic image took 1211 seconds
2021-06-10T18:49:09.4396266Z
2021-06-10T18:49:09.4402761Z _____ _ _ _ _
2021-06-10T18:49:09.4409028Z / ____| | | (_) | | (_)
2021-06-10T18:49:09.4415016Z | | _ __ ___ __ _| |_ _ _ __ __ _ ___ ___ _ __ | |_ __ _ _ _ __ ___ _ __
2021-06-10T18:49:09.4420874Z | | | '__/ _ \/ _` | __| | '_ \ / _` | / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2021-06-10T18:49:09.4426058Z | |____| | | __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | | __/ |
2021-06-10T18:49:09.4430929Z \_____|_| \___|\__,_|\__|_|_| |_|\__, | \___\___/|_| |_|\__\__,_|_|_| |_|\___|_|
2021-06-10T18:49:09.4436072Z __/ |
2021-06-10T18:49:09.4440835Z |___/
2021-06-10T18:49:09.4443429Z
2021-06-10T18:49:10.1154948Z WARNING: Container name should not exceed 15 characters
2021-06-10T18:49:10.7912691Z BcContainerHelper is version 2.0.13-preview440
2021-06-10T18:49:10.7917475Z BcContainerHelper is running as administrator
2021-06-10T18:49:10.7933388Z Host is Microsoft Windows Server 2016 Datacenter - ltsc2016
2021-06-10T18:49:11.0552003Z Docker Client Version is 19.03.12
2021-06-10T18:49:11.0570160Z Docker Server Version is 19.03.12
2021-06-10T18:49:11.7035341Z Fetching all docker images
2021-06-10T18:49:12.0391410Z Fetching all docker volumes
2021-06-10T18:49:12.2867301Z ArtifactUrl and ImageName specified
2021-06-10T18:49:12.7918272Z Image bcimage:sandbox-17.3.20469.20653-ca-mt already exists
2021-06-10T18:49:13.2417674Z Image bcimage:sandbox-17.3.20469.20653-ca-mt was build for OS Version 10.0.14393.4350, should be 10.0.14393.4402
2021-06-10T18:49:13.2437418Z Building multitenant image bcimage:sandbox-17.3.20469.20653-ca-mt based on mcr.microsoft.com/businesscentral:10.0.14393.4402 with https://bcartifacts.azureedge.net/sandbox/17.3.20469.20653/ca
2021-06-10T18:49:13.2451137Z Pulling latest image mcr.microsoft.com/businesscentral:10.0.14393.4402
2021-06-10T18:49:13.7493346Z 10.0.14393.4402: Pulling from businesscentral
2021-06-10T18:49:14.0081679Z Generic Tag: 1.0.1.7
2021-06-10T18:49:14.2612803Z Container OS Version: 10.0.14393.4402 (ltsc2016)
2021-06-10T18:49:14.2617787Z Host OS Version: 10.0.14393.4402 (ltsc2016)
2021-06-10T18:49:14.2634321Z Using process isolation
2021-06-10T18:49:14.2736747Z Using license file ***
2021-06-10T18:49:14.2847746Z Downloading c:\bcartifacts.cache\3cl51dct.vgz\my\license.flf
2021-06-10T18:49:14.7081473Z Files in c:\bcartifacts.cache\3cl51dct.vgz\my:
2021-06-10T18:49:14.7199091Z - license.flf
2021-06-10T18:49:14.7231542Z Copying Platform Artifacts
2021-06-10T18:49:31.0018101Z Copying Database
2021-06-10T18:49:32.5119639Z Copying Licensefile
2021-06-10T18:49:32.5324070Z Copying ConfigurationPackages
2021-06-10T18:49:32.5656802Z Copying Extensions
2021-06-10T18:49:33.2868771Z Copying Applications.CA
2021-06-10T18:49:34.3465830Z Untagged: bcimage:sandbox-17.3.20469.20653-ca-mt
2021-06-10T18:49:34.3473353Z Deleted: sha256:4daef76a416071f5c511904e53bc932e9657d8e67bce2c8786c5f3c2f87b25cc
2021-06-10T18:49:34.3480402Z Deleted: sha256:00f710e6f9eba736a8b190f5a39948577261cb7ad479e98c39e6a8cfd74dc4c7
2021-06-10T18:49:34.3500323Z c:\bcartifacts.cache\3cl51dct.vgz
2021-06-10T18:49:59.4684541Z Sending build context to Docker daemon 1.912GB
2021-06-10T18:49:59.4687749Z
2021-06-10T18:49:59.4929886Z Step 1/6 : FROM mcr.microsoft.com/businesscentral:10.0.14393.4402
2021-06-10T18:49:59.4935712Z ---> 4a1e6f5f7ace
2021-06-10T18:49:59.4941558Z Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=Y artifactUrl=https://bcartifacts.azureedge.net/sandbox/17.3.20469.20653/ca filesOnly=False
2021-06-10T18:50:01.3189857Z ---> Running in 8c0d9ebb1ccf
2021-06-10T18:50:09.5340044Z Removing intermediate container 8c0d9ebb1ccf
2021-06-10T18:50:09.5347111Z ---> 82dbf56a611a
2021-06-10T18:50:09.5352865Z Step 3/6 : COPY my /run/
2021-06-10T18:50:15.2537729Z ---> ecdd20e5d5d3
2021-06-10T18:50:15.2544452Z Step 4/6 : COPY NAVDVD /NAVDVD/
2021-06-10T19:01:00.0460568Z ---> e9d4704a90f4
2021-06-10T19:01:00.0467163Z Step 5/6 : RUN \Run\start.ps1 -installOnly -multitenant
2021-06-10T19:01:02.2381329Z ---> Running in ae643f7136a5
2021-06-10T19:03:26.8328308Z Using installer from C:\Run\150-new
2021-06-10T19:03:27.1606040Z Installing Business Central
2021-06-10T19:03:27.1704160Z Installing from DVD
2021-06-10T19:03:27.2847176Z Starting Local SQL Server
2021-06-10T19:03:44.9997890Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
2021-06-10T19:03:45.0003969Z start...
2021-06-10T19:03:47.0082722Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
2021-06-10T19:03:47.0088959Z start...
2021-06-10T19:03:49.0174321Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
2021-06-10T19:03:49.0179322Z start...
2021-06-10T19:03:51.0353308Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
2021-06-10T19:03:51.0358110Z start...
2021-06-10T19:03:53.0353959Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
2021-06-10T19:03:53.0359624Z start...
2021-06-10T19:03:55.0446214Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
2021-06-10T19:03:55.0452971Z start...
2021-06-10T19:03:57.0529111Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
2021-06-10T19:03:57.0535079Z start...
2021-06-10T19:03:59.0618511Z Starting Internet Information Server
2021-06-10T19:03:59.7998477Z Copying Service Tier Files
2021-06-10T19:03:59.8273371Z C:\NAVDVD\ServiceTier\Program Files
2021-06-10T19:04:05.2653794Z C:\NAVDVD\ServiceTier\System64Folder
2021-06-10T19:04:05.3274566Z Copying PowerShell Scripts
2021-06-10T19:04:05.3280719Z C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration
2021-06-10T19:04:05.4732554Z C:\NAVDVD\WindowsPowerShellScripts\WebSearch
2021-06-10T19:04:11.4277058Z Copying dependencies
2021-06-10T19:04:12.0520813Z Copying ReportBuilder
2021-06-10T19:04:12.1263470Z Importing PowerShell Modules
2021-06-10T19:04:12.6423204Z Determining Database Collation
2021-06-10T19:04:40.1296070Z Restoring CRONUS Demo Database
2021-06-10T19:05:46.9298540Z Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
2021-06-10T19:05:50.5557860Z Exporting Application to CRONUS
2021-06-10T19:09:53.0679109Z Removing Application from tenant
2021-06-10T19:10:01.6126864Z Modifying Business Central Service Tier Config File for Docker
2021-06-10T19:10:01.7604925Z Creating Business Central Service Tier
2021-06-10T19:10:01.9431117Z Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2021-06-10T19:10:02.7266080Z Copying Web Client Files
2021-06-10T19:10:02.7272924Z C:\NAVDVD\WebClient\Microsoft Dynamics NAV
2021-06-10T19:10:02.7279069Z Copying Client Files
2021-06-10T19:10:02.7284432Z C:\NAVDVD\LegacyDlls\program files\Microsoft Dynamics NAV
2021-06-10T19:10:02.7290007Z C:\NAVDVD\LegacyDlls\program files\Microsoft Dynamics NAV
2021-06-10T19:10:02.7295720Z C:\NAVDVD\LegacyDlls\systemFolder
2021-06-10T19:10:02.7301069Z Copying ModernDev Files
2021-06-10T19:10:02.7306627Z C:\NAVDVD
2021-06-10T19:10:02.7312252Z C:\NAVDVD\ModernDev\program files\Microsoft Dynamics NAV
2021-06-10T19:10:02.7317707Z Copying additional files
2021-06-10T19:10:02.7322892Z Copying ConfigurationPackages
2021-06-10T19:10:02.7328149Z C:\NAVDVD\ConfigurationPackages
2021-06-10T19:10:02.7333667Z Copying Test Assemblies
2021-06-10T19:10:02.7338989Z C:\NAVDVD\Test Assemblies
2021-06-10T19:10:02.7343921Z Copying Extensions
2021-06-10T19:10:02.7349511Z C:\NAVDVD\Extensions
2021-06-10T19:10:02.7354581Z Copying Applications
2021-06-10T19:10:02.7359349Z C:\NAVDVD\Applications
2021-06-10T19:10:02.7364460Z Copying Applications.CA
2021-06-10T19:10:02.7369731Z C:\NAVDVD\Applications.CA
2021-06-10T19:10:02.7374865Z Starting Business Central Service Tier
2021-06-10T19:11:48.4448573Z Importing CRONUS license file
2021-06-10T19:11:51.9915674Z Copying Database on localhost\SQLEXPRESS from tenant to default
2021-06-10T19:11:52.2130726Z Taking database tenant offline
2021-06-10T19:11:53.8511059Z Copying database files
2021-06-10T19:12:22.7358048Z Attaching files as new Database default
2021-06-10T19:12:24.9617444Z Putting database tenant back online
2021-06-10T19:12:25.6915947Z Mounting tenant database
2021-06-10T19:12:25.7188617Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2021-06-10T19:14:14.7268243Z Sync'ing Tenant
2021-06-10T19:14:19.6412170Z Tenant is Operational
2021-06-10T19:14:19.6424085Z Stopping Business Central Service Tier
2021-06-10T19:14:19.9088295Z Installation took 653 seconds
2021-06-10T19:14:19.9095668Z Installation complete
2021-06-10T19:28:56.0550434Z Removing intermediate container ae643f7136a5
2021-06-10T19:28:56.0556927Z ---> 0f8184a8cbaf
2021-06-10T19:28:56.0563413Z Step 6/6 : LABEL legal="http://go.microsoft.com/fwlink/?LinkId=837447" created="202106101849" nav="" cu="" multitenant="Y" country="CA" version="17.3.20469.20653" platform="17.0.20458.20517"
2021-06-10T19:28:56.8264230Z ---> Running in 5efe416639c0
2021-06-10T19:29:00.7122023Z Removing intermediate container 5efe416639c0
2021-06-10T19:29:00.7129212Z ---> 873a33313744
2021-06-10T19:29:03.5230815Z Successfully built 873a33313744
2021-06-10T19:29:03.6000576Z Successfully tagged bcimage:sandbox-17.3.20469.20653-ca-mt
2021-06-10T19:29:03.6134874Z Building image took 2390 seconds
2021-06-10T19:29:04.4478268Z Using image bcimage:sandbox-17.3.20469.20653-ca-mt
2021-06-10T19:29:04.7269351Z Creating Container Companyerpapp1-CompanyProject-ci
2021-06-10T19:29:04.7397012Z Version: 17.3.20469.20653-CA
2021-06-10T19:29:04.7402750Z Style: sandbox
2021-06-10T19:29:04.7407393Z Multitenant: Yes
2021-06-10T19:29:04.7424491Z Platform: 17.0.20458.20517
2021-06-10T19:29:04.7429997Z Generic Tag: 1.0.1.7
2021-06-10T19:29:04.7441714Z Container OS Version: 10.0.14393.4402 (ltsc2016)
2021-06-10T19:29:04.7447549Z Host OS Version: 10.0.14393.4402 (ltsc2016)
2021-06-10T19:29:04.7471416Z Using process isolation
2021-06-10T19:29:04.7506163Z Using locale en-CA
2021-06-10T19:29:04.7520981Z Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
2021-06-10T19:29:04.7552064Z Using license file https://Companyerpstorage.blob.core.windows.net/licenses/7195957-BC.flf
2021-06-10T19:29:04.7564806Z Downloading C:\ProgramData\BcContainerHelper\Extensions\Companyerpapp1-CompanyProject-ci\my\license.flf
2021-06-10T19:29:05.2656902Z Additional Parameters:
2021-06-10T19:29:05.2737277Z --volume "G:\DevOpsBuildAgent\_work\9\s:c:\sources"
2021-06-10T19:29:05.2742916Z --env customNavSettings=EnableTaskScheduler=False
2021-06-10T19:29:05.2748034Z Files in C:\ProgramData\BcContainerHelper\Extensions\Companyerpapp1-CompanyProject-ci\my:
2021-06-10T19:29:05.2823419Z - AdditionalOutput.ps1
2021-06-10T19:29:05.2829063Z - license.flf
2021-06-10T19:29:05.2836804Z - MainLoop.ps1
2021-06-10T19:29:05.2842086Z - SetupVariables.ps1
2021-06-10T19:29:05.2848675Z - updatehosts.ps1
2021-06-10T19:29:05.2854283Z Creating container Companyerpapp1-CompanyProject-ci from image bcimage:sandbox-17.3.20469.20653-ca-mt
2021-06-10T19:29:06.0602837Z db4e5c5637855d8873536582a92d0ebba53b7064fd6f81f5e44554ab23daa8fa
2021-06-10T19:29:28.2734068Z Waiting for container Companyerpapp1-CompanyProject-ci to be ready
2021-06-10T19:30:27.7613295Z Adding CompanyERPAPP1-CompanyT to hosts file
2021-06-10T19:30:30.2816915Z Initializing...
2021-06-10T19:30:30.2823323Z Setting host.containerhelper.internal to 172.30.0.1 in container hosts file
2021-06-10T19:30:30.2829595Z Starting Container
2021-06-10T19:30:30.2835490Z Hostname is Companyerpapp1-CompanyProject-ci
2021-06-10T19:30:32.7936319Z PublicDnsName is Companyerpapp1-CompanyProject-ci
2021-06-10T19:30:32.7942321Z Using NavUserPassword Authentication
2021-06-10T19:30:40.5843423Z Starting Local SQL Server
2021-06-10T19:30:40.5849381Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
2021-06-10T19:30:43.0751782Z start...
2021-06-10T19:30:43.0757477Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
2021-06-10T19:30:44.3167947Z start...
2021-06-10T19:30:44.3173780Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
2021-06-10T19:30:46.8014372Z start...
2021-06-10T19:30:46.8019850Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
2021-06-10T19:30:48.0547292Z start...
2021-06-10T19:30:48.0553668Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
2021-06-10T19:30:50.5389451Z start...
2021-06-10T19:30:50.5393983Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
2021-06-10T19:30:53.0425493Z start...
2021-06-10T19:30:53.0431311Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
2021-06-10T19:30:53.0436279Z start...
2021-06-10T19:31:08.4812348Z Starting Internet Information Server
2021-06-10T19:31:16.2761996Z Creating Self Signed Certificate
2021-06-10T19:31:16.2767059Z Self Signed Certificate Thumbprint 155355724755B7243858EFCA0AC0EA401CF4B2A0
2021-06-10T19:31:16.2772005Z Modifying Service Tier Config File with Instance Specific Settings
2021-06-10T19:31:16.2776856Z Modifying Service Tier Config File with settings from environment variable
2021-06-10T19:31:20.0498703Z Setting EnableTaskScheduler to False
2021-06-10T19:33:05.2258822Z Starting Service Tier
2021-06-10T19:33:06.4738931Z Registering event sources
2021-06-10T19:33:58.8827319Z Creating DotNetCore Web Server Instance
2021-06-10T19:33:58.8833097Z Enabling Financials User Experience
2021-06-10T19:33:58.8838414Z Enabling rewrite rule: Don't rewrite system files
2021-06-10T19:33:58.8843416Z Enabling rewrite rule: Already have tenant specified
2021-06-10T19:33:58.8848214Z Enabling rewrite rule: Hostname (without port) to tenant
2021-06-10T19:33:58.8853063Z Using license file 'c:\run\my\license.flf'
2021-06-10T19:34:22.1852041Z Import License
2021-06-10T19:34:22.1858120Z Dismounting Tenant
2021-06-10T19:34:22.1864036Z Mounting Tenant
2021-06-10T19:35:19.4475927Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2021-06-10T19:35:23.2349265Z Sync'ing Tenant
2021-06-10T19:35:23.2354074Z Tenant is Operational
2021-06-10T19:35:29.7787682Z Creating http download site
2021-06-10T19:35:29.7793859Z Setting SA Password and enabling SA
2021-06-10T19:35:31.0355732Z Creating admin as SQL User and add to sysadmin
2021-06-10T19:35:45.4799837Z Creating SUPER user
2021-06-10T19:35:45.4805103Z Container IP Address: 172.30.0.61
2021-06-10T19:35:45.4810438Z Container Hostname : Companyerpapp1-CompanyProject-ci
2021-06-10T19:35:45.4815727Z Container Dns Name : Companyerpapp1-CompanyProject-ci
2021-06-10T19:35:45.4820487Z Web Client : http://Companyerpapp1-CompanyProject-ci/BC/?tenant=default
2021-06-10T19:35:45.4825857Z Dev. Server : http://Companyerpapp1-CompanyProject-ci
2021-06-10T19:35:45.4831604Z Dev. ServerInstance : BC
2021-06-10T19:35:45.4837195Z Dev. Server Tenant : default
2021-06-10T19:35:45.4842764Z Setting Companyerpapp1-CompanyProject-ci to 172.30.0.61 in host hosts file
2021-06-10T19:35:45.4848154Z Setting Companyerpapp1-CompanyProject-ci-default to 172.30.0.61 in host hosts file
2021-06-10T19:35:46.7357210Z Setting Companyerpapp1-CompanyProject-ci-default to 172.30.0.61 in container hosts file
2021-06-10T19:35:46.7359685Z
2021-06-10T19:35:46.7365569Z Files:
2021-06-10T19:35:46.7371827Z http://Companyerpapp1-CompanyProject-ci:8080/ALLanguage.vsix
2021-06-10T19:35:46.7374385Z
2021-06-10T19:35:46.7379394Z Container Total Physical Memory is 64.0Gb
2021-06-10T19:35:46.7384176Z Container Free Physical Memory is 8.1Gb
2021-06-10T19:35:46.7386513Z
2021-06-10T19:35:46.7391569Z Initialization took 318 seconds
2021-06-10T19:35:46.7396624Z Ready for connections!
2021-06-10T19:35:46.7401796Z Reading CustomSettings.config from Companyerpapp1-CompanyProject-ci
2021-06-10T19:35:53.1984023Z Creating Desktop Shortcuts for Companyerpapp1-CompanyProject-ci
2021-06-10T19:35:53.3710148Z Container Companyerpapp1-CompanyProject-ci successfully created
2021-06-10T19:35:53.3714350Z
2021-06-10T19:35:53.3720899Z Use:
2021-06-10T19:35:53.3728219Z Get-BcContainerEventLog -containerName Companyerpapp1-CompanyProject-ci to retrieve a snapshot of the event log from the container
2021-06-10T19:35:53.3738197Z Get-BcContainerDebugInfo -containerName Companyerpapp1-CompanyProject-ci to get debug information about the container
2021-06-10T19:35:53.3748992Z Enter-BcContainer -containerName Companyerpapp1-CompanyProject-ci to open a PowerShell prompt inside the container
2021-06-10T19:35:53.3758749Z Remove-BcContainer -containerName Companyerpapp1-CompanyProject-ci to remove the container again
2021-06-10T19:35:53.3768704Z docker logs Companyerpapp1-CompanyProject-ci to retrieve information about URL's again
2021-06-10T19:35:53.3965878Z
2021-06-10T19:35:53.3972074Z Creating container took 2804 seconds
2021-06-10T19:35:53.3975182Z
2021-06-10T19:35:53.3980875Z _____ _ _ _ _
2021-06-10T19:35:53.3986066Z |_ _| | | | | (_)
2021-06-10T19:35:53.3991286Z | | _ __ ___| |_ __ _| | |_ _ __ __ _ __ _ _ __ _ __ ___
2021-06-10T19:35:53.3996423Z | | | '_ \/ __| __/ _` | | | | '_ \ / _` | / _` | '_ \| '_ \/ __|
2021-06-10T19:35:53.4001873Z _| |_| | | \__ \ |_ (_| | | | | | | | (_| | | (_| | |_) | |_) \__ \
2021-06-10T19:35:53.4007153Z |_____|_| |_|___/\__\__,_|_|_|_|_| |_|\__, | \__,_| .__/| .__/|___/
2021-06-10T19:35:53.4012425Z __/ | | | | |
2021-06-10T19:35:53.4017877Z |___/ |_| |_|
2021-06-10T19:35:53.4020470Z
2021-06-10T19:35:53.6761311Z Downloading C:\Users\user\AppData\Local\Temp\4f33059d-5681-40fd-b369-d11bd0c56f59
2021-06-10T19:35:53.8485026Z
2021-06-10T19:35:53.8491768Z _____ _ _____ _ _
2021-06-10T19:35:53.8497498Z | __ \ (_) / ____| | | (_)
2021-06-10T19:35:53.8503149Z | |__) |___ _ __ ___ _____ ___ _ __ __ _ | | ___ _ __ | |_ __ _ _ _ __ ___ _ __
2021-06-10T19:35:53.8508509Z | _ // _ \ '_ ` _ \ / _ \ \ / / | '_ \ / _` | | | / _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2021-06-10T19:35:53.8513780Z | | \ \ __/ | | | | | (_) \ V /| | | | | (_| | | |____ (_) | | | | |_ (_| | | | | | __/ |
2021-06-10T19:35:53.8519320Z |_| \_\___|_| |_| |_|\___/ \_/ |_|_| |_|\__, | \_____\___/|_| |_|\__\__,_|_|_| |_|\___|_|
2021-06-10T19:35:53.8524776Z __/ |
2021-06-10T19:35:53.8530208Z |___/
2021-06-10T19:35:53.8532903Z
2021-06-10T19:35:55.3724464Z Removing container Companyerpapp1-CompanyProject-ci
2021-06-10T19:36:00.4182111Z Removing Companyerpapp1-CompanyProject-ci from container hosts file
2021-06-10T19:36:00.4687166Z Removing Companyerpapp1-CompanyProject-ci-* from container hosts file
2021-06-10T19:36:00.4949363Z Removing C:\ProgramData\BcContainerHelper\Extensions\Companyerpapp1-CompanyProject-ci
2021-06-10T19:36:00.5369409Z
2021-06-10T19:36:00.5375505Z Removing container took 7 seconds
2021-06-10T19:36:00.6983038Z ##[error]Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (403) Forbidden."
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.13-preview440\Misc\Download-File.ps1:54 char:9
+ (New-Object TimeoutWebClient -ArgumentList (1000*$timeout)).D ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : WebException
2021-06-10T19:36:00.7021016Z ##[error]PowerShell exited with code '1'.
2021-06-10T19:36:00.7412704Z ##[section]Finishing: Run Pipeline
I make related variables of CodeSignCertPfxFile. but not working
The first error was a download error. Then you fixed that and got a codesign error Now you get a download error again - something is wrong in your installApps.
I have two option in Azure, 1-file URL and 2- Blob SAS Url. I tested both and error not fixed. Is there any parameter that I missed?
Try the URL in a browser. The URL in the output above has an expiry date set to: se=2021-06-09T01:07:35Z (which is in the past). If the URL works in a browser (without authentication), it should also work in installApps. The problem is local - we have a very large number of pipelines, who are doing this every night.
Yes . in browser it works without authentication. An now it passed previous error. But stuck in new one.
Publish Test Results View raw log
Starting: Publish Test Results
==============================================================================
Task : Publish Test Results
Description : Publish test results to Azure Pipelines
Version : 2.180.0
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/test/publish-test-results
==============================================================================
"C:\Program Files\dotnet\dotnet.exe" --version
3.1.201
G:\DevOpsBuildAgent\_work\_tasks\PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1\2.180.0\modules\TestResultsPublisher.exe @G:\DevOpsBuildAgent\_work\_temp\3954c900-cb1d-11eb-bad3-7f2384b877ab.txt
No build level attachments to publish.
Result Attachments will be stored in LogStore
Run Attachments will be stored in LogStore
Publishing test results to test run '112'.
TestResults To Publish 26, Test run id:112
Test results publishing 26, remaining: 0. Test run id: 112
Published Test Run : https://dev.azure.com/nicerp/Concept%20Development/_TestManagement/Runs?runId=112&_a=runCharts
##[error]There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.
Async Command Start: PublishTestResultsToEvidenceStore
Async Command End: PublishTestResultsToEvidenceStore
Finishing: Publish Test Results
Please post the full output, and please mark the text with "Insert Code" as I have done with your text above. It is hard to see whether this is just a test failure or what
For comparison, this is a successful test result publishing task:
Starting: Publish Test Results
==============================================================================
Task : Publish Test Results
Description : Publish test results to Azure Pipelines
Version : 2.180.0
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/test/publish-test-results
==============================================================================
"C:\Program Files\dotnet\dotnet.exe" --version
5.0.300
D:\a\_tasks\PublishTestResults_0b0f01ed-7dde-43ff-9cbb-e48954daf9b1\2.180.0\modules\TestResultsPublisher.exe @D:\a\_temp\e4d70890-c444-11eb-b13f-e728d6eaf0fb.txt
No build level attachments to publish.
Result Attachments will be stored in LogStore
Run Attachments will be stored in LogStore
Publishing test results to test run '1012942'.
TestResults To Publish 1, Test run id:1012942
Test results publishing 1, remaining: 0. Test run id: 1012942
Published Test Run : https://dev.azure.com/businesscentralapps/HelloWorld/_TestManagement/Runs?runId=1012942&_a=runCharts
Async Command Start: PublishTestResultsToEvidenceStore
Async Command End: PublishTestResultsToEvidenceStore
Finishing: Publish Test Results
In your case, it says that there are test failures and due to that, it fails your build (which seems like the right approach) If you look in the YAML, it says:
- task: PublishTestResults@2
displayName: 'Publish Test Results'
condition: and(succeeded(),ne(variables['TestResults'],''))
inputs:
testResultsFormat: JUnit
testResultsFiles: '$(testResults)'
failTaskOnFailedTests: true
In the sample helloworld repo. You can set failTaskOnFailedTests to false if you like, or you can fix your test failures.
Thanks Freddy for your great help.
I am running pipeline for an sample app that needs to download dependency from Azure storage. I am usin Windows Server 2019 as VM. In Removing Container Step I am getting this error:
Removing container took 6 seconds
[error]Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (404) Not Found."
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.13-preview440\Misc\Download-File.ps1:54 char:9
Scripts used to create pipeline and cause the issue