Skip to content

Instantly share code, notes, and snippets.

@samrose
Created May 14, 2019 14:12
Show Gist options
  • Select an option

  • Save samrose/0ae2002f06c10f89f3e0c6e1e35a676b to your computer and use it in GitHub Desktop.

Select an option

Save samrose/0ae2002f06c10f89f3e0c6e1e35a676b to your computer and use it in GitHub Desktop.
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)
1: backtrace::capture::Backtrace::new_unresolved::h435798f0bf340c5e (0x55c203ea3116)
2: <failure::backtrace::Backtrace as core::default::Default>::default::hb42766596c9ce8ec (0x55c203ea28e7)
3: holochain_net::ipc::spawn::ipc_spawn::h479102bd44f4555a (0x55c203cd5286)
4: holochain_conductor_api::conductor::base::Conductor::boot_from_config::he3def729e6cdec44 (0x55c203a6e1f8)
5: holochain::main::h919fb3a924b6e11d (0x55c20412fa86)
6: std::rt::lang_start::{{closure}}::h0f06581e5d99b2b1 (0x55c204136112)
7: main (0x55c204129d3c)
8: __libc_start_main (0x7f748c9e6b8d)
9: _start (0x55c203851158)
10: <unknown> (0x0)
Reading DNA from /nix/store/8ppa5kzqylx9pj5m44n7igvbkks9j3m2-envoy/envoy/HHA-dna-src.dna.json
thread '<unnamed>' panicked at 'ErrorMessage { msg: "config.spawn or config.ipcUri is required" }
stack backtrace:
0: backtrace::backtrace::trace_unsynchronized::hf08ddc8d4cc7493c (0x55c203ea39d6)
1: backtrace::capture::Backtrace::new_unresolved::h435798f0bf340c5e (0x55c203ea3116)
2: <failure::backtrace::Backtrace as core::default::Default>::default::hb42766596c9ce8ec (0x55c203ea28e7)
3: <F as alloc::boxed::FnBox<A>>::call_box::h5ac60748d140d48c (0x55c203d102be)
4: std::sys_common::backtrace::__rust_begin_short_backtrace::h837f0628a6ebb7ca (0x55c203d048d7)
5: <F as alloc::boxed::FnBox<A>>::call_box::hac11a89b8dda8c28 (0x55c203d05ed8)
6: <alloc::boxed::Box<(dyn alloc::boxed::FnBox<A, Output=R> + 'a)> as core::ops::function::FnOnce<A>>::call_once::h93cf98f22e0fd5c9 (0x55c2040ee829)
at /rustc/19f8958f827e379be9b0ffc93fca580ec8ffac77/src/liballoc/boxed.rs:744
std::sys_common::thread::start_thread::he849c686b0bafe63
at src/libstd/sys_common/thread.rs:14
std::sys::unix::thread::Thread::new::thread_start::hccbef199b5f9a0dc
at src/libstd/sys/unix/thread.rs:81
7: start_thread (0x7f748cf965a6)
8: __GI___clone (0x7f748cab722e)
9: <unknown> (0x0)', net/src/connection/net_connection_thread.rs:51:73
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:70
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
2: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:215
at src/libstd/panicking.rs:478
3: std::panicking::continue_panic_fmt
at src/libstd/panicking.rs:385
4: std::panicking::begin_panic_fmt
at src/libstd/panicking.rs:340
thread '<unnamed>' panicked at 'Failed to receive endpoint address from net worker: RecvError', src/libcore/result.rs:997:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
1: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:70
at src/libstd/sys_common/backtrace.rs:58
at src/libstd/panicking.rs:200
2: std::panicking::rust_panic_with_hook
at src/libstd/panicking.rs:215
at src/libstd/panicking.rs:478
3: std::panicking::continue_panic_fmt
at src/libstd/panicking.rs:385
4: rust_begin_unwind
at src/libstd/panicking.rs:312
5: core::panicking::panic_fmt
at src/libcore/panicking.rs:85
6: core::result::unwrap_failed
7: holochain_net::p2p_network::P2pNetwork::new
8: holochain_core::network::reducers::init::reduce_init
9: holochain_core::state::State::reduce
10: holochain_core::instance::Instance::process_action
@samrose
Copy link
Author

samrose commented May 14, 2019

bridges = []
persistence_dir = "/var/lib/holochain"
signing_service_uri = "http://localhost:8888"

[network]
bootstrap_nodes = []
n3h_persistence_path = "/var/lib/holochain/.n3h"
[[agents]]
id = "host-agent"
name = "Envoy Host"
keystore_file = "/home/holochain/.config/holochain/keys/HcSCjhf9nyIIa6piy9dk573WKUNH3PcsbvJH4W7Vu7zQw4bxn5mvrmA64w4E4dz"
public_address = "HcSCjhf9nyIIa6piy9dk573WKUNH3PcsbvJH4W7Vu7zQw4bxn5mvrmA64w4E4dz"

[[dnas]]
file = "/nix/store/8ppa5kzqylx9pj5m44n7igvbkks9j3m2-envoy/envoy/HHA-dna-src.dna.json"
id = "holo-hosting-app"

[[dnas]]
file = "/nix/store/8ppa5kzqylx9pj5m44n7igvbkks9j3m2-envoy/envoy/HAS-dna-src.dna.json"
id = "happ-store"

[[dnas]]
file = "/nix/store/8ppa5kzqylx9pj5m44n7igvbkks9j3m2-envoy/envoy/holofuel.dna.json"
id = "holofuel"

[[instances]]
agent = "host-agent"
dna = "holo-hosting-app"
id = "holo-hosting-app"
[instances.storage]
path = "/var/lib/holochain/storage/holo-hosting-app"
type = "file"

[[instances]]
agent = "host-agent"
dna = "happ-store"
id = "happ-store"
[instances.storage]
path = "/var/lib/holochain/storage/happ-store"
type = "file"

[[instances]]
agent = "host-agent"
dna = "holofuel"
id = "holofuel"
[instances.storage]
path = "/var/lib/holochain/storage/holofuel"
type = "file"

[[interfaces]]
id = "master-interface"
admin = true

[[interfaces.instances]]
id = "holo-hosting-app"
[[interfaces.instances]]
id = "happ-store"

[interfaces.driver]
port = 1111
type = "websocket"

[[interfaces]]
id = "public-interface"

[interfaces.driver]
port = 2222
type = "websocket"

[[interfaces]]
id = "internal-interface"

[interfaces.driver]
port = 3333
type = "websocket"

[[ui_bundles]]
hash = 'Qm000'
id = 'hha-ui'
root_dir = 'hha-ui'

[[ui_interfaces]]
bundle = 'hha-ui'
dna_interface = 'master-interface'
id = 'hha-ui-interface'
port = 8800

[[ui_bundles]]
hash = 'Qm001'
id = 'happ-store-ui'
root_dir = '/nix/store/8ppa5kzqylx9pj5m44n7igvbkks9j3m2-envoy/envoy/has-ui'

[[ui_interfaces]]
bundle = 'happ-store-ui'
dna_interface = 'master-interface'
id = 'happ-store-ui-interface'
port = 8880

[logger]
type = "debug"
[[logger.rules.rules]]
color = "red"
exclude = false
pattern = "^err/"
[[logger.rules.rules]]
color = "white"
exclude = false
pattern = "^debug/dna"
[[logger.rules.rules]]
exclude = true
pattern = ".*"

@samrose
Copy link
Author

samrose commented May 14, 2019

[Unit]
After=local-fs.target network.target systemd-activation.service
Description=Holochain conductor service
Requires=systemd-activation.service

[Service]
Environment="LOCALE_ARCHIVE=/nix/store/xhx74n52mwajpb3cbb351wzg851pq0yw-glibc-locales-2.27/lib/locale/locale-archive"
Environment="NIX_STORE=/nix/store"
Environment="PATH=/nix/store/68z2cvbzws1pn0z8dhgfkmws75r2z7gm-coreutils-8.29/bin:/nix/store/6ddj3i7yqdl8d6gk09c1sj4nqhb0ny8p-findutils-4.6.0/bin:/nix/store/xkzmszz7vp1wdgbpyfvb>
Environment="TZDIR=/nix/store/kgalm5lsgv0wxxpkdmhri960z9lc4smx-tzdata-2018g/share/zoneinfo"
Environment="USER=holochain"

ExecStart=/run/current-system/sw/bin/holochain -c /var/lib/holochain/conductor-config.toml
KillMode=process
StandardOutput=journal
User=holochain

@samrose
Copy link
Author

samrose commented May 14, 2019

/nix/store/bk0f8cfang09jq2yk64y8p5qqc8id9qi-unit-holochain.service/holochain.service

[Unit]
After=local-fs.target network.target systemd-activation.service
Description=Holochain conductor service
Requires=systemd-activation.service

[Service]
Environment="LOCALE_ARCHIVE=/nix/store/xhx74n52mwajpb3cbb351wzg851pq0yw-glibc-locales-2.27/lib/locale/locale-archive"
Environment="NIX_STORE=/nix/store"
Environment="PATH=/nix/store/68z2cvbzws1pn0z8dhgfkmws75r2z7gm-coreutils-8.29/bin:/nix/store/6ddj3i7yqdl8d6gk09c1sj4nqhb0ny8p-findutils-4.6.0/bin:/nix/store/xkzmszz7vp1wdgbpyfvb1wns2qlx9mhz-gnugrep-3.1/bin:/nix/store/j2kj1w5glbr5pg39ssihqk5622jjsghs-gnused-4.5/bin:/nix/store/y0782jzmcmvjz0wndzlq6kqzcw2d881g-systemd-239.20190219/bin:/nix/store/68z2cvbzws1pn0z8dhgfkmws75r2z7gm-coreutils-8.29/sbin:/nix/store/6ddj3i7yqdl8d6gk09c1sj4nqhb0ny8p-findutils-4.6.0/sbin:/nix/store/xkzmszz7vp1wdgbpyfvb1wns2qlx9mhz-gnugrep-3.1/sbin:/nix/store/j2kj1w5glbr5pg39ssihqk5622jjsghs-gnused-4.5/sbin:/nix/store/y0782jzmcmvjz0wndzlq6kqzcw2d881g-systemd-239.20190219/sbin"
Environment="TZDIR=/nix/store/kgalm5lsgv0wxxpkdmhri960z9lc4smx-tzdata-2018g/share/zoneinfo"
Environment="USER=holochain"

ExecStart=/run/current-system/sw/bin/holochain -c /var/lib/holochain/conductor-config.toml
KillMode=process
StandardOutput=journal
User=holochain

@samrose
Copy link
Author

samrose commented May 14, 2019

bridges = []
persistence_dir = "/var/lib/holochain"
signing_service_uri = "http://localhost:8888"

[network]
bootstrap_nodes = []
n3h_persistence_path = "/home/holochain/.n3h"
[[agents]]
id = "host-agent"
name = "Envoy Host"
keystore_file = "/home/holochain/.config/holochain/keys/HcSCjhf9nyIIa6piy9dk573WKUNH3PcsbvJH4W7Vu7zQw4bxn5mvrmA64w4E4dz"
public_address = "HcSCjhf9nyIIa6piy9dk573WKUNH3PcsbvJH4W7Vu7zQw4bxn5mvrmA64w4E4dz"

[[dnas]]
file = "/nix/store/8ppa5kzqylx9pj5m44n7igvbkks9j3m2-envoy/envoy/HHA-dna-src.dna.json"
id = "holo-hosting-app"

[[dnas]]
file = "/nix/store/8ppa5kzqylx9pj5m44n7igvbkks9j3m2-envoy/envoy/HAS-dna-src.dna.json"
id = "happ-store"

[[dnas]]
file = "/nix/store/8ppa5kzqylx9pj5m44n7igvbkks9j3m2-envoy/envoy/holofuel.dna.json"
id = "holofuel"

[[instances]]
agent = "host-agent"
dna = "holo-hosting-app"
id = "holo-hosting-app"
[instances.storage]
path = "/var/lib/holochain/storage/holo-hosting-app"
type = "file"

[[instances]]
agent = "host-agent"
dna = "happ-store"
id = "happ-store"
[instances.storage]
path = "/var/lib/holochain/storage/happ-store"
type = "file"

[[instances]]
agent = "host-agent"
dna = "holofuel"
id = "holofuel"
[instances.storage]
path = "/var/lib/holochain/storage/holofuel"
type = "file"

[[interfaces]]
id = "master-interface"
admin = true

[[interfaces.instances]]
id = "holo-hosting-app"
[[interfaces.instances]]
id = "happ-store"

[interfaces.driver]
port = 1111
type = "websocket"

[[interfaces]]
id = "public-interface"

[interfaces.driver]
port = 2222
type = "websocket"

[[interfaces]]
id = "internal-interface"

[interfaces.driver]
port = 3333
type = "websocket"

[[ui_bundles]]
hash = 'Qm000'
id = 'hha-ui'
root_dir = 'hha-ui'

[[ui_interfaces]]
bundle = 'hha-ui'
dna_interface = 'master-interface'
id = 'hha-ui-interface'
port = 8800

[[ui_bundles]]
hash = 'Qm001'
id = 'happ-store-ui'
root_dir = '/nix/store/8ppa5kzqylx9pj5m44n7igvbkks9j3m2-envoy/envoy/has-ui'

[[ui_interfaces]]
bundle = 'happ-store-ui'
dna_interface = 'master-interface'
id = 'happ-store-ui-interface'
port = 8880

[logger]
type = "debug"
[[logger.rules.rules]]
color = "red"
exclude = false
pattern = "^err/"
[[logger.rules.rules]]
color = "white"
exclude = false
pattern = "^debug/dna"
[[logger.rules.rules]]
exclude = true
pattern = ".*"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment