microsoft / AL-Go

The plug-and-play DevOps solution for Business Central app development on GitHub
MIT License
293 stars 125 forks source link

[Bug]: CI/CD action stalls #1284

Closed tscottjendev closed 2 weeks ago

tscottjendev commented 2 weeks ago

AL-Go version

6.0

Describe the issue

CI/CD build run for 6 hours and then is cancelled by GitHub. This only started this week. It appears to "stall" on the creating of the container.

I have included the log for one of these instances. We have 3 that have failed and none have succeeded this week.

We are working on pull requests into a feature branch and the CI/CD into the feature branch fails.

Expected behavior

Our CI/CD builds normally complete in ~30 minutes, would expect similar results now.

Steps to reproduce

Simply start the CI/CD action.

Additional context (logs, screenshots, etc.)

Complete log attached, here is the relevant output from the container creation.

2024-10-29T09:46:47.0352669Z    _____                _   _                _____            _        _
2024-10-29T09:46:47.0355091Z   / ____|              | | (_)              / ____|          | |      (_)
2024-10-29T09:46:47.0356870Z  | |     _ __ ___  __ _| |_ _ _ __   __ _  | |     ___  _ __ | |_ __ _ _ _ __   ___ _ __
2024-10-29T09:46:47.0358225Z  | |    | '__/ _ \/ _` | __| | '_ \ / _` | | |    / _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2024-10-29T09:46:47.0359503Z  | |____| | |  __/ (_| | |_| | | | | (_| | | |___| (_) | | | | || (_| | | | | |  __/ |
2024-10-29T09:46:47.0361863Z   \_____|_|  \___|\__,_|\__|_|_| |_|\__, |  \_____\___/|_| |_|\__\__,_|_|_| |_|\___|_|
2024-10-29T09:46:47.0363032Z                                      __/ |
2024-10-29T09:46:47.0363847Z                                     |___/
2024-10-29T09:46:47.0364426Z 
2024-10-29T09:46:47.6459497Z Creaing docker container
2024-10-29T09:46:47.6460249Z WARNING: Container name should not exceed 15 characters
2024-10-29T09:46:47.6667473Z BcContainerHelper is version 6.0.26
2024-10-29T09:46:47.6674751Z BcContainerHelper is running as administrator
2024-10-29T09:46:53.3559581Z HyperV is Enabled
2024-10-29T09:46:53.3582865Z Host is Microsoft Windows Server 2022 Datacenter - 10.0.20348.2762
2024-10-29T09:46:53.3607289Z UsePsSession is True
2024-10-29T09:46:53.3630249Z UsePwshForBc24 is True
2024-10-29T09:46:53.3639906Z UseWinRmSession is allow
2024-10-29T09:46:53.3663161Z UseSslForWinRmSession is True
2024-10-29T09:46:53.4843075Z Docker Client Version is 26.1.3
2024-10-29T09:46:53.4854525Z Docker Server Version is 26.1.3
2024-10-29T09:46:53.5816720Z Removing Desktop shortcuts
2024-10-29T09:46:53.8395353Z Fetching all docker images
2024-10-29T09:46:53.9134613Z Fetching all docker volumes
2024-10-29T09:46:54.0125375Z Using image mcr.microsoft.com/businesscentral:ltsc2022-filesonly
2024-10-29T09:46:54.2447563Z Creating Container bcJenworks11571120922
2024-10-29T09:46:54.2454075Z Style: sandbox
2024-10-29T09:46:54.2463387Z Multitenant: Yes
2024-10-29T09:46:54.2472452Z Version: 25.0.23364.26020
2024-10-29T09:46:54.2481564Z Platform: 25.0.25980.0
2024-10-29T09:46:54.2493761Z Generic Tag: 1.0.2.50
2024-10-29T09:46:54.2540615Z Container OS Version: 10.0.20348.2762 (ltsc2022)
2024-10-29T09:46:54.2550138Z Host OS Version: 10.0.20348.2762 (ltsc2022)
2024-10-29T09:46:54.2804888Z Host and container OS match, recommended isolation mode is process.
2024-10-29T09:46:54.2808350Z Using process isolation
2024-10-29T09:46:54.2890559Z Using locale en-GB
2024-10-29T09:46:54.2892239Z Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
2024-10-29T09:46:54.3272621Z Additional Parameters:
2024-10-29T09:46:54.3284197Z --volume "D:\a\jenworks\jenworks\Jenworks:c:\sources"
2024-10-29T09:46:54.3291137Z --volume "D:\a\jenworks\jenworks:c:\shared"
2024-10-29T09:46:54.3299311Z --expose 5986
2024-10-29T09:46:54.3308690Z --env customNavSettings=EnableTaskScheduler=False
2024-10-29T09:46:54.3316466Z Files in C:\ProgramData\BcContainerHelper\Extensions\bcJenworks11571120922\my:
2024-10-29T09:46:54.3348954Z - AdditionalOutput.ps1
2024-10-29T09:46:54.3357932Z - AdditionalSetup.ps1
2024-10-29T09:46:54.3366787Z - HelperFunctions.ps1
2024-10-29T09:46:54.3375752Z - MainLoop.ps1
2024-10-29T09:46:54.3384417Z - SetupVariables.ps1
2024-10-29T09:46:54.3393629Z - updatehosts.ps1
2024-10-29T09:46:54.3403042Z Creating container bcJenworks11571120922 from image mcr.microsoft.com/businesscentral:ltsc2022-filesonly
2024-10-29T09:46:55.5111702Z 7895b93f205160772dd6ae427893ecb9aad3b3bdbf1f666a5b8c7d07daa3c430
2024-10-29T09:47:27.0088608Z Waiting for container bcJenworks11571120922 to be ready
2024-10-29T09:48:26.3732321Z Adding BCJENWORKS11571 to hosts file
2024-10-29T09:48:31.9843266Z Using artifactUrl https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/25.0.23364.26020/gb
2024-10-29T09:48:31.9845189Z Using installer from C:\Run\240
2024-10-29T09:48:33.0285867Z Installing Business Central: multitenant=True, installOnly=False, filesOnly=True, includeTestToolkit=False, includeTestLibrariesOnly=False, includeTestFrameworkOnly=False, includePerformanceToolkit=False, appArtifactPath=c:\dl\sandbox\25.0.23364.26020\gb, platformArtifactPath=c:\dl\sandbox\25.0.23364.26020\platform, databasePath=c:\dl\sandbox\25.0.23364.26020\gb\BusinessCentral-GB.bak, licenseFilePath=c:\dl\sandbox\25.0.23364.26020\gb\Cronus.bclicense, rebootContainer=True
2024-10-29T09:48:33.0288908Z Installing from artifacts
2024-10-29T09:48:33.0289271Z Copying Service Tier Files
2024-10-29T09:48:59.4506112Z c:\dl\sandbox\25.0.23364.26020\platform\ServiceTier\Program Files
2024-10-29T09:48:59.4507647Z c:\dl\sandbox\25.0.23364.26020\platform\ServiceTier\System64Folder
2024-10-29T09:48:59.4508815Z Copying Web Client Files
2024-10-29T09:48:59.4511417Z c:\dl\sandbox\25.0.23364.26020\platform\WebClient\Microsoft Dynamics NAV
2024-10-29T09:48:59.4512328Z Copying ModernDev Files
2024-10-29T09:48:59.4512825Z c:\dl\sandbox\25.0.23364.26020\platform
2024-10-29T09:48:59.4514416Z c:\dl\sandbox\25.0.23364.26020\platform\ModernDev\program files\Microsoft Dynamics NAV
2024-10-29T09:48:59.4515673Z Copying additional files
2024-10-29T09:48:59.4516944Z Copying ConfigurationPackages
2024-10-29T09:48:59.4517881Z C:\dl\sandbox\25.0.23364.26020\gb\ConfigurationPackages
2024-10-29T09:48:59.4518642Z Copying Test Assemblies
2024-10-29T09:48:59.4519298Z C:\dl\sandbox\25.0.23364.26020\platform\Test Assemblies
2024-10-29T09:48:59.4519941Z Copying Extensions
2024-10-29T09:48:59.4520435Z C:\dl\sandbox\25.0.23364.26020\gb\Extensions
2024-10-29T09:48:59.4521091Z Copying Applications
2024-10-29T09:48:59.4521634Z C:\dl\sandbox\25.0.23364.26020\platform\Applications
2024-10-29T09:48:59.4523789Z Copying Applications.GB
2024-10-29T09:48:59.4524353Z C:\dl\sandbox\25.0.23364.26020\gb\Applications.GB
2024-10-29T09:48:59.4524983Z Copying dependencies
2024-10-29T09:48:59.4525452Z Importing PowerShell Modules
2024-10-29T09:48:59.4525888Z Skipping restore of Cronus database
2024-10-29T09:48:59.4526659Z Modifying Business Central Service Tier Config File for Docker
2024-10-29T09:48:59.4527885Z Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2024-10-29T09:48:59.4528386Z Installation took 27 seconds
2024-10-29T09:48:59.4528965Z Installation complete
2024-10-29T09:48:59.4529460Z Ready for connections!
2024-10-29T15:39:22.3039340Z ##[error]The operation was canceled.
2024-10-29T15:39:22.4717289Z ##[group]Run microsoft/AL-Go-Actions/PipelineCleanup@v6.0
2024-10-29T15:39:22.4718065Z with:
2024-10-29T15:39:22.4718456Z   shell: powershell
2024-10-29T15:39:22.4718896Z   project: Jenworks
2024-10-29T15:39:22.4719899Z env:
2024-10-29T15:39:22.4720367Z   ALGoOrgSettings: 
2024-10-29T15:39:22.4721826Z   ALGoRepoSettings: {
    "ConditionalSettings": [
        {
            "branches": [
                "feature/*"
            ],
            "settings": {
                "doNotPublishApps": true
            }
        }
    ]
}
2024-10-29T15:39:22.4723662Z   artifact: https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/25.0.23364.26020/gb
2024-10-29T15:39:22.4724733Z   keyVaultCodesignCertificateName: 
2024-10-29T15:39:22.4725394Z   generateDependencyArtifact: False
2024-10-29T15:39:22.4726039Z   doNotRunTests: False
2024-10-29T15:39:22.4726562Z   doNotSignApps: False
2024-10-29T15:39:22.4727007Z   useCompilerFolder: False

logs_30222690906.zip

freddydk commented 2 weeks ago

That is very strange... It states: Ready for connections! (which means the container is complete), but never continues... Assuming that this is self-hosted runners?

Shoot me an email on freddyk at microsoft dot com if you want to jump on a call and have a look