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]: DockerInstaller@0 keeps getting intermittent certificate error #19854

Open
4 of 7 tasks
GavinToddlds opened this issue May 9, 2024 · 0 comments
Open
4 of 7 tasks

Comments

@GavinToddlds
Copy link

New issue checklist

Task name

DockerInstaller

Task version

0.238.1

Issue Description

Intermittently we are seeing the error unable to get local issuer certificate when attempting to download the docker cli. Running the task again generally fixes it but it seems to be happening more frequently then previously

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)

n/a

Operation system

Ubuntu 22.04

Relevant log output

Because it is intermittent it is hard to get debug logs but i will try

Downloading: https://download.docker.com/linux/static/stable/x86_64/docker-26.1.1.tgz
##[error]Error: Failed to download Docker from location https://download.docker.com/linux/static/stable/x86_64/docker-26.1.1.tgz. Error Error: unable to get local issuer certificate
    at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34)
    at TLSSocket.emit (node:events:518:28)
    at TLSSocket._finishInit (node:_tls_wrap:1085:8)
    at ssl.onhandshakedone (node:_tls_wrap:871:12) {
  code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'
}


### Full task logs with system.debug enabled

<details>
  <pre> Downloading: https://download.docker.com/linux/static/stable/x86_64/docker-26.1.1.tgz
##[error]Error: Failed to download Docker from location https://download.docker.com/linux/static/stable/x86_64/docker-26.1.1.tgz. Error Error: unable to get local issuer certificate
    at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34)
    at TLSSocket.emit (node:events:518:28)
    at TLSSocket._finishInit (node:_tls_wrap:1085:8)
    at ssl.onhandshakedone (node:_tls_wrap:871:12) {
  code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'
}
</pre>
</details>


### Repro steps

```yml
# can use any version i've seen it happen on 26.1.1 25.0.5 and a 17.x.x version
  - task: DockerInstaller@0
    displayName: Install Docker
    inputs:
      dockerVersion: 26.1.1
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