Git Product home page Git Product logo

Comments (9)

thedavidmeister avatar thedavidmeister commented on June 12, 2024 1

@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.

maackle avatar maackle commented on June 12, 2024

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.

pospi avatar pospi commented on June 12, 2024

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.

maackle avatar maackle commented on June 12, 2024

@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.

pospi avatar pospi commented on June 12, 2024

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.

pospi avatar pospi commented on June 12, 2024

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.

pospi avatar pospi commented on June 12, 2024

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.

maackle avatar maackle commented on June 12, 2024

@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.

pospi avatar pospi commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.