Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

hc run fails for Create a New App tutorial: WARNING! The git-hash of the runtime and the zome don't match. Error: invalid data #1926

Open
jamesray1 opened this issue Nov 29, 2019 · 0 comments

Comments

@jamesray1
Copy link
Contributor

jamesray1 commented Nov 29, 2019

➜  ~ nh
warning: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:9; will use bash from your environment

[nix-shell:~]$ hc --version
hc 0.0.38-alpha14

[nix-shell:~]$ holochain --version
holochain 0.0.38-alpha14

[nix-shell:~]$ hc init my_new_app
Created new Holochain project at: "my_new_app"

[nix-shell:~]$ cd my_new_app

[nix-shell:~/my_new_app]$ hc generate zomes/my_zome rust-proc
downloading and extracting tarball from: https://github.com/holochain/rust-proc-zome-template/archive/master.tar.gz
> zomes/my_zome/
> zomes/my_zome/
> zomes/my_zome/code
> zomes/my_zome/code/.hcbuild
> zomes/my_zome/code/Cargo.toml
> zomes/my_zome/code/src
> zomes/my_zome/code/src/lib.rs
> zomes/my_zome/zome.json

[nix-shell:~/my_new_app]$ hc package
> cargo build --release --target=wasm32-unknown-unknown
    Updating crates.io index
  Downloaded hdk_proc_macros v0.0.38-alpha14
  Downloaded hdk v0.0.38-alpha14
  Downloaded holochain_wasm_utils v0.0.38-alpha14
  Downloaded holochain_json_derive v0.0.1-alpha2
  Downloaded num-traits v0.2.10
  Downloaded holochain_core_types v0.0.38-alpha14
  Downloaded lock_api v0.3.2
  Downloaded holochain_locksmith v0.0.38-alpha14
   Compiling autocfg v0.1.7
   Compiling proc-macro2 v0.4.27
   Compiling typenum v1.11.2
   Compiling semver-parser v0.7.0
   Compiling unicode-xid v0.1.0
   Compiling memchr v2.2.1
   Compiling futures-core-preview v0.3.0-alpha.17
   Compiling libc v0.2.65
   Compiling ryu v0.2.8
   Compiling maybe-uninit v2.0.0
   Compiling serde v1.0.89
   Compiling crunchy v0.2.2
   Compiling syn v0.15.31
   Compiling getrandom v0.1.13
   Compiling cc v1.0.47
   Compiling cfg-if v0.1.10
   Compiling byte-tools v0.2.0
   Compiling slab v0.4.2
   Compiling pin-utils v0.1.0-alpha.4
   Compiling futures-io-preview v0.3.0-alpha.17
   Compiling rand_core v0.4.2
   Compiling arrayref v0.3.5
   Compiling byteorder v1.3.2
   Compiling either v1.5.3
   Compiling regex v1.1.2
   Compiling itoa v0.4.4
   Compiling log v0.4.8
   Compiling fake-simd v0.1.2
   Compiling ppv-lite86 v0.2.6
   Compiling lazy_static v1.2.0
   Compiling scopeguard v1.0.0
   Compiling proc-macro-hack-impl v0.4.2
   Compiling reed-solomon v0.2.1
   Compiling utf8-ranges v1.0.4
   Compiling sha1 v0.5.0
   Compiling regex-syntax v0.6.12
   Compiling bitflags v1.0.4
   Compiling holochain_json_api v0.0.17
   Compiling rustc-demangle v0.1.16
   Compiling holochain_persistence_api v0.0.10
   Compiling objekt v0.1.2
   Compiling snowflake v1.3.0
   Compiling holochain_core_types v0.0.38-alpha14
   Compiling matches v0.1.8
   Compiling memory_units v0.3.0
   Compiling smallvec v1.0.0
   Compiling quick-error v1.2.2
   Compiling termcolor v1.0.5
   Compiling difference v2.0.0
   Compiling percent-encoding v2.1.0
   Compiling ansi_term v0.11.0
   Compiling atty v0.2.13
   Compiling num-traits v0.2.10
   Compiling num-integer v0.1.41
   Compiling indexmap v1.3.0
   Compiling num-bigint v0.2.3
   Compiling num-complex v0.2.3
   Compiling num-iter v0.1.39
   Compiling num-rational v0.2.2
   Compiling backtrace v0.3.27
   Compiling semver v0.9.0
   Compiling proc-macro2 v0.2.3
   Compiling futures-sink-preview v0.3.0-alpha.17
   Compiling rand_core v0.3.1
   Compiling block-buffer v0.3.3
   Compiling itertools v0.7.11
   Compiling thread_local v0.3.6
   Compiling crossbeam-utils v0.6.6
   Compiling colored v1.7.0
   Compiling c2-chacha v0.2.3
   Compiling lock_api v0.3.2
   Compiling hcid v0.0.6
   Compiling proc-macro-hack v0.4.2
   Compiling backtrace-sys v0.1.32
   Compiling unicode-bidi v0.3.4
   Compiling humantime v1.3.0
   Compiling unicode-normalization v0.1.11
   Compiling pretty_assertions v0.6.1
   Compiling futures-channel-preview v0.3.0-alpha.17
   Compiling rustc_version v0.2.3
   Compiling rand v0.5.6
   Compiling quote v0.4.2
   Compiling idna v0.2.0
   Compiling num_cpus v1.11.1
   Compiling time v0.1.42
   Compiling futures-util-preview v0.3.0-alpha.17
   Compiling aho-corasick v0.6.10
   Compiling generic-array v0.9.0
   Compiling smallvec v0.6.13
   Compiling rand_core v0.5.1
   Compiling tiny-keccak v1.5.0
   Compiling quote v0.6.11
   Compiling mashup-impl v0.1.9
   Compiling base64 v0.10.1
   Compiling parity-wasm v0.31.3
   Compiling parking_lot_core v0.6.2
   Compiling parking_lot v0.9.0
   Compiling syn v0.12.15
   Compiling uuid v0.7.1
   Compiling url v2.1.0
   Compiling toml v0.5.0
   Compiling serde_json v1.0.39
   Compiling digest v0.7.6
   Compiling crossbeam-channel v0.3.8
   Compiling futures-executor-preview v0.3.0-alpha.17
   Compiling rand_chacha v0.2.1
   Compiling wasmi v0.4.4
   Compiling mashup v0.1.9
   Compiling chrono v0.4.6
   Compiling sha2 v0.7.1
   Compiling shrinkwraprs v0.2.1
   Compiling futures-preview v0.3.0-alpha.17
   Compiling rand v0.7.2
   Compiling env_logger v0.6.1
   Compiling synstructure v0.10.2
   Compiling holochain_json_derive v0.0.17
   Compiling serde_derive v1.0.89
   Compiling holochain_json_derive v0.0.1-alpha2
   Compiling multihash v0.8.0
   Compiling num v0.2.0
   Compiling zeroize_derive v0.9.3
   Compiling holochain_logging v0.0.4
   Compiling rust-base58 v0.0.4
   Compiling zeroize v0.9.2
   Compiling lib3h_crypto_api v0.0.21
   Compiling holochain_locksmith v0.0.38-alpha14
   Compiling holochain_wasm_utils v0.0.38-alpha14
   Compiling hdk v0.0.38-alpha14
   Compiling hdk_proc_macros v0.0.38-alpha14
   Compiling my_zome v0.1.0 (/home/jr/my_new_app/zomes/my_zome/code)
    Finished release [optimized] target(s) in 16m 55s
> wasm-gc target/wasm32-unknown-unknown/release/my_zome.wasm
> wasm-opt -Oz --vacuum target/wasm32-unknown-unknown/release/my_zome.wasm
(no output file specified, not emitting output)
> wasm2wat target/wasm32-unknown-unknown/release/my_zome.wasm -o target/wasm32-unknown-unknown/release/my_zome.wat
> wat2wasm target/wasm32-unknown-unknown/release/my_zome.wat -o target/wasm32-unknown-unknown/release/my_zome.wasm
> cargo build --release --target=wasm32-unknown-unknown
    Finished release [optimized] target(s) in 9.55s
> wasm-gc target/wasm32-unknown-unknown/release/my_zome.wasm
> wasm-opt -Oz --vacuum target/wasm32-unknown-unknown/release/my_zome.wasm
(no output file specified, not emitting output)
> wasm2wat target/wasm32-unknown-unknown/release/my_zome.wasm -o target/wasm32-unknown-unknown/release/my_zome.wat
> wat2wasm target/wasm32-unknown-unknown/release/my_zome.wat -o target/wasm32-unknown-unknown/release/my_zome.wasm
Created DNA package file at "/home/jr/my_new_app/dist/my_new_app.dna.json"
DNA hash: QmaSxbdbeL9DpPxPFWWhAh57PpJazwa9thJ9NUswTWw4Jx

[nix-shell:~/my_new_app]$ hc package^C

[nix-shell:~/my_new_app]$ hc run

Reading DNA from /home/jr/my_new_app/dist/my_new_app.dna.json
conductor: boot_from_config
Reading DNA from /home/jr/my_new_app/dist/my_new_app.dna.json
Reading DNA from /home/jr/my_new_app/dist/my_new_app.dna.json
conductor: build_conductor_api instance_id=test-instance, config=Configuration { agents: [AgentConfiguration { id: "hc-run-agent", name: "testAgent", public_address: "HcScjN8wBwrn3tuyg89aab3a69xsIgdzmX5P9537BqQZ5A7TEZu7qCY4Xzzjhma", keystore_file: "testAgent", holo_remote_key: None, test_agent: Some(true) }], dnas: [DnaConfiguration { id: "hc-run-dna", file: "/home/jr/my_new_app/dist/my_new_app.dna.json", hash: "QmaSxbdbeL9DpPxPFWWhAh57PpJazwa9thJ9NUswTWw4Jx", uuid: None }], instances: [InstanceConfiguration { id: "test-instance", dna: "hc-run-dna", agent: "hc-run-agent", storage: Memory }], interfaces: [InterfaceConfiguration { id: "websocket-interface", driver: Websocket { port: 8888 }, admin: true, instances: [InstanceReferenceConfiguration { id: "test-instance", alias: None }] }], bridges: [], ui_bundles: [], ui_interfaces: [], logger: LoggerConfiguration { logger_level: "debug", rules: LogRules { rules: [] }, state_dump: true }, network: None, persistence_dir: "", signing_service_uri: None, encryption_service_uri: None, decryption_service_uri: None, dpki: None, signals: SignalConfig { trace: false, consistency: false }, passphrase_service: Cmd, metric_publisher: None }
Reading DNA from /home/jr/my_new_app/dist/my_new_app.dna.json
Reading DNA from /home/jr/my_new_app/dist/my_new_app.dna.json
Failed to load instance test-instance from storage: ErrorGeneric("State could not be loaded due to NoneError")
Initializing new chain...
WARNING! The git-hash of the runtime and the zome don't match.
Runtime hash: 6da9c69513e4c72ee1467bb0fa88addad58173b4
Zome hash: 
register_chain: QmaSxbdbeL9DpPxPFWWhAh57PpJazwa9thJ9NUswTWw4Jx::HcScjN8wBwrn3tuyg89aab3a69xsIgdzmX5P9537BqQZ5A7TEZu7qCY4Xzzjhma
JOINING SPACE: dna(QmaSxbdbeL9DpPxPFWWhAh57PpJazwa9thJ9NUswTWw4Jx), agent(HcScjN8wBwrn3tuyg89aab3a69xsIgdzmX5P9537BqQZ5A7TEZu7qCY4Xzzjhma)
Start all instances
Starting instance "test-instance"...
Holochain development conductor started. Running websocket server on port 8888
Type 'exit' to stop the conductor and exit the program

Error: invalid data

[nix-shell:~/my_new_app]$ 

hc test passed, however:

hc_test.txt

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant