About the RSM Technical Discussion! category

also note the ubuntu docker boxes show the steps to get nix working on there e.g. https://github.com/holochain/holonix/blob/develop/docker/Dockerfile.ubuntu#L19

Which variables are you referring to? I encode using MessagePack 3 times just as the NodeJS client does so it sends a binary array to the conductor, not a string.

The agent pub key and the dna hash, they are supposed to be binary arrays even when deserialized.

When you say:

however I do know that this two variables are expected as UInt8Array/binary arrays, not as strings.

Do you mean just a normal array of unin8? So the following would work?

Or would the commented out lines be more suitable?

Encoding.UTF8.GetBytes(HoloHash)

Which converts the strings to a uni encoded 8 bit binary array.

Thanks. :slight_smile:

Cheers.
D.

Ok I added the group as suggested but I now get this error:

error: the build users group ‘nixbld’ has no members

So how do I add these members? Thanks :slight_smile:

And are you saying the command should now be, the following?

$(nix-build https://nightly.holochain.love --no-link -A pkgs.holonix)/bin/holonix

Cheers
D.

I tried this but I am still getting the same error?

That depends on the UID/name of the user. The command whoami should tell you that. You could embed that into the command that adds it to the nixbld group as well, using:

sudo adduser $(whoami) nixbld

Remember that after adding the current user to a group to be effective you need to log in and out. At least that’s on native Linux. I don’t know the equivalent to that on WSL2. If in doubt reboot Windows :smiley:

Please don’t use nightly from here on unless you really need it and know what you’re doing. Please use https://holochain.love instead, otherwise the command should work!

Maybe there are several lockfiles? Please try removing them all and then retry the whole procedure.

I didn’t expect nix to be this sensitive to issues. I’m pretty spoiled by using NixOS where all of these issues are non-existent. But we’ll get through them :slight_smile:

1 Like

OK that fixed that error, now onto the next error! lol

Building...
[sudo] password for dellams:
Errors during build. Status: 1)
these derivations will be built:
  /nix/store/9333vz9a8zkvwlmrknpkbz13s187nipc-rust-1.48.0-2020-11-16-7eac88abb.drv
error: all build users are currently in use; consider creating additional users and adding them to the 'nixbld' group
dellams/.holonix/allrefs-dev
/home/dellams/.holonix/allrefs-doc
/home/dellams/.holonix/allrefs-info
/home/dellams/.holonix/allrefs-man
Processing /nix/store/7ifki43lpjrghymgc1zyab7gfskd3mci-coreutils-8.31.drv
/home/dellams/.holonix/allrefs
/home/dellams/.holonix/allrefs-info
Processing /nix/store/a6awrlgjbndqmyrqvanl4l5ldk94pgda-gnumake-4.3.drv
/home/dellams/.holonix/allrefs
/home/dellams/.holonix/allrefs-info
/home/dellams/.holonix/allrefs-man
Processing /nix/store/pzzwnja8kwidn2cmzfsghfigfirxkfc3-binutils-wrapper-2.31.1.drv
/home/dellams/.holonix/allrefs
/home/dellams/.holonix/allrefs-info
/home/dellams/.holonix/allrefs-man
Processing /nix/store/ysyr4y313walsimqs0449qkrxac1v9g7-gcc-wrapper-9.3.0.drv
/home/dellams/.holonix/allrefs
/home/dellams/.holonix/allrefs-info
/home/dellams/.holonix/allrefs-man
Processing /nix/store/m15naxf285zafnsnlzfaxy0r10dzlanx-stdenv-linux.drv
/home/dellams/.holonix/allrefs
Processing /nix/store/ppqx9vw67p1qil4zgygqkhjm98icmwx9-perl-5.32.0.drv
/home/dellams/.holonix/allrefs
/home/dellams/.holonix/allrefs-devdoc
/home/dellams/.holonix/allrefs-man
Processing /nix/store/ygcq38x4c1wjr8kwjw02v4nbwy1z9b0g-openssl-1.1.1g.drv
/home/dellams/.holonix/allrefs
/home/dellams/.holonix/allrefs-bin
/home/dellams/.holonix/allrefs-debug
/home/dellams/.holonix/allrefs-dev
/home/dellams/.holonix/allrefs-doc
/home/dellams/.holonix/allrefs-man
Processing /nix/store/0blvvjj549x36xs83p8s4x52z7b6w58l-python-2.7.18.drv
/home/dellams/.holonix/allrefs
Processing /nix/store/9333vz9a8zkvwlmrknpkbz13s187nipc-rust-1.48.0-2020-11-16-7eac88abb.drv
dellams@DESKTOP-CEETMKE:~$

So do I need to create another user somehow? Sorry I don’t know nix or linux very well, I’m a c# developer so have only worked on Windows mostly…

Many thanks,
David

At this point I can only admit that I don’t understand your Nix installation. It seems like it is a multi-user installation which involves a nix-daemon. In that scenario it makes use of a pool of users to schedule multiple concurrent builds. See this example from my NixOS system:

$ cat /etc/passwd | grep nixbld
nixbld1:x:30001:30000:Nix build user 1:/var/empty:/run/current-system/sw/bin/nologin
nixbld2:x:30002:30000:Nix build user 2:/var/empty:/run/current-system/sw/bin/nologin
nixbld3:x:30003:30000:Nix build user 3:/var/empty:/run/current-system/sw/bin/nologin
nixbld4:x:30004:30000:Nix build user 4:/var/empty:/run/current-system/sw/bin/nologin
nixbld5:x:30005:30000:Nix build user 5:/var/empty:/run/current-system/sw/bin/nologin
nixbld6:x:30006:30000:Nix build user 6:/var/empty:/run/current-system/sw/bin/nologin
nixbld7:x:30007:30000:Nix build user 7:/var/empty:/run/current-system/sw/bin/nologin
nixbld8:x:30008:30000:Nix build user 8:/var/empty:/run/current-system/sw/bin/nologin
nixbld9:x:30009:30000:Nix build user 9:/var/empty:/run/current-system/sw/bin/nologin
nixbld10:x:30010:30000:Nix build user 10:/var/empty:/run/current-system/sw/bin/nologin
nixbld11:x:30011:30000:Nix build user 11:/var/empty:/run/current-system/sw/bin/nologin
nixbld12:x:30012:30000:Nix build user 12:/var/empty:/run/current-system/sw/bin/nologin
nixbld13:x:30013:30000:Nix build user 13:/var/empty:/run/current-system/sw/bin/nologin
nixbld14:x:30014:30000:Nix build user 14:/var/empty:/run/current-system/sw/bin/nologin
nixbld15:x:30015:30000:Nix build user 15:/var/empty:/run/current-system/sw/bin/nologin
nixbld16:x:30016:30000:Nix build user 16:/var/empty:/run/current-system/sw/bin/nologin
nixbld17:x:30017:30000:Nix build user 17:/var/empty:/run/current-system/sw/bin/nologin
nixbld18:x:30018:30000:Nix build user 18:/var/empty:/run/current-system/sw/bin/nologin
nixbld19:x:30019:30000:Nix build user 19:/var/empty:/run/current-system/sw/bin/nologin
nixbld20:x:30020:30000:Nix build user 20:/var/empty:/run/current-system/sw/bin/nologin
nixbld21:x:30021:30000:Nix build user 21:/var/empty:/run/current-system/sw/bin/nologin
nixbld22:x:30022:30000:Nix build user 22:/var/empty:/run/current-system/sw/bin/nologin
nixbld23:x:30023:30000:Nix build user 23:/var/empty:/run/current-system/sw/bin/nologin
nixbld24:x:30024:30000:Nix build user 24:/var/empty:/run/current-system/sw/bin/nologin
nixbld25:x:30025:30000:Nix build user 25:/var/empty:/run/current-system/sw/bin/nologin
nixbld26:x:30026:30000:Nix build user 26:/var/empty:/run/current-system/sw/bin/nologin
nixbld27:x:30027:30000:Nix build user 27:/var/empty:/run/current-system/sw/bin/nologin
nixbld28:x:30028:30000:Nix build user 28:/var/empty:/run/current-system/sw/bin/nologin
nixbld29:x:30029:30000:Nix build user 29:/var/empty:/run/current-system/sw/bin/nologin
nixbld30:x:30030:30000:Nix build user 30:/var/empty:/run/current-system/sw/bin/nologin
nixbld31:x:30031:30000:Nix build user 31:/var/empty:/run/current-system/sw/bin/nologin
nixbld32:x:30032:30000:Nix build user 32:/var/empty:/run/current-system/sw/bin/nologin

However, I wouldn’t have expected your system to try to attempt that as I expected you to have performed a single-user installation. It could be easiest to remove Nix (with sudo rm -rf /nix) and reinstall it as a single-user install as shown here: https://nixos.org/manual/nix/stable/#sect-single-user-installation

I simply followed your instructions on your site to install so I am not sure why there are so many issues? :slight_smile:

I spend most my time trying to get holochain to actually install and work than actually working on any apps! :wink: lol

I hope all these issues can be sorted out soon because it has really slowed me down over the years… thanks :slight_smile:

I will give your instructions a go and see how it goes… fingers crossed we will get there in the end! :wink: lol

Hi, I tried what you suggested but I am still getting the same error:

error: all build users are currently in use; consider creating additional users and adding them to the ‘nixbld’ group

Any other suggestions? Thanks

@pqcdev

1 Like

I just straight compiled it using a cargo build the same way I did last year on redux. So maybe just forget about using Nix

https://forum.holochain.org/t/nix-on-macos-catalina/1130/49

advice @carolyn @thedavidmeister @Connoropolous ?

1 Like

sorry buddy I didnt realize you were posting in the about section… this is a pinned topic so it doesnt show up on the latest feed

also for some reason that tag didnt ping me :upside_down_face:

1 Like

No worries brother, thanks for sharing, will check out your link… :slight_smile:

Would this enable me to compile holochain to a native windows binary again like is use to be? This was MUCH better before Nix came along. HoloNET could auto-start and auto-shutdown the conductor, which was integrated into any .NET apps so devs don’t even need to worry about the conductor and soon when the .NET HDK is done they don’t need to worry about Rust either… :slight_smile:

Cheers
D.

1 Like

you can try compiling it on windows but that won’t mean it will run smoothly if there are windows-specific bugs :frowning:

1 Like

sure you can just compile it with cargo https://github.com/holochain/holochain#building-with-cargo-if-you-already-have-rust-installed

1 Like

OK I got rust installed on windows and tried to build holochain but got these dependency errors:

error[E0433]: failed to resolve: use of undeclared type IpcServer
→ C:\Users\david.cargo\registry\src\github.com-1ecc6299db9ec823\lair_keystore_api-0.0.1-alpha.10\src\internal\ipc.rs:59:15
|
59 | let srv = IpcServer::bind(config)?;
| ^^^^^^^^^ use of undeclared type IpcServer

error[E0412]: cannot find type IpcWrite in this scope
→ C:\Users\david.cargo\registry\src\github.com-1ecc6299db9ec823\lair_keystore_api-0.0.1-alpha.10\src\internal\ipc\low_level.rs:21:21
|
21 | mut write_half: IpcWrite,
| ^^^^^^^^ not found in this scope

error[E0412]: cannot find type IpcRead in this scope
→ C:\Users\david.cargo\registry\src\github.com-1ecc6299db9ec823\lair_keystore_api-0.0.1-alpha.10\src\internal\ipc\low_level.rs:65:20
|
65 | mut read_half: IpcRead,
| ^^^^^^^ not found in this scope

error[E0412]: cannot find type IpcServer in this scope
→ C:\Users\david.cargo\registry\src\github.com-1ecc6299db9ec823\lair_keystore_api-0.0.1-alpha.10\src\internal\ipc.rs:71:14
|
25 | pub type IpcSender = ghost_actor::GhostSender;
| ---------------------------------------------------------- similarly named type alias IpcSender defined here
…
71 | mut srv: IpcServer,
| ^^^^^^^^^ help: a type alias with a similar name exists: IpcSender

error[E0425]: cannot find function ipc_connect in this scope
→ C:\Users\david.cargo\registry\src\github.com-1ecc6299db9ec823\lair_keystore_api-0.0.1-alpha.10\src\internal\ipc.rs:101:35
|
101 | let (read_half, write_half) = ipc_connect(config).await?;
| ^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type IpcRead in this scope
→ C:\Users\david.cargo\registry\src\github.com-1ecc6299db9ec823\lair_keystore_api-0.0.1-alpha.10\src\internal\ipc.rs:107:16
|
107 | read_half: IpcRead,
| ^^^^^^^ not found in this scope

error[E0412]: cannot find type IpcWrite in this scope
→ C:\Users\david.cargo\registry\src\github.com-1ecc6299db9ec823\lair_keystore_api-0.0.1-alpha.10\src\internal\ipc.rs:108:17
|
108 | write_half: IpcWrite,
| ^^^^^^^^ not found in this scope

error: aborting due to 7 previous errors

Some errors have detailed explanations: E0412, E0425, E0433.
For more information about an error, try rustc --explain E0412.
error: could not compile lair_keystore_api

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish…
error: failed to compile holochain v0.0.100 (C:\holochain-rsm\holochain-develop\crates\holochain), intermediate artifacts can be found at C:\holochain-rsm\holochain-develop\target

Caused by:
build failed

Looks like I need IpcServer installed? How do I go about installing that? Thanks :slight_smile:

I tried doing the same thing for ubuntu WSL2 and got different errors:

dellams@DESKTOP-CEETMKE:~/holochain-rsm$ cargo install --path crates/holochain
Installing holochain v0.0.100 (/home/dellams/holochain-rsm/crates/holochain)
Updating git repository https://github.com/holochain/lmdb-rs.git
Updating git repository https://github.com/holochain/rkv.git
Updating git repository https://github.com/neonphog/tokio_safe_block_on.git
Updating crates.io index
Compiling openssl-sys v0.9.60
Compiling matchers v0.0.1
Compiling http-body v0.3.1
Compiling doc-comment v0.3.3
Compiling cranelift-codegen v0.59.0
Compiling crc32fast v1.2.1
Compiling anyhow v1.0.38
Compiling target-lexicon v0.10.0
Compiling encoding_rs v0.8.28
Compiling maybe-uninit v2.0.0
Compiling target-lexicon v0.9.0
Compiling quote v1.0.9
Compiling num-traits v0.2.14
Compiling num_cpus v1.13.0
Compiling getrandom v0.1.16
Compiling getrandom v0.2.2
Compiling net2 v0.2.37
Compiling iovec v0.1.4
Compiling signal-hook-registry v1.3.0
Compiling time v0.1.43
Compiling tracing-log v0.1.2
Compiling atty v0.2.14
Compiling parking_lot_core v0.7.2
Compiling rand_os v0.1.3
Compiling env_logger v0.8.3
Compiling dirs-sys v0.3.5
Compiling socket2 v0.3.19
Compiling rand v0.4.6
Compiling want v0.3.0
Compiling if-addrs v0.6.5
Compiling errno v0.2.7
Compiling page_size v0.4.2
Compiling memmap v0.7.0
Compiling crossbeam-utils v0.8.3
Compiling aho-corasick v0.7.15
Compiling memoffset v0.6.1
Compiling paste-impl v0.1.18
Compiling quick-xml v0.20.0
Compiling generic-array v0.14.4
Compiling ring v0.16.20
Compiling generic-array v0.12.4
Compiling miniz_oxide v0.4.4
Compiling unicase v2.6.0
Compiling nix v0.15.0
Compiling tiny-keccak v2.0.2
Compiling rand_pcg v0.1.2
Compiling rand_chacha v0.1.1
Compiling num-format v0.4.0
Compiling idna v0.2.2
Compiling lmdb-rkv-sys v0.11.0 (https://github.com/holochain/lmdb-rs.git#46043614)
Compiling idna v0.1.5
Compiling err-derive v0.2.4
Compiling raw-cpuid v7.0.4
Compiling openssl v0.10.32
Compiling native-tls v0.2.7
Compiling smallvec v0.6.14
Compiling syn v1.0.62
Compiling proc-macro-error-attr v1.0.4
Compiling rand_core v0.5.1
Compiling ahash v0.6.3
Compiling mio v0.6.23
Compiling rmp v0.8.10
Compiling num-integer v0.1.44
Compiling float-cmp v0.8.0
Compiling ordered-float v1.1.1
Compiling rand_core v0.6.2
Compiling uuid v0.8.2
Compiling clap v2.33.3
Compiling parking_lot v0.10.2
Compiling directories v3.0.1
Compiling directories v2.0.2
Compiling tempdir v0.3.7
Compiling crossbeam-channel v0.5.0
Compiling crossbeam-epoch v0.9.3
Compiling regex v1.4.3
Compiling paste v0.1.18
Compiling cipher v0.2.5
Compiling universal-hash v0.4.0
Compiling digest v0.9.0
Compiling aead v0.3.2
Compiling digest v0.8.1
Compiling crypto-mac v0.7.0
Compiling block-buffer v0.7.3
Compiling backtrace v0.3.56
Compiling flate2 v1.0.20
Compiling mime_guess v2.0.3
Compiling sct v0.6.0
Compiling webpki v0.21.4
Compiling const-random-macro v0.1.13
Compiling rand v0.6.5
Compiling lmdb-rkv v0.14.0 (https://github.com/holochain/lmdb-rs.git#46043614)
Compiling url v1.7.2
Compiling rand_chacha v0.2.2
Compiling mio-uds v0.6.8
Compiling chrono v0.4.19
Compiling rand_chacha v0.3.0
Compiling synstructure v0.12.4
Compiling proc-macro-error v1.0.4
Compiling darling_core v0.10.2
Compiling crossbeam-deque v0.8.0
Compiling poly1305 v0.6.2
Compiling pem v0.8.3
Compiling predicates v1.0.7
Compiling os_type v2.2.0
Compiling blake3 v0.1.5
Compiling sha-1 v0.8.2
Compiling ct-logs v0.6.0
Compiling rustls v0.17.0
Compiling rustls v0.19.0
Compiling serde_derive v1.0.104
Compiling thiserror-impl v1.0.24
Compiling tracing-attributes v0.1.13
Compiling futures-macro v0.3.13
Compiling pin-project-internal v0.4.27
Compiling tokio-macros v0.2.6
Compiling pin-project-internal v1.0.5
Compiling holochain_serialized_bytes_derive v0.0.48
Compiling holochain_serialized_bytes_derive v0.0.49
Compiling derive_more v0.99.11
Compiling strum_macros v0.18.0
Compiling shrinkwraprs v0.3.0
Compiling async-trait v0.1.47
Compiling mockall_derive v0.8.3
Compiling derivative v2.2.0
Compiling const-random v0.1.13
Compiling nanoid v0.3.0
Compiling rand v0.7.3
Compiling rand v0.8.3
Compiling yasna v0.3.2
Compiling structopt-derive v0.4.14
Compiling rayon-core v1.9.0
Compiling zeroize_derive v1.0.1
Compiling failure_derive v0.1.8
Compiling darling_macro v0.10.2
Compiling wasmer-runtime-core v0.16.2
Compiling rustls-native-certs v0.3.0
Compiling thiserror v1.0.24
Compiling futures-util v0.3.13
Compiling tracing v0.1.21
Compiling tokio v0.2.25
Compiling pin-project v0.4.27
Compiling pin-project v1.0.5
Compiling serde v1.0.104
Compiling ahash v0.3.8
Compiling rcgen v0.8.5
Compiling tempfile v3.2.0
Compiling mockall v0.8.3
Compiling rayon v1.5.0
Compiling zeroize v1.2.0
Compiling failure v0.1.8
Compiling structopt v0.3.21
Compiling darling v0.10.2
Compiling quinn-proto v0.6.1
Compiling tracing-futures v0.2.5
Compiling futures-executor v0.3.13
Compiling tokio-util v0.3.1
Compiling tokio-tls v0.3.1
Compiling dashmap v3.11.10
Compiling indexmap v1.6.2
Compiling serde_bytes v0.11.5
Compiling rmp-serde v0.14.4
Compiling serde-transcode v1.1.0
Compiling bincode v1.3.1
Compiling tracing-serde v0.1.2
Compiling url v2.2.1
Compiling toml v0.5.8
Compiling serde_urlencoded v0.7.0
Compiling serde-bench v0.0.7
Compiling serde_yaml v0.8.17
Compiling url_serde v0.2.0
Compiling uuid v0.7.4
Compiling chacha20 v0.6.0
Compiling curve25519-dalek v3.0.2
Compiling salsa20 v0.7.2
Compiling derive_builder_core v0.9.0
Compiling futures v0.3.13
Compiling sysinfo v0.15.9
Compiling serde_json v1.0.64
Compiling inferno v0.10.3
Compiling h2 v0.2.7
Compiling gimli v0.20.0
Compiling url2 v0.0.6
Compiling rkv v0.10.4 (https://github.com/holochain/rkv.git?branch=master#6f6b4b5a)
Compiling tungstenite v0.10.1
Compiling human-panic v1.0.3
Compiling chacha20poly1305 v0.7.1
Compiling xsalsa20poly1305 v0.6.0
Compiling x25519-dalek v1.1.0
Compiling lair_keystore_api v0.0.1-alpha.10
Compiling holochain_wasm_test_utils v0.0.1 (/home/dellams/holochain-rsm/crates/test_utils/wasm)
Compiling opentelemetry v0.8.0
Compiling must_future v0.1.2
Compiling quinn v0.6.2
Compiling tokio_safe_block_on v0.1.2 (https://github.com/neonphog/tokio_safe_block_on.git?branch=fix_holochain_bug#927f5a80)
Compiling derive_builder v0.9.0
Compiling tracing-subscriber v0.2.16
Compiling holochain_serialized_bytes v0.0.48
Compiling holochain_serialized_bytes v0.0.49
Compiling tokio-tungstenite v0.10.1
Compiling hyper v0.13.10
Compiling crypto_box v0.5.0
Compiling fixt v0.0.1 (/home/dellams/holochain-rsm/crates/fixt)
Compiling holochain_wasmer_common v0.0.66
Compiling tracing-opentelemetry v0.8.0
Compiling holochain_websocket v0.0.1 (/home/dellams/holochain-rsm/crates/holochain_websocket)
Compiling holo_hash v0.0.1 (/home/dellams/holochain-rsm/crates/holo_hash)
Compiling hyper-tls v0.4.3
Compiling observability v0.1.3
Compiling wasmer-clif-fork-frontend v0.59.0
Compiling cranelift-native v0.59.0
Compiling holochain_wasmer_guest v0.0.66
Compiling holochain_zome_types v0.0.1 (/home/dellams/holochain-rsm/crates/holochain_zome_types)
Compiling reqwest v0.10.10
Compiling wasmer-clif-fork-wasm v0.59.0
Compiling ghost_actor v0.3.0-alpha.1
Compiling wasmer-clif-backend v0.16.2
Compiling kitsune_p2p_types v0.0.1 (/home/dellams/holochain-rsm/crates/kitsune_p2p/types)
Compiling wasmer-runtime v0.16.2
Compiling kitsune_p2p_transport_quic v0.0.1 (/home/dellams/holochain-rsm/crates/kitsune_p2p/transport_quic)
Compiling lair_keystore_client v0.0.1-alpha.10
Compiling hdk3_derive v0.0.1 (/home/dellams/holochain-rsm/crates/hdk3_derive)
Compiling kitsune_p2p_proxy v0.0.1 (/home/dellams/holochain-rsm/crates/kitsune_p2p/proxy)
Compiling holochain_wasmer_host v0.0.66
Compiling kitsune_p2p v0.0.1 (/home/dellams/holochain-rsm/crates/kitsune_p2p/kitsune_p2p)
Compiling holochain_keystore v0.0.1 (/home/dellams/holochain-rsm/crates/holochain_keystore)
warning: unused import: ghost_actor::dependencies::tracing_futures
→ crates/kitsune_p2p/kitsune_p2p/src/spawn/actor/gossip.rs:8:5
|
8 | use ghost_actor::dependencies::tracing_futures;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

Compiling holochain_types v0.0.1 (/home/dellams/holochain-rsm/crates/holochain_types)
Compiling holochain_lmdb v0.0.1 (/home/dellams/holochain-rsm/crates/holochain_lmdb)
Compiling holochain_p2p v0.0.1 (/home/dellams/holochain-rsm/crates/holochain_p2p)
Compiling holochain_conductor_api v0.0.1 (/home/dellams/holochain-rsm/crates/holochain_conductor_api)
Compiling hdk3 v0.0.1 (/home/dellams/holochain-rsm/crates/hdk3)
warning: 1 warning emitted

Compiling holochain_test_wasm_common v0.0.1 (/home/dellams/holochain-rsm/crates/test_utils/wasm_common)
Compiling holochain_state v0.0.1 (/home/dellams/holochain-rsm/crates/holochain_state)
Compiling holochain_cascade v0.0.1 (/home/dellams/holochain-rsm/crates/holochain_cascade)
Compiling holochain v0.0.100 (/home/dellams/holochain-rsm/crates/holochain)
error[E0597]: __self does not live long enough
→ crates/holochain/src/conductor/handle.rs:267:9
|
267 | self.conductor
| -^^^
| |
| borrowed value does not live long enough
| |
268 | | .write()
269 | | .await
| |
_________- a temporary with access to the borrow is created here …
…
272 | }
| -
| |
| __self dropped here while still borrowed
| … and the borrow might be used here, when that temporary is dropped and runs the Drop code for type tokio::sync::RwLockWriteGuard
|
= note: the temporary is part of an expression at the end of a block;
consider forcing this temporary to be dropped sooner, before the block’s local variables are dropped
help: for example, you could save the expression’s value in a new local variable x and then make x be the expression at the end of the block
|
267 | let x = self.conductor
268 | .write()
269 | .await
270 | .startup_app_interfaces_via_handle(self.clone())
271 | .await; x
|

error[E0597]: __self does not live long enough
→ crates/holochain/src/conductor/handle.rs:447:9
|
447 | self.conductor
| -^^^
| |
| borrowed value does not live long enough
| |
448 | | .write()
449 | | .await
| |
_________- a temporary with access to the borrow is created here …
…
452 | }
| -
| |
| __self dropped here while still borrowed
| … and the borrow might be used here, when that temporary is dropped and runs the Drop code for type tokio::sync::RwLockWriteGuard
|
= note: the temporary is part of an expression at the end of a block;
consider forcing this temporary to be dropped sooner, before the block’s local variables are dropped
help: for example, you could save the expression’s value in a new local variable x and then make x be the expression at the end of the block
|
447 | let x = self.conductor
448 | .write()
449 | .await
450 | .add_inactive_app_to_db(app)
451 | .await; x
|

error: aborting due to 2 previous errors

For more information about this error, try rustc --explain E0597.
error: failed to compile holochain v0.0.100 (/home/dellams/holochain-rsm/crates/holochain), intermediate artifacts can be found at /home/dellams/holochain-rsm/target

Caused by:
could not compile holochain

To learn more, run the command again with --verbose.

Any ideas? Thanks :slight_smile:

So now I am blocked with Nix-shell, crate windows and crate WSL2. Yay! :slight_smile: lol

@dellams
that was a bug that others encountered, and they just fixed it up, but you prbly aren’t on that commit. Update your holochain repo to the latest commit here: https://github.com/holochain/holochain/commits/develop
You can see the last merged PR dealt with exactly that issue. Try this on the wsl2 thing, I am thinking you will have success

1 Like

Ok thanks, will give it a go and report back… :slight_smile:

I just tried holochain.love on my dual-booted standalone install of ubuntu and I got this error:

error: creating log file ‘/nix/var/log/nix/drvs/93//33vz9a8zkvwlmrknpkbz13s187nipc-rust-1.48.0-2020-11-16-7eac88abb.drv.bz2’: Permission denied
david@david-System-Product-Name:~$

Before this I got the lock error so I removed the lock file and that fixed that one. Any ideas how to fix this one?

Thanks.