Skip to content

Instantly share code, notes, and snippets.

@brenzi
Created April 21, 2020 06:11
Show Gist options
  • Save brenzi/157d0ded6cfe0fd30c6672afb3f973b6 to your computer and use it in GitHub Desktop.
Save brenzi/157d0ded6cfe0fd30c6672afb3f973b6 to your computer and use it in GitHub Desktop.
unkown version error
./target/release/substratee-node --dev -lexecutor=trace
2020-04-21 08:08:00.499 main WARN sc_cli::commands::runcmd Running in --dev mode, RPC CORS has been disabled.
2020-04-21 08:08:00.499 main INFO sc_cli::commands::runcmd SubstraTEE Node
2020-04-21 08:08:00.499 main INFO sc_cli::commands::runcmd version 0.6.0-f26ecb9-x86_64-linux-gnu
2020-04-21 08:08:00.499 main INFO sc_cli::commands::runcmd by Supercomputing Systems AG <info@scs.ch>, 2017-2020
2020-04-21 08:08:00.499 main INFO sc_cli::commands::runcmd Chain specification: Development
2020-04-21 08:08:00.499 main INFO sc_cli::commands::runcmd Node name: lying-ghost-7137
2020-04-21 08:08:00.499 main INFO sc_cli::commands::runcmd Roles: AUTHORITY
2020-04-21 08:08:02.340 main INFO sc_client::client Initializing Genesis block/state (state: 0x598b…9d8e, header-hash: 0xe7ef…3b8c)
2020-04-21 08:08:02.340 main INFO afg Loading GRANDPA authority set from genesis on what appears to be first startup.
2020-04-21 08:08:02.355 main WARN wasm-runtime Fresh runtime instance failed with ApiError("Unknown version")
Error: Service(Client(Execution(ApiError("Unknown version"))))
@brenzi
Copy link
Author

brenzi commented Apr 21, 2020

maybe this helps more?

./target/release/substratee-node --dev -ltrace
2020-04-21 08:23:24.088 main WARN sc_cli::commands::runcmd  Running in --dev mode, RPC CORS has been disabled.
2020-04-21 08:23:24.088 main INFO sc_cli::commands::runcmd  SubstraTEE Node
2020-04-21 08:23:24.088 main INFO sc_cli::commands::runcmd    version 0.6.0-f26ecb9-x86_64-linux-gnu
2020-04-21 08:23:24.088 main INFO sc_cli::commands::runcmd    by Supercomputing Systems AG <info@scs.ch>, 2017-2020
2020-04-21 08:23:24.088 main INFO sc_cli::commands::runcmd  Chain specification: Development
2020-04-21 08:23:24.088 main INFO sc_cli::commands::runcmd  Node name: obedient-heat-8933
2020-04-21 08:23:24.088 main INFO sc_cli::commands::runcmd  Roles: AUTHORITY
2020-04-21 08:23:24.107 main TRACE mio::poll  registering with poller
2020-04-21 08:23:24.690 main DEBUG sc_client_db::utils  DB Opened blockchain db, fetched best = 0xe7ef65882d4089199a20a6378fb1031375d385fa031c54b1ffa8be04e2703b8c (0)
2020-04-21 08:23:24.691 main DEBUG sc_client_db::utils  DB Opened blockchain db, fetched final = 0xe7ef65882d4089199a20a6378fb1031375d385fa031c54b1ffa8be04e2703b8c (0)
2020-04-21 08:23:24.691 main TRACE state-db  StateDb settings: ArchiveAll
2020-04-21 08:23:24.691 main TRACE state-db  DB pruning mode: Some(Ok("archive"))
2020-04-21 08:23:24.691 main INFO afg  Loading GRANDPA authority set from genesis on what appears to be first startup.
2020-04-21 08:23:24.691 main TRACE sc_client_db::storage_cache  Cache lookup skipped for Some(3a636f6465): parent hash is unknown
2020-04-21 08:23:24.691 main TRACE sc_client_db::storage_cache  Cache hash miss: 3a636f6465
2020-04-21 08:23:24.695 main TRACE sc_client_db::storage_cache  Cache lookup skipped for Some(3a686561707061676573): parent hash is unknown
2020-04-21 08:23:24.695 main TRACE sc_client_db::storage_cache  Cache miss: 3a686561707061676573
2020-04-21 08:23:24.695 main TRACE state-trace  b3f1: Call GrandpaApi_grandpa_authorities at Block Some(0xe7ef65882d4089199a20a6378fb1031375d385fa031c54b1ffa8be04e2703b8c). Input=
2020-04-21 08:23:24.695 main TRACE sc_client_db::storage_cache  Cache lookup skipped for Some(3a636f6465): parent hash is unknown
2020-04-21 08:23:24.695 main TRACE sc_client_db::storage_cache  Cache miss: 3a636f6465
2020-04-21 08:23:24.729 main TRACE wasm-heap  Heap size is 16 bytes after allocation
2020-04-21 08:23:24.730 main TRACE wasm-executor  Failed to execute code with 1041 pages
2020-04-21 08:23:24.730 main DEBUG wasm-runtime  Prepared new runtime version None in 34 ms.
2020-04-21 08:23:24.730 main WARN wasm-runtime  Fresh runtime instance failed with ApiError("Unknown version")
2020-04-21 08:23:24.730 main TRACE state-trace  b3f1: Return. Native=false, Result=Err(ApiError("Unknown version"))
2020-04-21 08:23:24.730 main TRACE sc_client_db::storage_cache  Syncing cache, id = (#None, None), parent=Some(0xe7ef65882d4089199a20a6378fb1031375d385fa031c54b1ffa8be04e2703b8c), best=true
2020-04-21 08:23:24.730 main TRACE sc_client_db::storage_cache  Syncing shared cache, enacted = [], retracted = []
2020-04-21 08:23:24.730 main TRACE sc_client_db::storage_cache  Committing 2 local, 1 hashes, 0 modified root entries, 0 modified child entries
Error: Service(Client(Execution(ApiError("Unknown version"))))

@brenzi
Copy link
Author

brenzi commented Apr 21, 2020

I've built with

cargo +stable build --release

rustup show

rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/abrenzikofer/.rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu
nightly-2019-08-01-x86_64-unknown-linux-gnu
nightly-2019-10-04-x86_64-unknown-linux-gnu
nightly-2019-11-17-x86_64-unknown-linux-gnu
nightly-2019-11-25-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)

installed targets for active toolchain
--------------------------------------

aarch64-linux-android
armv7-linux-androideabi
i686-linux-android
wasm32-unknown-unknown
x86_64-unknown-linux-gnu

active toolchain
----------------

nightly-x86_64-unknown-linux-gnu (default)
rustc 1.44.0-nightly (e82734e56 2020-04-11)

@brenzi
Copy link
Author

brenzi commented Apr 21, 2020

also fails equally when building with nightly

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