Chocolatey package failures

charlie's Avatar


08 May, 2019 06:38 PM

At Slack, we're seeing flaky builds quite often lately. Almost all of them boil down to what looks like a network problem:

 - jq (exited 1) - jq not installed. An error occurred during installation:
 The remote name could not be resolved: ''

This comes from a one-liner in our init script:

- ps: cinst jq

Is there a more reliable method we can use to install Chocolatey packages? Should we not be doing this in init? Do we need to handle network failures at the level of our appveyor script?

  1. 1 Posted by Ilya Finkelshte... on 08 May, 2019 06:44 PM

    Ilya Finkelshteyn's Avatar

    Hi Charlie,

    Can you please send links to the specific build jobs (the more the better) so we can find some commonality?


  2. 2 Posted by charlie on 08 May, 2019 06:53 PM

    charlie's Avatar
  3. 3 Posted by Ilya Finkelshte... on 08 May, 2019 07:25 PM

    Ilya Finkelshteyn's Avatar

    Looking into it. Please add retry as a workaround meanwhile, e.g. appveyor-retry cinst jq. Also please send us if you see more errors (even if they hidden by retry).

  4. 4 Posted by Ilya Finkelshte... on 09 May, 2019 01:29 AM

    Ilya Finkelshteyn's Avatar

    We changed DNS servers applied to build workers (it was Cloudflare and Google and now it is only Google and will observe how it works. If you do not see any retries happens in next couple of days, you can remove this workaround (which however could be useful for other cases like Chocolatey CDN issues as well).

  5. 5 Posted by charlie on 09 May, 2019 04:50 AM

    charlie's Avatar

    Thanks for looking Ilya; we've added some appveyor-retrys and I'll report back if the flakiness continues.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac