HodorNV / ALOps

ALOps
59 stars 24 forks source link

BC Artifact cleanup failed: Exception calling "Delete" with "2" argument(s): "Illegal characters in path." #661

Closed Arthurvdv closed 9 months ago

Arthurvdv commented 1 year ago

Describe the bug We're running daily a maintenance pipeline, where we call the ALOps Agent Maintenance to clean up the bcartifacts.cache folder. There's an error which prevents the clean-up task (and filling up the available storage).

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

  - task: ALOpsAgentMaintenance@1
    displayName: 'Agent Maintenance'
    inputs:
      removeoldtasks: false
      removeunusedcontainers: true
      pruneimagesdayscreated: 1
      pruneimagesosbased: true
      removebcartifacts: true
      daysunused: 1

the output

2023-08-27T22:15:54.2646929Z ##[section]Starting: Agent Maintenance
2023-08-27T22:15:54.2831764Z ==============================================================================
2023-08-27T22:15:54.2831854Z Task         : ALOps Agent Maintenance
2023-08-27T22:15:54.2831901Z Description  : Cleanup and maintain DevOps a Agent for Business Central
2023-08-27T22:15:54.2831957Z Version      : 1.458.4891
2023-08-27T22:15:54.2831999Z Author       : Hodor
2023-08-27T22:15:54.2832042Z Help         : Cleanup and maintain DevOps a Agent for Business Central.
2023-08-27T22:15:54.2832095Z ==============================================================================
2023-08-27T22:15:54.9678304Z *** Validate configuration
2023-08-27T22:15:55.0124131Z *** Task Inputs:
2023-08-27T22:15:55.0152711Z 
2023-08-27T22:15:55.0212973Z name                                  value
2023-08-27T22:15:55.0214854Z ----                                  -----
2023-08-27T22:15:55.0216912Z removeoldtasks                        False
2023-08-27T22:15:55.0217071Z removeunusedcontainers                 True
2023-08-27T22:15:55.0219084Z pruneimagesdayscreated                    1
2023-08-27T22:15:55.0219207Z pruneimagesosbased                     True
2023-08-27T22:15:55.0221074Z removebcartifacts                      True
2023-08-27T22:15:55.0221199Z bcartifactscachefolder C:\bcartifacts.cache
2023-08-27T22:15:55.0223074Z daysunused                                1
2023-08-27T22:15:55.0223136Z 
2023-08-27T22:15:55.0236671Z 
2023-08-27T22:15:55.0241474Z 
2023-08-27T22:15:55.0344551Z *** For documentation, please visit   : https://www.alops.be/documentation
2023-08-27T22:15:55.0347637Z 
2023-08-27T22:15:55.5041592Z *** ALOps License:
2023-08-27T22:15:55.5055185Z   * Licensed To: Van Roey (Collection License)
2023-08-27T22:15:55.5059603Z 
2023-08-27T22:15:55.5143323Z *** Importing required PS-Functions
2023-08-27T22:15:55.5284591Z *** Importing required Task-Functions
2023-08-27T22:15:55.5764257Z *** Start Container prune
2023-08-27T22:15:55.5768256Z *** Prune Docker Containers
2023-08-27T22:15:55.8412361Z Total reclaimed space: 0B
2023-08-27T22:15:55.8453813Z *** Start Image prune
2023-08-27T22:15:55.8464395Z *** Prune Docker Images
2023-08-27T22:16:40.6903529Z Deleted Images:
2023-08-27T22:16:40.6903976Z untagged: myimage:sandbox-22.5.60037.0-w1-10.0.20348.1726-ltsc2022
2023-08-27T22:16:40.6904129Z deleted: sha256:685a02ae17c9ec8f50dc5f7580beb39e1c4a2603e299ddc9a0c0a3513ae06454
2023-08-27T22:16:40.6906622Z deleted: sha256:f72ee639d25796e297f8f2fbc095788d9c5bd68846bd52cefa3fc1c3b9feb391
2023-08-27T22:16:40.6906818Z deleted: sha256:8c00b41264e8c239da6e562acefa501d1f14640ace987aef132532b902dc24ab
2023-08-27T22:16:40.6907491Z deleted: sha256:b1f2674b47aa9713af1336e19c1665a850a13a02f90715e2d550931e90efcbec
2023-08-27T22:16:40.6907634Z deleted: sha256:a0bada9e19fa7b84ce7ae7775f29aa4730998cac40ef3df9bbd77e854b719db6
2023-08-27T22:16:40.6907777Z deleted: sha256:8576825266b543b12dd527c9a94cfe4deea2a7bf0f8c7714e9ac8065cf6a9292
2023-08-27T22:16:40.6907927Z deleted: sha256:4f2448fb08cba451136d6485a4dfad9b021d557361ef27d8240e8c01b0544962
2023-08-27T22:16:40.6908069Z deleted: sha256:f65cf0d13c6a542c9c56a1d24b12025e924c1c6699c102fa8400ab401c0374c6
2023-08-27T22:16:40.6908200Z deleted: sha256:8aa75e306c72d75b8d605b4a949798090426f711b0fedf48501aa3bd4bfe2c08
2023-08-27T22:16:40.6908342Z deleted: sha256:8b3bc8f712c0922b642af5accfbcb944d7fb64d26ec4a4d7e97d4ebe161a514e
2023-08-27T22:16:40.6908717Z untagged: myimage:sandbox-22.4.59114.60032-be-10.0.20348.1726-ltsc2022
2023-08-27T22:16:40.6908929Z deleted: sha256:810d0354df892d1f1dc384773e63ce36557a7dc74cd6dc32bb53045a353e83ee
2023-08-27T22:16:40.6909114Z deleted: sha256:d1930a6f41fa1add3c5bbd6197df8a5b28733ec2b55f759a860b950ee76974c9
2023-08-27T22:16:40.6909281Z deleted: sha256:97b6103b1c58ad880225b69ec88b82cc0d7062fd87f536f1e350ab0569574f68
2023-08-27T22:16:40.6909423Z deleted: sha256:3e8a241206079eb770aeb3de9f854da00b3e33bf90304956b1b8e8ac7947f479
2023-08-27T22:16:40.6909562Z deleted: sha256:c3f3082763261b347a944d6321088fac92b97dc2f9de38439800bd7bea9e0f01
2023-08-27T22:16:40.6951011Z deleted: sha256:6cd6ad97f533f9cba91d3025f71df083767b9b70cdb98358eca6ca077b741d4c
2023-08-27T22:16:40.6951152Z deleted: sha256:5996f53541378e6b9a85e08a4ebe54eac5009232a07f8b5e63abc8f76d2c782b
2023-08-27T22:16:40.6951297Z deleted: sha256:b9d68c6be37ed6211a96a964aeee7f5f568d87a3ad328d18f98aeb5bcf95de78
2023-08-27T22:16:40.6951437Z deleted: sha256:83552684bb7b2aca298a387b3ea534ca32f95cebbb03329b57c7fb2611e82fd4
2023-08-27T22:16:40.6951579Z deleted: sha256:34c6b03bb29f2f2db4a442ff2be9a0fb1131ef7cdfe114ed11ecb3e4c99712da
2023-08-27T22:16:40.6951795Z untagged: mcr.microsoft.com/businesscentral:10.0.20348.1726
2023-08-27T22:16:40.6951956Z untagged: mcr.microsoft.com/businesscentral@sha256:f42615510b2149e9efefd34e5c499ceebfc4bd9a5f10428a2e04250d0c55da1d
2023-08-27T22:16:40.6952262Z untagged: myimage:sandbox-22.5.60037.0-be-10.0.20348.1726-ltsc2022
2023-08-27T22:16:40.6952400Z deleted: sha256:c49c2101d88dde372719f78885d8657884ffc355e1b056f79d4adb48443a9c75
2023-08-27T22:16:40.6952542Z deleted: sha256:f3fb6de629a8e312aafb91dab43d8a2a5faa2416af537c54148ca1b96c3b6ba1
2023-08-27T22:16:40.6952679Z deleted: sha256:460338843c8da332ae7ebd84e45e786dc21e7e3cdf286bf5a56a48b25c9bc852
2023-08-27T22:16:40.6952812Z deleted: sha256:ba4a0c3065d1b36504f2ed7153774dc14a7519db0c74c13f9dd0222fb7a8cba8
2023-08-27T22:16:40.6952952Z deleted: sha256:3031c8a66f757aad6cdeb74be5465e8cd8a128a25883d3c86899b78a72f3c686
2023-08-27T22:16:40.6953091Z deleted: sha256:09a72f9bccdb452fbdab418f05cead36d0bee808534ec500f74cfcf3c2946655
2023-08-27T22:16:40.6953228Z deleted: sha256:f2ce962a9b369108991cc697b0b44c6c2f3d9e7fe4826d094f8473c16c5c25f0
2023-08-27T22:16:40.6953369Z deleted: sha256:73421dc48f63122df52814f5c963892043b699cff1fb8cf653c20714b4192ccd
2023-08-27T22:16:40.6953507Z deleted: sha256:6b7a1925b3b88d5cbbd185d38bb21ef8d7dd2c3eef000598c94e378da416aa79
2023-08-27T22:16:40.6953643Z deleted: sha256:d423fa19c6c6b00cc1f4f6f40952b300a0fb84eb265caab46310cf36d8e54cf8
2023-08-27T22:16:40.6953844Z untagged: myimage:sandbox-22.4.59114.60032-base-10.0.20348.1726-ltsc2022
2023-08-27T22:16:40.6953976Z deleted: sha256:adbbeb24a6721b8015a0e40ef7622b03cdfc63c0d2fc7bc382953aa84dbca0b5
2023-08-27T22:16:40.6954124Z deleted: sha256:15261c2125358e1ac5284808242c26cb2975461d73f7622f3b6fe0e50d14fd81
2023-08-27T22:16:40.6954261Z deleted: sha256:8e0d3c2ba4b8961c6ebec0c12d4bd22784abae08f814045e8fbcec9f8431d9a3
2023-08-27T22:16:40.6954398Z deleted: sha256:9c61ed9fc0a23a0cc71e008cee785ecf75581a4b4cf13391c245029ba64b8553
2023-08-27T22:16:40.6954536Z deleted: sha256:59d3eefc95b17b550cc748f876090697b4e808b82f32b933f279a4e05a53693c
2023-08-27T22:16:40.6954799Z deleted: sha256:68312cbf5588a9b9b13a3d954e679a7250bd50dfb25dbbcbd06012d3d46913c6
2023-08-27T22:16:40.6954938Z deleted: sha256:e9609157a9f5e59bcef9588144cbc610bf929cb7e3490b8f589b2225aaf46fe3
2023-08-27T22:16:40.6955075Z deleted: sha256:7c667fdc4ae2c23cb17f21cb5677b936c673c81643bf0e7899c96f78eaa90391
2023-08-27T22:16:40.6955210Z deleted: sha256:f278e5ae3b0058f6f5d24aac9d00ef65634beb76aaaa19684313c9d71ef82357
2023-08-27T22:16:40.6955354Z deleted: sha256:5059b6f42fcfb7fa016609cb2fd26f28cd231a9a732346540dc9a21ed118bdbb
2023-08-27T22:16:40.6955552Z untagged: myimage:sandbox-22.4.59114.60032-w1-10.0.20348.1726-ltsc2022
2023-08-27T22:16:40.6955689Z deleted: sha256:1de1eeb6dfec91a6e79a7971670e2bdc61fa13219186d489123969daf7b0a20d
2023-08-27T22:16:40.6955828Z deleted: sha256:a65b13c9e3618b4fb5f775d3671b4f2f88ede6d368fd13de8c1e1c1d989c362c
2023-08-27T22:16:40.6955966Z deleted: sha256:4712ac5e31698973eb613b4d41cea7497cc8ee4ea7a06da29837e31113cd976d
2023-08-27T22:16:40.6956106Z deleted: sha256:08b6d18aced3a71eedac3366f612a932ce383df882f154647530fd00fb5e6e37
2023-08-27T22:16:40.6956249Z deleted: sha256:41aabbe33bcc5141d4ccf74c8b5b30106e7517af38f8f6d5febcf6f03673a837
2023-08-27T22:16:40.6956379Z deleted: sha256:9c983aac889a6dde752ca431b4ae5cd70abd5df79de884cbf0b52ccf2b5523c9
2023-08-27T22:16:40.6956517Z deleted: sha256:fc1befeda2f4567c60154c50d795a38050843d7245fc8b9a779c24a5c06a3990
2023-08-27T22:16:40.6956948Z deleted: sha256:989810e647842d0c78b01e2bc02d6f7d3c235090490cb42e8aab4dc9eb3a32f3
2023-08-27T22:16:40.6957086Z deleted: sha256:8fa5bcd962679c4159ad11e773571169e2907c26731ff16c346f27ad482f878b
2023-08-27T22:16:40.6957225Z deleted: sha256:5a2b6a14414cfd9aabcffd0e0c0c7ffabce4d49a0b74daa3871e857dc8114c54
2023-08-27T22:16:40.6957425Z untagged: myimage:sandbox-22.5.60037.0-base-10.0.20348.1726-ltsc2022
2023-08-27T22:16:40.6957560Z deleted: sha256:aa80d7659d190da2789d081410228ad436e9d9ba9d1877668934f67641de14af
2023-08-27T22:16:40.6957698Z deleted: sha256:eb307719ef45875ea7f29dfff5832f6763351457998d3a4af4b641bfb33a3380
2023-08-27T22:16:40.6957839Z deleted: sha256:76f31f29f2414d05f645b6b6b629cc1421339981b63aab16fb8594b0a3f214ae
2023-08-27T22:16:40.6957970Z deleted: sha256:76af411e9686850de9c8f0e80369a1392c98c7cad73becbdf974a870affee719
2023-08-27T22:16:40.6958109Z deleted: sha256:a10b3b544ab3d91fd16dad869cbf068fb7af61e09692a710059671bb3a575735
2023-08-27T22:16:40.6958249Z deleted: sha256:f15f3fe016a0df561b392ee0bdd1898dc4b27aadde3a491bc1e1fa38d1a472ad
2023-08-27T22:16:40.6958394Z deleted: sha256:41966a07c38894ff3a211d8a8339a727a31261c97bed844a34d8533ff034feec
2023-08-27T22:16:40.6958533Z deleted: sha256:9cb3fbf8348de3861b6b9689ab969b65a08cc42795aa0575827f8f3422420d80
2023-08-27T22:16:40.6958669Z deleted: sha256:c461683b7c10c9a6429df1aaad730a3ca5e2206d56117e5ea16a4cc53ea4204a
2023-08-27T22:16:40.6958809Z deleted: sha256:3837d59d53553a6d0a91b5cd5f09115c12e0e86e27d8c7901e8bc08c7c90a3f2
2023-08-27T22:16:40.6959000Z untagged: myimage:sandbox-23.0.11980.0-be-10.0.20348.1726-ltsc2022
2023-08-27T22:16:40.6959137Z deleted: sha256:1f876ff3c8b0bfa0612cda1c67afc051cddafc07e76a6a0774eb66c93c19a7eb
2023-08-27T22:16:40.6959276Z deleted: sha256:0369f7d02923b628441ea78fec16c12da2b31fa73763e2a3c1ec27f92304350d
2023-08-27T22:16:40.6959407Z deleted: sha256:be5ac04a6492cd2e320fa50cff11b5d027a53918d765af8215d01f1b59af46c1
2023-08-27T22:16:40.6959546Z deleted: sha256:e66b094d15d7a5d86380a55c0aa2cb02134fd95d6268d6f3944bc1b7ba31c460
2023-08-27T22:16:40.6959686Z deleted: sha256:47624c11da48d3730d556605235c78bdc3ebf327bc4a525617d598a5676069f5
2023-08-27T22:16:40.6959823Z deleted: sha256:67e918d938522178d89ae0b1774364157dd4f44d9eb7883bde6ed1d063bcfb4e
2023-08-27T22:16:40.6959961Z deleted: sha256:58c10f2916bcac5330bbdb0f7ab35491925c47e1ea198bd647c3e2ff5ff17125
2023-08-27T22:16:40.6960097Z deleted: sha256:fa8e360cc622bbae23af612896bb285a09b800c6fe8b65eeca14150570f1513f
2023-08-27T22:16:40.6960234Z deleted: sha256:43758bb7e1b6c2133d1c8ddb7772c3dcc12b2e645b353d152917012fc3c6aa04
2023-08-27T22:16:40.6960370Z deleted: sha256:6c22760ff9daad431c7e41688a7cc741a359f422ca12f92816dad262434858e5
2023-08-27T22:16:40.6960762Z 
2023-08-27T22:16:40.6960852Z Total reclaimed space: 36.68GB
2023-08-27T22:16:40.6960968Z *** Install/Update BCContainerHelper [https://github.com/microsoft/navcontainerhelper]
2023-08-27T22:16:40.6979985Z *** Check BcContainerHelper
2023-08-27T22:16:40.7854844Z *** Load BcContainerHelper
2023-08-27T22:16:40.9281695Z BcContainerHelper version 5.0.5
2023-08-27T22:16:41.2426001Z BC.HelperFunctions emits usage statistics telemetry to Microsoft
2023-08-27T22:16:45.7210076Z 
2023-08-27T22:16:45.7211211Z ModuleType Version    Name                                ExportedCommands                                             
2023-08-27T22:16:45.7211578Z ---------- -------    ----                                ----------------                                             
2023-08-27T22:16:45.7212098Z Script     5.0.5      BcContainerHelper                   {Add-FontsToBcContainer, Add-GitToAlProjectFolder, AddTele...
2023-08-27T22:16:45.7212205Z 
2023-08-27T22:16:45.7212243Z 
2023-08-27T22:16:45.7212286Z 
2023-08-27T22:16:45.7215930Z 
2023-08-27T22:16:47.3076992Z *** Generic image [mcr.microsoft.com/businesscentral:10.0.20348.1726] not present, skip cleanup
2023-08-27T22:16:47.3080491Z *** Start BC Artifact cleanup
2023-08-27T22:16:47.3186741Z *** ALOps Flush BcContainerHelper Cache [C:\bcartifacts.cache]
2023-08-27T22:16:47.3190430Z *** Cleanup unused Artifacts
2023-08-27T22:16:47.5293604Z   * C:\bcartifacts.cache\gjr5enl5.l1w\NAVDVD
2023-08-27T22:16:47.5395982Z *** BC Artifact cleanup failed: Exception calling "Delete" with "2" argument(s): "Illegal characters in path."
2023-08-27T22:16:47.5400413Z *** Start BC Artifact TempFiles cleanup
2023-08-27T22:16:47.5500665Z *** BC Artifact TempFiles cleanup failed: Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.
2023-08-27T22:16:47.5504680Z *** ALOps Agent Maintenance Finished.
2023-08-27T22:16:47.5508583Z ***
2023-08-27T22:16:47.5559793Z *** Cleanup VSTS Environment: True
2023-08-27T22:16:49.8067969Z ##[section]Finishing: Agent Maintenance

Expected behavior Removing the no longer needed folders in the artifacts cache folder.

Additional context image

waldo1001 commented 1 year ago

You have multiple agents on this server? Just to know if the maintenance is running while another task is running something else.

Arthurvdv commented 1 year ago

Single agent per server, so no other tasks could be running.

Also the error is consistent every day after a certain point in time, so I guessing something with the filesystem?

waldo1001 commented 1 year ago

We have an improvement on this, ready to be released.. . Today or tomorrow.

AdminHodor commented 1 year ago

Dear @Arthurvdv ,

Please try our latest release v1.459. We made a couple of improvements on this step which should drastically improve this. The delete-loop will individually try to remove each folder, if an error should occur the step will proceed with the other cleanup and not stop.

Kind regards,

Arthurvdv commented 1 year ago

The improvement indeed seems te be working, awesome!

2023-10-05T22:16:46.5637970Z   * C:\bcartifacts.cache\sandbox\23.0.12034.12863\base (Failed)
2023-10-05T22:16:46.5650599Z   * C:\bcartifacts.cache\sandbox\23.0.12034.12863\be (Failed)
2023-10-05T22:16:46.5663269Z   * C:\bcartifacts.cache\sandbox\23.0.12034.12863\platform (Failed)
2023-10-05T22:16:46.5677285Z   * C:\bcartifacts.cache\sandbox\23.0.12034.12877\be (Failed)
2023-10-05T22:16:46.5690799Z   * C:\bcartifacts.cache\sandbox\23.0.12034.12877\platform (Failed)
2023-10-05T22:16:46.7369952Z *** BC Artifact cleanup failed on 5 items.

Is this the end of the road or is it somehow possible to figure out on the why these artifacts can't be deleted?

Full log

2023-10-05T22:15:43.5499095Z ##[section]Starting: Agent Maintenance
2023-10-05T22:15:43.5679624Z ==============================================================================
2023-10-05T22:15:43.5679709Z Task         : ALOps Agent Maintenance
2023-10-05T22:15:43.5679748Z Description  : Cleanup and maintain DevOps a Agent for Business Central
2023-10-05T22:15:43.5679804Z Version      : 1.459.4971
2023-10-05T22:15:43.5679839Z Author       : Hodor
2023-10-05T22:15:43.5679874Z Help         : Cleanup and maintain DevOps a Agent for Business Central.
2023-10-05T22:15:43.5679932Z ==============================================================================
2023-10-05T22:15:44.2487754Z *** Validate configuration
2023-10-05T22:15:44.2883951Z *** Task Inputs:
2023-10-05T22:15:44.2913134Z 
2023-10-05T22:15:44.2973969Z name                                  value
2023-10-05T22:15:44.2975643Z ----                                  -----
2023-10-05T22:15:44.2977334Z removeoldtasks                        False
2023-10-05T22:15:44.2978250Z removeunusedcontainers                 True
2023-10-05T22:15:44.2980021Z pruneimagesdayscreated                    1
2023-10-05T22:15:44.2981649Z pruneimagesosbased                     True
2023-10-05T22:15:44.2982512Z removebcartifacts                      True
2023-10-05T22:15:44.2983296Z bcartifactscachefolder C:\bcartifacts.cache
2023-10-05T22:15:44.2985062Z daysunused                                1
2023-10-05T22:15:44.2985162Z 
2023-10-05T22:15:44.2998510Z 
2023-10-05T22:15:44.3002950Z 
2023-10-05T22:15:44.3112744Z *** For documentation, please visit   : https://www.alops.be/documentation
2023-10-05T22:15:44.3115423Z 
2023-10-05T22:15:44.7470526Z *** ALOps License:
2023-10-05T22:15:44.7483710Z   * Licensed To: Van Roey (Collection License)
2023-10-05T22:15:44.7488857Z 
2023-10-05T22:15:44.7576505Z *** Importing required PS-Functions
2023-10-05T22:15:44.7714282Z *** Importing required Task-Functions
2023-10-05T22:15:44.8192209Z *** Start Container prune
2023-10-05T22:15:44.8197278Z *** Prune Docker Containers
2023-10-05T22:15:45.0903135Z Total reclaimed space: 0B
2023-10-05T22:15:45.0945346Z *** Start Image prune
2023-10-05T22:15:45.0956127Z *** Prune Docker Images
2023-10-05T22:16:40.2162137Z Deleted Images:
2023-10-05T22:16:40.2162655Z untagged: myimage:sandbox-23.0.12034.12874-base-10.0.20348.1906-ltsc2022
2023-10-05T22:16:40.2162808Z deleted: sha256:dea0a6ad74859d7c53b634ee7e3b03a864953afbb22339185660955f0ec40f02
2023-10-05T22:16:40.2164419Z deleted: sha256:20cbb7ccac75659efa6b083e475b51e3fa1ece9810ff739023ac6e30d8894bb9
2023-10-05T22:16:40.2164633Z deleted: sha256:0a77d967e080aa5bbc785ddaa459f859610626bed4d40b4e6ff736b240202187
2023-10-05T22:16:40.2164883Z deleted: sha256:d00459d12cd8b1e53ec2b957e75bf4be51954b6bbf9cb37b5b4759dfb150997f
2023-10-05T22:16:40.2165165Z deleted: sha256:570052c5d53ac253a9d311b6816237a6fc9fff958631ccdcc7df4a3796ab6abb
2023-10-05T22:16:40.2166790Z deleted: sha256:54f7d3dd1bdeb49f66d95807e8a4eedfcf116df83e5c2aa9ff7ce6bc0e38a450
2023-10-05T22:16:40.2166984Z deleted: sha256:db4c690d3c8dc2ff3843f4d54c00c678f07273ee26f00ca211459f6bd4d6b0b2
2023-10-05T22:16:40.2167126Z deleted: sha256:be931199dc473957087bd87a0fd69b30e0c060f2b7efc38d2720fa5fee266614
2023-10-05T22:16:40.2167263Z deleted: sha256:8f6d9ee203a7f52b3cd9a28e7eb71afc7965ca15c0b0ab8e2108ddcf6d76a2d8
2023-10-05T22:16:40.2167401Z deleted: sha256:a75221cf869c9deaca9b4ceac34c5556faa208bd2739b3b2c6678fde667b6c18
2023-10-05T22:16:40.2167747Z untagged: myimage:sandbox-23.0.12034.12871-w1-10.0.20348.1906-ltsc2022
2023-10-05T22:16:40.2167885Z deleted: sha256:7f913d27c28ed9b75153f5bece1c66e3af32087fbcfebf8fc3dc53f9ea337f94
2023-10-05T22:16:40.2168678Z deleted: sha256:4c692b32bc7eeed8428f78da754d542f1e16c05d980fa8db7667392fead155c9
2023-10-05T22:16:40.2168914Z deleted: sha256:662fce889184f52a047783cb216084d9ad951f82e795e0c78f797695e56bf642
2023-10-05T22:16:40.2169148Z deleted: sha256:7e5fafbf2ad23062918deaba90efdbd530225b93152c480347f842f0d78d5210
2023-10-05T22:16:40.2169317Z deleted: sha256:635e133589d25761f72a2ad7751412ecc3d4857e44586fc9c0c324f8b78c6984
2023-10-05T22:16:40.2170522Z deleted: sha256:fccbd489719915d62f178d344feb534ac1d7f2df6d942137018f63ef9f00d67a
2023-10-05T22:16:40.2170727Z deleted: sha256:03dfa8e66e720662d6857a8d1bbb413562c692ac3a5043443bfe5bc7c16a7ef1
2023-10-05T22:16:40.2170929Z deleted: sha256:ec7f3aa1ecc6a5f1917cf80451f1ae5c26d9e341f9d6f885f09b933cd6417570
2023-10-05T22:16:40.2171067Z deleted: sha256:f32a2f915e0dcf8b883cd9b8414c6eb19b531846895be778399da00949ec0b0f
2023-10-05T22:16:40.2171235Z deleted: sha256:a37d08add73d0e32d42fa2c58282c64969e2b16eb7f0752f625cc0ab2c8a324f
2023-10-05T22:16:40.2171525Z untagged: myimage:sandbox-23.0.12034.12871-base-10.0.20348.1906-ltsc2022
2023-10-05T22:16:40.2171666Z deleted: sha256:37459d33e02f42f819bbc12e8000e4d60f7a2d7ed9367d9b1c88f566ad0662e3
2023-10-05T22:16:40.2171805Z deleted: sha256:bd909a5386bfbd1dd4c2e75597a3d2e1887e08a3456a6480c35e146b5e6df68b
2023-10-05T22:16:40.2171940Z deleted: sha256:9cccf8b7f9c1609b5fb44b7fd4c41f15304a122fc650704058bdc0a147b31208
2023-10-05T22:16:40.2172077Z deleted: sha256:956d86b9e80030fd5c7c620b8a949ec233a872bfd1fee001189378eef4099cf5
2023-10-05T22:16:40.2172213Z deleted: sha256:9c4da36d7fccc58cf07b834e4102b7912ca2b2759fb6ce1b2234e09aa59c45c5
2023-10-05T22:16:40.2172345Z deleted: sha256:f1a38573619c90239417c00407e2f84b0b6487fe5903d79b1d77c14d48b19472
2023-10-05T22:16:40.2172478Z deleted: sha256:0b15a6facdbb7c0fcaa7ebaaa448c83f7ce928613968bc3d24cd98ed2b09821d
2023-10-05T22:16:40.2172615Z deleted: sha256:5e7bc5f28578426cb966fe7c78ca67963d12ed455ec9ebd28e6afdc1260136fb
2023-10-05T22:16:40.2172755Z deleted: sha256:33c002db2c61a388aee1ed9f751f3307f858e60a852c0b6895a8760c3e9a0ce1
2023-10-05T22:16:40.2172889Z deleted: sha256:3276ccdf5ef5c1d65a2fb45f2e73ce6d532444c98f3d8b522b01c1ff778d7e17
2023-10-05T22:16:40.2173112Z untagged: myimage:sandbox-23.0.12034.12863-base-10.0.20348.1906-ltsc2022
2023-10-05T22:16:40.2173249Z deleted: sha256:b305ce2d5e69f8089353586683870a8c3ec3b88dfb18834c1f456e7214a0ab57
2023-10-05T22:16:40.2173387Z deleted: sha256:42aa667d4a1f6e11edca041587c0db8de87eb663686fab6e5efc392c0117f2e0
2023-10-05T22:16:40.2173522Z deleted: sha256:89b19b45c6b1b1907c50ff323904109876956a200080ca0faadc27475edc41af
2023-10-05T22:16:40.2173656Z deleted: sha256:7868fb184ab92a71e04e7fb0326f5162962961f37d619d183cba4540080b103d
2023-10-05T22:16:40.2173788Z deleted: sha256:a7f5950e5d7552dcb92c58ef0685d2d019da30811c2ff607fd504ffd7c19f54e
2023-10-05T22:16:40.2173924Z deleted: sha256:55729b2f6360eb54e5c667f40f25897350af10ee983d52ffeb08ac5a9ff1e125
2023-10-05T22:16:40.2174156Z deleted: sha256:d6a892d0810879e6edf22378bc51627a7e84cc26ce93ec35fb3a39223862090c
2023-10-05T22:16:40.2174292Z deleted: sha256:9bea45d3ca5ff316a51037620a6e288a601a931f0299dd8995bd921a4f17f5b2
2023-10-05T22:16:40.2174428Z deleted: sha256:2c3f2ee841d2cf9a9c313ca412d595611822b7b2d0ae3e5869712385b1465f8a
2023-10-05T22:16:40.2174563Z deleted: sha256:a7f2c6ea4a9d6bd36ecadb406d6e5ac24dc8156c22aeaf7cccb199daccefae95
2023-10-05T22:16:40.2174754Z untagged: myimage:sandbox-23.0.12034.12877-base-10.0.20348.1906-ltsc2022
2023-10-05T22:16:40.2174892Z deleted: sha256:84a08b498ac2f6920b979ddb7e75e4fd37739621d88a124c916d4cc52e8e64bd
2023-10-05T22:16:40.2175023Z deleted: sha256:f7fb85568ff5dfb660fed1135844dd7b0f6ee0b4718964289f9a72457a16b2d8
2023-10-05T22:16:40.2175158Z deleted: sha256:ff8bd5aec6938ee483b68e8426557922348e5d8dc87f7fbe0228846282d9f8ff
2023-10-05T22:16:40.2175292Z deleted: sha256:fc2055114a4aa707bbfc0ae0f332d1d687e75beec63464e1444c3c1b21940cfe
2023-10-05T22:16:40.2175429Z deleted: sha256:72ebadebe60967e4fbf8bca59c4278d3a454992b7623372f686d4c19ba5ac664
2023-10-05T22:16:40.2175565Z deleted: sha256:e31a95e2c267dc6021fb59a260307ece4b0e2bed05d03de79b6635c26bacfd4e
2023-10-05T22:16:40.2175699Z deleted: sha256:68e2af76f98a18a711849f394ce4b6b5d80042ae351216fd7d991e45d298f567
2023-10-05T22:16:40.2175834Z deleted: sha256:346074272971879f85494d23bc1f086b2d8714dd13302cc21d99f65829ef28ed
2023-10-05T22:16:40.2175969Z deleted: sha256:f44c08a95b26c44dd2b2695e763a4d72fc9d8c0037763267ee1dc6151ce4a033
2023-10-05T22:16:40.2176476Z deleted: sha256:0f9dc4d47a5022a702440b36e7c14c3a77db0fe5b33434b4363662c4b4a840a9
2023-10-05T22:16:40.2176673Z untagged: myimage:sandbox-23.0.12034.12871-be-10.0.20348.1906-ltsc2022
2023-10-05T22:16:40.2176810Z deleted: sha256:48c0e9f8f56d2e224efb2e2e98944843130d0511e7d8deb474182b84ad8211fe
2023-10-05T22:16:40.2176946Z deleted: sha256:8dc3edf811fc9fb24a6c6b94575f27ecb7ed186fdb22dea4df1a9038736d8935
2023-10-05T22:16:40.2177084Z deleted: sha256:818fb35c65949b290687fdaab113c880f892d536bec18b2fafcba48789d6bc45
2023-10-05T22:16:40.2177219Z deleted: sha256:78e1b57fb427bfebf537d6c1db822bb51218ecb8e77684e13b6ed64bb292c5c8
2023-10-05T22:16:40.2177355Z deleted: sha256:f32c7952d9a592396504b9cf7c47e7819a5fc6f02d0c7289db2b5d5b25b56dec
2023-10-05T22:16:40.2177491Z deleted: sha256:af9b18f14621874474072549b4b7c613eea161051cdd389ee1c497a6a592a3c5
2023-10-05T22:16:40.2177626Z deleted: sha256:1b25036f737117395e856900295a2475ab2721ae3a82f382a8556bfb629b1cc3
2023-10-05T22:16:40.2177759Z deleted: sha256:d713cb09e8fd4f1120abc2f81c306f42b57b5610a54b2981cf256acbf65e40a0
2023-10-05T22:16:40.2177965Z deleted: sha256:ffdada2014f93c611d566f426e42887990711ec57b43d25c5fcb88d92bf4a1e5
2023-10-05T22:16:40.2178097Z deleted: sha256:e87f59c0d10e6567a66bf45d8be186db89b28d18de452c92bbae363355fa1a10
2023-10-05T22:16:40.2178284Z untagged: myimage:sandbox-23.0.12034.12863-be-10.0.20348.1906-ltsc2022
2023-10-05T22:16:40.2178418Z deleted: sha256:ce85d082707c50f3a982ba1c18fa582c885d2a5eae35792ebffb5e4b055f0b5e
2023-10-05T22:16:40.2178556Z deleted: sha256:6d9bb6cdf80a304334379336cd911fbfc918543450561b2b4d28c56f3da200b2
2023-10-05T22:16:40.2178693Z deleted: sha256:8ce0ba40f09b7fee61aee19d313637ddf2570982daa1c4e186ca02881fe515ec
2023-10-05T22:16:40.2178827Z deleted: sha256:16f89d39ff32f2aa3a1c9b28427f2d6029cb301b1172796831e09884ad33bf39
2023-10-05T22:16:40.2178961Z deleted: sha256:70ccca1b55a9a4df02d873ad4f87cefd68c2a12ad56f7226c8ae61e9b08fc6fc
2023-10-05T22:16:40.2179097Z deleted: sha256:1a8551807bba026be786a0012313259620daf157e7da4a358b062e0a638e1de2
2023-10-05T22:16:40.2179228Z deleted: sha256:9014b172f65bb2326fd1a7f20856914c82a82ce05b0d4553b1a3da5102cf4317
2023-10-05T22:16:40.2179363Z deleted: sha256:906ddfca5ead4a521bbb87864b3b21ef3e5d781ce652495cf6a1ed7039acfaa4
2023-10-05T22:16:40.2179497Z deleted: sha256:b80986c42c29d48d673299850106c4ec263cf97bce3f32c57c936ea655e564fa
2023-10-05T22:16:40.2179632Z deleted: sha256:76d944e85043030940b743f00b3a897978bc1357643770c0cfdc028f60ccb896
2023-10-05T22:16:40.2180041Z untagged: mcr.microsoft.com/businesscentral:10.0.20348.1906
2023-10-05T22:16:40.2180189Z untagged: mcr.microsoft.com/businesscentral@sha256:9a12bd9733c4bd49affddf5a8dbc0bf408551b50eb4a85a8f60efab4301184f4
2023-10-05T22:16:40.2180268Z 
2023-10-05T22:16:40.2180344Z Total reclaimed space: 35.03GB
2023-10-05T22:16:40.2201113Z *** Install/Update BCContainerHelper [https://github.com/microsoft/navcontainerhelper]
2023-10-05T22:16:40.2237713Z *** Check BcContainerHelper
2023-10-05T22:16:40.3079711Z *** Load BcContainerHelper
2023-10-05T22:16:40.4302975Z BcContainerHelper version 5.0.7
2023-10-05T22:16:40.7480382Z BC.HelperFunctions emits usage statistics telemetry to Microsoft
2023-10-05T22:16:44.9830606Z 
2023-10-05T22:16:44.9831490Z ModuleType Version    Name                                ExportedCommands                                             
2023-10-05T22:16:44.9831919Z ---------- -------    ----                                ----------------                                             
2023-10-05T22:16:44.9832151Z Script     5.0.7      BcContainerHelper                   {Add-FontsToBcContainer, Add-GitToAlProjectFolder, AddTele...
2023-10-05T22:16:44.9832442Z 
2023-10-05T22:16:44.9832472Z 
2023-10-05T22:16:44.9832496Z 
2023-10-05T22:16:44.9836310Z 
2023-10-05T22:16:46.5224638Z *** Generic image [mcr.microsoft.com/businesscentral:10.0.20348.1906] not present, skip cleanup
2023-10-05T22:16:46.5228257Z *** Start BC Artifact cleanup
2023-10-05T22:16:46.5341232Z *** ALOps Flush BcContainerHelper Cache [C:\bcartifacts.cache]
2023-10-05T22:16:46.5345852Z *** Cleanup unused Artifacts
2023-10-05T22:16:46.5637970Z   * C:\bcartifacts.cache\sandbox\23.0.12034.12863\base (Failed)
2023-10-05T22:16:46.5650599Z   * C:\bcartifacts.cache\sandbox\23.0.12034.12863\be (Failed)
2023-10-05T22:16:46.5663269Z   * C:\bcartifacts.cache\sandbox\23.0.12034.12863\platform (Failed)
2023-10-05T22:16:46.5677285Z   * C:\bcartifacts.cache\sandbox\23.0.12034.12877\be (Failed)
2023-10-05T22:16:46.5690799Z   * C:\bcartifacts.cache\sandbox\23.0.12034.12877\platform (Failed)
2023-10-05T22:16:46.5695205Z *** Cleanup extracted VSIX cache
2023-10-05T22:16:46.6280882Z 
2023-10-05T22:16:46.6284621Z 
2023-10-05T22:16:46.6287826Z 
2023-10-05T22:16:46.6291106Z 
2023-10-05T22:16:46.6296585Z Cleanup empty folders
2023-10-05T22:16:46.7365810Z 
2023-10-05T22:16:46.7369952Z *** BC Artifact cleanup failed on 5 items.
2023-10-05T22:16:46.7374205Z *** Start BC Artifact TempFiles cleanup
2023-10-05T22:16:46.7404052Z *** ALOps Agent Maintenance Finished.
2023-10-05T22:16:46.7408410Z ***
2023-10-05T22:16:46.7458280Z *** Cleanup VSTS Environment: True
2023-10-05T22:16:48.9994116Z ##[section]Finishing: Agent Maintenance
waldo1001 commented 1 year ago

Is it possible there are multiple agents on this server?

Arthurvdv commented 11 months ago

(I've lost track of this one, sorry for my late response)

You're onto something here 🤔

There are indeed two agents running on the same machine, against the best pratice of having only one agent for each machine. The difference here is that the second agent is a "release agent" and only executes the ALOpsExtensionAPI@1 and ALOpsAppSource@1.

Mainly the last one (AppSource) is a long running process, where I'm doubting if switched over to microsoft-hosted agents is the best way forward due to the long running time the AppSource process.