Open PerttyZhan opened 9 months ago
Run devbox shell
error:
Error: Command: /nix/var/nix/profiles/default/bin/nix print-dev-env /Users/zhanheng/workspace/my/wzjxbz-master/.devbox/gen/flake --extra-experimental-features ca-derivations --option experimental-features nix-command flakes fetch-closure --json: exit status 1
@PerttyZhan could you do export DEVBOX_DEBUG=1
, re-run devbox shell
, and then share the output please?
@PerttyZhan could you do
export DEVBOX_DEBUG=1
, re-rundevbox shell
, and then share the output please?
thank. when i run again, It actually worked but when i download new package, it worked Fail frequently
run devbox add vim@8.2.345
expect success
but download fail
2023/12/05 09:12:14 findProjectDir: path is
2023/12/05 09:12:14 finding devbox.json in dir: /Users/zhanheng/workspace/my/wzjxbz-master
2023/12/05 09:12:14 findProjectDir: path is
2023/12/05 09:12:14 finding devbox.json in dir: /Users/zhanheng/workspace/my/wzjxbz-master
2023/12/05 09:12:14 findProjectDir: path is
2023/12/05 09:12:14 finding devbox.json in dir: /Users/zhanheng/workspace/my/wzjxbz-master
Info: Adding package "vim@8.2.3451" to devbox.json
Installing package: vim@8.2.3451.
[1/1] vim@8.2.3451
2023/12/05 09:12:22 running command: /nix/var/nix/profiles/default/bin/nix profile install --profile /Users/zhanheng/workspace/my/wzjxbz-master/.devbox/nix/profile/default --impure --priority 9 /nix/store/kck9cmbg0z35vv7vz1vdz02003cs6092-vim-8.2.3451 --extra-experimental-features ca-derivations --option experimental-features nix-command flakes fetch-closure
warning: error: unable to download 'https://cache.nixos.org/kck9cmbg0z35vv7vz1vdz02003cs6092.narinfo': Timeout was reached (28); retrying in 255 ms
querying vim-8.2.3451 on https://cache.nixos.org
This looks like maybe a network issue trying to download from the cache, but I'll try to reproduce and see if it's something else.
That vim package installed ok for me, so I think it's probably a network issue. We should tweak the error message to explain when this is the case, so that it's clearer what's happening.
@PerttyZhan thanks for sharing that. For clarity:
devbox shell
should still start up (but may be slower since it cannot use the cache), but I could be wrong.
Current Behavior (bug) Run
devbox shell
is failing, wating for long time, finally report an errorExpected Behavior (fix) Run
devbox shell
successAdditional context
devbox version -v
devbox.json`