question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ArchiveFiles (2.211.0) Task throws Error: Archive creation failed for archive file:

See original GitHub issue

Required Information

Question, Bug, or Feature? Bug

Enter Task Name: ArchiveFiles (2.211.0)

Environment

  • Agent - ubuntu-latest Hosted

Issue Description

I have pipeline that builds a large Hugo Static Website. As part of this pipeline the ArchiveFiles task is used to ZIP up the pages.

This has been working without any issues, but when used today it failed with the error

##[error]Error: Archive creation failed for archive file: ...

I reverted the version of the ArchiveFiles task from 2.211.0 to 2.206.0 (the version that worked previously) and the pipeline completed without any errors.

Looks like there is an issue with the newer version

Task logs

...
  adding: sspencer/2011/01/06/creating-your-own-identity-provider-for-windows-azure-appfabric-access-control/ 
stderr:  
error: Error: spawnSync /usr/bin/zip ENOBUFS
    at Object.spawnSync (node:internal/child_process:1111:20)
    at Object.spawnSync (node:child_process:814:24)
    at ToolRunner.execSync (/home/vsts/work/_tasks/ArchiveFiles_d8b84976-e99a-4b86-b885-4849694435b0/2.211.0/node_modules/azure-pipelines-task-lib/toolrunner.js:879:23)
    at zipArchive (/home/vsts/work/_tasks/ArchiveFiles_d8b84976-e99a-4b86-b885-4849694435b0/2.211.0/archivefiles.js:152:33)
    at createArchive (/home/vsts/work/_tasks/ArchiveFiles_d8b84976-e99a-4b86-b885-4849694435b0/2.211.0/archivefiles.js:278:13)
    at doWork (/home/vsts/work/_tasks/ArchiveFiles_d8b84976-e99a-4b86-b885-4849694435b0/2.211.0/archivefiles.js:338:9)
    at Object.<anonymous> (/home/vsts/work/_tasks/ArchiveFiles_d8b84976-e99a-4b86-b885-4849694435b0/2.211.0/archivefiles.js:347:1)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32) {
  errno: -105,
  code: 'ENOBUFS',
  syscall: 'spawnSync /usr/bin/zip',
  path: '/usr/bin/zip',
  spawnargs: [Array]
};
##[error]Error: Archive creation failed for archive file: /home/vsts/work/1/a/137827.zip 
code: 0 
stdout:   adding: .gitignore (stored 0%)
  adding: 404.html (deflated 60%)
...

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
DenisRumyantsevcommented, Dec 9, 2022

Fixed in 2.211.1

1reaction
johnwccommented, Oct 18, 2022

It’s not in the image, those tasks are dynamically downloaded from a repo in azure. Looks like someone rolled back the deployment for that task back to 2.206.0. I’m assuming the agent for the host it ran on is still 2.211.x?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure pipelines ArchiveFiles Archive creation failed
Azure pipelines ArchiveFiles Archive creation failed. There is an issue Extract Files task failed on x86 agent on github about it:.
Read more >
Error During "Archive Files" task in pipelines
A build that has run fine for the past 2 months is suddenly failing during "Archive Files" task. It seems to have to...
Read more >
ArchiveFiles@2 - Archive files v2 task - Microsoft Learn
Archive file to create. Default: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip. replaceExistingArchive: true # boolean. Required ...
Read more >
Sync-friendly git mirror of repo/gentoo with caches and metadata
... archive files app-arch/cfv 1.18.3-r1: Utility to test and create .sfv, ... Tool for creating error correction data (ecc) for optical media (DVD,...
Read more >
Azure Release Pipeline Fails Using Expand-Archive Command
Sometime in the last week, our pipeline started using Expand-Archive to open the .zip file during the "IIS Web App Deployment" step instead ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found