Unable to enter nix-shell

I’m using a clean linux machine from GCP, I installed nix following the next steps:

jhonatan_hernandez@instance-1:~$ curl https://nixos.org/nix/install | sh

. /home/jhonatan_hernandez/.nix-profile/etc/profile.d/nix.sh

And installed holochain running:

nix-shell https://holochain.love

and… this happened:


unpacking sources
/nix/store/1zpvvxqxypyx2hlsg4zm7jdh1dc7z7cz-stdenv-linux/setup: line 813: /build/env-vars: No such file or directory
unpacking source archive /nix/store/08px0migjsmcf0rh5zg8c8nqqjwm7da0-rust-std-nightly-wasm32-unknown-unknown.tar.xz
source root is rust-std-nightly-wasm32-unknown-unknown
find: '/build/..': No such file or directory
patching sources
/nix/store/1zpvvxqxypyx2hlsg4zm7jdh1dc7z7cz-stdenv-linux/setup: line 813: /build/env-vars: No such file or directory
configuring
/nix/store/1zpvvxqxypyx2hlsg4zm7jdh1dc7z7cz-stdenv-linux/setup: line 813: /build/env-vars: No such file or directory
no configure script, doing nothing
building
/nix/store/1zpvvxqxypyx2hlsg4zm7jdh1dc7z7cz-stdenv-linux/setup: line 813: /build/env-vars: No such file or directory
no Makefile, doing nothing
installing
/nix/store/1zpvvxqxypyx2hlsg4zm7jdh1dc7z7cz-stdenv-linux/setup: line 813: /build/env-vars: No such file or directory
patching script interpreter paths in install.sh
install.sh: interpreter directive changed from "/bin/bash" to "/nix/store/506nnycf7nk22x7n07mjjjl2g8nifpda-bash-4.4-p23/bin/bash"
mktemp: failed to create file via template '/build/tmp.XXXXXXXXXX': No such file or directory
builder for '/nix/store/h6n68sr4q6hkbsg1wzvnzmmkxzd3h22d-rust-std.drv' failed with exit code 1
cannot build derivation '/nix/store/7x70dgh5yj743lcdyahl9ywmf1518rqd-rust-1.38.0-nightly-2019-07-13-69656fa4c.drv': 1 dependencies couldn't be built
error: build of '/nix/store/7x70dgh5yj743lcdyahl9ywmf1518rqd-rust-1.38.0-nightly-2019-07-13-69656fa4c.drv', '/nix/store/gq192dvrhi35i2cmkgxxa8qxvmjbzpi5-hc.drv', '/nix/store/hzj1rmbm9a9yx2bz6cpwb5kw7bj5lfvv-trycp_server.drv', '/nix/store/rk12y7hz68b5p8ba294nhq07dvw18di0-sim2h_server.drv' failed
jhonatan_hernandez@instance-1:~$ 

Hey @JhonatanHern
We are getting successful builds on ubuntu with a fresh machine. Which linux distro is it?
Also maybe @thedavidmeister might have some insights.

It is a Debian GNU/Linux 9 (stretch)

Hmm this is the second issue I’ve seen with Debian. I wonder if it’s related to https://github.com/holochain/holonix/issues/113

@freesig @JhonatanHern looks like the sandbox config is needed, see Ubuntu and debian troubleshooting brain dump @philipbeadle

@JhonatanHern
Looks like what David is saying is to do this:

mkdir -p /etc/nix && echo 'sandbox = false' > /etc/nix/nix.conf

@JhonatanHern
Looks like what David is saying is to do this:

mkdir -p /etc/nix && echo 'sandbox = false' > /etc/nix/nix.conf

I did it, still doesn’t work. Same error.

@JhonatanHern could we do a f2f session on zoom or something?

might be easier to screenshare to debug then report back here for the next person…

1 Like

@thedavidmeister Hey Dave, this issue has been resolved. Popsi was able to help and recommended Ubuntu. They worked through the process last Wednesday. Jhonatan said he would post a follow-up message.

@JhonatanHern when you have a moment could you post the steps taken to resolve the issue so others can learn from your experience.

2 Likes

Sorry for not telling earlier. Switching to ubuntu solved it for me. I’m using ubuntu 19.04

Hi @JhonatanHern any additional info you can provide? In terms of the steps taken to resolve the issue?

There isn’t much to say. I deleted the machine running Debian, made other running ubuntu 19.04 and followed the instructions detailed in:

https://developer.holochain.org/docs/install/

1 Like

that’s weird, it’s working in the debian docker box in the test suite…