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

[BUG]: Downloading Powershell task fails #5041

Closed
1 of 4 tasks
spaasis opened this issue Nov 13, 2024 · 2 comments
Closed
1 of 4 tasks

[BUG]: Downloading Powershell task fails #5041

spaasis opened this issue Nov 13, 2024 · 2 comments

Comments

@spaasis
Copy link

spaasis commented Nov 13, 2024

What happened?

Hi,

Our previously working pipelines suddenly started to break with either of these two errors:

Download all required tasks.
Downloading task: PowerShell (2.247.1)
##[error]The archive entry was compressed using an unsupported compression method.
Download all required tasks.
Downloading task: PowerShell (2.247.1)
##[error]A local file header is corrupt.

We're still gathering information, but the pipeline has worked at least on November 6th. Back then the pipeline did not explicitly download the powershell task:

Download all required tasks.
Checking job knob settings.
   Knob: ...
Finished checking job knob settings.

Versions

Agent running on Windows, here's the relevant capabilities. We have tried with multiple agents with the same configuration.

Agent.Version: 3.246.0
Agent.OSVersion: 10.0.20348

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows 10

Version controll system

No response

Relevant log output

2024-11-13T09:12:44.3775432Z ##[section]Starting: Run database migrations to dev
2024-11-13T09:12:44.5910825Z ##[section]Starting: Initialize job
2024-11-13T09:12:44.5914533Z Agent name: 'XXX'
2024-11-13T09:12:44.5914800Z Agent machine name: 'XXX
2024-11-13T09:12:44.5914921Z Current agent version: '3.246.0'
2024-11-13T09:12:44.7108530Z Agent running as: 'XXX$'
2024-11-13T09:12:44.7108823Z Agent is running behind proxy server: 'XXX'
2024-11-13T09:12:44.7137861Z Prepare build directory.
2024-11-13T09:12:44.7417339Z Set build variables.
2024-11-13T09:12:44.7446379Z Download all required tasks.
2024-11-13T09:12:44.8563642Z Downloading task: PowerShell (2.247.1)
2024-11-13T09:12:48.8295954Z ##[error]A local file header is corrupt.
2024-11-13T09:12:48.8304266Z ##[section]Finishing: Initialize job
2024-11-13T09:12:48.8375190Z ##[section]Finishing: Run database migrations to dev
@spaasis
Copy link
Author

spaasis commented Nov 13, 2024

The tiniest repro pipeline:

trigger: none

pool: onpremAgentPool

steps:
- task: PowerShell@2
  inputs:
    targetType: inline
    script: Get-Module

fails with

Download all required tasks.
Downloading task: PowerShell (2.247.1)
##[error]The archive entry was compressed using an unsupported compression method.
Finishing: Initialize job

@spaasis
Copy link
Author

spaasis commented Nov 15, 2024

Turns out to have been caused by our overzealous security proxy, which apparently prevented parts of the zip file to download

@spaasis spaasis closed this as completed Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant