X Tutup
The Wayback Machine - https://web.archive.org/web/20200912121237/https://github.com/DBCDK/morph/issues/111
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

Unavailable binary cache hangs deploy #111

Open
xavierzwirtz opened this issue Mar 25, 2020 · 3 comments
Open

Unavailable binary cache hangs deploy #111

xavierzwirtz opened this issue Mar 25, 2020 · 3 comments

Comments

@xavierzwirtz
Copy link

@xavierzwirtz xavierzwirtz commented Mar 25, 2020

If a binary cache is unavailable, morph deploy gets stuck:

$ morph deploy --on="*" ./deployments/dogpound/default.nix switch
Selected 1/1 hosts (name filter:-0, limits:-0):
	  0: hephaestus.birddogsw.local (secrets: 7, health checks: 0)

warning: unable to download 'http://nix-cache.atlas.birddogsw.local/4inaxiv1ca0l2d3qadz5fl8hwl9a03ba.narinfo': Couldn't resolve host name (6); retrying in 274 ms

Nothing else happened after waiting 10~ minutes.

@xavierzwirtz
Copy link
Author

@xavierzwirtz xavierzwirtz commented Mar 25, 2020

Looks like this is not an issue with morph, also get this behavior with standard nixos-rebuild. I can add --build-arg="--option" --build-arg="binary-caches" --build- arg='""' to the call to morph, but that is painful, and marked as deprecated.

@johanot
Copy link
Contributor

@johanot johanot commented May 13, 2020

@xavierzwirtz perhaps you can override the binary-cache list with network.nixConfig in your morph-expression?
See: https://github.com/DBCDK/morph/#advanced-configuration

@xavierzwirtz
Copy link
Author

@xavierzwirtz xavierzwirtz commented May 13, 2020

Issue is not occurring now so I cant test, but that probably would have worked. Would be nice to have an ergonomic way to do it from the cli though.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.
X Tutup