Comments (9)
@pospi @maackle next holonix release that passes tests should have a working sim2h_server
binary in it, so you can run your own for testing
from tryorama.
Probably best to stick to n3h if it works. It's the only one that has a chance of working with zero config. i.e., set globalOptions: {network: 'n3h'}
in the orchestrator config
The error you show above for n3h has to do with some native node deps, in particular:
Error: /home/pospi/projects/holo-rea/oce-holo/node_modules/better-sqlite3/build/better_sqlite3.node: undefined symbol: _ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorE
Can you try running it in a holonix nix shell? That might help. No need to include n3h as a dep by the way.
For the other configs:
- memory will only work with
singleConductorMiddleware
(importable from try-o-rama) since memory networking can't connect separate conductor processes. Not recommended at the moment. - websocket just plain doesn't work yet
- sim1h will work if you also spin up a local dynamodb instance (you can run
dynamodb-memory
from a holochain-rust nix-shell, but that's kind of a pain if you don't already have holochain-rust cloned) - sim2h won't even work at the moment, because support for it hasn't made it into a holochain release yet (and you'll still have to run a local server for it)
sim1h is the most reliable, n3h is the only no-config option that may work.
bear in mind that the network config can be a string or an object with a "type" key. The former is a shortcut. So both of these are valid config values:
globalConfig: {network: 'n3h'}
and
globalConfig: {network: {type: 'sim1h', dynamo_url: 'http://localhost:9000'}}
(there is no string-only config for sim1h, only for n3h, memory, and websocket)
from tryorama.
I am running from within Nix- see https://github.com/holo-rea/holo-rea/blob/master/default.nix
It looks like n3h
isn't present in the latest Holonix releases? :/
10:08:25 info:
☯☯☯ [[[CONDUCTOR alice]]]
☯ response: Err(ErrorMessage { msg: "Failed to execute \"n3h\" \"--version\": Os { code: 2, kind: NotFound, message: \"No such file or directory\" }" }
☯
☯
10:08:25 info:
☸☸☸ [[[CONDUCTOR alice]]]
☸ stack backtrace:
☸ 0: <failure::backtrace::Backtrace as core::default::Default>::default::hf47ec305011f6e9a (0x5569b349e5ff)
☸ 1: holochain_net::ipc::n3h::sub_check_n3h_version::h2ab800f5bc859471 (0x5569b2f5e7ea)
☸ 2: holochain_net::ipc::n3h::check_n3h_version::h13c40df9f85b4ff1 (0x5569b2f5cc43)
☸ 3: holochain_net::ipc::n3h::get_verify_n3h::h25bfa3c137243952 (0x5569b2f58956)
☸ 4: holochain_net::ipc::spawn::ipc_spawn::h39c6fce7925fc2ea (0x5569b2f5f94d)
☸ 5: holochain_conductor_api::conductor::base::Conductor::boot_from_config::hfd0813cc0f559a5f (0x5569b2c01134)
☸ 6: holochain::main::h42015483a858f682 (0x5569b36e2ec4)
☸ 7: std::rt::lang_start::{{closure}}::hac2398bb76549806 (0x5569b36f02a3)
☸ 8: main (0x5569b36dec8e)
☸ 9: __libc_start_main (0x7f03d1fafb8e)
☸ 10: _start (0x5569b28ef28a)
☸ 11: <unknown> (0x0))
☸
10:08:25 info:
☮☮☮ [[[CONDUCTOR alice]]]
☮ response: Err(ErrorMessage { msg: "Failed to execute \"n3h\" \"--appimage-extract-and-run\" \"--version\": Os { code: 2, kind: NotFound, message: \"No such file or directory\" }" }
☮
☮ stack backtrace:
☮ 0: <failure::backtrace::Backtrace as core::default::Default>::default::hf47ec305011f6e9a (0x5569b349e5ff)
☮ 1: holochain_net::ipc::n3h::sub_check_n3h_version::h2ab800f5bc859471 (0x5569b2f5e7ea)
☮
10:08:25 info:
☉☉☉ [[[CONDUCTOR alice]]]
☉ 2: holochain_net::ipc::n3h::check_n3h_version::h13c40df9f85b4ff1 (0x5569b2f5cd67)
☉ 3: holochain_net::ipc::n3h::get_verify_n3h::h25bfa3c137243952 (0x5569b2f58956)
☉ 4: holochain_net::ipc::spawn::ipc_spawn::h39c6fce7925fc2ea (0x5569b2f5f94d)
☉ 5: holochain_conductor_api::conductor::base::Conductor::boot_from_config::hfd0813cc0f559a5f (0x5569b2c01134)
☉ 6: holochain::main::h42015483a858f682 (0x5569b36e2ec4)
☉ 7: std::rt::lang_start::{{closure}}::hac2398bb76549806 (0x5569b36f02a3)
☉ 8: main (0x5569b36dec8e)
☉ 9: __libc_start_main (0x7f03d1fafb8e)
☉ 10: _start (0x5569b28ef28a)
☉ 11: <unknown> (0x0))
☉
from tryorama.
@pospi those aren't actual problems. If there is no n3h available, it will be downloaded from the internet. But not before logging that unsettling error.
from tryorama.
If there is no n3h available, it will be downloaded from the internet.
Hmm... not for me. Am I supposed to add it as a dependency of my test package's package.json
?
from tryorama.
No, wait. Cleared modules, re-added "n3h": "github:holochain/n3h#0.0.20-alpha"
as a dependency, seems to be chewing through tests now.
Maybe worth adding n3h
to peerDependencies
? Is that still a thing?
from tryorama.
Not major, but I am also getting a heap of n3h debug output in my logs, even with logger: false
. It begins with the following comment and is quite noisy-
★ ##############################################
★ # BEGIN N3H DEBUG SNAPSHOT DUMP
★ ##############################################
from tryorama.
@pospi yeah I was annoyed by that too. I think the latest n3h release contains this fix: holochain/n3h#114 which turns off the debug snapshot when N3H_QUIET=1
env var is set
from tryorama.
It looks like we can mostly close this issue... there isn't a solution yet, but this whole API is going to change in 0.3.x
anyway and I'm confident the issues outlined here will be fixed with the new networking backends.
from tryorama.
Related Issues (20)
- Signals blocks rest of call execution for a conductor that has been `shutdown` and then `startup` HOT 2
- Large hApp installations fail due to timeout HOT 6
- err catching is too aggressive. holochain sometimes has non-fatal errors that are logged to stderr, such as lair-keystore HOT 22
- processes seem to be spawned and not killed
- @holochain/client should be updated
- unless making this `.on` instead of `.once` all the conductor logs are swallowed here HOT 7
- the logging situation HOT 6
- there is a need to be able to use the `timeout` property on callZome
- tryorama is not equipped for `network_seed` instead of `uid` HOT 2
- Tryorama not using up-to-date nor pinned @holochain/client HOT 2
- console logging not clear HOT 6
- executing command runs indefinitely HOT 4
- Feature Request: function that waits until all agents have identical dht state HOT 2
- Change API for awaitDhtSync HOT 5
- signals broken for 0.2x HOT 3
- incomprehensible error.. wbindgen HOT 4
- [TryCP Server] Reuse admin websocket instead of connecting/disconnecting on every call
- Tryorama tests fail because of connection errors even after all tests succeeded HOT 6
- Error when calling `appWs.callZome({ role_name: '', ... })` HOT 2
- dhtSync fails with TypeError HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tryorama.