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

Yarn tasks fails due to DNS issue? getaddrinfo ENOTFOUND publicblobs.geeklearning.io publicblobs.geeklearning.io:443 #103

Open
dotansimha opened this issue Nov 23, 2021 · 16 comments

Comments

@dotansimha
Copy link

Since a few hours ago, it seems like publicblobs.geeklearning.io is down, leading to a failure when using the VSTS task:

Starting: Use Yarn (1.x)
==============================================================================
Task         : Yarn Tool Installer
Description  : Installs a version of Yarn
Version      : 3.0.1999
Author       : Geek Learning
Help         : [More Information](https://github.com/geeklearningio/gl-vsts-tasks-yarn/wiki/Yarn) (Version 3.0.1999)
==============================================================================
##[warning]This task uses Node 6 execution handler, which will be deprecated soon. If you are the developer of the task - please consider the migration guideline to Node 10 handler - https://aka.ms/migrateTaskNode10. If you are the user - feel free to reach out to the owners of this task to proceed on migration.
##[error]getaddrinfo ENOTFOUND publicblobs.geeklearning.io publicblobs.geeklearning.io:443
Finishing: Use Yarn (1.x)

@dotansimha
Copy link
Author

@sandorfr any idea how this can be resolved?

@shayb-datumate
Copy link

Having the same issue as well

@mike-eo
Copy link

mike-eo commented Nov 23, 2021

From a WHOIS search, it looks like the domain name has expired today (November 23, 2021). That's why the fetch is failing...

@dotansimha
Copy link
Author

Seems like latest ubuntu image of Azure DevOps supports Yarn as built-in so I'm not sure if this task is needed...

@tx-tim
Copy link

tx-tim commented Nov 23, 2021

Confirmed comment by @dotansimha - Just ran my build task without the installer and subsequent tasks using yarn were able to execute

@sgaloux
Copy link

sgaloux commented Nov 23, 2021

Having exactly the same issue, my devops task fails :
image

@norlandoPDDS
Copy link

Seems like latest ubuntu image of Azure DevOps supports Yarn as built-in so I'm not sure if this task is needed...

Yarn 1.22.17 is also built-in on windows-2016, windows-2019 and windows-2022 build agents as well.

@RPbarfield
Copy link

RPbarfield commented Nov 23, 2021

I unchecked the "Always download the latest matching version" in my Use Yarn task and the builds are working again. Once this is fixed, I'll go back to downloading Yarn.
image

@dthomason
Copy link

confirmed @norlandoPDDS was correct. Just pulled out task: YarnInstaller@3 and everything built fine.

@alangdcdevop
Copy link

Confirmed, just uncheck "Always download the lastest matchig version" and its works like charm.
Thanks @RPbarfield

@sandorfr
Copy link
Member

sandorfr commented Nov 23, 2021 via email

@kenlyon
Copy link

kenlyon commented Nov 23, 2021

The value of this tasks was in being able to stay up to date with the latest version, though. Seems a more robust way would be for it to check https://registry.npmjs.org/yarn.

@sandorfr
Copy link
Member

sandorfr commented Nov 23, 2021 via email

@jlopez-technisys
Copy link

The error has already been solved?

@sandorfr
Copy link
Member

sandorfr commented Dec 2, 2021

I'm actually wondering if there is any value to this tool installer task anymore since yarn no supports installs via npm, and azure pipelines now supports chocolatey. This give two builtin way to install yarn without relying on this 3rd party (as neither official yarn or azur pipelines).

Since I have the attention of some fellow users of this, what are your thoughts?

@sandorfr
Copy link
Member

sandorfr commented Dec 3, 2021

To clarify my thoughts, yarn 1.x is available in the standard agent image. When it comes to yarn 2.x and ulterior, they can be enabled directly via corepack.

The following would be a an example that does everything without this extension.

  - task: NodeTool@0
    inputs:
      versionSpec: '16.13.x'
  - task: Bash@3
    displayName: Yarn enable
    inputs:
      targetType: 'inline'
      script: |
        corepack enable
        corepack prepare yarn@3.1.1 --activate
  - task: Cache@2
    inputs:
      key: '"yarn" | "$(Agent.OS)" | yarn.lock'
      restoreKeys: |
        yarn | "$(Agent.OS)"
        yarn
      path: $(YARN_CACHE_FOLDER)
    displayName: Cache Yarn packages
  - task: Bash@3
    displayName: Yarn
    inputs:
      targetType: 'inline'
      script: |
        yarn --frozen-lockfile
  - task: Bash@3
    displayName: Yarn build
    inputs:
      targetType: 'inline'
      script: |
        yarn build

If package feed authentication is needed, npm authenticate should do the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests