Skip to content

Instantly share code, notes, and snippets.

RUST_BACKTRACE=1 /run/current-system/sw/bin/holochain -c /var/lib/holochain/conductor-config.toml
Using config path: /var/lib/holochain/conductor-config.toml
Unlocking agent keys:
Unlocking key for agent 'host-agent':
Reading keystore from /home/holochain/.config/holochain/keys/HcSCjhf9nyIIa6piy9dk573WKUNH3PcsbvJH4W7Vu7zQw4bxn5mvrmA64w4E4dz
Spawning network with working directory: /var/lib/holochain/.n3h
Error while spawning network process: Os { code: 2, kind: NotFound, message: "No such file or directory" }
stack backtrace:
0: backtrace::backtrace::trace_unsynchronized::hf08ddc8d4cc7493c (0x55c203ea39d6)
{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem}:
let
nodePackages = import ./default.nix {
inherit pkgs system;
};
in
nodePackages // {
nix-shell https://holochain.love/nightly
these derivations will be built:
/nix/store/0rm1lqxsqq20l2k825qdxm06jil2l5nd-hc-cli-uninstall.drv
/nix/store/1nhc8132i6js5bvkyn9h88rlg5j0fn3i-hc-qt-c-bindings-flush.drv
/nix/store/m4dd1f5vmjd68rln3rvn1xq4h5pks9nf-conductor-v0.0.13-alpha1-x86_64-generic-linux-gnu.tar.gz.drv
/nix/store/2cb3hw49zcxz2v03r6sj1vvisl1w7lbg-holochain.drv
/nix/store/2fzba17jdsmv5g5ic3bywlvccbkmh7aw-hc-rust-coverage.drv
/nix/store/2x195ja2gzlffhjxh11j56xfaw7q7sis-hc-release-deploy.drv
/nix/store/34p6by04r3hn8lc2ibkmbja2r1bqpb3j-hc-rust-manifest-install.drv
/nix/store/3rkq6yaah8zqh9kqwxnzzdryj0srzbd8-hc-cli-test.drv
@samrose
samrose / nix-n3h.bash
Created May 1, 2019 17:36 — forked from neonphog/nix-n3h.bash
nix-n3h.bash
#!/bin/bash
# -- sane bash errors -- #
set -Eeuo pipefail
# -- docker exec -- #
cat > Dockerfile <<EOF
FROM nixos/nix
RUN nix-channel --add https://github.com/Holo-Host/nixpkgs-channels/archive/680f9d7ea90dd0b48b51f29899c3110196b0e913.tar.gz
strace echo "{}" | N3H_WORK_DIR=/var/lib/holochain/.n3h ./n3h-nix.bash --smoke
execve("/run/current-system/sw/bin/echo", ["echo", "{}"], 0x7ffffc22ab68 /* 42 vars */) = 0
brk(NULL) = 0x80c000
access("/etc/ld-nix.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/rb2z41k2rnq7abzklsbi457wd3hg242y-acl-2.2.52/lib/tls/x86_64/x86_64/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/nix/store/rb2z41k2rnq7abzklsbi457wd3hg242y-acl-2.2.52/lib/tls/x86_64/x86_64", 0x7fffa8b87dc0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/rb2z41k2rnq7abzklsbi457wd3hg242y-acl-2.2.52/lib/tls/x86_64/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/nix/store/rb2z41k2rnq7abzklsbi457wd3hg242y-acl-2.2.52/lib/tls/x86_64", 0x7fffa8b87dc0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/rb2z41k2rnq7abzklsbi457wd3hg242y-acl-2.2.52/lib/tls/x86_64/librt.so.1", O_RDONLY|O_CLOEXE
bridges = []
persistence_dir = "/home/vagrant/.holochain/holo"
signing_service_uri = "http://localhost:8888"
[[agents]]
id = "host-agent"
name = "Envoy Host"
keystore_file = "/home/vagrant/.config/holochain/keys/HcSCIC34oWznwez78nmfQgsjS9Csew969pDvy9Fxmmopy9nidw7aX6fW8GTcupa"
public_address = "HcSCIC34oWznwez78nmfQgsjS9Csew969pDvy9Fxmmopy9nidw7aX6fW8GTcupa"
[nix-shell:~/envoy]$ npm run integration
> [email protected] integration /home/vagrant/envoy
> ts-node integration-tests/index.ts
TAP version 13
# can do hosted zome call
Created directory for integration tests: /run/user/1000/holo-envoy/test-storage-bC56n4
Cleared storage.
Creating new key data at /run/user/1000/holo-envoy/test-keydata
npm run happs:build
> [email protected] happs:build /home/vagrant/envoy
> ts-node src/scripts/build-happs.ts build
Building core hApps...
Packaging DNA for '/home/vagrant/servicelogger'...
Finished release [optimized] target(s) in 0.09s
Finished release [optimized] target(s) in 0.09s
Packaging DNA for '/home/vagrant/Holo-Hosting-App/dna-src'...
10.147.20.134: connection failed, retrying ...
10.147.20.134: connection OK
10.147.20.134: connection failed, retrying ...
10.147.20.134: connection OK
10.147.20.134: connection failed, retrying ...
10.147.20.79: connection OK
10.147.20.134: connection OK
10.147.20.134: connection failed, retrying ...
10.147.20.89: connection failed, retrying ...
10.147.20.134: connection OK
$ nix-store --query --referrers /nix/store/wggjpmgxx911csw1jpvi5c7aplb78yz6-openssl-1.0.2r
/nix/store/wggjpmgxx911csw1jpvi5c7aplb78yz6-openssl-1.0.2r
/nix/store/niv26kjhwb2962b99gl4pxa8205v9afs-openssl-1.0.2r-bin
/nix/store/1khl2qrhxadhfvdbv6h66svbpsd3nkcr-appimage-run-usr-multi
/nix/store/1la2q0grsbnkjbxj0dp4j2rxdpvdsp8l-cyrus-sasl-2.1.26
/nix/store/752imzqbpm1wy0z25r0vjsj0q7amndpm-libevent-2.1.8
/nix/store/c383wr1grpyvv0p4hyhhcrk731pizi1g-iputils-20180629
/nix/store/i8bhk6ya5k9djyvkhnrpffvsh8l8m7dw-openldap-2.4.46
/nix/store/w0j51zzfwr8drkpa47bar883dhn7h761-libssh2-1.8.0
/nix/store/wfbchmq0ifx47i23yxcv79ykls9072qx-python-2.7.15