getaddrinfo ENOTFOUND registry.yarnpkg.com registry.yarnpkg.com:443

Bug #1745579 reported by Alvaro Uria
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snap Store Server
Confirmed
Undecided
Unassigned
Snapcraft
Invalid
Undecided
Unassigned

Bug Description

I've tried to build a snap in build.snapcraft.io but it looks it failed due to filtering reasons.

https://pastebin.canonical.com/208521/

Would it be possible to allow connections to registry.yarnpkg.com:443?

This is the snap that fails: https://github.com/auria/snap-grafana/

Changed in snapstore:
status: New → Invalid
Revision history for this message
Adam Collard (adam-collard) wrote :

Hmm, I suspect this is caused by the manual invocation of yarn.

Snapcraft's node plugin has support for yarn installs which does the right dance to pass in the config for the proxy.

Is there a reason you're using ~/.npm-global ?

Changed in snapcraft:
status: New → Incomplete
Revision history for this message
Alvaro Uria (aluria) wrote :

I am not so familiar with snaps so put all the building steps as described in Grafana's README.

I've now used node-package but still get the same error:
https://github.com/auria/snap-grafana/blob/master/snapcraft.yaml#L38

error An unexpected error occurred: "https://registry.yarnpkg.com/tinycolor2: getaddrinfo ENOTFOUND registry.yarnpkg.com registry.yarnpkg.com:443".
/build/ae01291f418f790aeb84a167f91878ca-xenial/parts/grafana-ui/npm/bin/yarn add grunt

If I don't add "grunt", it fails.

Changed in snapcraft:
status: Incomplete → New
Revision history for this message
Evan (ev) wrote :

I confirmed with Adam out of band that this is likely an issue in the buildds:

https://build.snapcraft.io/user/evandandrea/yarn-snap-test/136744
https://github.com/evandandrea/yarn-snap-test

I think this should be a high priority, given lighthouse apps using yarn (https://build.snapcraft.io/user/heroku/cli).

Changed in snapcraft:
status: New → Invalid
Changed in snapstore:
status: Invalid → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.