Giter Club home page Giter Club logo

robonomics's Introduction

Robonomics

Web3 Foundation Grants — Wave Two Recipient

License CI Status Release Downloads Matrix

Implementation of a https://robonomics.network node in Rust, based on the Substrate framework.

This repo contains runtimes for the Earth Parachain, Mars Parachain, and Robonomics Relay chain networks. The README provides information about installing the robonomics binary and developing on the codebase. For more specific guides, like how to be a node, see the Robonomics Wiki.

Robonomics platform includes a set of open-source packages and infrastructure for Robotics, Smart Cities and Industry 4.0 developers.

1. Try it out

2. The Robonomics Crates

Structure of Robonomics followed:

  • Robonomics Node - substrate-based blockchain node with Robonomics Network extensions.

  • Robonomics CLI - console line primitives that make framework functions runnable.

  • Robonomics IO - stream-oriented library with support general set of sensors and actuators (including virtual devices like PubSub or stdin/stdout) that makes hardware interaction easy.

  • Robonomics Protocol - network library that helps to build P2P communication in Industry 4.0 and Smart City cases.

  • Robonomics Frame - a collection of pallets suitable for Smart City and Industry 4.0 cases.

Full docs available at https://crates.robonomics.network.

3. Building from source

Ensure you have Rust and the support software installed:

curl https://sh.rustup.rs -sSf | sh
# on Windows download and run rustup-init.exe
# from https://rustup.rs instead
rustup target add wasm32-unknown-unknown --toolchain nightly
In case of error: toolchain 'nightly-x86_64-unknown-linux-gnu' is not installed
rustup toolchain install nightly

You will also need to install the following packages:

  1. Linux:

    sudo apt install cmake git clang libclang-dev protobuf-compiler
  2. Mac:

    brew install cmake pkg-config git llvm
  3. Windows (PowerShell):

    # Install LLVM
    # Download and install the Pre Build Windows binaries
    # of LLVM  from http://releases.llvm.org/download.html

Install robonomics node from git source.

cargo install --force --git https://github.com/airalab/robonomics --tag v1.0.0 robonomics-node

And then launch full node of robonomics testnet parachain.

robonomics

Or run your local development network.

robonomics --dev

3.1. Building with Nix

  1. Install Nix package manager:

    curl https://nixos.org/nix/install | sh
  2. Run in Nix shell:

    git clone --recursive https://github.com/airalab/robonomics && cd robonomics
    nix-shell --run "cargo run --release"

4. Network maintaining

Currently Robonomics is maintained by developers but anyone can support the project. Every additional full node of blockchain helps it to be more sustainable and fault tolerant. Robonomics node binaries is available in release assets or it could be build from source.

4.1. Gatekeepers updates

Launch command:

robonomics --lighthouse [YOUR_ACCOUNT_ADDRESS]

5. Robonomics I/O

Especially to make hardware interaction easy we introduce robonomics_io crate. This crate implements two kinds of devices: source - device that intended to read a data and sink - device that intended to write data. This approach suits the pipelines paradigm well and implemented in Robonomics CLI as io subcommand.

$ robonomics io
robonomics-io 0.25.1
Run I/O actions using Robonomics Framework.

USAGE:
    robonomics io [FLAGS] [OPTIONS] <SUBCOMMAND>

SUBCOMMANDS:
    help     Prints this message or the help of the given subcommand(s)
    read     Read information from device
    write    Write information into device

For example, the sentence that simple read value from Nova SDS011 sensor is followed.

$ robonomics io read sds011
{"timestamp":"1588090281","pm25":0.5,"pm10":1.5}

Is it also possible to combine IO actions to get something useful. Following sentence reads JSON values from a sensor and publishes it into my-sensor-data topic.

$ robonomics io read sds011 | robonomics io write pubsub my-sensor-data

6. Robotics integration

Of course, Robonomics should integrate open-source robotics, our main target is ROS-enabled robots. The node implements a few features to make robotics integration as easy as it possible.

robonomics's People

Contributors

akme avatar akru avatar bkchr avatar ddulesov avatar dependabot[bot] avatar dergudzon avatar dkuanyshbaev avatar ensrationis avatar esteve avatar gavofyork avatar jesseabram avatar kayryu avatar khssnv avatar mischi avatar movefasta avatar nakata5321 avatar pavelsheremetev avatar shawntabrizi avatar telostia avatar vol4tim avatar vourhey avatar yamukha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

robonomics's Issues

Cannot build (tag) v0.13

   Compiling substrate-ros-msgs v0.1.0 (/rustbuilder/airalab-substrate-node-robonomics/substrate-ros/msgs)
error: proc macro panicked
  --> substrate-ros/msgs/src/lib.rs:21:1
   |
21 | / rosmsg_include!(
22 | |     // standard ros messages
23 | |     std_msgs / UInt64,
24 | |     std_msgs / String,
...  |
62 | |     substrate_ros_msgs / StartLiability,
63 | | );
   | |__^
   |
   = help: message: message substrate_ros_msgs/StartLiability not found in provided directories
           Directories:
           share
           ../src


error: aborting due to previous error

Can`t build from source on Ubuntu

x86
Ubuntu 18.04.4 new installation.
Following the instructions - Readme.adoc

Get an error:
error: build of '/nix/store/8pwd7jfmg78szc8jmiv0lmp2xdb1qhvw-robonomics_msgs-master.drv', '/nix/store/alcz49g9lsdf8nwa4micx0ca74kz8kla-substrate_ros_msgs-master.drv', '/nix/store/myy9lwm90fv0rdy23ihr9b1gkfs0k93j-rust-1.42.0-nightly-2020-01-19-c0e02ad72.drv' failed

log.txt

Sync fails until restart, high CPU usage

My instance sync stops with a high CPU usage. Restart helps but it continues to suck out all CPU power. And as you could find in logs, sync going very slow and unstable (5 blocks over 10+ minutes).

CPU usage after restart

image

restart log
╭─khassanov@khassanov ~/Workspace/robonomics_substrate_node  
╰─$ ./robonomics-v0.7.1 --name Khssnv-L --pruning 128 --key 0x0000000000000000000000000000000000000000000000000000000000000000 --validator --listen-addr /ip6/::/tcp/30333
2019-02-28 11:37:17 Robonomics Node
2019-02-28 11:37:17   version 0.7.1-396b8b2-x86_64-linux-gnu
2019-02-28 11:37:17   by Airalab <[email protected]>, 2018, 2019
2019-02-28 11:37:17 Chain specification: Robonomics
2019-02-28 11:37:17 Node name: Khssnv-L
2019-02-28 11:37:17 Roles: AUTHORITY
2019-02-28 11:37:18 Best block: #46305
2019-02-28 11:37:18 Local node address is: /ip6/::/tcp/30333/p2p/QmNmGHaC8sVx5FSfQwP4fC3Qinz2DundLyVBC3qZdtxCHg
2019-02-28 11:37:18 Listening for new connections on 127.0.0.1:9944.
2019-02-28 11:37:18 Kademlia random query has yielded empty results
2019-02-28 11:37:18 Using authority key 5CKhj6NsXY9exr2oCwK2t3v1cfXyWqg9qmAQ2LTM1psyZ6VR
2019-02-28 11:37:18 Running Grandpa session as Authority 5CKhj6NsXY9exr2oCwK2t3v1cfXyWqg9qmAQ2LTM1psyZ6VR
2019-02-28 11:37:18 Idle (0 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 0 ⬆ 0
2019-02-28 11:37:19 GRANDPA Voter failed: Safety("Tried to import or finalize node that is an ancestor of a previously finalized node")
2019-02-28 11:37:23 Syncing, target=#47885 (3 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 10.9kiB/s ⬆ 120.0kiB/s
2019-02-28 11:37:28 Syncing, target=#47886 (3 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 9.5kiB/s ⬆ 223.8kiB/s
2019-02-28 11:37:33 Syncing, target=#47886 (3 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 9.7kiB/s ⬆ 302.3kiB/s
2019-02-28 11:37:38 Syncing, target=#47886 (3 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 8.9kiB/s ⬆ 5.3kiB/s
2019-02-28 11:37:43 Syncing, target=#47886 (3 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 7.8kiB/s ⬆ 4.3kiB/s
2019-02-28 11:37:48 Syncing, target=#47886 (3 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 8.5kiB/s ⬆ 4.7kiB/s
2019-02-28 11:37:53 Syncing, target=#47886 (3 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 8.6kiB/s ⬆ 4.0kiB/s
2019-02-28 11:37:58 Syncing, target=#47886 (3 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 7.7kiB/s ⬆ 2.2kiB/s
2019-02-28 11:38:03 Syncing, target=#47886 (4 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 7.1kiB/s ⬆ 2.8kiB/s
2019-02-28 11:38:08 Syncing, target=#47887 (4 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 9.2kiB/s ⬆ 96.8kiB/s
2019-02-28 11:38:13 Syncing, target=#47887 (4 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 9.4kiB/s ⬆ 88.0kiB/s
2019-02-28 11:38:18 Syncing, target=#47887 (4 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 8.6kiB/s ⬆ 4.1kiB/s
2019-02-28 11:38:23 Syncing, target=#47887 (4 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 9.6kiB/s ⬆ 5.1kiB/s
2019-02-28 11:38:28 Syncing, target=#47887 (4 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 9.1kiB/s ⬆ 185.2kiB/s
2019-02-28 11:38:33 Syncing, target=#47888 (5 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 11.5kiB/s ⬆ 515.9kiB/s
2019-02-28 11:38:38 Syncing, target=#47888 (5 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 12.5kiB/s ⬆ 568.2kiB/s
2019-02-28 11:38:43 Syncing, target=#47888 (5 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 10.5kiB/s ⬆ 314.7kiB/s
2019-02-28 11:38:48 Syncing, target=#47888 (5 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 11.1kiB/s ⬆ 197.7kiB/s
2019-02-28 11:38:53 Syncing, target=#47888 (5 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 9.9kiB/s ⬆ 69.2kiB/s
2019-02-28 11:38:58 Syncing, target=#47888 (5 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 9.5kiB/s ⬆ 2.6kiB/s
2019-02-28 11:39:03 Syncing, target=#47888 (5 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 8.1kiB/s ⬆ 2.2kiB/s
2019-02-28 11:39:08 Syncing, target=#47888 (5 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 8.8kiB/s ⬆ 2.4kiB/s
2019-02-28 11:39:13 Syncing, target=#47889 (5 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 9.3kiB/s ⬆ 2.6kiB/s
2019-02-28 11:39:18 Syncing, target=#47889 (5 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 9.4kiB/s ⬆ 3.6kiB/s
2019-02-28 11:39:23 Syncing, target=#47889 (5 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 9.4kiB/s ⬆ 4.4kiB/s
2019-02-28 11:39:28 Syncing, target=#47889 (5 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 9.7kiB/s ⬆ 136.1kiB/s
2019-02-28 11:39:33 Syncing, target=#47889 (6 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 10.8kiB/s ⬆ 158.5kiB/s
2019-02-28 11:39:38 Syncing, target=#47889 (6 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 11.7kiB/s ⬆ 210.0kiB/s
2019-02-28 11:39:43 Syncing, target=#47889 (5 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 11.0kiB/s ⬆ 6.5kiB/s
2019-02-28 11:39:48 Syncing, target=#47889 (6 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 10.7kiB/s ⬆ 6.3kiB/s
2019-02-28 11:39:53 Syncing, target=#47890 (6 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 10.9kiB/s ⬆ 4.9kiB/s
2019-02-28 11:39:58 Syncing, target=#47890 (6 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 10.4kiB/s ⬆ 2.9kiB/s
2019-02-28 11:40:03 Syncing, target=#47890 (6 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 8.1kiB/s ⬆ 2.3kiB/s
2019-02-28 11:40:08 Syncing, target=#47890 (6 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 9.2kiB/s ⬆ 13.4kiB/s
2019-02-28 11:40:13 Syncing, target=#47890 (6 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 9.3kiB/s ⬆ 112.5kiB/s
2019-02-28 11:40:18 Idle (6 peers), best: #46305 (0x2ed8…cc99), finalized #720 (0x697e…03f8), ⬇ 146.2kiB/s ⬆ 89.6kiB/s
2019-02-28 11:40:20 Starting consensus session on top of parent 0x2ed8a2e07a77b7918b754ab729102e2af8cd0a37cbae0c6adc99b167853ecc99
2019-02-28 11:40:20 Prepared block for proposing at 46306 [hash: 0x114e5abcc428fbece1b4c1027ae14796cc08dd37f4af1d8c64ec94d0bbc2c25d; parent_hash: 0x2ed8…cc99; extrinsics: [0x49de…e491]]
2019-02-28 11:40:20 Pre-sealed block for proposal at 46306. Hash now 0x56d50b441e0e8573f1bea1ad60ee06476a8629a739705a1ffcb28f58effac270, previously 0x114e5abcc428fbece1b4c1027ae14796cc08dd37f4af1d8c64ec94d0bbc2c25d.
2019-02-28 11:40:25 Idle (6 peers), best: #46306 (0x56d5…c270), finalized #720 (0x697e…03f8), ⬇ 0.8kiB/s ⬆ 182.1kiB/s
2019-02-28 11:40:25 Imported #46306 (0x56d5…c270)
2019-02-28 11:40:28 Idle (6 peers), best: #46306 (0x56d5…c270), finalized #720 (0x697e…03f8), ⬇ 3.3kiB/s ⬆ 363.8kiB/s
2019-02-28 11:40:33 Idle (6 peers), best: #46306 (0x56d5…c270), finalized #720 (0x697e…03f8), ⬇ 1.7kiB/s ⬆ 232.2kiB/s
2019-02-28 11:40:38 Idle (6 peers), best: #46306 (0x56d5…c270), finalized #720 (0x697e…03f8), ⬇ 0.4kiB/s ⬆ 88.9kiB/s
2019-02-28 11:40:43 Idle (5 peers), best: #46306 (0x56d5…c270), finalized #720 (0x697e…03f8), ⬇ 0.4kiB/s ⬆ 1.1kiB/s
2019-02-28 11:40:48 Idle (6 peers), best: #46306 (0x56d5…c270), finalized #720 (0x697e…03f8), ⬇ 1.1kiB/s ⬆ 1.6kiB/s
2019-02-28 11:40:53 Idle (7 peers), best: #46306 (0x56d5…c270), finalized #720 (0x697e…03f8), ⬇ 0.3kiB/s ⬆ 0.3kiB/s
2019-02-28 11:40:58 Idle (7 peers), best: #46306 (0x56d5…c270), finalized #720 (0x697e…03f8), ⬇ 59 B/s ⬆ 57 B/s
2019-02-28 11:41:00 Starting consensus session on top of parent 0x56d50b441e0e8573f1bea1ad60ee06476a8629a739705a1ffcb28f58effac270
2019-02-28 11:41:00 Prepared block for proposing at 46307 [hash: 0x859e95587781408f1030dcdc85a168d9ab21c925d3cb8361fd5e5d65e4ed72f5; parent_hash: 0x56d5…c270; extrinsics: [0xd1a8…7d54]]
2019-02-28 11:41:00 Pre-sealed block for proposal at 46307. Hash now 0x67a7509dfce6fca00badd0b197ae67cf2559ac43f9b4cb9439a7780192a085b7, previously 0x859e95587781408f1030dcdc85a168d9ab21c925d3cb8361fd5e5d65e4ed72f5.
2019-02-28 11:41:06 Idle (7 peers), best: #46307 (0x67a7…85b7), finalized #720 (0x697e…03f8), ⬇ 19 B/s ⬆ 19 B/s
2019-02-28 11:41:06 Imported #46307 (0x67a7…85b7)
2019-02-28 11:41:08 Idle (7 peers), best: #46307 (0x67a7…85b7), finalized #720 (0x697e…03f8), ⬇ 1.2kiB/s ⬆ 12.0kiB/s
2019-02-28 11:41:13 Idle (7 peers), best: #46307 (0x67a7…85b7), finalized #720 (0x697e…03f8), ⬇ 1.6kiB/s ⬆ 4.9kiB/s
2019-02-28 11:41:18 Idle (7 peers), best: #46307 (0x67a7…85b7), finalized #720 (0x697e…03f8), ⬇ 39 B/s ⬆ 39 B/s
2019-02-28 11:41:23 Idle (7 peers), best: #46307 (0x67a7…85b7), finalized #720 (0x697e…03f8), ⬇ 0.4kiB/s ⬆ 0.3kiB/s
2019-02-28 11:41:28 Idle (7 peers), best: #46307 (0x67a7…85b7), finalized #720 (0x697e…03f8), ⬇ 0.6kiB/s ⬆ 67 B/s
2019-02-28 11:41:33 Idle (7 peers), best: #46307 (0x67a7…85b7), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 0.1kiB/s
2019-02-28 11:41:38 Idle (7 peers), best: #46307 (0x67a7…85b7), finalized #720 (0x697e…03f8), ⬇ 39 B/s ⬆ 39 B/s
2019-02-28 11:41:40 Starting consensus session on top of parent 0x67a7509dfce6fca00badd0b197ae67cf2559ac43f9b4cb9439a7780192a085b7
2019-02-28 11:41:40 Prepared block for proposing at 46308 [hash: 0x3f22a4c57184ff748b05d72d6dd8db1d1a6f53c0d105f4218c284d88d3e1f92f; parent_hash: 0x67a7…85b7; extrinsics: [0xdf62…ed3a]]
2019-02-28 11:41:40 Pre-sealed block for proposal at 46308. Hash now 0x800ef04e03cbc71da6f2675c7af85bc4bf106b435d68cb18592afaf01d700d4a, previously 0x3f22a4c57184ff748b05d72d6dd8db1d1a6f53c0d105f4218c284d88d3e1f92f.
2019-02-28 11:41:45 Idle (6 peers), best: #46308 (0x800e…0d4a), finalized #720 (0x697e…03f8), ⬇ 1.1kiB/s ⬆ 3.3kiB/s
2019-02-28 11:41:45 Imported #46308 (0x800e…0d4a)
2019-02-28 11:41:48 Idle (7 peers), best: #46308 (0x800e…0d4a), finalized #720 (0x697e…03f8), ⬇ 2.7kiB/s ⬆ 14.1kiB/s
^[2019-02-28 11:41:53 Idle (7 peers), best: #46308 (0x800e…0d4a), finalized #720 (0x697e…03f8), ⬇ 2.9kiB/s ⬆ 189.0kiB/s
2019-02-28 11:41:58 Idle (7 peers), best: #46308 (0x800e…0d4a), finalized #720 (0x697e…03f8), ⬇ 1.5kiB/s ⬆ 331.8kiB/s
2019-02-28 11:42:03 Idle (7 peers), best: #46308 (0x800e…0d4a), finalized #720 (0x697e…03f8), ⬇ 0.8kiB/s ⬆ 254.8kiB/s
2019-02-28 11:42:08 Idle (7 peers), best: #46308 (0x800e…0d4a), finalized #720 (0x697e…03f8), ⬇ 0.5kiB/s ⬆ 0.1kiB/s
2019-02-28 11:42:13 Idle (6 peers), best: #46308 (0x800e…0d4a), finalized #720 (0x697e…03f8), ⬇ 0.4kiB/s ⬆ 88.1kiB/s
2019-02-28 11:42:18 Idle (6 peers), best: #46308 (0x800e…0d4a), finalized #720 (0x697e…03f8), ⬇ 1.0kiB/s ⬆ 293.0kiB/s
2019-02-28 11:42:20 Starting consensus session on top of parent 0x800ef04e03cbc71da6f2675c7af85bc4bf106b435d68cb18592afaf01d700d4a
2019-02-28 11:42:20 Prepared block for proposing at 46309 [hash: 0x44ac4b55dd9155b7cea9473b543a8d52aaf3292041de64a1625b0d7d1ed0d044; parent_hash: 0x800e…0d4a; extrinsics: [0xd610…42a1]]
2019-02-28 11:42:20 Pre-sealed block for proposal at 46309. Hash now 0x7a5a8b350e3d4efc76c1ed139347b3a969708b38d17d731cc3fc48c68fe817b5, previously 0x44ac4b55dd9155b7cea9473b543a8d52aaf3292041de64a1625b0d7d1ed0d044.
2019-02-28 11:42:21 Kademlia random query has yielded empty results
2019-02-28 11:42:26 Idle (6 peers), best: #46309 (0x7a5a…17b5), finalized #720 (0x697e…03f8), ⬇ 0.8kiB/s ⬆ 2.3kiB/s
2019-02-28 11:42:26 Imported #46309 (0x7a5a…17b5)
2019-02-28 11:42:28 Idle (6 peers), best: #46309 (0x7a5a…17b5), finalized #720 (0x697e…03f8), ⬇ 1.5kiB/s ⬆ 11.8kiB/s
2019-02-28 11:42:33 Idle (6 peers), best: #46309 (0x7a5a…17b5), finalized #720 (0x697e…03f8), ⬇ 1.5kiB/s ⬆ 4.7kiB/s
2019-02-28 11:42:38 Idle (6 peers), best: #46309 (0x7a5a…17b5), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 0.1kiB/s
2019-02-28 11:42:43 Idle (5 peers), best: #46309 (0x7a5a…17b5), finalized #720 (0x697e…03f8), ⬇ 0.2kiB/s ⬆ 0.2kiB/s
2019-02-28 11:42:48 Idle (6 peers), best: #46309 (0x7a5a…17b5), finalized #720 (0x697e…03f8), ⬇ 0.9kiB/s ⬆ 1.2kiB/s
2019-02-28 11:42:53 Idle (6 peers), best: #46309 (0x7a5a…17b5), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 0.1kiB/s
2019-02-28 11:42:58 Idle (6 peers), best: #46309 (0x7a5a…17b5), finalized #720 (0x697e…03f8), ⬇ 19 B/s ⬆ 19 B/s
2019-02-28 11:43:00 Starting consensus session on top of parent 0x7a5a8b350e3d4efc76c1ed139347b3a969708b38d17d731cc3fc48c68fe817b5
2019-02-28 11:43:00 Prepared block for proposing at 46310 [hash: 0x123f32570fdd5d740bb8267dee468f4676e9c3a470ce3eeffd387e02659b5bd1; parent_hash: 0x7a5a…17b5; extrinsics: [0x5ce8…3c22]]
2019-02-28 11:43:00 Pre-sealed block for proposal at 46310. Hash now 0x65fc6578a4b4588c45e254d288afd27f4ab1871d596ceb8939ccaed8c27f3d74, previously 0x123f32570fdd5d740bb8267dee468f4676e9c3a470ce3eeffd387e02659b5bd1.
2019-02-28 11:43:07 Idle (6 peers), best: #46310 (0x65fc…3d74), finalized #720 (0x697e…03f8), ⬇ 0.2kiB/s ⬆ 0.3kiB/s
2019-02-28 11:43:07 Imported #46310 (0x65fc…3d74)
2019-02-28 11:43:08 Idle (6 peers), best: #46310 (0x65fc…3d74), finalized #720 (0x697e…03f8), ⬇ 1.0kiB/s ⬆ 107.9kiB/s
2019-02-28 11:43:13 Idle (6 peers), best: #46310 (0x65fc…3d74), finalized #720 (0x697e…03f8), ⬇ 3.4kiB/s ⬆ 769.8kiB/s
2019-02-28 11:43:18 Idle (6 peers), best: #46310 (0x65fc…3d74), finalized #720 (0x697e…03f8), ⬇ 3.1kiB/s ⬆ 733.1kiB/s
2019-02-28 11:43:21 Kademlia random query has yielded empty results
2019-02-28 11:43:23 Idle (6 peers), best: #46310 (0x65fc…3d74), finalized #720 (0x697e…03f8), ⬇ 2.4kiB/s ⬆ 413.6kiB/s
2019-02-28 11:43:28 Idle (6 peers), best: #46310 (0x65fc…3d74), finalized #720 (0x697e…03f8), ⬇ 1.4kiB/s ⬆ 64.2kiB/s
2019-02-28 11:43:33 Idle (6 peers), best: #46310 (0x65fc…3d74), finalized #720 (0x697e…03f8), ⬇ 2.1kiB/s ⬆ 405.2kiB/s
2019-02-28 11:43:38 Idle (6 peers), best: #46310 (0x65fc…3d74), finalized #720 (0x697e…03f8), ⬇ 2.0kiB/s ⬆ 323.6kiB/s
2019-02-28 11:43:40 Starting consensus session on top of parent 0x65fc6578a4b4588c45e254d288afd27f4ab1871d596ceb8939ccaed8c27f3d74
2019-02-28 11:43:40 Prepared block for proposing at 46311 [hash: 0xe05c0883b33062ee832780c95baf238debcea4f4b09ad298f2aff4c79c76505e; parent_hash: 0x65fc…3d74; extrinsics: [0xaa34…92c3]]
2019-02-28 11:43:40 Pre-sealed block for proposal at 46311. Hash now 0xa88ceed283b096be62f6bff81a2130386912a73fcdbf55515ee0b4170ff0cc02, previously 0xe05c0883b33062ee832780c95baf238debcea4f4b09ad298f2aff4c79c76505e.
2019-02-28 11:43:45 Idle (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 2.5kiB/s ⬆ 314.3kiB/s
2019-02-28 11:43:45 Imported #46311 (0xa88c…cc02)
2019-02-28 11:43:48 Idle (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 2.9kiB/s ⬆ 336.4kiB/s
2019-02-28 11:43:53 Syncing, target=#47896 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 2.4kiB/s ⬆ 539.7kiB/s
2019-02-28 11:43:58 Syncing, target=#47896 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 1.9kiB/s ⬆ 545.1kiB/s
2019-02-28 11:44:03 Syncing, target=#47896 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 1.2kiB/s ⬆ 338.7kiB/s
2019-02-28 11:44:08 Syncing, target=#47896 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 1.5kiB/s ⬆ 350.0kiB/s
2019-02-28 11:44:13 Syncing, target=#47896 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.4kiB/s ⬆ 0.9kiB/s
2019-02-28 11:44:18 Syncing, target=#47896 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.4kiB/s ⬆ 1.1kiB/s
2019-02-28 11:44:21 Kademlia random query has yielded empty results
2019-02-28 11:44:23 Syncing, target=#47896 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.3kiB/s ⬆ 1.0kiB/s
2019-02-28 11:44:28 Syncing, target=#47896 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.5kiB/s ⬆ 1.0kiB/s
2019-02-28 11:44:33 Syncing, target=#47897 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.4kiB/s ⬆ 11.9kiB/s
2019-02-28 11:44:38 Syncing, target=#47897 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.3kiB/s ⬆ 1.0kiB/s
2019-02-28 11:44:43 Syncing, target=#47897 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.5kiB/s ⬆ 1.1kiB/s
2019-02-28 11:44:48 Syncing, target=#47897 (5 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.4kiB/s ⬆ 0.4kiB/s
2019-02-28 11:44:53 Syncing, target=#47897 (5 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 0.1kiB/s
2019-02-28 11:44:58 Syncing, target=#47897 (5 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 19 B/s ⬆ 19 B/s
2019-02-28 11:45:03 Syncing, target=#47897 (5 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 0.1kiB/s
2019-02-28 11:45:08 Syncing, target=#47897 (5 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 19 B/s
2019-02-28 11:45:13 Syncing, target=#47898 (5 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.2kiB/s ⬆ 0.1kiB/s
2019-02-28 11:45:18 Syncing, target=#47898 (5 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0 ⬆ 0
2019-02-28 11:45:22 Kademlia random query has yielded empty results
2019-02-28 11:45:23 Syncing, target=#47898 (5 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 0.1kiB/s
2019-02-28 11:45:28 Syncing, target=#47898 (5 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.2kiB/s ⬆ 0
2019-02-28 11:45:33 Syncing, target=#47898 (5 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 19 B/s ⬆ 39 B/s
2019-02-28 11:45:38 Syncing, target=#47898 (5 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 98 B/s
2019-02-28 11:45:43 Syncing, target=#47898 (5 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 19 B/s ⬆ 19 B/s
2019-02-28 11:45:48 Syncing, target=#47898 (5 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 0.1kiB/s
2019-02-28 11:45:53 Syncing, target=#47899 (5 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.4kiB/s ⬆ 0.3kiB/s
2019-02-28 11:45:58 Syncing, target=#47899 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.2kiB/s ⬆ 0.1kiB/s
2019-02-28 11:46:03 Syncing, target=#47899 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 19 B/s ⬆ 19 B/s
2019-02-28 11:46:08 Syncing, target=#47899 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.4kiB/s ⬆ 0.1kiB/s
2019-02-28 11:46:13 Syncing, target=#47899 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0 ⬆ 0
2019-02-28 11:46:18 Syncing, target=#47899 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.2kiB/s ⬆ 0.2kiB/s
2019-02-28 11:46:23 Syncing, target=#47899 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0 ⬆ 0
2019-02-28 11:46:24 Kademlia random query has yielded empty results
2019-02-28 11:46:28 Syncing, target=#47899 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.4kiB/s ⬆ 0.1kiB/s
2019-02-28 11:46:33 Syncing, target=#47900 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 19 B/s
2019-02-28 11:46:38 Syncing, target=#47900 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 19 B/s ⬆ 39 B/s
2019-02-28 11:46:43 Syncing, target=#47900 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 0.1kiB/s
2019-02-28 11:46:48 Syncing, target=#47900 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.2kiB/s ⬆ 79 B/s
2019-02-28 11:46:53 Syncing, target=#47900 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.2kiB/s ⬆ 0.1kiB/s
2019-02-28 11:46:58 Syncing, target=#47900 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 19 B/s ⬆ 19 B/s
2019-02-28 11:47:03 Syncing, target=#47900 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 0.1kiB/s
2019-02-28 11:47:08 Syncing, target=#47900 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 95 B/s ⬆ 0
2019-02-28 11:47:13 Syncing, target=#47901 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.2kiB/s ⬆ 0.2kiB/s
2019-02-28 11:47:18 Syncing, target=#47901 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0 ⬆ 0
2019-02-28 11:47:22 Kademlia random query has yielded empty results
2019-02-28 11:47:23 Syncing, target=#47901 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.6kiB/s ⬆ 0.6kiB/s
2019-02-28 11:47:28 Syncing, target=#47901 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.2kiB/s ⬆ 19 B/s
2019-02-28 11:47:33 Syncing, target=#47901 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.2kiB/s ⬆ 39 B/s
2019-02-28 11:47:38 Syncing, target=#47901 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 0.1kiB/s
2019-02-28 11:47:43 Syncing, target=#47901 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 19 B/s ⬆ 19 B/s
2019-02-28 11:47:48 Syncing, target=#47901 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 0.1kiB/s
2019-02-28 11:47:53 Syncing, target=#47902 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 19 B/s
2019-02-28 11:47:58 Syncing, target=#47902 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 0.1kiB/s
2019-02-28 11:48:03 Syncing, target=#47902 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 0.2kiB/s
2019-02-28 11:48:08 Syncing, target=#47902 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.8kiB/s ⬆ 0.8kiB/s
2019-02-28 11:48:13 Syncing, target=#47902 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.2kiB/s ⬆ 0
2019-02-28 11:48:18 Syncing, target=#47902 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 0.1kiB/s
2019-02-28 11:48:23 Syncing, target=#47902 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 19 B/s ⬆ 19 B/s
2019-02-28 11:48:24 Kademlia random query has yielded empty results
2019-02-28 11:48:28 Syncing, target=#47902 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.3kiB/s ⬆ 22.0kiB/s
2019-02-28 11:48:33 Syncing, target=#47903 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.4kiB/s ⬆ 0.3kiB/s
2019-02-28 11:48:38 Syncing, target=#47903 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 19 B/s ⬆ 19 B/s
2019-02-28 11:48:43 Syncing, target=#47903 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.1kiB/s ⬆ 0.1kiB/s
2019-02-28 11:48:48 Syncing, target=#47903 (7 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.5kiB/s ⬆ 1.0kiB/s
2019-02-28 11:48:53 Syncing, target=#47903 (7 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.5kiB/s ⬆ 1.1kiB/s
2019-02-28 11:48:58 Syncing, target=#47903 (7 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.3kiB/s ⬆ 1.0kiB/s
2019-02-28 11:49:03 Syncing, target=#47903 (7 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.6kiB/s ⬆ 1.2kiB/s
2019-02-28 11:49:08 Syncing, target=#47903 (7 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.4kiB/s ⬆ 1.0kiB/s
2019-02-28 11:49:13 Syncing, target=#47904 (7 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.5kiB/s ⬆ 1.1kiB/s
2019-02-28 11:49:18 Syncing, target=#47904 (7 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.3kiB/s ⬆ 1.0kiB/s
2019-02-28 11:49:21 Kademlia random query has yielded empty results
2019-02-28 11:49:23 Syncing, target=#47904 (7 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.3kiB/s ⬆ 1.0kiB/s
2019-02-28 11:49:28 Syncing, target=#47904 (7 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.6kiB/s ⬆ 1.1kiB/s
2019-02-28 11:49:33 Syncing, target=#47904 (7 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.4kiB/s ⬆ 1.0kiB/s
2019-02-28 11:49:38 Syncing, target=#47904 (7 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.4kiB/s ⬆ 1.1kiB/s
2019-02-28 11:49:43 Syncing, target=#47904 (6 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.4kiB/s ⬆ 1.1kiB/s
2019-02-28 11:49:48 Syncing, target=#47904 (7 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 0.8kiB/s ⬆ 1.5kiB/s
2019-02-28 11:49:53 Syncing, target=#47905 (7 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 1.3kiB/s ⬆ 156.5kiB/s
2019-02-28 11:49:58 Syncing, target=#47905 (7 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 1.5kiB/s ⬆ 393.6kiB/s
2019-02-28 11:50:03 Syncing, target=#47905 (7 peers), best: #46311 (0xa88c…cc02), finalized #720 (0x697e…03f8), ⬇ 1.0kiB/s ⬆ 277.7kiB/s

Install error: failed to compile `robonomics v0.3.2

ens@ens-nuc-worker:~$ cargo install --force --git https://github.com/airalab/substrate-node-robonomics robonomics
Updating git repository https://github.com/airalab/substrate-node-robonomics
Installing robonomics v0.3.2 (https://github.com/airalab/substrate-node-robonomics#67c179fc)
Updating crates.io index
Updating git repository https://github.com/paritytech/substrate
error: failed to compile robonomics v0.3.2 (https://github.com/airalab/substrate-node-robonomics#67c179fc), intermediate artifacts can be found at /tmp/cargo-installinLvG1

Caused by:
no matching package named substrate-client found
location searched: https://github.com/paritytech/substrate#9edfc244
did you mean: substrate-cli, substrate-client-db
required by package robonomics v0.3.2 (https://github.com/airalab/substrate-node-robonomics#67c179fc)
ens@ens-nuc-worker:~$

[pubsub]: Node ID private key as parameter.

Motivation

According to #46 is better to dedicate node identity and store it into a file for long term usage.

Steps

  • Add into identity module function to save/load peer private key from file.
  • Move peer identity into Gossipsub::new() function parameter.

Building with Nix failed on Ubuntu 18.04

Some dependencies couldn't be built, please consider a log below.

nix-shell --run "cargo run --release"
these derivations will be built:
  /nix/store/v24fkbhcwcvff8lx9zxdn9702kjvfffv-source.drv
  /nix/store/y0sxa6ambfvskdm9gm17j114lj13ambn-source.drv
  /nix/store/zg9cm2rd0szdwfjfvln52w8hbfppgrwh-catkin-0.7.14.drv
  /nix/store/n2fx8iqp3pjl5h32ld52sdi8fcp05kcc-cpp_common-0.6.11.drv
  /nix/store/sxhk4vl4vcls7ww7cqa94z08rq0g93g2-source.drv
  /nix/store/6c7zah2ldn50i7bl8w2z0jmpm2b3r8w9-rostime-0.6.11.drv
  /nix/store/pvlmvnabgpff8qr3399z534lrhqva02c-source.drv
  /nix/store/d9km884wcmhfi49nnj0p41bczc62n9cg-xmlrpcpp-1.14.4.drv
  /nix/store/id6fg7ml67rkkdr8qvn74vqypj3jllr8-source.drv
  /nix/store/c5dxiyxbxi9l6w3chc9x5a95k25p92z8-source.drv
  /nix/store/cr0kg1k47w5sysm9ckzfmyc4cgk0njv4-genmsg-0.5.11.drv
  /nix/store/6rp0vhn09kz4gjb6iw6i2dnq1ixmi343-genpy-0.6.7.drv
  /nix/store/ljs17a4z9jvxnvl6fhyziy1rp2xqdcpi-source.drv
  /nix/store/lwham83a8jpy8jk047lpgxic4wdbk6sp-gencpp-0.6.0.drv
  /nix/store/iic4g7vl6n1lrkd8vcw6gljq0igcg0cv-message_generation-0.4.0.drv
  /nix/store/dqnn957x556jsf9si39djnga8q3gh9c2-source.drv
  /nix/store/ysx3k1x7bwz0qzm89q46xdzvjsdl7lln-roscpp_traits-0.6.11.drv
  /nix/store/nyksa07q532nc3xjrna59751p6b55mdl-roscpp_serialization-0.6.11.drv
  /nix/store/w66794vf58q1pmvwzqwmd4ps8imw997q-message_runtime-0.4.12.drv
  /nix/store/4nd3zald2yfwq4zsa6cpvy4xjm7kivmi-rosbuild-1.14.4.drv
  /nix/store/i57ms0bsw2s16baj9z4pgic9nszxv4mc-source.drv
  /nix/store/h13zjwz9ixac4pnink5smdqiyzk3h9gz-source.drv
  /nix/store/r9z91cswh4bnm3ix0x8b5yds1i6h2h0n-cmake_modules-0.4.1.drv
  /nix/store/47ykgmp4cq6z6x5qc79y7ki7874x94vk-rospack-2.5.2.drv
  /nix/store/hf53qxiyybj44y3g39shbkms0ha55l3v-source.drv
  /nix/store/pxq0wpax0l4b3h2k4kr19qrviczsfyjl-ros_environment-1.2.1.drv
  /nix/store/fdhkx7y4ap4ylw6cb5f5l5aa5389rl01-roslib-1.14.4.drv
  /nix/store/rkkp042fxfwdfhplzj6bp1h2nrl60lhf-source.drv
  /nix/store/4p03qfa55ykh00mzf74si0757mggb2yw-rosunit-1.14.4.drv
  /nix/store/bfd7nl9l30xh1w90mkykaa4y9b88q9pp-source.drv
  /nix/store/gqrgi8aa0583rbzf9jarlg1llvm6gib9-rosconsole-1.14.4.drv
  /nix/store/h066awa3k0ydjwlvdqazc0lgbjgnbsra-std_msgs-0.5.11.drv
  /nix/store/nqazqkq480x7l1x0vhh34xgw5lh854jx-source.drv
  /nix/store/ij6qlgy1nqgm1vd2kr4crnd1jp43hldj-roslang-1.14.4.drv
  /nix/store/jdvp5gwvmgxjif8xi5snamh3hh9w51h0-source.drv
  /nix/store/k4jx8dcd72spm8h3x9y103fxaq18dxqd-rosgraph_msgs-1.11.2.drv
  /nix/store/h3sdixfbqlzckdmbifvf4vnwplfv3kb7-roscpp-1.14.4.drv
  /nix/store/38ckav1x1jicyvma4rj69xnp3la5x238-rosout-1.14.4.drv
  /nix/store/d2xvdkpwqzh83918k8fm6pvzxn828vb0-source.drv
  /nix/store/3y6d6gwra7dn52rs9nfywls4l668lmr8-roslz4-1.14.4.drv
  /nix/store/glmn8l4bg843h5imxd66z40148q35hs3-source.drv
  /nix/store/hpghw9xyg1bchd2n6n8padg6zl8zqv1a-class_loader-0.4.1.drv
  /nix/store/a3aq4q3s9h6x1f3y7bqiq5di4dgskdy7-pluginlib-2.1.1.drv
  /nix/store/ir6yxdxh1xhshv60i3vsn16g22j2i682-source.drv
  /nix/store/4hvyr4v1wlyaj2yjd0xsdx2mxlbabfwb-rosbag_storage-1.14.4.drv
  /nix/store/hzf8dan66ydp0vzq69s9ygy49aryxi5c-source.drv
  /nix/store/61d310j3frvqv64f9ixv2s0ymzp9m65n-rosgraph-1.14.4.drv
  /nix/store/r88hhnfcf7l6pglapbq5v3pam6r5pc8c-source.drv
  /nix/store/lwhjya9y30my7mrr2zsji0xfqvm47k98-rospy-1.14.4.drv
  /nix/store/ip53gaqy2zzs9mdqwbqfpqdc5s5n2hvl-rosparam-1.14.4.drv
  /nix/store/cz4ci240q677pbb4mnylaxi61z315inv-source.drv
  /nix/store/vcllr676mkzf4h9f6fv2z4b5vj9f894b-rosmaster-1.14.4.drv
  /nix/store/zaxadq0i280ivd2g4ym155ys1fl7sf3a-rosclean-1.14.4.drv
  /nix/store/rkrbzbzqnxwj6d21zi0y1fk6mba72pg5-roslaunch-1.14.4.drv
  /nix/store/xqfkr0ga0r53fv4lqpfmgxlmkam1dn7v-rostest-1.14.4.drv
  /nix/store/7xg8g4w0h3s528dr8x1yw4vhda9lf06l-topic_tools-1.14.4.drv
  /nix/store/qbfsklwwfi39drd9sw5q60xbrj2l80w4-std_srvs-1.11.2.drv
  /nix/store/r9jz8456ak6lxhvfy11rs7zqa0215g8w-source.drv
  /nix/store/8i4w52m3wv3arj9d9rd92cwl78sm2ilf-rosbag-1.14.4.drv
  /nix/store/ly2i19a3j1r7w7i5hd92fz9hgq78h9yi-source.drv
  /nix/store/8wdzdabysvnzni1dyvm9qr58vh95zj7g-roscreate-1.14.4.drv
  /nix/store/9knkh7hfq6n0jsgblj9d8sr592xyjmq9-rosmake-1.14.4.drv
  /nix/store/b5bxwl9abm9r5fw0hyxm52865sy1h9k9-message_filters-1.14.4.drv
  /nix/store/bw71z666kgcb1hjx0awxrgiqq510frkk-source.drv
  /nix/store/csf8j7mawgxv2xdaaizz8mdq36pk3m7n-source.drv
  /nix/store/mhh22nq0g93631s4q453baqnvcv32m3g-source.drv
  /nix/store/jarx57kshyh0zahj6p6wbbl9wpyjsg74-source.drv
  /nix/store/m52c19vzji1829lg14n0gpg4cwy6p96i-source.drv
  /nix/store/qigr9jmzgfbmk9lvgkg6xrr9s021ivlk-rosmsg-1.14.4.drv
  /nix/store/qcb62lc7ymf9fdjrbvah56vgllvxsz1i-rosservice-1.14.4.drv
  /nix/store/ldrbqqz4mham2jd11zj65rszsbmvi0rx-rostopic-1.14.4.drv
  /nix/store/sh2shigk1lydamaa4awdfmvcd6pbm7qz-rosnode-1.14.4.drv
  /nix/store/f1rdk0vhnprjgkj3dfjji2kbh2d388h1-roswtf-1.14.4.drv
  /nix/store/i74w9g9pza1mgrbgqdjy6ps7xwavc1w6-source.drv
  /nix/store/lacyhz20vyk1547shvm60xsr6jw6a263-rosbash-1.14.4.drv
  /nix/store/yj142zgai1frjdf7vww6f4pfzjgmk84r-source.drv
  /nix/store/mmsz2wd44506n8r1rcdqyxyyqrbcx8da-rosboost_cfg-1.14.4.drv
  /nix/store/hgjrdrd04xvkc4v9hsxmqy7byhkh58x2-ros-1.14.4.drv
  /nix/store/y356ww8yk7f7gyz6di8x5lvsdvwzsxpc-ros_comm-1.14.4.drv
building '/nix/store/bfd7nl9l30xh1w90mkykaa4y9b88q9pp-source.drv'...

trying https://github.com/ros-gbp/rosconsole-release/archive/release/melodic/rosconsole/1.14.4-0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   154    0   154    0     0    250      0 --:--:-- --:--:-- --:--:--   250
100 25107    0 25107    0     0  19878      0 --:--:--  0:00:01 --:--:--  209k
unpacking source archive /build/1.14.4-0.tar.gz
hash mismatch in fixed-output derivation '/nix/store/lb7ch7xrsby8xrvm433cqs55yb7qpfi1-source':
  wanted: sha256:06sjhlx8cs4xmcxgwnw7jxs5xgzpjs31n6fsjbrxz659dw234al3
  got:    sha256:18vkbynzczw8bd25mix0ajw8f7ljrpyy15p1aw16gkx17w2yb6d3
cannot build derivation '/nix/store/gqrgi8aa0583rbzf9jarlg1llvm6gib9-rosconsole-1.14.4.drv': 1 dependencies couldn't be built
building '/nix/store/bw71z666kgcb1hjx0awxrgiqq510frkk-source.drv'...
cannot build derivation '/nix/store/y356ww8yk7f7gyz6di8x5lvsdvwzsxpc-ros_comm-1.14.4.drv': 1 dependencies couldn't be built
error: build of '/nix/store/h066awa3k0ydjwlvdqazc0lgbjgnbsra-std_msgs-0.5.11.drv', '/nix/store/y356ww8yk7f7gyz6di8x5lvsdvwzsxpc-ros_comm-1.14.4.drv' failed

The node is killed by zsh after some time passed

I noticed a weird behavior.
I launch the robonomics node with:

./robonomics --name vourhey

and leave it as it is.
But after some time passed there is no my node on the telemetry website. So i go to console and I see

zsh: killed     ./robonomics --name vourhey

with no errors. It has happend few time already. So I don't know if it is a bug or my virtual machine doesn't have enough resources. Could you give a hint what could be the cause?

Example or demo

How to connect robots by substrate robonomics node and what applications it's feasible for? We need a simple example.

v0.18.2 code build error in ubuntu 18.04

execute: cargo install --force --git https://github.com/airalab/robonomics --tag v0.18.2 node-cli
and get error :
Compiling pallet-staking v2.0.0-rc4
Compiling pallet-im-online v2.0.0-rc4
Compiling pallet-babe v2.0.0-rc4
Compiling pallet-grandpa v2.0.0-rc4
Compiling pallet-authority-discovery v2.0.0-rc4
Compiling substrate-subxt v0.8.0
error[E0107]: wrong number of type arguments: expected 0, found 1
--> /home/pc/.cargo/registry/src/github.com-1ecc6299db9ec823/substrate-subxt-0.8.0/src/rpc.rs:90:47
|
90 | pub struct BlockNumber<T: System>(NumberOrHex<::BlockNumber>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected type argument

error[E0107]: wrong number of type arguments: expected 0, found 1
--> /home/pc/.cargo/registry/src/github.com-1ecc6299db9ec823/substrate-subxt-0.8.0/src/rpc.rs:92:26
|
92 | impl From<NumberOrHex<::BlockNumber>> for BlockNumber
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected type argument

error[E0107]: wrong number of type arguments: expected 0, found 1
--> /home/pc/.cargo/registry/src/github.com-1ecc6299db9ec823/substrate-subxt-0.8.0/src/rpc.rs:96:28
|
96 | fn from(x: NumberOrHex<::BlockNumber>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected type argument

error: aborting due to 3 previous errors

For more information about this error, try rustc --explain E0107.
error: could not compile substrate-subxt.

Error: Input("Essential task failed.")

I had a node running for a week or like that but then crashed. Please find error log below.

Setup

$ uname -a
Linux mymachine 5.4.56 #1-NixOS SMP Wed Aug 5 07:59:52 UTC 2020 x86_64 GNU/Linux
$ nix-info
system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.3.7, channels(root): "nixos-21.03pre243968.2a35f664394, home-manager", channels(khassanov): "", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Details

$ robonomics_v0.21.0 --chain parachain --port 30363 --name "Khassanov-H1 🤖 | 0x60b4aa91028ab07df9bee21e4f7d8767d9d6debf"
yyyy-mm-dd hh:mm:ss airalab-robonomics                                                                                                                
yyyy-mm-dd hh:mm:ss ✌️  version 0.21.0-31a135b-x86_64-linux-gnu                                                                                        yyyy-mm-dd hh:mm:ss ❤️  by Airalab <[email protected]>, 2018-2020                                                                                     
yyyy-mm-dd hh:mm:ss 📋 Chain specification: Robonomics                                                                                                
yyyy-mm-dd hh:mm:ss 🏷  Node name: Khassanov-H1 🤖 | 0x60b4aa91028ab07df9bee21e4f7d8767d9d6debf                                                        yyyy-mm-dd hh:mm:ss 👤 Role: FULL                                                                                                                     
yyyy-mm-dd hh:mm:ss 💾 Database: RocksDb at /home/khassanov/.local/share/robonomics/chains/robonomics/db                                              
yyyy-mm-dd hh:mm:ss ⛓  Native runtime: robonomics-1 (robonomics-airalab-1.tx1.au1)                                                                    yyyy-mm-dd hh:mm:ss [Para] ID: 3000                                                                                                                   
yyyy-mm-dd hh:mm:ss [Para] Account: 5Ec4AhPQ8esUzs1gsg6DiUp9q87vJgFNHhPmrXwYiU9FFR7H                                                                  
yyyy-mm-dd hh:mm:ss [Para] Genesis State: 0x000000000000000000000000000000000000000000000000000000000000000000a7103c9ded815392d962930f5e55f31c289b89b7c390d2a67c536ca359e3c6db03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400                                                            
yyyy-mm-dd hh:mm:ss Is collating: no                                                                                                                  
yyyy-mm-dd hh:mm:ss 🏷  Local node identity is: 12D3KooWF4AxBsRPbvaEBcNrwX3mXsA3c16YFRuW5xkDCdwAtFoB (legacy representation: QmVMwL23RKZjHUbD5esRk6ABvBt1NLMQ5xmiHxBATMbTpV)
...
2020-09-24 04:40:25 💤 [Parachain] Idle (50 peers), best: #47503 (0x6159…79f7), finalized #47503 (0x6159…79f7), ⬇ 4.6kiB/s ⬆ 4.5kiB/s     
2020-09-24 04:40:26 💤 [Relaychain] Idle (25 peers), best: #741118 (0xc295…8f6d), finalized #741115 (0x4e38…7c2f), ⬇ 12.5kiB/s ⬆ 8.9kiB/s             
2020-09-24 04:40:28 Essential task `grandpa-voter` failed. Shutting down service.                                                                     
2020-09-24 04:40:28 Availability worker exiting                                                                                                       
Error: Input("Essential task failed.")

a new bug when run

====================

Version: 0.18.4-unknown-commit-x86_64-linux-gnu

0: sp_panic_handler::panic_hook
at /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/093ae51/primitives/panic-handler/src/lib.rs:150
1: sp_panic_handler::set::{{closure}}
at /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/093ae51/primitives/panic-handler/src/lib.rs:60
2: std::panicking::rust_panic_with_hook
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panicking.rs:490
3: std::panicking::begin_panic
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panicking.rs:410
4: sc_client_db::cache::list_cache::ListCache<Block,T,S>::do_on_block_finalize
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/macros.rs:13
5: sc_client_db::cache::list_cache::ListCache<Block,T,S>::on_block_finalize
at /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/093ae51/client/db/src/cache/list_cache.rs:227
6: sc_client_db::cache::DbCacheTransaction::on_block_finalize
at /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/093ae51/client/db/src/cache/mod.rs:290
7: sc_client_db::changes_tries_storage::DbChangesTrieStorage::finalize
at /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/093ae51/client/db/src/changes_tries_storage.rs:247
8: sc_client_db::Backend::note_finalized
at /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/093ae51/client/db/src/lib.rs:1307
9: sc_client_db::Backend::finalize_block_with_transaction
at /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/093ae51/client/db/src/lib.rs:965
10: sc_client_db::Backend::try_commit_operation
at /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/093ae51/client/db/src/lib.rs:1035
11: <sc_client_db::Backend as sc_client_api::backend::Backend>::commit_operation
at /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/093ae51/client/db/src/lib.rs:1411
12: <sc_service::client::client::Client<B,E,Block,RA> as sc_client_api::backend::LockImportRun<Block,B>>::lock_import_and_run::{{closure}}
at /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/093ae51/client/service/src/client/client.rs:247
13: <sc_service::client::client::Client<B,E,Block,RA> as sc_client_api::backend::LockImportRun<Block,B>>::lock_import_and_run
at /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/093ae51/client/service/src/client/client.rs:255
14: <sc_service::client::client::Client<B,E,Block,RA> as sc_client_api::backend::Finalizer<Block,B>>::finalize_block
at /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/093ae51/client/service/src/client/client.rs:1813
15: cumulus_consensus::finalize_block
at /root/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/consensus/src/lib.rs:91
16: cumulus_consensus::follow_polkadot::{{closure}}
at /root/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/consensus/src/lib.rs:127
17: <futures_util::stream::try_stream::try_for_each::TryForEach<St,Fut,F> as core::future::future::Future>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.5/src/stream/try_stream/try_for_each.rs:63
18: ::try_poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-core-0.3.5/src/future.rs:83
19: <futures_util::future::try_future::into_future::IntoFuture as core::future::future::Future>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.5/src/future/try_future/into_future.rs:31
20: <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.5/src/future/future/map.rs:67
21: <futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.5/src/lib.rs:107
22: <futures_util::future::try_future::MapErr<Fut,F> as core::future::future::Future>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.5/src/lib.rs:107
23: <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.5/src/future/future/map.rs:67
24: <futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.5/src/lib.rs:107
25: futures_util::future::future::FutureExt::poll_unpin
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.5/src/future/future/mod.rs:554
26: <futures_util::future::select::Select<A,B> as core::future::future::Future>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.5/src/future/select.rs:62
27: <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.5/src/future/future/map.rs:67
28: <futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.5/src/lib.rs:107
29: <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.5/src/future/future/map.rs:67
30: <futures_util::future::future::Map<Fut,F> as core::future::future::Future>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.5/src/lib.rs:107
31: <core::pin::Pin

as core::future::future::Future>::poll
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libcore/future/future.rs:118
32: <core::pin::Pin

as core::future::future::Future>::poll
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libcore/future/future.rs:118
33: futures_util::future::future::FutureExt::poll_unpin
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.5/src/future/future/mod.rs:554
34: <futures_util::future::select::Select<A,B> as core::future::future::Future>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.5/src/future/select.rs:64
35: sc_service::task_manager::SpawnTaskHandle::spawn_inner::{{closure}}
at /root/.cargo/git/checkouts/substrate-7e08433d4c370a21/093ae51/client/service/src/task_manager.rs:110
36: <core::future::from_generator::GenFuture as core::future::future::Future>::poll
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libcore/future/mod.rs:73
37: <core::pin::Pin

as core::future::future::Future>::poll
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libcore/future/future.rs:118
38: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/task/core.rs:173
39: tokio::loom::std::unsafe_cell::UnsafeCell::with_mut
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/loom/std/unsafe_cell.rs:14
40: tokio::runtime::task::core::Core<T,S>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/task/core.rs:158
41: tokio::runtime::task::harness::Harness<T,S>::poll::{{closure}}
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/task/harness.rs:107
42: core::ops::function::FnOnce::call_once
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libcore/ops/function.rs:232
43: <std::panic::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panic.rs:318
44: std::panicking::try::do_call
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panicking.rs:297
45: __rust_try
46: std::panicking::try
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panicking.rs:274
47: std::panic::catch_unwind
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panic.rs:394
48: tokio::runtime::task::harness::Harness<T,S>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/task/harness.rs:89
49: tokio::runtime::task::raw::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/task/raw.rs:104
50: tokio::runtime::task::raw::RawTask::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/task/raw.rs:66
51: tokio::runtime::task::Notified::run
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/task/mod.rs:169
52: tokio::runtime::thread_pool::worker::Context::run_task::{{closure}}
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/thread_pool/worker.rs:349
53: tokio::coop::with_budget::{{closure}}
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/coop.rs:127
54: std::thread::local::LocalKey::try_with
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/thread/local.rs:263
55: std::thread::local::LocalKey::with
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/thread/local.rs:239
56: tokio::coop::with_budget
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/coop.rs:120
tokio::coop::budget
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/coop.rs:96
tokio::runtime::thread_pool::worker::Context::run_task
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/thread_pool/worker.rs:348
57: tokio::runtime::thread_pool::worker::Context::run
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/thread_pool/worker.rs:320
58: tokio::runtime::thread_pool::worker::run::{{closure}}
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/thread_pool/worker.rs:305
59: tokio::macros::scoped_tls::ScopedKey::set
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/macros/scoped_tls.rs:63
60: tokio::runtime::thread_pool::worker::run
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/thread_pool/worker.rs:302
61: tokio::runtime::thread_pool::worker::Launch::launch::{{closure}}
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/thread_pool/worker.rs:281
62: <tokio::runtime::blocking::task::BlockingTask as core::future::future::Future>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/blocking/task.rs:38
63: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/task/core.rs:173
64: tokio::loom::std::unsafe_cell::UnsafeCell::with_mut
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/loom/std/unsafe_cell.rs:14
65: tokio::runtime::task::core::Core<T,S>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/task/core.rs:158
66: tokio::runtime::task::harness::Harness<T,S>::poll::{{closure}}
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/task/harness.rs:107
67: core::ops::function::FnOnce::call_once
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libcore/ops/function.rs:232
68: <std::panic::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panic.rs:318
69: std::panicking::try::do_call
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panicking.rs:297
70: __rust_try
71: std::panicking::try
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panicking.rs:274
72: std::panic::catch_unwind
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panic.rs:394
73: tokio::runtime::task::harness::Harness<T,S>::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/task/harness.rs:89
74: tokio::runtime::task::raw::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/task/raw.rs:104
75: tokio::runtime::task::raw::RawTask::poll
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/task/raw.rs:66
76: tokio::runtime::task::Notified::run
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/task/mod.rs:169
77: tokio::runtime::blocking::pool::Inner::run
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/blocking/pool.rs:230
78: tokio::runtime::blocking::pool::Spawner::spawn_thread::{{closure}}::{{closure}}
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/blocking/pool.rs:210
79: tokio::runtime::context::enter
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/context.rs:72
80: tokio::runtime::handle::Handle::enter
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/handle.rs:76
81: tokio::runtime::blocking::pool::Spawner::spawn_thread::{{closure}}
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/blocking/pool.rs:209
82: std::sys_common::backtrace::__rust_begin_short_backtrace
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/sys_common/backtrace.rs:130
83: std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/thread/mod.rs:475
84: <std::panic::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panic.rs:318
85: std::panicking::try::do_call
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panicking.rs:297
86: __rust_try
87: std::panicking::try
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panicking.rs:274
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/handle.rs:76
81: tokio::runtime::blocking::pool::Spawner::spawn_thread::{{closure}}
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.21/src/runtime/blocking/pool.rs:209
82: std::sys_common::backtrace::__rust_begin_short_backtrace
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/sys_common/backtrace.rs:130
83: std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/thread/mod.rs:475
84: <std::panic::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panic.rs:318
85: std::panicking::try::do_call
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panicking.rs:297
86: __rust_try
87: std::panicking::try
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panicking.rs:274
88: std::panic::catch_unwind
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/panic.rs:394
89: std::thread::Builder::spawn_unchecked::{{closure}}
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/thread/mod.rs:474
90: core::ops::function::FnOnce::call_once{{vtable.shim}}
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libcore/ops/function.rs:232
91: <alloc::boxed::Box as core::ops::function::FnOnce>::call_once
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/liballoc/boxed.rs:1076
<alloc::boxed::Box as core::ops::function::FnOnce>::call_once
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/liballoc/boxed.rs:1076
std::sys::unix::thread::Thread::new::thread_start
at /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/sys/unix/thread.rs:87
92: start_thread
93: __clone

Thread 'tokio-runtime-worker' panicked at 'assertion failed: self.best_finalized_block.hash == parent.hash ||
match prev_operation {
Some(&CommitOperation::BlockFinalized(ref best_finalized_block, _, _))
=> best_finalized_block.hash == parent.hash,
_ => false,
}', /rustc/5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2/src/libstd/macros.rs:13

This is a bug. Please report it at:
https://github.com/airalab/robonomics/issues/new

Unable to send extrinsic via txpool

When I try to send extrinsic in demand message handler I catch txpool error:

Err(Error(Pool(InvalidTransaction), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } }))

Thread 'ImportQueueWorker' panicked at 'Storage root must match that calculated.'

My worker stack at 3,236 block and start sending me next log:

10: <std::thread::local::LocalKey>::with::h9647cb3c4037c87d (0x5633a9637649)
11: substrate_state_machine::execute_aux::h713e3a1faf90c73d (0x5633a94f5ea3)
12: substrate_state_machine::execute_call_with_native_else_wasm_strategy::hed692ba7d4914492 (0x5633a952dde0)
13: substrate_state_machine::execute_using_consensus_failure_handler::hc5bdb20d3af9b481 (0x5633a951eb65)
14: <substrate_client::call_executor::LocalCallExecutor<B, E> as substrate_client::call_executor::CallExecutor<Block, substrate_primitives::hasher::blake2::Blake2Hasher>>::call_at_state::h90e862eefca857ee (0x5633a96fe98b)
15: <substrate_client::client::Client<B, E, Block, RA>>::lock_import_and_run::{{closure}}::h8f2d827c453f2465 (0x5633a998c19e)
16: <substrate_client::client::Client<B, E, Block, RA> as substrate_consensus_common::block_import::BlockImport>::import_block::h4b77de41b3728cd3 (0x5633a99481c6)
17: <substrate_finality_grandpa::import::GrandpaBlockImport<B, E, Block, RA, PRA> as substrate_consensus_common::block_import::BlockImport>::import_block::heded5e162d0a7ab0 (0x5633a9568a6e)
18: <substrate_consensus_common::import_queue::BlockImportWorker<B, V>>::import_a_batch_of_blocks::h727a7cfa867194df (0x5633a9995cd0)
19: std::sys_common::backtrace::__rust_begin_short_backtrace::h6cbe6a2fe31a5a54 (0x5633a949c0ee)
20: std::panicking::try::do_call::h3f6dcfc92a811645 (0x5633a968af4d)
21: __rust_maybe_catch_panic (0x5633aa2c2ab9)
at src/libpanic_unwind/lib.rs:102
22: <F as alloc::boxed::FnBox>::call_box::hd07c468b6ca4f9e5 (0x5633a979142e)
23: <alloc::boxed::Box<(dyn alloc::boxed::FnBox<A, Output=R> + 'a)> as core::ops::function::FnOnce>::call_once::hece536cf07b94f8d (0x5633aa2b667d)
at /rustc/9fda7c2237db910e41d6a712e9a2139b352e558b/src/liballoc/boxed.rs:683
std::sys_common::thread::start_thread::h9605a7df0f911844
at src/libstd/sys_common/thread.rs:24
std::sys::unix::thread::Thread::new::thread_start::hca8e72c41fa9d291
at src/libstd/sys/unix/thread.rs:90
24: start_thread (0x7f32b19416da)
25: __clone (0x7f32b145288e)
26: (0x0)

Thread 'ImportQueueWorker' panicked at 'Storage root must match that calculated.', /home/ens/.cargo/git/checkouts/substrate-7e08433d4c370a21/edf2a8f/srml/executive/src/lib.rs:214

This is a bug. Please report it at:

    https://github.com/airalab/substrate-node-robonomics/issues

2019-02-20 00:01:22 Failed to write to trie: Database missing expected key: 0xf0cea27e7a7819b8823186501a2df6e1496766cc5595f8561a2848045030caea
Hash not equal
df2ac7b2347cfdafe5509dc331e401c597ab8f8cbbb2b86854ea45944cd3fa88
36fc2dcf1eb77663026faa674dddb9db8a991f167887fdb470fbeda83039e84f
/home/akru/.cargo/git/checkouts/substrate-7e08433d4c370a21/edf2a8f/srml/executive/src/lib.rs
214
3
2019-02-20 00:01:23 Idle (2 peers), best: #3235 (0x7aea…502b), finalized #3235 (0x7aea…502b), ⬇ 7.5kiB/s ⬆ 0.5kiB/s

[robonomics] sign data and broadcast

There is a scenario where we need to broadcast a valuable data over network signed by a private key

There were few cases where we didn't need a whole stack for example:

In the examples above we didn't need a liability module (and blockchain part in particular) rather we needed IPFS part only

Launching let's say "signer only" would help to run our framework on low performance hardware like Raspberry Pi and similar ones

v0.18.4 code build error in ubuntu 18.04

cd ~/go/src/github.com/robonomics
wget https://github.com/airalab/robonomics/archive/v0.18.4-parachain.tar.gz
tar -zxvf v0.18.4-parachain.tar.gz
cd robonomics-0.18.4-parachain
cargo build --verbose

error: linking with cc failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "

error: aborting due to previous error
error: could not compile polkadot-cli.

Caused by:
process didn't exit successfully: `rustc --crate-name polkadot_cli --edition=2018 /root/.cargo/git/checkouts/polkadot-4038f27d5e4ea2e8/c2ef1f8/cli/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type cdylib --crate-type rlib --emit=dep-info,link -Cembed-bitcode=no -C debuginfo=2 --cfg 'feature="cli"' --cfg 'feature="db"' --cfg 'feature="default"' --cfg 'feature="frame-benchmarking-cli"' --cfg 'feature="sc-cli"' --cfg 'feature="sc-service"' --cfg 'feature="service"' --cfg 'feature="service-old"' --cfg 'feature="tokio"' --cfg 'feature="wasmtime"'

[io] add optional custum nonce

When sending multiple requests, the data log causes an problem incorrect nonce:

Error: Input("Rpc error: Server responded to our request with an error: Error { code: ServerError(1014), message: \"Priority is too low: (140000000 vs 140000000)\", data: Some(String(\"The transaction has too low priority to replace another transaction already in the pool.\")) }")
Error: Input("Rpc error: Server responded to our request with an error: Error { code: ServerError(1014), message: \"Priority is too low: (140000000 vs 140000000)\", data: Some(String(\"The transaction has too low priority to replace another transaction already in the pool.\")) }")
Error: Input("Rpc error: Server responded to our request with an error: Error { code: ServerError(1014), message: \"Priority is too low: (140000000 vs 140000000)\", data: Some(String(\"The transaction has too low priority to replace another transaction already in the pool.\")) }")

error: undefined variable 'wasm-gc' at ~/robonomics/shell.nix:11:32

Summary

Unable to build by 3.2 Building with Nix guide. Please find logs below.

Logs

Master branch ‹4ecb6ed›

<master> $ nix-shell --run "cargo run --release"
error: undefined variable 'wasm-gc' at ~/robonomics/shell.nix:11:32
(use '--show-trace' to show detailed location information)
<master> $ nix-shell --run "cargo run --release" --show-trace
error: while evaluating the attribute 'buildInputs' of the derivation 'substrate-nix-shell' at ~/robonomics/shell.nix:9:3:
while evaluating 'chooseDevOutputs' at /nix/store/lyfx0kyjcyvrisvczfkmhfvm40pr1z8q-source/lib/attrsets.nix:474:22, called from undefined position:
undefined variable 'wasm-gc' at~/robonomics/shell.nix:11:32

tag v0.15 branch ‹7d2e6f1›

$ nix-shell --run "cargo run --release" --show-trace
error: while evaluating the attribute 'buildInputs' of the derivation 'substrate-nix-shell' at ~/robonomics/shell.nix:9:3:
while evaluating 'chooseDevOutputs' at /nix/store/lyfx0kyjcyvrisvczfkmhfvm40pr1z8q-source/lib/attrsets.nix:474:22, called from undefined position:
undefined variable 'wasm-gc' at ~/robonomics/shell.nix:11:32

Thread 'tokio-runtime-worker' panicked at 'Storage root must match that calculated.'

After a couple of hours node running I've got an issue. Please find a log below. Unfortunately it's not full while it produces tens of log strings per second but all the same like one below.

My setup

-> % uname -a
Linux hetzner 5.4.56 #1-NixOS SMP Wed Aug 5 07:59:52 UTC 2020 x86_64 GNU/Linux
-> % sudo nix-channel --list
home-manager https://github.com/rycee/home-manager/archive/master.tar.gz
nixos https://nixos.org/channels/nixos-unstable
-> % free -h
              total        used        free      shared  buff/cache   available
Mem:          3.8Gi       527Mi       1.4Gi       3.0Mi       1.8Gi       3.0Gi
Swap:         2.9Gi       4.0Mi       2.9Gi
-> % df -h --type btrfs --type ext4 --type ext3 --type ext2 --type vfat --type iso9660
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        38G   21G   15G  59% /

Failure log

[nix-shell:~/Workspace]$ ~/Workspace/robonomics_v0.20.0 --chain parachain --port 30363 --name "Khassanov-H1 🤖"
[nix-shell:~/Workspace]$ ~/Workspace/robonomics_v0.20.0 --chain parachain --port 30363 --name "Khassanov-H1 🤖"                                                                                                    
yyyy-mm-dd hh:mm:ss airalab-robonomics                                                                   
yyyy-mm-dd hh:mm:ss ✌️  version 0.20.0-5997540-x86_64-linux-gnu                                           
yyyy-mm-dd hh:mm:ss ❤️  by Airalab <[email protected]>, 2018-2020           
yyyy-mm-dd hh:mm:ss 📋 Chain specification: Robonomics
...
  33: core::ops::function::FnOnce::call_once{{vtable.shim}}                                                                                                                                                        
  34: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once                                                                                                                                          
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/liballoc/boxed.rs:1081                                                                                                                         
      <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once                                                                                                                                          
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/liballoc/boxed.rs:1081                                                                                                                         
      std::sys::unix::thread::Thread::new::thread_start                                                                                                                                                            
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/sys/unix/thread.rs:87                                                                                                                   
  35: start_thread                                                                                                                                                                                                 
  36: __clone                                                                                                                                                                                                      
                                                                                                                                                                                                                   
                                                                                                                                                                                                                   
Thread 'tokio-runtime-worker' panicked at 'Storage root must match that calculated.', /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/macros.rs:13                                                      
                                                                                                                                                                                                                   
This is a bug. Please report it at:                                                                                                                                                                                
                                                                                                                                                                                                                   
        https://github.com/airalab/robonomics/issues/new                                                                                                                                                           
                                                                                                                                                                                                                   
2020-08-13 19:39:30 panicked at 'Storage root must match that calculated.', /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libcore/macros/mod.rs:10:9                                                         
2020-08-13 19:39:30 Block prepare storage changes error:                                                                                                                                                           
Execution(Wasmi(Trap(Trap { kind: Unreachable })))                                                                                                                                                                 
2020-08-13 19:39:30 💔 Error importing block 0x1b6b2dc756f9e99a0e1ea55a24e4a2b5005fbf7b0582141ab72367dd3ac04a55: Err(Other(ClientImport("Execution: Trap: Trap { kind: Unreachable }")))                           
Hash: given=193f9c71bf8fa937da91fcb4a35df3340a350dcb720c0f4f3e9fbef6363dfa3c, expected=955e78c7e535731f9a8d14918162d5174eccbfd5c5f8bafe4aeec6702e4c6134                                                            
                                                                                                                                                                                                                   
====================                                                                                                                                                                                               
                                                                                                                                                                                                                   
Version: 0.20.0-5997540-x86_64-linux-gnu                                                                                                                                                                           
                                                                                                                                                                                                                   
   0: sp_panic_handler::set::{{closure}}                                                                                                                                                                           
   1: std::panicking::rust_panic_with_hook                                                                                                                                                                         
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/panicking.rs:530                                                                                                                        
   2: std::panicking::begin_panic                                                                                                                                                                                  
   3: frame_executive::Executive<System,Block,Context,UnsignedValidator,AllModules,COnRuntimeUpgrade>::execute_block                                                                                               
   4: <robonomics_parachain_runtime::Runtime as sp_api::runtime_decl_for_Core::Core<sp_runtime::generic::block::Block<sp_runtime::generic::header::Header<u32,sp_runtime::traits::BlakeTwo256>,sp_runtime::generic:
:unchecked_extrinsic::UncheckedExtrinsic<<pallet_indices::Module<robonomics_parachain_runtime::Runtime> as sp_runtime::traits::StaticLookup>::Source,robonomics_parachain_runtime::Call,sp_runtime::MultiSignature,
(frame_system::extensions::check_spec_version::CheckSpecVersion<robonomics_parachain_runtime::Runtime>,frame_system::extensions::check_tx_version::CheckTxVersion<robonomics_parachain_runtime::Runtime>,frame_syst
em::extensions::check_genesis::CheckGenesis<robonomics_parachain_runtime::Runtime>,frame_system::extensions::check_mortality::CheckMortality<robonomics_parachain_runtime::Runtime>,frame_system::extensions::check
_nonce::CheckNonce<robonomics_parachain_runtime::Runtime>,frame_system::extensions::check_weight::CheckWeight<robonomics_parachain_runtime::Runtime>,pallet_transaction_payment::ChargeTransactionPayment<robonomic
s_parachain_runtime::Runtime>)>>>>::execute_block
   5: sp_api::runtime_decl_for_Core::execute_block_native_call_generator::{{closure}}                                                                                                                              
   6: std::thread::local::LocalKey<T>::with                                                                                                                                                                        
   7: sc_executor::native_executor::WasmExecutor::with_instance::{{closure}}                                                                                                                                       
   8: sc_executor::wasm_runtime::RuntimeCache::with_instance                                                                                                                                                       
   9: <sc_executor::native_executor::NativeExecutor<D> as sp_core::traits::CodeExecutor>::call                                                                                                                     
  10: sp_state_machine::StateMachine<B,H,N,Exec>::execute_aux                                                                                                                                                      
  11: sp_state_machine::StateMachine<B,H,N,Exec>::execute_using_consensus_failure_handler                                                                                                                          
  12: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt<Block>>::call_api_at                                                                                                                  
  13: sp_api::runtime_decl_for_Core::execute_block_call_api_at                                                                                                                                                     
  14: sp_api::Core::execute_block_with_context                                                                                                                                                                     
  15: <&sc_service::client::client::Client<B,E,Block,RA> as sp_consensus::block_import::BlockImport<Block>>::import_block                                                                                          
  16: <alloc::sync::Arc<T> as sp_consensus::block_import::BlockImport<B>>::import_block                                                                                                                            
  17: sp_consensus::import_queue::import_single_block_metered                                                                                                                                                      
  18: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll                                                                                                                             
  19: <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll                                                                                                                        
  20: <futures_util::future::future::flatten::Flatten<Fut,<Fut as core::future::future::Future>::Output> as core::future::future::Future>::poll                                                                    
  21: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll                                                                                                                             
  22: std::panicking::try                                                                                                                                                                                          
  23: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll                                                                                                                           
  24: std::thread::local::LocalKey<T>::with                                                                                                                                                                        
  25: futures_executor::local_pool::block_on                                                                                                                                                                       
  26: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut                                                                                                                                                       
  27: tokio::runtime::task::core::Core<T,S>::poll                                                                                                                                                                  
  28: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once                                                                                                                              
  29: tokio::runtime::task::raw::poll                                                                                                                                                                              
  30: tokio::runtime::blocking::pool::Inner::run                                                                                                                                                                   
  31: tokio::runtime::context::enter                                                                                                                                                                               
  32: std::sys_common::backtrace::__rust_begin_short_backtrace                                                                                                                                                     
  33: core::ops::function::FnOnce::call_once{{vtable.shim}}                                                                                                                                                        
  34: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once                                                                                                                                          
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/liballoc/boxed.rs:1081                                                                                                                         
      <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once                                                                                                                                          
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/liballoc/boxed.rs:1081                                                                                                                         
      std::sys::unix::thread::Thread::new::thread_start                                                                                                                                                            
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/sys/unix/thread.rs:87                                                                                                                   
  35: start_thread                                                                                                                                                                                                 
  36: __clone                                                                                                                                                                                                      
                                                                                                                                                                                                                   
                                                                                                                                                                                                                   
Thread 'tokio-runtime-worker' panicked at 'Storage root must match that calculated.', /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/macros.rs:13                                                      
                                                                                                                                                                                                                   
This is a bug. Please report it at:                                                                                                                                                                                
                                                                                                                                                                                                                   
        https://github.com/airalab/robonomics/issues/new                                                                                                                                                           
                                                                                                                                                                                                                   
2020-08-13 19:39:30 ✨ [Relaychain] Imported #88600 (0x953b…f400)
2020-08-13 19:39:30 panicked at 'Storage root must match that calculated.', /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libcore/macros/mod.rs:10:9                                                         
2020-08-13 19:39:30 Block prepare storage changes error:                                                                                                                                                           
Execution(Wasmi(Trap(Trap { kind: Unreachable })))                                                                                                                                                                 
2020-08-13 19:39:30 💔 Error importing block 0x1b6b2dc756f9e99a0e1ea55a24e4a2b5005fbf7b0582141ab72367dd3ac04a55: Err(Other(ClientImport("Execution: Trap: Trap { kind: Unreachable }")))                           
Hash: given=193f9c71bf8fa937da91fcb4a35df3340a350dcb720c0f4f3e9fbef6363dfa3c, expected=955e78c7e535731f9a8d14918162d5174eccbfd5c5f8bafe4aeec6702e4c6134                                                            
                                                                                                                                                                                                                   
====================                                                                                                                                                                                               
                                                                                                                                                                                                                   
Version: 0.20.0-5997540-x86_64-linux-gnu                                                                                                                                                                           
                                                                                                                                                                                                                   
   0: sp_panic_handler::set::{{closure}}                                                                                                                                                                           
   1: std::panicking::rust_panic_with_hook                                                                                                                                                                         
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/panicking.rs:530                                                                                                                        
   2: std::panicking::begin_panic                                                                                                                                                                                  
   3: frame_executive::Executive<System,Block,Context,UnsignedValidator,AllModules,COnRuntimeUpgrade>::execute_block                                                                                               
   4: <robonomics_parachain_runtime::Runtime as sp_api::runtime_decl_for_Core::Core<sp_runtime::generic::block::Block<sp_runtime::generic::header::Header<u32,sp_runtime::traits::BlakeTwo256>,sp_runtime::generic:
:unchecked_extrinsic::UncheckedExtrinsic<<pallet_indices::Module<robonomics_parachain_runtime::Runtime> as sp_runtime::traits::StaticLookup>::Source,robonomics_parachain_runtime::Call,sp_runtime::MultiSignature,
(frame_system::extensions::check_spec_version::CheckSpecVersion<robonomics_parachain_runtime::Runtime>,frame_system::extensions::check_tx_version::CheckTxVersion<robonomics_parachain_runtime::Runtime>,frame_syst
em::extensions::check_genesis::CheckGenesis<robonomics_parachain_runtime::Runtime>,frame_system::extensions::check_mortality::CheckMortality<robonomics_parachain_runtime::Runtime>,frame_system::extensions::check
_nonce::CheckNonce<robonomics_parachain_runtime::Runtime>,frame_system::extensions::check_weight::CheckWeight<robonomics_parachain_runtime::Runtime>,pallet_transaction_payment::ChargeTransactionPayment<robonomic
s_parachain_runtime::Runtime>)>>>>::execute_block                                                                                                                                                                  
   5: sp_api::runtime_decl_for_Core::execute_block_native_call_generator::{{closure}}                                                                                                                              
   6: std::thread::local::LocalKey<T>::with                                                                                                                                                                        
   7: sc_executor::native_executor::WasmExecutor::with_instance::{{closure}}                                                                                                                                       
   8: sc_executor::wasm_runtime::RuntimeCache::with_instance                                                                                                                                                       
   9: <sc_executor::native_executor::NativeExecutor<D> as sp_core::traits::CodeExecutor>::call                                                                                                                     
  10: sp_state_machine::StateMachine<B,H,N,Exec>::execute_aux                                                                                                                                                      
  11: sp_state_machine::StateMachine<B,H,N,Exec>::execute_using_consensus_failure_handler                                                                                                                          
  12: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt<Block>>::call_api_at                                                                                                                  
  13: sp_api::runtime_decl_for_Core::execute_block_call_api_at                                                                                                                                                     
  14: sp_api::Core::execute_block_with_context                                                                                                                                                                     
  15: <&sc_service::client::client::Client<B,E,Block,RA> as sp_consensus::block_import::BlockImport<Block>>::import_block                                                                                          
  16: <alloc::sync::Arc<T> as sp_consensus::block_import::BlockImport<B>>::import_block                                                                                                                            
  17: sp_consensus::import_queue::import_single_block_metered                                                                                                                                                      
  18: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll                                                                                                                             
  19: <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll                                                                                                                        
  20: <futures_util::future::future::flatten::Flatten<Fut,<Fut as core::future::future::Future>::Output> as core::future::future::Future>::poll                                                                    
  21: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll                                                                                                                             
  22: std::panicking::try                                                                                                                                                                                          
  23: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll                                                                                                                           
  24: std::thread::local::LocalKey<T>::with                                                                                                                                                                        
  25: futures_executor::local_pool::block_on                                                                                                                                                                       
  26: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut                                                                                                                                                       
  27: tokio::runtime::task::core::Core<T,S>::poll                                                                                                                                                                  
  28: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once                                                                                                                              
  29: tokio::runtime::task::raw::poll                                                                                                                                                                              
  30: tokio::runtime::blocking::pool::Inner::run                                                                                                                                                                   
  31: tokio::runtime::context::enter                                                                                                                                                                               
  32: std::sys_common::backtrace::__rust_begin_short_backtrace
  33: core::ops::function::FnOnce::call_once{{vtable.shim}}                                                                                                                                                        
  34: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once                                                                                                                                          
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/liballoc/boxed.rs:1081                                                                                                                         
      <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once                                                                                                                                          
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/liballoc/boxed.rs:1081                                                                                                                         
      std::sys::unix::thread::Thread::new::thread_start                                                                                                                                                            
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/sys/unix/thread.rs:87                                                                                                                   
  35: start_thread                                                                                                                                                                                                 
  36: __clone                                                                                                                                                                                                      
                                                                                                                                                                                                                   
                                                                                                                                                                                                                   
Thread 'tokio-runtime-worker' panicked at 'Storage root must match that calculated.', /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/macros.rs:13                                                      
                                                                                                                                                                                                                   
This is a bug. Please report it at:                                                                                                                                                                                
                                                                                                                                                                                                                   
        https://github.com/airalab/robonomics/issues/new                                                                                                                                                           
                                                                                                                                                                                                                   
2020-08-13 19:39:31 panicked at 'Storage root must match that calculated.', /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libcore/macros/mod.rs:10:9                                                         
2020-08-13 19:39:31 Block prepare storage changes error:                                                                                                                                                           
Execution(Wasmi(Trap(Trap { kind: Unreachable })))                                                                                                                                                                 
2020-08-13 19:39:31 💔 Error importing block 0x1b6b2dc756f9e99a0e1ea55a24e4a2b5005fbf7b0582141ab72367dd3ac04a55: Err(Other(ClientImport("Execution: Trap: Trap { kind: Unreachable }")))                           
Hash: given=193f9c71bf8fa937da91fcb4a35df3340a350dcb720c0f4f3e9fbef6363dfa3c, expected=955e78c7e535731f9a8d14918162d5174eccbfd5c5f8bafe4aeec6702e4c6134                                                            
                                                                                                                                                                                                                   
====================                                                                                                                                                                                               
                                                                                                                                                                                                                   
Version: 0.20.0-5997540-x86_64-linux-gnu                                                                                                                                                                           
                                                                                                                                                                                                                   
   0: sp_panic_handler::set::{{closure}}                                                                                                                                                                           
   1: std::panicking::rust_panic_with_hook                                                                                                                                                                         
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/panicking.rs:530                                                                                                                        
   2: std::panicking::begin_panic                                                                                                                                                                                  
   3: frame_executive::Executive<System,Block,Context,UnsignedValidator,AllModules,COnRuntimeUpgrade>::execute_block                                                                                               
   4: <robonomics_parachain_runtime::Runtime as sp_api::runtime_decl_for_Core::Core<sp_runtime::generic::block::Block<sp_runtime::generic::header::Header<u32,sp_runtime::traits::BlakeTwo256>,sp_runtime::generic:
:unchecked_extrinsic::UncheckedExtrinsic<<pallet_indices::Module<robonomics_parachain_runtime::Runtime> as sp_runtime::traits::StaticLookup>::Source,robonomics_parachain_runtime::Call,sp_runtime::MultiSignature,
(frame_system::extensions::check_spec_version::CheckSpecVersion<robonomics_parachain_runtime::Runtime>,frame_system::extensions::check_tx_version::CheckTxVersion<robonomics_parachain_runtime::Runtime>,frame_syst
em::extensions::check_genesis::CheckGenesis<robonomics_parachain_runtime::Runtime>,frame_system::extensions::check_mortality::CheckMortality<robonomics_parachain_runtime::Runtime>,frame_system::extensions::check
_nonce::CheckNonce<robonomics_parachain_runtime::Runtime>,frame_system::extensions::check_weight::CheckWeight<robonomics_parachain_runtime::Runtime>,pallet_transaction_payment::ChargeTransactionPayment<robonomics_parachain_runtime::Runtime>)>>>>::execute_block
   5: sp_api::runtime_decl_for_Core::execute_block_native_call_generator::{{closure}}
   6: std::thread::local::LocalKey<T>::with
   7: sc_executor::native_executor::WasmExecutor::with_instance::{{closure}}
   8: sc_executor::wasm_runtime::RuntimeCache::with_instance
   9: <sc_executor::native_executor::NativeExecutor<D> as sp_core::traits::CodeExecutor>::call
  10: sp_state_machine::StateMachine<B,H,N,Exec>::execute_aux
  11: sp_state_machine::StateMachine<B,H,N,Exec>::execute_using_consensus_failure_handler
  12: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt<Block>>::call_api_at
  13: sp_api::runtime_decl_for_Core::execute_block_call_api_at
  14: sp_api::Core::execute_block_with_context
  15: <&sc_service::client::client::Client<B,E,Block,RA> as sp_consensus::block_import::BlockImport<Block>>::import_block
  16: <alloc::sync::Arc<T> as sp_consensus::block_import::BlockImport<B>>::import_block
  17: sp_consensus::import_queue::import_single_block_metered
  18: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  19: <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll
  20: <futures_util::future::future::flatten::Flatten<Fut,<Fut as core::future::future::Future>::Output> as core::future::future::Future>::poll
  21: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  22: std::panicking::try
  23: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  24: std::thread::local::LocalKey<T>::with
  25: futures_executor::local_pool::block_on
  26: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
  27: tokio::runtime::task::core::Core<T,S>::poll
  28: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
  29: tokio::runtime::task::raw::poll
  30: tokio::runtime::blocking::pool::Inner::run
  31: tokio::runtime::context::enter
  32: std::sys_common::backtrace::__rust_begin_short_backtrace
  33: core::ops::function::FnOnce::call_once{{vtable.shim}}
  34: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/liballoc/boxed.rs:1081
      <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/liballoc/boxed.rs:1081
      std::sys::unix::thread::Thread::new::thread_start
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/sys/unix/thread.rs:87
  35: start_thread
  36: __clone


Thread 'tokio-runtime-worker' panicked at 'Storage root must match that calculated.', /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/macros.rs:13

This is a bug. Please report it at:

        https://github.com/airalab/robonomics/issues/new

2020-08-13 19:39:31 panicked at 'Storage root must match that calculated.', /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libcore/macros/mod.rs:10:9
2020-08-13 19:39:31 Block prepare storage changes error:
Execution(Wasmi(Trap(Trap { kind: Unreachable })))
2020-08-13 19:39:31 💔 Error importing block 0x1b6b2dc756f9e99a0e1ea55a24e4a2b5005fbf7b0582141ab72367dd3ac04a55: Err(Other(ClientImport("Execution: Trap: Trap { kind: Unreachable }")))
^C2020-08-13 19:39:31 Availability worker exiting

Thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value

Trying to update to 0.6.1 ver with command "cargo install --force --git https://github.com/airalab/substrate-node-robonomics". After succeeded compiling, I tried to run Robonomics node, but unsuccessful with the next log:

ens@ens-nuc-worker:~$ robonomics --name EnsNuc
2019-02-19 23:16:33 Robonomics Node
2019-02-19 23:16:33 version 0.6.1-4474c94-x86_64-linux-gnu
2019-02-19 23:16:33 by Airalab [email protected], 2018, 2019
2019-02-19 23:16:33 Chain specification: Robonomics
2019-02-19 23:16:33 Node name: EnsNuc
2019-02-19 23:16:33 Roles: FULL
2019-02-19 23:16:34 Loading GRANDPA authorities from genesis on what appears to be first startup.

====================

stack backtrace:
0: substrate_panic_handler::set::{{closure}}::he1cccc1002712ca3 (0x55e06eaecb60)
1: std::panicking::rust_panic_with_hook::h8cbdfe43764887be (0x55e06ec22e39)
at src/libstd/panicking.rs:495
2: std::panicking::continue_panic_fmt::h3d3c5a833c00a5e1 (0x55e06ec228e1)
at src/libstd/panicking.rs:398
3: rust_begin_unwind (0x55e06ec227c5)
at src/libstd/panicking.rs:325
4: core::panicking::panic_fmt::h4d67173bc68f6d5a (0x55e06ec3a7bc)
at src/libcore/panicking.rs:95
5: core::result::unwrap_failed::h9cfb7bd6fb3064b2 (0x55e06e101019)
6: <robonomics::service::Factory as substrate_service::components::ServiceFactory>::new_full::h37faad1f2330c92a (0x55e06e0b9b29)
7: substrate_cli::parse_and_execute::h013ec0cbbefa5dd8 (0x55e06dfea2c3)
8: robonomics::main::hdda758ca99b2d58b (0x55e06df61522)
9: std::rt::lang_start::{{closure}}::h8705bcb578cc3f34 (0x55e06e0dbaa2)
10: std::rt::lang_start_internal::{{closure}}::hdfc28107b5be47c9 (0x55e06ec22762)
at src/libstd/rt.rs:59
std::panicking::try::do_call::h69790245ac2d03fe
at src/libstd/panicking.rs:310
11: __rust_maybe_catch_panic (0x55e06ec33ab9)
at src/libpanic_unwind/lib.rs:102
12: std::panicking::try::h9c1cbc5599e1efbf (0x55e06ec231f3)
at src/libstd/panicking.rs:289
std::panic::catch_unwind::h0562757d03ff60b3
at src/libstd/panic.rs:398
std::rt::lang_start_internal::h540c897fe52ba9c5
at src/libstd/rt.rs:58
13: main (0x55e06df616c1)
14: __libc_start_main (0x7f57acbc9b96)
15: _start (0x55e06ddac569)
16: (0x0)

Thread 'main' panicked at 'called Result::unwrap() on an Err value: Error(Client(UnknownBlock("State already discarded for Number(0)")), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })', src/libcore/result.rs:1009

This is a bug. Please report it at:

    https://github.com/airalab/substrate-node-robonomics/issues

Systemd config and NixOS service

This is enhancement proposal. While we are trying to keep the node uptime higher, but failures still here, it would be great to have systemd config with right restart policy and logging length. Also NixOS service.robonomics_nodein airapkgs would be handy for NixOS users to use this config straightforward.

v.0.8.0 Failed to write to trie: Database missing expected key: <...> Hash not equal

2019-03-13 10:26:56 Failed to write to trie: Database missing expected key: 0x8b9689865ec389991881ee5ae1d09e570fd16ce131e0fbf1c0c9cd5ed2645579
Hash not equal
e7e293aa419c0e8370e63ae4e0ed7134f24462889c8cdaea4be15d6513fa46f1
9a18b9b3ce229634c1e7b615b7b8a2bac357503bef68c495079dbbe4c882f399
/home/akru/.cargo/git/checkouts/substrate-7e08433d4c370a21/4cbda5d/srml/executive/src/lib.rs
214
3
2019-03-13 10:26:57 Failed to write to trie: Database missing expected key: 0x8b9689865ec389991881ee5ae1d09e570fd16ce131e0fbf1c0c9cd5ed2645579
Hash: given=e7e293aa419c0e8370e63ae4e0ed7134f24462889c8cdaea4be15d6513fa46f1, expected=9a18b9b3ce229634c1e7b615b7b8a2bac357503bef68c495079dbbe4c882f399

====================

stack backtrace:
   0: substrate_panic_handler::set::{{closure}}::h4a286d7e6e47be58 (0x5616e458e93f)
   1: rust_panic_with_hook (0x5616e46c4f58)
             at src/libstd/panicking.rs:482
   2: std::panicking::begin_panic::hc450aabeec391b37 (0x5616e3d99c44)
   3: <srml_executive::Executive<System, Block, Context, Payment, AllModules>>::execute_block::hdaab6e95de515317 (0x5616e3dc7b95)
   4: robonomics_runtime::api::dispatch::h39c00d5eb8199879 (0x5616e3d9db4e)
   5: std::panicking::try::do_call::he067d85bd1b9c365 (0x5616e39f7671)
   6: __rust_maybe_catch_panic (0x5616e46cae59)
             at src/libpanic_unwind/lib.rs:87
   7: substrate_executor::native_executor::safe_call::h2f93d82fdc1eb9e9 (0x5616e3c19f52)
   8: <std::thread::local::LocalKey<T>>::with::h7082219b6a41aea5 (0x5616e3975a86)
   9: <robonomics::service::Executor as substrate_executor::native_executor::NativeExecutionDispatch>::dispatch::h822b02437272318f (0x5616e38a33e4)
  10: <std::thread::local::LocalKey<T>>::with::hb59f04e4b46da560 (0x5616e3982a65)
  11: <substrate_state_machine::StateMachine<'a, H, B, T, Exec>>::execute_aux::h68a585992d9c0312 (0x5616e39a2e65)
  12: <substrate_state_machine::StateMachine<'a, H, B, T, Exec>>::execute_call_with_native_else_wasm_strategy::hadcd2b2a497bc8a6 (0x5616e39d80e2)
  13: <substrate_state_machine::StateMachine<'a, H, B, T, Exec>>::execute_using_consensus_failure_handler::h851b2e3ba57afdad (0x5616e39c6028)
  14: <substrate_client::call_executor::LocalCallExecutor<B, E> as substrate_client::call_executor::CallExecutor<Block, substrate_primitives::hasher::blake2::Blake2Hasher>>::call_at_state::h55e4abda48a45b83 (0x5616e3a4f0d4)
  15: <substrate_client::client::Client<B, E, Block, RA>>::lock_import_and_run::{{closure}}::h0710a05f576000a6 (0x5616e3d7d7c6)
  16: <substrate_client::client::Client<B, E, Block, RA> as substrate_consensus_common::block_import::BlockImport<Block>>::import_block::h127ec37f672f0538 (0x5616e3d399f6)
  17: <substrate_finality_grandpa::import::GrandpaBlockImport<B, E, Block, RA, PRA> as substrate_consensus_common::block_import::BlockImport<Block>>::import_block::hc277d9f4fff6f031 (0x5616e385b625)
  18: <substrate_consensus_common::import_queue::BlockImportWorker<B, V>>::import_a_batch_of_blocks::h4f23ccfe356202c1 (0x5616e38e8538)
  19: std::sys_common::backtrace::__rust_begin_short_backtrace::h8afdef2506739c56 (0x5616e387319e)
  20: std::panicking::try::do_call::hfb79a6c7a63d7d11 (0x5616e39f770d)
  21: __rust_maybe_catch_panic (0x5616e46cae59)
             at src/libpanic_unwind/lib.rs:87
  22: <F as alloc::boxed::FnBox<A>>::call_box::hab6cb353675e64c6 (0x5616e3b54efe)
  23: call_once<(),()> (0x5616e46ca1ed)
             at /rustc/f66e4697ae286985ddefc53c3a047614568458bb/src/liballoc/boxed.rs:749
      start_thread
             at src/libstd/sys_common/thread.rs:14
      thread_start
             at src/libstd/sys/unix/thread.rs:81
  24: start_thread (0x7fe62f6536da)
  25: __clone (0x7fe62f16488e)
  26: <unknown> (0x0)

Thread 'ImportQueueWorker' panicked at 'Storage root must match that calculated.', /home/ensrationis/.cargo/git/checkouts/substrate-7e08433d4c370a21/4cbda5d/srml/executive/src/lib.rs:214

This is a bug. Please report it at:

	https://github.com/airalab/substrate-node-robonomics/issues

[CI] ROS install scripts

Motivation

It could be great to have a script for installing ROS for CI (currently GitHub actions). This script is needed to build ROS integration components like substrate-ros and robonomics-ros-api.

Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)

when the validators of the test network polkadot work, the following messages began to appear

parachain-validator-01 Jul 15 11:51:36 parachain-validator-01 polkadot[883235]: 2020-07-15 11:51:36 ✨ Imported #29059 (0xba15…a031) Jul 15 11:51:36 parachain-validator-01 polkadot[883235]: 2020-07-15 11:51:36 ✍️ Starting parachain attestation session (parent: 0xba15…a031) with active duty LocalDuty { validation: Parachain(Id(100)), index: 2 } Jul 15 11:51:36 parachain-validator-01 polkadot[883407]: 2020-07-15 11:51:36 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:51:36 parachain-validator-01 polkadot[883407]: 2020-07-15 11:51:36 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:51:36 parachain-validator-01 polkadot[883407]: 2020-07-15 11:51:36 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:51:36 parachain-validator-01 polkadot[883407]: 2020-07-15 11:51:36 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:51:37 parachain-validator-01 polkadot[883407]: 2020-07-15 11:51:37 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:51:37 parachain-validator-01 polkadot[883235]: 2020-07-15 11:51:37 💤 Idle (18 peers), best: #29059 (0xba15…a031), finalized #29056 (0xeed8…ab70), ⬇ 13.7kiB/s ⬆ 15.7kiB/s Jul 15 11:51:37 parachain-validator-01 polkadot[883407]: 2020-07-15 11:51:37 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:51:37 parachain-validator-01 polkadot[883407]: 2020-07-15 11:51:37 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:51:37 parachain-validator-01 polkadot[883407]: 2020-07-15 11:51:37 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:51:37 parachain-validator-01 polkadot[883407]: 2020-07-15 11:51:37 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:51:37 parachain-validator-01 polkadot[883407]: 2020-07-15 11:51:37 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:51:37 parachain-validator-01 polkadot[883407]: 2020-07-15 11:51:37 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:51:39 parachain-validator-01 polkadot[883235]: 2020-07-15 11:51:39 ⚠️ Polling the network future took 2.714866645s
parachain-validator-02 Jul 15 11:46:42 parachain-validator-02 polkadot[760255]: 2020-07-15 11:46:42 ✨ Imported #29010 (0x4f49…2f00) Jul 15 11:46:42 parachain-validator-02 polkadot[760255]: 2020-07-15 11:46:42 ✍️ Starting parachain attestation session (parent: 0x4f49…2f00) with active duty LocalDuty { validation: Parachain(Id(100)), index: 1 } Jul 15 11:46:42 parachain-validator-02 polkadot[780855]: 2020-07-15 11:46:42 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:46:42 parachain-validator-02 polkadot[780855]: 2020-07-15 11:46:42 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:46:42 parachain-validator-02 polkadot[780855]: 2020-07-15 11:46:42 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:46:42 parachain-validator-02 polkadot[780855]: 2020-07-15 11:46:42 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:46:42 parachain-validator-02 polkadot[780855]: 2020-07-15 11:46:42 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:46:42 parachain-validator-02 polkadot[780855]: 2020-07-15 11:46:42 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:46:42 parachain-validator-02 polkadot[780855]: 2020-07-15 11:46:42 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:46:43 parachain-validator-02 polkadot[780855]: 2020-07-15 11:46:43 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:46:43 parachain-validator-02 polkadot[780855]: 2020-07-15 11:46:43 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:46:43 parachain-validator-02 polkadot[780855]: 2020-07-15 11:46:43 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:46:43 parachain-validator-02 polkadot[780855]: 2020-07-15 11:46:43 panicked at 'Calculates storage root: IncompleteDatabase(0xfb53f85b73f52eb4cf936ff527ccb7c1ff760d0399dd11707ad3d9b64d9dbdf7)', /home/akru/.cargo/git/checkouts/cumulus-59522f43471fa161/03205eb/runtime/src/validate_block/implementation.rs:237:10 Jul 15 11:46:43 parachain-validator-02 polkadot[760255]: 2020-07-15 11:46:43 ♻️ Reorg on #29010,0x4f49…2f00 to #29010,0xd01f…d73b, common ancestor #29009,0x48df…868f

Thread 'ImportQueueWorker' panicked at 'Externalities not allowed to fail within runtime: "Trie lookup error: Database missing expected key

Before starting I clean db in ~/local/share/robonomics and sync started correctly. Sync stuck at block #73673 with the next error:

2019-03-16 04:47:50 Failed to write to trie: Database missing expected key: 0x018624c2b07dfa641b0d12dc20f15c0914fa87d6bef338d5b3ac86bbeed1e9b2
Hash not equal
14f05e37949d75681ef45e65e54adb33529a61338c3fed18c98c949ea3520938
46b4d38f6e9f2f2f14148af98f9a6d2141dda5b31ebb6d4a5695efb93a9e3fd8
/home/akru/.cargo/git/checkouts/substrate-7e08433d4c370a21/4cbda5d/srml/executive/src/lib.rs
214
3
2019-03-16 04:47:51 Failed to write to trie: Database missing expected key: 0x018624c2b07dfa641b0d12dc20f15c0914fa87d6bef338d5b3ac86bbeed1e9b2
Hash: given=14f05e37949d75681ef45e65e54adb33529a61338c3fed18c98c949ea3520938, expected=46b4d38f6e9f2f2f14148af98f9a6d2141dda5b31ebb6d4a5695efb93a9e3fd8

====================

stack backtrace:
0: substrate_panic_handler::set::{{closure}}::h8c172536ddeed52c (0x55de0cc19140)
1: std::panicking::rust_panic_with_hook::h744417edfe714d72 (0x55de0cd54329)
at src/libstd/panicking.rs:482
2: std::panicking::begin_panic::h070ef5ed16943c11 (0x55de0c413924)
3: <srml_executive::Executive<System, Block, Context, Payment, AllModules>>::execute_block::h2d94eb8736b42088 (0x55de0c4519e4)
4: robonomics_runtime::api::dispatch::h624caf9d0d3a021c (0x55de0c41a565)
5: std::panicking::try::do_call::hfdd6cab3fcd94321 (0x55de0c0ed221)
6: __rust_maybe_catch_panic (0x55de0cd5a209)
at src/libpanic_unwind/lib.rs:92
7: substrate_executor::native_executor::safe_call::h69905fb79dcb1747 (0x55de0c1b78b2)
8: <std::thread::local::LocalKey>::with::h105b020622452a54 (0x55de0bf7400d)
9: <robonomics::service::Executor as substrate_executor::native_executor::NativeExecutionDispatch>::dispatch::h95fb089fdaa59576 (0x55de0c196c8c)
10: <std::thread::local::LocalKey>::with::hf9842a3c25e96666 (0x55de0bf9a427)
11: <substrate_state_machine::StateMachine<'a, H, B, T, Exec>>::execute_aux::h195c5af210fbdca1 (0x55de0c01e1c5)
12: <substrate_state_machine::StateMachine<'a, H, B, T, Exec>>::execute_call_with_native_else_wasm_strategy::hf41040ce91c4c6ee (0x55de0c054482)
13: <substrate_state_machine::StateMachine<'a, H, B, T, Exec>>::execute_using_consensus_failure_handler::h145667c6e7499ef4 (0x55de0c02a92b)
14: <substrate_client::call_executor::LocalCallExecutor<B, E> as substrate_client::call_executor::CallExecutor<Block, substrate_primitives::hasher::blake2::Blake2Hasher>>::call_at_state::heb6f8f341b8ca38f (0x55de0c0d1834)
15: <substrate_client::client::Client<B, E, Block, RA>>::lock_import_and_run::{{closure}}::h750167034bd8e1dd (0x55de0c3f7226)
16: <substrate_client::client::Client<B, E, Block, RA> as substrate_consensus_common::block_import::BlockImport>::import_block::h49d3857e6d81d31f (0x55de0c3b61d6)
17: <substrate_finality_grandpa::import::GrandpaBlockImport<B, E, Block, RA, PRA> as substrate_consensus_common::block_import::BlockImport>::import_block::h3fbe10fd3432bb85 (0x55de0c157fff)
18: <substrate_consensus_common::import_queue::BlockImportWorker<B, V>>::import_a_batch_of_blocks::h65d230882d1f8939 (0x55de0bf51f0c)
19: std::sys_common::backtrace::__rust_begin_short_backtrace::h6b4a05d70f0c2429 (0x55de0c1671ce)
20: std::panicking::try::do_call::h1658773b6f2ccd99 (0x55de0c0ec4fd)
21: __rust_maybe_catch_panic (0x55de0cd5a209)
at src/libpanic_unwind/lib.rs:92
22: <F as alloc::boxed::FnBox>::call_box::h9dd5e7044449507c (0x55de0c1d779e)
23: <alloc::boxed::Box<(dyn alloc::boxed::FnBox<A, Output=R> + 'a)> as core::ops::function::FnOnce>::call_once::h2263113ac6678036 (0x55de0cd5957d)
at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/liballoc/boxed.rs:744
std::sys_common::thread::start_thread::h7f66efdea8634396
at src/libstd/sys_common/thread.rs:14
std::sys::unix::thread::Thread::new::thread_start::h6fb76bcf544b6181
at src/libstd/sys/unix/thread.rs:81
24: start_thread (0x7fcb899cf6da)
25: __clone (0x7fcb894e088e)
26: (0x0)

Thread 'ImportQueueWorker' panicked at 'Storage root must match that calculated.', /home/ensrationis/.cargo/git/checkouts/substrate-7e08433d4c370a21/4cbda5d/srml/executive/src/lib.rs:214

This is a bug. Please report it at:

https://github.com/airalab/substrate-node-robonomics/issues

2019-03-16 04:47:51 Dropping 1 because "Verification failed: Error(Execution(Error(Wasmi(Trap(Trap { kind: MemoryAccessOutOfBounds })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })"
2019-03-16 04:47:51 Dropping 4 because "Verification failed: Error(Execution(Error(Wasmi(Trap(Trap { kind: MemoryAccessOutOfBounds })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })"
2019-03-16 04:47:51 Dropping 9 because "Verification failed: Error(Execution(Error(Wasmi(Trap(Trap { kind: MemoryAccessOutOfBounds })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })"
2019-03-16 04:47:52 Dropping 7 because "Verification failed: Error(Execution(Error(Wasmi(Trap(Trap { kind: MemoryAccessOutOfBounds })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })"
2019-03-16 04:47:53 Dropping 2 because "Verification failed: Error(Execution(Error(Wasmi(Trap(Trap { kind: MemoryAccessOutOfBounds })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })"
2019-03-16 04:47:53 Dropping 8 because "Verification failed: Error(Execution(Error(Wasmi(Trap(Trap { kind: MemoryAccessOutOfBounds })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })"
2019-03-16 04:47:53 Syncing, target=#73848 (4 peers), best: #73673 (0xf840…c1a7), finalized #73654 (0x151b…c636), ⬇ 123.6kiB/s ⬆ 2.3kiB/s
2019-03-16 04:47:54 Dropping 10 because "Verification failed: Error(Execution(Error(Wasmi(Trap(Trap { kind: MemoryAccessOutOfBounds })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })"
2019-03-16 04:47:55 Dropping 3 because "Verification failed: Error(Execution(Error(Wasmi(Trap(Trap { kind: MemoryAccessOutOfBounds })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })"
2019-03-16 04:47:57 Dropping 6 because "Verification failed: Error(Execution(Error(Wasmi(Trap(Trap { kind: MemoryAccessOutOfBounds })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })"
2019-03-16 04:47:58 Idle (1 peers), best: #73673 (0xf840…c1a7), finalized #73654 (0x151b…c636), ⬇ 34.7kiB/s ⬆ 0.9kiB/s
2019-03-16 04:48:01 Dropping 5 because "Verification failed: Error(Execution(Error(Wasmi(Trap(Trap { kind: MemoryAccessOutOfBounds })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })), State { next_error: None, backtrace: InternalBacktrace { backtrace: None } })"
2019-03-16 04:48:03 Idle (0 peers), best: #73673 (0xf840…c1a7), finalized #73654 (0x151b…c636), ⬇ 6.1kiB/s ⬆ 0.5kiB/s
2019-03-16 04:48:08 Idle (0 peers), best: #73673 (0xf840…c1a7), finalized #73654 (0x151b…c636), ⬇ 0.5kiB/s ⬆ 0.5kiB/s

When I try to restart have the next error:

ensrationis@ensrationis-01:~$ robonomics --name EnsHQ
2019-03-16 05:06:22 Robonomics Node
2019-03-16 05:06:22 version 0.8.0-16c8a54-x86_64-linux-gnu
2019-03-16 05:06:22 by Airalab [email protected], 2018, 2019
2019-03-16 05:06:22 Chain specification: Robonomics
2019-03-16 05:06:22 Node name: EnsHQ
2019-03-16 05:06:22 Roles: FULL
2019-03-16 05:06:26 Best block: #73673
2019-03-16 05:06:26 Local node address is: /ip4/0.0.0.0/tcp/30333/p2p/QmTQG2KmtRFAjDQucK6P9Y3J2mx4g7xohsCQEWJbaS8MA1
2019-03-16 05:06:26 Kademlia random query has yielded empty results
2019-03-16 05:06:26 Listening for new connections on 127.0.0.1:9944.

====================

stack backtrace:
0: substrate_panic_handler::set::{{closure}}::h8c172536ddeed52c (0x556f4911c140)
1: std::panicking::rust_panic_with_hook::h744417edfe714d72 (0x556f49257329)
at src/libstd/panicking.rs:482
2: std::panicking::continue_panic_fmt::h3557b3c3fa21b47b (0x556f49256dd1)
at src/libstd/panicking.rs:385
3: rust_begin_unwind (0x556f49256cb5)
at src/libstd/panicking.rs:312
4: core::panicking::panic_fmt::h74ee8034b317ceed (0x556f4927199c)
at src/libcore/panicking.rs:85
5: core::result::unwrap_failed::h8287afd8ea1e7bf5 (0x556f487b4ed9)
6: <substrate_state_machine::ext::Ext<'a, H, B, T> as substrate_state_machine::Externalities>::storage::h8552443fdcc283c2 (0x556f488b1334)
7: <std::thread::local::LocalKey>::with::h9f5371b40d21a095 (0x556f490fde89)
8: sr_io::read_storage::h07e4931de7237377 (0x556f490fd79b)
9: <(R, S) as srml_session::OnSessionChange>::on_session_change::h3cfc60f9d42a1790 (0x556f48940a32)
10: <(O, P, Q, R, S, T, U, V, W, X, Y, Z) as sr_primitives::traits::OnFinalise>::on_finalise::h864a1253543c4598 (0x556f48949a8e)
11: <srml_executive::Executive<System, Block, Context, Payment, AllModules>>::execute_block::h2d94eb8736b42088 (0x556f4895432e)
12: robonomics_runtime::api::dispatch::h624caf9d0d3a021c (0x556f4891d565)
13: std::panicking::try::do_call::hfdd6cab3fcd94321 (0x556f485f0221)
14: __rust_maybe_catch_panic (0x556f4925d209)
at src/libpanic_unwind/lib.rs:92
15: substrate_executor::native_executor::safe_call::h69905fb79dcb1747 (0x556f486ba8b2)
16: <std::thread::local::LocalKey>::with::h105b020622452a54 (0x556f4847700d)
17: <robonomics::service::Executor as substrate_executor::native_executor::NativeExecutionDispatch>::dispatch::h95fb089fdaa59576 (0x556f48699c8c)
18: <std::thread::local::LocalKey>::with::hf9842a3c25e96666 (0x556f4849d427)
19: <substrate_state_machine::StateMachine<'a, H, B, T, Exec>>::execute_aux::h195c5af210fbdca1 (0x556f485211c5)
20: <substrate_state_machine::StateMachine<'a, H, B, T, Exec>>::execute_call_with_native_else_wasm_strategy::hf41040ce91c4c6ee (0x556f48557482)
21: <substrate_state_machine::StateMachine<'a, H, B, T, Exec>>::execute_using_consensus_failure_handler::h145667c6e7499ef4 (0x556f4852d92b)
22: <substrate_client::call_executor::LocalCallExecutor<B, E> as substrate_client::call_executor::CallExecutor<Block, substrate_primitives::hasher::blake2::Blake2Hasher>>::call_at_state::heb6f8f341b8ca38f (0x556f485d4834)
23: <substrate_client::client::Client<B, E, Block, RA>>::lock_import_and_run::{{closure}}::h750167034bd8e1dd (0x556f488fa226)
24: <substrate_client::client::Client<B, E, Block, RA> as substrate_consensus_common::block_import::BlockImport>::import_block::h49d3857e6d81d31f (0x556f488b91d6)
25: <substrate_finality_grandpa::import::GrandpaBlockImport<B, E, Block, RA, PRA> as substrate_consensus_common::block_import::BlockImport>::import_block::h3fbe10fd3432bb85 (0x556f4865afff)
26: <substrate_consensus_common::import_queue::BlockImportWorker<B, V>>::import_a_batch_of_blocks::h65d230882d1f8939 (0x556f48454f0c)
27: std::sys_common::backtrace::__rust_begin_short_backtrace::h6b4a05d70f0c2429 (0x556f4866a1ce)
28: std::panicking::try::do_call::h1658773b6f2ccd99 (0x556f485ef4fd)
29: __rust_maybe_catch_panic (0x556f4925d209)
at src/libpanic_unwind/lib.rs:92
30: <F as alloc::boxed::FnBox>::call_box::h9dd5e7044449507c (0x556f486da79e)
31: <alloc::boxed::Box<(dyn alloc::boxed::FnBox<A, Output=R> + 'a)> as core::ops::function::FnOnce>::call_once::h2263113ac6678036 (0x556f4925c57d)
at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/liballoc/boxed.rs:744
std::sys_common::thread::start_thread::h7f66efdea8634396
at src/libstd/sys_common/thread.rs:14
std::sys::unix::thread::Thread::new::thread_start::h6fb76bcf544b6181
at src/libstd/sys/unix/thread.rs:81
32: start_thread (0x7fdeab5686da)
33: __clone (0x7fdeab07988e)
34: (0x0)

Thread 'ImportQueueWorker' panicked at 'Externalities not allowed to fail within runtime: "Trie lookup error: Database missing expected key: 0x018624c2b07dfa641b0d12dc20f15c0914fa87d6bef338d5b3ac86bbeed1e9b2"', src/libcore/result.rs:997

This is a bug. Please report it at:

https://github.com/airalab/substrate-node-robonomics/issues

error: could not compile `polkadot-service`.

Anyone can help me with that please ? :)

Trying

cargo install --force --git https://github.com/airalab/robonomics --tag v0.21.0 node-cli

Compiling polkadot-service v0.8.22 (https://github.com/paritytech/polkadot?branch=rococo-branch#29e799da)
error: could not compile polkadot-service.
Caused by:
process didn't exit successfully: rustc --crate-name polkadot_service --edition=2018 /home/g9280101/.cargo/git/checkouts/polkadot-4038f27d5 e4ea2e8/29e799d/service/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,lin k -C opt-level=3 -Cembed-bitcode=no --cfg 'feature="av_store"' --cfg 'feature="consensus"' --cfg 'feature="db"' --cfg 'feature="default"' --cf g 'feature="full-node"' --cfg 'feature="polkadot-network"' -C metadata=f0c57b228a85bef8 -C extra-filename=-f0c57b228a85bef8 --out-dir /tmp/car go-installzBhvr2/release/deps -L dependency=/tmp/cargo-installzBhvr2/release/deps --extern frame_benchmarking=/tmp/cargo-installzBhvr2/release /deps/libframe_benchmarking-74b26c2bc7e1d1c6.rmeta --extern system_rpc_runtime_api=/tmp/cargo-installzBhvr2/release/deps/libframe_system_rpc_r untime_api-3e643b2cf6c80f36.rmeta --extern futures=/tmp/cargo-installzBhvr2/release/deps/libfutures-984f1b33ac966a6b.rmeta --extern hex_litera l=/tmp/cargo-installzBhvr2/release/deps/libhex_literal-adfc2646b3dbeabb.rmeta --extern kusama_runtime=/tmp/cargo-installzBhvr2/release/deps/li bkusama_runtime-f1f88925afb10d60.rmeta --extern lazy_static=/tmp/cargo-installzBhvr2/release/deps/liblazy_static-53201e5af8cd3135.rmeta --exte rn log=/tmp/cargo-installzBhvr2/release/deps/liblog-d62f4447e0f5f5e8.rmeta --extern pallet_babe=/tmp/cargo-installzBhvr2/release/deps/libpalle t_babe-554d31bc99c2e48a.rmeta --extern im_online=/tmp/cargo-installzBhvr2/release/deps/libpallet_im_online-ebe8addb2ada93b2.rmeta --extern pal let_staking=/tmp/cargo-installzBhvr2/release/deps/libpallet_staking-058fa9839a080312.rmeta --extern pallet_transaction_payment_rpc_runtime_api =/tmp/cargo-installzBhvr2/release/deps/libpallet_transaction_payment_rpc_runtime_api-001b5e0184cdd4a4.rmeta --extern codec=/tmp/cargo-installz Bhvr2/release/deps/libparity_scale_codec-00e6e5e862f6df59.rmeta --extern parking_lot=/tmp/cargo-installzBhvr2/release/deps/libparking_lot-4955 5444f2a96264.rmeta --extern av_store=/tmp/cargo-installzBhvr2/release/deps/libpolkadot_availability_store-0b23d6e5d0a6526d.rmeta --extern polk adot_network=/tmp/cargo-installzBhvr2/release/deps/libpolkadot_network-a3e70947fcfe131c.rmeta --extern polkadot_primitives=/tmp/cargo-installz Bhvr2/release/deps/libpolkadot_primitives-da0fb1426d4b13c6.rmeta --extern polkadot_rpc=/tmp/cargo-installzBhvr2/release/deps/libpolkadot_rpc-6 2692b2e2abe9dca.rmeta --extern polkadot_runtime=/tmp/cargo-installzBhvr2/release/deps/libpolkadot_runtime-bb7c58a3181a43b0.rmeta --extern cons ensus=/tmp/cargo-installzBhvr2/release/deps/libpolkadot_validation-a7ea2513072a2250.rmeta --extern rococo_runtime=/tmp/cargo-installzBhvr2/rel ease/deps/librococo_runtime-0d88310b3c83b4de.rmeta --extern authority_discovery=/tmp/cargo-installzBhvr2/release/deps/libsc_authority_discover y-48fbabac9dfc6e88.rmeta --extern sc_block_builder=/tmp/cargo-installzBhvr2/release/deps/libsc_block_builder-119d4df84581df8b.rmeta --extern s c_chain_spec=/tmp/cargo-installzBhvr2/release/deps/libsc_chain_spec-08aa50d073474a9b.rmeta --extern sc_client_api=/tmp/cargo-installzBhvr2/rel ease/deps/libsc_client_api-1446b8af13e7db67.rmeta --extern sc_client_db=/tmp/cargo-installzBhvr2/release/deps/libsc_client_db-24300f0d7faeb1cf .rmeta --extern sc_consensus=/tmp/cargo-installzBhvr2/release/deps/libsc_consensus-7678877f175f44da.rmeta --extern babe=/tmp/cargo-installzBhv r2/release/deps/libsc_consensus_babe-f1f28c4fa2457bd7.rmeta --extern sc_executor=/tmp/cargo-installzBhvr2/release/deps/libsc_executor-92fd4b31 813c2d9d.rmeta --extern grandpa=/tmp/cargo-installzBhvr2/release/deps/libsc_finality_grandpa-b452e55494c717c4.rmeta --extern sc_keystore=/tmp/ cargo-installzBhvr2/release/deps/libsc_keystore-60ade4e0b6a6b292.rmeta --extern sc_network=/tmp/cargo-installzBhvr2/release/deps/libsc_network -747d371c4af34112.rmeta --extern service=/tmp/cargo-installzBhvr2/release/deps/libsc_service-37e960e8b625bb04.rmeta --extern telemetry=/tmp/ca rgo-installzBhvr2/release/deps/libsc_telemetry-9cbdc10a055771e3.rmeta --extern sc_transaction_pool=/tmp/cargo-installzBhvr2/release/deps/libsc _transaction_pool-2a3cd08ce3c7501e.rmeta --extern serde=/tmp/cargo-installzBhvr2/release/deps/libserde-cfc47cf763bd0ce9.rmeta --extern slog=/t mp/cargo-installzBhvr2/release/deps/libslog-0c3f33ed49d1fd18.rmeta --extern sp_api=/tmp/cargo-installzBhvr2/release/deps/libsp_api-db2100d0a77 fbbe2.rmeta --extern authority_discovery_primitives=/tmp/cargo-installzBhvr2/release/deps/libsp_authority_discovery-d8628ad70c5a350b.rmeta --e xtern sp_block_builder=/tmp/cargo-installzBhvr2/release/deps/libsp_block_builder-e7b533cf48a320dc.rmeta --extern sp_blockchain=/tmp/cargo-inst allzBhvr2/release/deps/libsp_blockchain-089d0f61f9e40501.rmeta --extern consensus_common=/tmp/cargo-installzBhvr2/release/deps/libsp_consensus -c4da4bdc343313d7.rmeta --extern babe_primitives=/tmp/cargo-installzBhvr2/release/deps/libsp_consensus_babe-a81485f6baccd0d8.rmeta --extern sp _core=/tmp/cargo-installzBhvr2/release/deps/libsp_core-689708c99a08d18a.rmeta --extern grandpa_primitives=/tmp/cargo-installzBhvr2/release/dep s/libsp_finality_grandpa-2b177dc312c39614.rmeta --extern inherents=/tmp/cargo-installzBhvr2/release/deps/libsp_inherents-7649976595efa893.rmet a --extern sp_io=/tmp/cargo-installzBhvr2/release/deps/libsp_io-213b250310f8bbff.rmeta --extern sp_offchain=/tmp/cargo-installzBhvr2/release/d eps/libsp_offchain-4da01c8a2e0d35d3.rmeta --extern sp_runtime=/tmp/cargo-installzBhvr2/release/deps/libsp_runtime-e10bbb118bf52b8e.rmeta --ext ern sp_session=/tmp/cargo-installzBhvr2/release/deps/libsp_session-84433f435694bd4c.rmeta --extern sp_transaction_pool=/tmp/cargo-installzBhvr 2/release/deps/libsp_transaction_pool-e74befaea0b11eaf.rmeta --extern sp_trie=/tmp/cargo-installzBhvr2/release/deps/libsp_trie-86c9d8d0734d94f e.rmeta --extern prometheus_endpoint=/tmp/cargo-installzBhvr2/release/deps/libsubstrate_prometheus_endpoint-9de1fa492ed19d7f.rmeta --extern we stend_runtime=/tmp/cargo-installzBhvr2/release/deps/libwestend_runtime-fc27c4f15514c7d2.rmeta --cap-lints allow -L native=/tmp/cargo-installzB hvr2/release/build/blake3-d933c0436ab9a93f/out -L native=/tmp/cargo-installzBhvr2/release/build/blake3-d933c0436ab9a93f/out -L native=/tmp/car go-installzBhvr2/release/build/ring-a5aafcd580e18e74/out -L native=/tmp/cargo-installzBhvr2/release/build/zstd-sys-57a3385c51014978/out -L nat ive=/tmp/cargo-installzBhvr2/release/build/wasmtime-runtime-ed60438d4ba65517/out -L native=/tmp/cargo-installzBhvr2/release/build/librocksdb-s ys-b72b8b750f9e0d7f/out -L native=/tmp/cargo-installzBhvr2/release/build/librocksdb-sys-b72b8b750f9e0d7f/out (signal: 9, SIGKILL: kill)
warning: build failed, waiting for other jobs to finish...
error: failed to compile node-cli v0.21.0 (https://github.com/airalab/robonomics?tag=v0.21.0#31a135b2), intermediate artifacts can be found
at /tmp/cargo-installzBhvr2
Caused by:
build failed

rustup toolchain list
stable-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)

rustc --version
rustc 1.47.0-nightly (e15510ca3 2020-08-20)

robonomics не коннектится к пирам

При попытке запустить full node не могу приконнектиться к сети:

2020-06-17 18:14:00 airalab-robonomics
2020-06-17 18:14:00 ✌️ version 0.18.2-fb69366-x86_64-linux-gnu
2020-06-17 18:14:00 ❤️ by Airalab [email protected], 2018-2020
2020-06-17 18:14:00 📋 Chain specification: Robonomics Testnet
2020-06-17 18:14:00 🏷 Node name: ryabina
2020-06-17 18:14:00 👤 Role: FULL
2020-06-17 18:14:00 💾 Database: RocksDb at /home/robonomics/.local/share/robonomics/chains/robonomics_testnet/db
2020-06-17 18:14:00 ⛓ Native runtime: robonomics-86 (robonomics-airalab-86.tx1.au1)
2020-06-17 18:14:00 👶 Creating empty BABE epoch changes on what appears to be first startup.
2020-06-17 18:14:00 📦 Highest known block at #0
2020-06-17 18:14:00 🏷 Local node identity is: 12D3KooWEs6ES46EpNZACWgM4ox7ETtX2xVU7vF4oQsq6JSkq5Lh (legacy representation: QmT6eeGUQZNdKSMqnCFvg6GrawvcsNzxcb2h9rGeZ3SEdT)
2020-06-17 18:14:01 🔍 Discovered new external address for our node: /ip6/::1/tcp/30930/p2p/12D3KooWEs6ES46EpNZACWgM4ox7ETtX2xVU7vF4oQsq6JSkq5Lh
2020-06-17 18:14:03 🔍 Discovered new external address for our node: /ip4/116.202.159.115/tcp/30930/p2p/12D3KooWEs6ES46EpNZACWgM4ox7ETtX2xVU7vF4oQsq6JSkq5Lh
2020-06-17 18:14:05 💤 Idle (0 peers), best: #0 (0xbde0…2a61), finalized #0 (0xbde0…2a61), ⬇ 2.4kiB/s ⬆ 2.3kiB/s
2020-06-17 18:14:10 💤 Idle (0 peers), best: #0 (0xbde0…2a61), finalized #0 (0xbde0…2a61), ⬇ 50 B/s ⬆ 38 B/s

Строка запуска:
robonomics --listen-addr /ip4/0.0.0.0/tcp/30930

Бинарник взят по ссылке https://github.com/airalab/robonomics/releases/download/v0.18.2 robonomics-ubuntu-0.18.2-x86_64.tar.xz

В чем может быть проблема?

[substrate-ros/robonomics] Asynchronous robot liability content provider

Problem definition

Current liability engine load liability's content in blocking manner. By design liabilities in robonomics network is asynchronous. Current implementation of IPFS file loader is synchronous and it should be adopted to new asynchronous liability player.

Proposal

Make a way to load liability contents (ROSBAG file in IPFS) in async function. Player builder should be runned after successfull file loading.

This issue has an aim to introduce service that could be used for asynchronous liability content downloading.

Verification failed for block

I'm running 2 network nodes on VPS and recently they stopped receiving new blocks after a few days of operations. Please find failure log below.

My setup

-> % uname -a
Linux ubuntu7 4.15.0-118-generic #119-Ubuntu SMP Tue Sep 8 12:30:01 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

-> % free -h
                      total        used          free         shared  buff/cache   available
Mem:           985M        246M        159M        596K        579M        596M
Swap:            0B          0B          0B


-> % df -h --type btrfs --type ext4 --type ext3 --type ext2 --type vfat --type iso9660
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        25G  2.9G   22G  12% /
/dev/vda15      105M  3.6M  101M   4% /boot/efi

Service status

-> % systemctl status robonomics_testNet.service 
● robonomics_testNet.service - robonomics service
   Loaded: loaded (/etc/systemd/system/robonomics_testNet.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2020-09-27 13:50:16 UTC; 1 day 7h ago
 Main PID: 730 (robonomics)
    Tasks: 47 (limit: 1151)
   CGroup: /system.slice/robonomics_testNet.service
           └─730 /usr/bin/robonomics --chain parachain --name ijn15 | 0x283B4163bA8c0E18b75713674e11e25FA1AD83f8

Sep 28 21:02:58 ubuntu15 robonomics[730]: 2020-09-28 21:02:58 💤 [Relaychain] Idle (6 peers), best: #768955 (0x59cc…e12b), finalized #760389 (0x35fd…54c2), ⬇ 14.1kiB/s ⬆ 5.2kiB/s
Sep 28 21:03:01 ubuntu15 robonomics[730]: 2020-09-28 21:03:01 💔 Verification failed for block 0x890895bb71874f5b9bb96aef5b0caaf1dd34c81255cd3dd2754a1a5aaadc6ef3 received from peer: 12D3KooWAF
Sep 28 21:03:01 ubuntu15 robonomics[730]: 2020-09-28 21:03:01 💔 Verification failed for block 0x890895bb71874f5b9bb96aef5b0caaf1dd34c81255cd3dd2754a1a5aaadc6ef3 received from peer: 12D3KooWB8
Sep 28 21:03:02 ubuntu15 robonomics[730]: 2020-09-28 21:03:02 💤 [Parachain] Idle (49 peers), best: #47529 (0x547c…65a6), finalized #47492 (0x05d7…ebd7), ⬇ 3.7kiB/s ⬆ 3.8kiB/s
Sep 28 21:03:03 ubuntu15 robonomics[730]: 2020-09-28 21:03:03 💔 Verification failed for block 0x890895bb71874f5b9bb96aef5b0caaf1dd34c81255cd3dd2754a1a5aaadc6ef3 received from peer: 12D3KooWPP
Sep 28 21:03:03 ubuntu15 robonomics[730]: 2020-09-28 21:03:03 ⚙️  [Relaychain] Syncing  0.0 bps, target=#775773 (8 peers), best: #768955 (0x59cc…e12b), finalized #760389 (0x35fd…54c2), ⬇ 35.3ki
Sep 28 21:03:04 ubuntu15 robonomics[730]: 2020-09-28 21:03:04 💔 Verification failed for block 0x890895bb71874f5b9bb96aef5b0caaf1dd34c81255cd3dd2754a1a5aaadc6ef3 received from peer: 12D3KooWJc
Sep 28 21:03:05 ubuntu15 robonomics[730]: 2020-09-28 21:03:05 💔 Verification failed for block 0x890895bb71874f5b9bb96aef5b0caaf1dd34c81255cd3dd2754a1a5aaadc6ef3 received from peer: 12D3KooWG1
Sep 28 21:03:07 ubuntu15 robonomics[730]: 2020-09-28 21:03:07 💤 [Parachain] Idle (49 peers), best: #47529 (0x547c…65a6), finalized #47492 (0x05d7…ebd7), ⬇ 4.3kiB/s ⬆ 4.3kiB/s

Failure log

Sep 28 21:09:36 ubuntu15 robonomics[730]: 2020-09-28 21:09:36 💔 Verification failed for block 0x890895bb71874f5b9bb96aef5b0caaf1dd34c81255cd3dd2754a1a5aaadc6ef3 received from peer: 12D3KooWAFH1GqtxWvaxxwkunPH4frZMV2qDQKbV8i21AYkWY5UU, "UnknownBlock: State already discarded for BlockId::Hash(0x59cc7c73337ff878c536a307e6c1283ba9c658f49bdd1134ad75092cbf1de12b)"
Sep 28 21:09:38 ubuntu15 robonomics[730]: 2020-09-28 21:09:38 💤 [Parachain] Idle (49 peers), best: #47529 (0x547c…65a6), finalized #47492 (0x05d7…ebd7), ⬇ 3.7kiB/s ⬆ 3.7kiB/s
Sep 28 21:09:39 ubuntu15 robonomics[730]: 2020-09-28 21:09:39 💔 Verification failed for block 0x890895bb71874f5b9bb96aef5b0caaf1dd34c81255cd3dd2754a1a5aaadc6ef3 received from peer: 12D3KooWL3ycav71QcaKCvU8FmpozpwnEzGhpjGnCuBXZkZJEHLF, "UnknownBlock: State already discarded for BlockId::Hash(0x59cc7c73337ff878c536a307e6c1283ba9c658f49bdd1134ad75092cbf1de12b)"
Sep 28 21:09:39 ubuntu15 robonomics[730]: 2020-09-28 21:09:39 ⚙️  [Relaychain] Syncing  0.0 bps, target=#775794 (8 peers), best: #768955 (0x59cc…e12b), finalized #760389 (0x35fd…54c2), ⬇ 24.2kiB/s ⬆ 7.4kiB/s
Sep 28 21:09:41 ubuntu15 robonomics[730]: 2020-09-28 21:09:41 💔 Verification failed for block 0x890895bb71874f5b9bb96aef5b0caaf1dd34c81255cd3dd2754a1a5aaadc6ef3 received from peer: 12D3KooWG18SW2KouBaSrCenxUKotmLPqag3WMJmunFLaJHpEXTs, "UnknownBlock: State already discarded for BlockId::Hash(0x59cc7c73337ff878c536a307e6c1283ba9c658f49bdd1134ad75092cbf1de12b)"
Sep 28 21:09:43 ubuntu15 robonomics[730]: 2020-09-28 21:09:43 💤 [Parachain] Idle (49 peers), best: #47529 (0x547c…65a6), finalized #47492 (0x05d7…ebd7), ⬇ 4.1kiB/s ⬆ 3.8kiB/s
Sep 28 21:09:43 ubuntu15 robonomics[730]: 2020-09-28 21:09:43 💔 Verification failed for block 0x890895bb71874f5b9bb96aef5b0caaf1dd34c81255cd3dd2754a1a5aaadc6ef3 received from peer: 12D3KooWLMwUNrt2RNKjJqcPmDUh9ucLyZ7h1nGcQ9Ww2ZLMFABW, "UnknownBlock: State already discarded for BlockId::Hash(0x59cc7c73337ff878c536a307e6c1283ba9c658f49bdd1134ad75092cbf1de12b)"
Sep 28 21:09:44 ubuntu15 robonomics[730]: 2020-09-28 21:09:44 💔 Verification failed for block 0x890895bb71874f5b9bb96aef5b0caaf1dd34c81255cd3dd2754a1a5aaadc6ef3 received from peer: 12D3KooWPmFKA2NC2KNckiA3T29cxRQMVwEHAexqaeNTjyDV7PsQ, "UnknownBlock: State already discarded for BlockId::Hash(0x59cc7c73337ff878c536a307e6c1283ba9c658f49bdd1134ad75092cbf1de12b)"
Sep 28 21:09:44 ubuntu15 robonomics[730]: 2020-09-28 21:09:44 ⚙️  [Relaychain] Syncing  0.0 bps, target=#775305 (7 peers), best: #768955 (0x59cc…e12b), finalized #760389 (0x35fd…54c2), ⬇ 34.3kiB/s ⬆ 8.3kiB/s
Sep 28 21:09:48 ubuntu15 robonomics[730]: 2020-09-28 21:09:48 💤 [Parachain] Idle (49 peers), best: #47529 (0x547c…65a6), finalized #47492 (0x05d7…ebd7), ⬇ 3.8kiB/s ⬆ 4.0kiB/s
Sep 28 21:09:49 ubuntu15 robonomics[730]: 2020-09-28 21:09:49 ⚙️  [Relaychain] Syncing  0.0 bps, target=#775305 (7 peers), best: #768955 (0x59cc…e12b), finalized #760389 (0x35fd…54c2), ⬇ 3.2kiB/s ⬆ 3.2kiB/s
Sep 28 21:09:53 ubuntu15 robonomics[730]: 2020-09-28 21:09:53 💤 [Parachain] Idle (49 peers), best: #47529 (0x547c…65a6), finalized #47492 (0x05d7…ebd7), ⬇ 4.8kiB/s ⬆ 4.6kiB/s
Sep 28 21:09:54 ubuntu15 robonomics[730]: 2020-09-28 21:09:54 ⚙️  [Relaychain] Syncing  0.0 bps, target=#775305 (7 peers), best: #768955 (0x59cc…e12b), finalized #760389 (0x35fd…54c2), ⬇ 3.4kiB/s ⬆ 3.8kiB/s
Sep 28 21:09:58 ubuntu15 robonomics[730]: 2020-09-28 21:09:58 💤 [Parachain] Idle (49 peers), best: #47529 (0x547c…65a6), finalized #47492 (0x05d7…ebd7), ⬇ 4.0kiB/s ⬆ 4.1kiB/s
Sep 28 21:09:59 ubuntu15 robonomics[730]: 2020-09-28 21:09:59 💔 Verification failed for block 0x890895bb71874f5b9bb96aef5b0caaf1dd34c81255cd3dd2754a1a5aaadc6ef3 received from peer: 12D3KooWSPayd1AVbkQnoKNY31ct7REiME9F7Bi1Sy4ByZMKghZT, "UnknownBlock: State already discarded for BlockId::Hash(0x59cc7c73337ff878c536a307e6c1283ba9c658f49bdd1134ad75092cbf1de12b)"
Sep 28 21:09:59 ubuntu15 robonomics[730]: 2020-09-28 21:09:59 ⚙️  [Relaychain] Syncing  0.0 bps, target=#775305 (7 peers), best: #768955 (0x59cc…e12b), finalized #760389 (0x35fd…54c2), ⬇ 15.0kiB/s ⬆ 6.2kiB/s
Sep 28 21:10:00 ubuntu15 robonomics[730]: 2020-09-28 21:10:00 💔 Verification failed for block 0x890895bb71874f5b9bb96aef5b0caaf1dd34c81255cd3dd2754a1a5aaadc6ef3 received from peer: 12D3KooWBBwauXVbCC3TvGvynyi58AwRZSGGLx7KBoKFfcfEbhHD, "UnknownBlock: State already discarded for BlockId::Hash(0x59cc7c73337ff878c536a307e6c1283ba9c658f49bdd1134ad75092cbf1de12b)"
Sep 28 21:10:01 ubuntu15 robonomics[730]: 2020-09-28 21:10:01 💔 Verification failed for block 0x890895bb71874f5b9bb96aef5b0caaf1dd34c81255cd3dd2754a1a5aaadc6ef3 received from peer: 12D3KooWGqrUyhEt4yPPSbGxosjLjdYWjkgJkusM135Tvm1a35AF, "UnknownBlock: State already discarded for BlockId::Hash(0x59cc7c73337ff878c536a307e6c1283ba9c658f49bdd1134ad75092cbf1de12b)"

[CI] Docker autobuild

Motivation

Create automation for building docket image and push it into docker hub.

Fail sync and startup v0.8.1

After update on v0.8.1 and new sync. Synchronization does not complete until the end. If you restart, it does not start with an error:
`stack backtrace:
0: substrate_panic_handler::set::{{closure}}::h8c172536ddeed52c (0x5607e0077030)
1: std::panicking::rust_panic_with_hook::h744417edfe714d72 (0x5607e01b21e9)
at src/libstd/panicking.rs:482
2: std::panicking::continue_panic_fmt::h3557b3c3fa21b47b (0x5607e01b1c91)
at src/libstd/panicking.rs:385
3: rust_begin_unwind (0x5607e01b1b75)
at src/libstd/panicking.rs:312
4: core::panicking::panic_fmt::h74ee8034b317ceed (0x5607e01cc85c)
at src/libcore/panicking.rs:85
5: core::result::unwrap_failed::h2f330128db75f64a (0x5607df7b22f9)
6: <substrate_state_machine::ext::Ext<'a, H, B, T> as substrate_state_machine::Externalities>::storage::h5d825c512f635bc5 (0x5607df8a2a84)
7: <std::thread::local::LocalKey>::with::h9f5371b40d21a095 (0x5607e0058d79)
8: sr_io::read_storage::h07e4931de7237377 (0x5607e005868b)
9: <(R, S) as srml_session::OnSessionChange>::on_session_change::h3cfc60f9d42a1790 (0x5607df932502)
10: <(O, P, Q, R, S, T, U, V, W, X, Y, Z) as sr_primitives::traits::OnFinalise>::on_finalise::h864a1253543c4598 (0x5607df93b55e)
11: <srml_executive::Executive<System, Block, Context, Payment, AllModules>>::execute_block::h2d94eb8736b42088 (0x5607df945dfe)
12: robonomics_runtime::api::dispatch::h624caf9d0d3a021c (0x5607df90f035)
13: std::panicking::try::do_call::h16d544c6ead56926 (0x5607df5e00b1)
14: __rust_maybe_catch_panic (0x5607e01b80c9)
at src/libpanic_unwind/lib.rs:92
15: substrate_executor::native_executor::safe_call::h81306eea0bdc92f8 (0x5607df6ac2d2)
16: <std::thread::local::LocalKey>::with::hc9c70572b5c96012 (0x5607df4875bd)
17: <robonomics::service::Executor as substrate_executor::native_executor::NativeExecutionDispatch>::dispatch::h4271ddecaa373e2d (0x5607df68b8ec)
18: <std::thread::local::LocalKey>::with::h290e7f4fff2e6c93 (0x5607df46df07)
19: <substrate_state_machine::StateMachine<'a, H, B, T, Exec>>::execute_aux::ha2e9fe2d6eaa71e1 (0x5607df514f15)
20: <substrate_state_machine::StateMachine<'a, H, B, T, Exec>>::execute_call_with_native_else_wasm_strategy::hc2a4ec9934383ccf (0x5607df548cd2)
21: <substrate_state_machine::StateMachine<'a, H, B, T, Exec>>::execute_using_consensus_failure_handler::he84202adce92d3e5 (0x5607df54300b)
22: <substrate_client::call_executor::LocalCallExecutor<B, E> as substrate_client::call_executor::CallExecutor<Block, substrate_primitives::hasher::blake2::Blake2Hasher>>::call_at_state::hae616b5e2153243c (0x5607df5c6214)
23: <substrate_client::client::Client<B, E, Block, RA>>::lock_import_and_run::{{closure}}::hfc8892df172ec1b1 (0x5607df8f03e6)
24: <substrate_client::client::Client<B, E, Block, RA> as substrate_consensus_common::block_import::BlockImport>::import_block::h011036f8f4e4937b (0x5607df8aaca6)
25: <substrate_finality_grandpa::import::GrandpaBlockImport<B, E, Block, RA, PRA> as substrate_consensus_common::block_import::BlockImport>::import_block::ha8d64fa10d7ae4be (0x5607df64c87f)
26: <substrate_consensus_common::import_queue::BlockImportWorker<B, V>>::import_a_batch_of_blocks::hd6dd8f4565ba6fb0 (0x5607df44825c)
27: std::sys_common::backtrace::__rust_begin_short_backtrace::h695cdc456337430b (0x5607df65bb8e)
28: std::panicking::try::do_call::h0b6aef095d7c20fa (0x5607df5e006d)
29: __rust_maybe_catch_panic (0x5607e01b80c9)
at src/libpanic_unwind/lib.rs:92
30: <F as alloc::boxed::FnBox>::call_box::h818e31113346bb43 (0x5607df6cbe9e)
31: <alloc::boxed::Box<(dyn alloc::boxed::FnBox<A, Output=R> + 'a)> as core::ops::function::FnOnce>::call_once::h2263113ac6678036 (0x5607e01b743d)
at /rustc/2aa4c46cfdd726e97360c2734835aa3515e8c858/src/liballoc/boxed.rs:744
std::sys_common::thread::start_thread::h7f66efdea8634396
at src/libstd/sys_common/thread.rs:14
std::sys::unix::thread::Thread::new::thread_start::h6fb76bcf544b6181
at src/libstd/sys/unix/thread.rs:81
32: start_thread (0x7feb141cf6da)
33: __clone (0x7feb13ce088e)
34: (0x0)

Thread 'ImportQueueWorker' panicked at 'Externalities not allowed to fail within runtime: "Trie lookup error: Database missing expected key: 0x6a457f7d0db6720a7e06028911d43c9f6a50e81dfa24f28bb9d9e5ea3c1a0c9b"', src/libcore/result.rs:997

This is a bug. Please report it at:

https://github.com/airalab/substrate-node-robonomics/issues

`

Robonomics IO read launch panics when idle

Performing local tests with robonomics --dev network I noticed that robonomics io read launch crashes after some idle time

How to reproduce

One terminal window:

robonomics --dev --rpc-cors all

Another terminal window

robonomics io read launch

Expected result

rio read launch is alive as long as robonomics --dev works

Actual result

After some uncertain time

% ./robonomics io read launch
====================

Version: 0.21.0-31a135b-x86_64-linux-gnu

   0: sp_panic_handler::set::{{closure}}
   1: std::panicking::rust_panic_with_hook
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/panicking.rs:530
   2: rust_begin_unwind
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/panicking.rs:437
   3: core::panicking::panic_fmt
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libcore/panicking.rs:85
   4: core::option::expect_none_failed
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libcore/option.rs:1273
   5: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   6: std::thread::local::LocalKey<T>::with
   7: async_task::raw::RawTask<F,R,S,T>::run
   8: multitask::Ticker::tick
   9: async_executor::Executor::run
  10: core::ops::function::FnOnce::call_once{{vtable.shim}}
  11: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/liballoc/boxed.rs:1081
      <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/liballoc/boxed.rs:1081
      std::sys::unix::thread::Thread::new::thread_start
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/sys/unix/thread.rs:87
  12: start_thread
  13: __clone


Thread 'async-std/runtime' panicked at 'called `Result::unwrap()` on an `Err` value: Codec(Error("No such variant in enum Phase"))', robonomics/io/src/source/virt.rs:94

This is a bug. Please report it at:

        https://github.com/airalab/robonomics/issues/new

IPCI node: leak memory

The used memory of the validator node in the IPCI network is constantly growing, as can be seen in telemetry: https://telemetry.polkadot.io/#list/DAO%20IPCI
My node is on version 0.17.0, and the memory consumed per day grew from 350 MB to 3 GB. Based on telemetry data, nodes on version 0.16.3 have a similar problem too.

Nodes has a memory leak. Kusama nodes had a similar problem on versions 0.7.20, which was fixed in version 0.7.21, so I assume that it is necessary to use a newer version of the substrate framework.

Prometheus metrics for relaychain AND parachain

Сейчас в метриках прометея показывает данные только для parachain, а хотелось бы видеть данные и для relaychain.
Как пример, высота блоков:

...
# HELP substrate_block_height Block height info of the chain
# TYPE substrate_block_height gauge
substrate_block_height{status="best"} 11390
substrate_block_height{status="finalized"} 11390
substrate_block_height{status="sync_target"} 11390
...
...
Jul 21 15:31:24 robonomics-parachain-node01 robonomics[8194]: 2020-07-21 15:31:24 💤 [Parachain] Idle (25 peers), best: #11390 (0xf8cd…fb61), finalized #11390 (0xf8cd…fb61), ⬇ 2.1kiB/s ⬆ 1.8kiB/s
...

the node does not accept new blocks

validator-01
Aug 20 11:29:01 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:01 💤 Idle (854 peers), best: #184489 (0xd39f…11f2), finalized #184486 (0x9504…a98a), ⬇ 126.9kiB/s ⬆ 189.5kiB/s
Aug 20 11:29:04 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:04 Failed to collate candidate: Right(Canceled)
Aug 20 11:29:04 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:04 Failed to collate candidate: Right(Canceled)
Aug 20 11:29:04 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:04 Failed to collate candidate: Right(Canceled)
Aug 20 11:29:04 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:04 Failed to collate candidate: Right(Canceled)
Aug 20 11:29:04 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:04 Failed to collate candidate: Right(Canceled)
Aug 20 11:29:06 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:06 ✨ Imported #184490 (0x8e2f…96b5)
Aug 20 11:29:06 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:06 ✍️ Starting parachain attestation session (parent: 0x8e2f…96b5) with active duty LocalDuty { validation: Parachain(Id(100)), index: 1 }
Aug 20 11:29:07 parachain-validator-01 polkadot[1059]: thread 'main' panicked at 'next_storage_key: unsupported feature for parachain validation', parachain/src/wasm_executor/mod.rs:266:9
Aug 20 11:29:07 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:07 💤 Idle (854 peers), best: #184490 (0x8e2f…96b5), finalized #184487 (0x356c…b51a), ⬇ 66.6kiB/s ⬆ 174.2kiB/s
Aug 20 11:29:12 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:12 💤 Idle (854 peers), best: #184490 (0x8e2f…96b5), finalized #184488 (0x7200…32f3), ⬇ 130.2kiB/s ⬆ 259.9kiB/s
Aug 20 11:29:12 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:12 ✨ Imported #184491 (0x3d5e…9bc9)
Aug 20 11:29:12 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:12 ✍️ Starting parachain attestation session (parent: 0x3d5e…9bc9) with active duty LocalDuty { validation: Relay, index: 1 }
Aug 20 11:29:17 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:17 💤 Idle (854 peers), best: #184491 (0x3d5e…9bc9), finalized #184489 (0xd39f…11f2), ⬇ 225.5kiB/s ⬆ 185.3kiB/s
Aug 20 11:29:18 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:18 ✨ Imported #184492 (0x841e…07cc)
Aug 20 11:29:18 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:18 ✍️ Starting parachain attestation session (parent: 0x841e…07cc) with active duty LocalDuty { validation: Relay, index: 1 }
Aug 20 11:29:22 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:22 💤 Idle (853 peers), best: #184492 (0x841e…07cc), finalized #184489 (0xd39f…11f2), ⬇ 75.1kiB/s ⬆ 181.2kiB/s
Aug 20 11:29:24 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:24 🙌 Starting consensus session on top of parent 0x841e952d3decc9c39419e68e2889ab3cfa3a605efe42d16976ed8a9a446807cc
Aug 20 11:29:24 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:24 🎁 Prepared block for proposing at 184493 [hash: 0x516717c9131da3294335359d84351736ee3d37d4123f620f30d354b1f7fdb255; parent_hash: 0x841e…07cc; extrinsics (3): [0x140a…1410, 0x42ba…7aff, 0xd7e1…aab4]]
Aug 20 11:29:24 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:24 🔖 Pre-sealed block for proposal at 184493. Hash now 0xf5adb36958d843d67a0645c4ebe4e9975efd3dcd854d3441ab7afa823b073605, previously 0x516717c9131da3294335359d84351736ee3d37d4123f620f30d354b1f7fdb255.
Aug 20 11:29:24 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:24 ✨ Imported #184493 (0xf5ad…3605)
Aug 20 11:29:24 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:24 ✍️ Starting parachain attestation session (parent: 0xf5ad…3605) with active duty LocalDuty { validation: Parachain(Id(100)), index: 1 }
Aug 20 11:29:27 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:27 💤 Idle (852 peers), best: #184493 (0xf5ad…3605), finalized #184491 (0x3d5e…9bc9), ⬇ 187.1kiB/s ⬆ 294.5kiB/s
Aug 20 11:29:30 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:30 🙌 Starting consensus session on top of parent 0xf5adb36958d843d67a0645c4ebe4e9975efd3dcd854d3441ab7afa823b073605
Aug 20 11:29:30 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:30 🎁 Prepared block for proposing at 184494 [hash: 0xf1b2cb3c06b9ae03c95da298d3b5d84e044903c2b58e1e0f710de8a257958b99; parent_hash: 0xf5ad…3605; extrinsics (3): [0xf62a…cd44, 0x39bd…67e5, 0xd7e1…aab4]]
Aug 20 11:29:30 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:30 🔖 Pre-sealed block for proposal at 184494. Hash now 0x8196fd92dd696425722f63bc059526c32b155e808d72b3dbcbaee6d0fb056d22, previously 0xf1b2cb3c06b9ae03c95da298d3b5d84e044903c2b58e1e0f710de8a257958b99.
Aug 20 11:29:30 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:30 ✨ Imported #184494 (0x8196…6d22)
Aug 20 11:29:30 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:30 ✍️ Starting parachain attestation session (parent: 0x8196…6d22) with active duty LocalDuty { validation: Relay, index: 1 }
Aug 20 11:29:31 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:31 🔍 Discovered new external address for our node: /ip6/2a03:b0c0:0:1010::93:3001/tcp/30333/p2p/12D3KooWMdn7TpxN7mnk63sg3N8JxNpQiYDhWsjDFqheeJVEo8Do
Aug 20 11:29:31 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:31 ♻️  Reorg on #184494,0x8196…6d22 to #184494,0x5bd2…0e52, common ancestor #184493,0xf5ad…3605
Aug 20 11:29:31 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:31 ✨ Imported #184494 (0x5bd2…0e52)
Aug 20 11:29:31 parachain-validator-01 polkadot[706]: 2020-08-20 11:29:31 ✍️ Starting parachain attestation session (parent: 0x5bd2…0e52) with active duty LocalDuty { validation: Relay, index: 1 }
validator-02
Aug 20 11:33:36 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:36 ✨ Imported #184535 (0x3afa…5f1c)
Aug 20 11:33:36 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:36 ✍️ Starting parachain attestation session (parent: 0x3afa…5f1c) with active duty LocalDuty { validation: Parachain(Id(100)), index: 2 }
Aug 20 11:33:36 parachain-validator-02 polkadot[1188]: thread 'main' panicked at 'next_storage_key: unsupported feature for parachain validation', parachain/src/wasm_executor/mod.rs:266:9
Aug 20 11:33:36 parachain-validator-02 polkadot[1188]: thread 'main' panicked at 'next_storage_key: unsupported feature for parachain validation', parachain/src/wasm_executor/mod.rs:266:9
Aug 20 11:33:38 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:38 💤 Idle (849 peers), best: #184535 (0x3afa…5f1c), finalized #184532 (0x345b…91d2), ⬇ 141.3kiB/s ⬆ 341.0kiB/s
Aug 20 11:33:42 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:42 🙌 Starting consensus session on top of parent 0x3afa572600a1eea66cfc3e1f999a06ff1fca09f162085c63945b2e950abb5f1c
Aug 20 11:33:42 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:42 🎁 Prepared block for proposing at 184536 [hash: 0xc721d2669d1575176aa3d817b1ed0cf5819b12ae41be7108d39e867f898a85a4; parent_hash: 0x3afa…5f1c; extrinsics (3): [0x9231…e63d, 0xedb3…c73e, 0xd7e1…aab4]]
Aug 20 11:33:42 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:42 🔖 Pre-sealed block for proposal at 184536. Hash now 0xb01039afe218d8328266e665dd3938f49fc44844e61b4120938aa4a2cc9f3e8d, previously 0xc721d2669d1575176aa3d817b1ed0cf5819b12ae41be7108d39e867f898a85a4.
Aug 20 11:33:42 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:42 ✨ Imported #184536 (0xb010…3e8d)
Aug 20 11:33:42 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:42 ✍️ Starting parachain attestation session (parent: 0xb010…3e8d) with active duty LocalDuty { validation: Parachain(Id(100)), index: 2 }
Aug 20 11:33:42 parachain-validator-02 polkadot[1188]: thread 'main' panicked at 'next_storage_key: unsupported feature for parachain validation', parachain/src/wasm_executor/mod.rs:266:9
Aug 20 11:33:43 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:43 💤 Idle (849 peers), best: #184536 (0xb010…3e8d), finalized #184533 (0xfc88…652a), ⬇ 180.6kiB/s ⬆ 275.7kiB/s
Aug 20 11:33:44 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:44 🔍 Discovered new external address for our node: /ip6/2a03:b0c0:3:e0::4e4:2001/tcp/30333/p2p/12D3KooWA6bnssbSr8uabFyyuF2z2UFtFLp2Qwa6HWe7ohxFCBHx
Aug 20 11:33:48 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:48 ✨ Imported #184537 (0xfbdc…a819)
Aug 20 11:33:48 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:48 ✍️ Starting parachain attestation session (parent: 0xfbdc…a819) with active duty LocalDuty { validation: Parachain(Id(100)), index: 2 }
Aug 20 11:33:48 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:48 💤 Idle (849 peers), best: #184537 (0xfbdc…a819), finalized #184533 (0xfc88…652a), ⬇ 57.6kiB/s ⬆ 183.0kiB/s
Aug 20 11:33:53 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:53 💤 Idle (849 peers), best: #184537 (0xfbdc…a819), finalized #184535 (0x3afa…5f1c), ⬇ 149.0kiB/s ⬆ 284.3kiB/s
Aug 20 11:33:53 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:53 Failed to collate candidate: Right(Canceled)
Aug 20 11:33:53 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:53 Failed to collate candidate: Right(Canceled)
Aug 20 11:33:53 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:53 Failed to collate candidate: Right(Canceled)
Aug 20 11:33:53 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:53 Failed to collate candidate: Right(Canceled)
Aug 20 11:33:54 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:54 🙌 Starting consensus session on top of parent 0xfbdcbfa0c2bf87d07ae5da6f5037bbe9b94bbfa0ce7854633f9af0577044a819
Aug 20 11:33:54 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:54 🎁 Prepared block for proposing at 184538 [hash: 0x18c05a90acd28ad67c207d817ac9955e86ed4a0cf6343b18dda3f29af6fd5b3e; parent_hash: 0xfbdc…a819; extrinsics (3): [0xae22…f2d0, 0x1d32…17cf, 0xd7e1…aab4]]
Aug 20 11:33:54 parachain-validator-02 polkadot[707]: 2020-08-20 11:33:54 🔖 Pre-sealed block for proposal at 184538. Hash now 0x86e12c1bae8e297ec9483c9040d8af309bccffa6e424f0ebded33910cdbd53c3, previously 0x18c05a90acd28ad67c207d817ac9955e86ed4a0cf6343b18dda3f29af6fd5b3e.
collator-01
Aug 20 11:36:25 rpc robonomics_run[24443]: 2020-08-20 11:36:25 ♻️  [Relaychain] Reorg on #184563,0x9f15…8152 to #184563,0xd4ee…74bb, common ancestor #184562,0x4ae5…6967
Aug 20 11:36:25 rpc robonomics_run[24443]: 2020-08-20 11:36:25 ✨ [Relaychain] Imported #184563 (0xd4ee…74bb)
Aug 20 11:36:25 rpc robonomics_run[24443]: 2020-08-20 11:36:25 🙌 Starting consensus session on top of parent 0x8cbbcfbff396dfcec5b84ae4ac4188d1de7ef44558c2da71e14c1e39c814ebd1
Aug 20 11:36:25 rpc robonomics_run[24443]: 2020-08-20 11:36:25 Timeout fired waiting for transaction pool at block #100799. Proceeding with production.
Aug 20 11:36:25 rpc robonomics_run[24443]: 2020-08-20 11:36:25 🎁 Prepared block for proposing at 100800 [hash: 0x63fba635d34d2530a9589b67585e58ba5cc4cbfc3f8f41928cd8ae30135f7e40; parent_hash: 0x8cbb…ebd1; extrinsics (3): [0xea5a…4543, 0x7e18…6c41, 0x84fb…b4ca]]
Aug 20 11:36:25 rpc robonomics_run[24443]: 2020-08-20 11:36:25 ✨ [Parachain] Imported #100800 (0x63fb…7e40)
Aug 20 11:36:27 rpc robonomics_run[24443]: 2020-08-20 11:36:27 💤 [Parachain] Idle (225 peers), best: #100799 (0x8cbb…ebd1), finalized #100799 (0x8cbb…ebd1), ⬇ 77.1kiB/s ⬆ 3.2MiB/s
Aug 20 11:36:28 rpc robonomics_run[24443]: 2020-08-20 11:36:28 💤 [Relaychain] Idle (46 peers), best: #184563 (0xd4ee…74bb), finalized #184560 (0xd1ac…8079), ⬇ 13.4kiB/s ⬆ 15.9kiB/s
Aug 20 11:36:30 rpc robonomics_run[24443]: 2020-08-20 11:36:30 ✨ [Relaychain] Imported #184564 (0x9305…7056)
Aug 20 11:36:30 rpc robonomics_run[24443]: 2020-08-20 11:36:30 🙌 Starting consensus session on top of parent 0x8cbbcfbff396dfcec5b84ae4ac4188d1de7ef44558c2da71e14c1e39c814ebd1
Aug 20 11:36:30 rpc robonomics_run[24443]: 2020-08-20 11:36:30 Timeout fired waiting for transaction pool at block #100799. Proceeding with production.
Aug 20 11:36:30 rpc robonomics_run[24443]: 2020-08-20 11:36:30 🎁 Prepared block for proposing at 100800 [hash: 0x3f18c027a064f0d4a331ec1d3507bd2da81634a7a7f5901698570336e54b4ed0; parent_hash: 0x8cbb…ebd1; extrinsics (3): [0xa093…5276, 0xc36f…8f53, 0x84fb…b4ca]]
Aug 20 11:36:30 rpc robonomics_run[24443]: 2020-08-20 11:36:30 ✨ [Parachain] Imported #100800 (0x3f18…4ed0)
Aug 20 11:36:31 rpc robonomics_run[24443]: 2020-08-20 11:36:31 ♻️  [Relaychain] Reorg on #184564,0x9305…7056 to #184564,0x0547…48f0, common ancestor #184563,0xd4ee…74bb

RIO read ros doesn't work

Robonomics IO read ros doesn't receive ROS messages

How to reproduce

roscore is launched. In one terminal run:

./robonomics io read ros /test_ros

In another one:

rostopic pub /test_ros std_msgs/String "data: 'Hi'"

Expected result

I expected to see Hi in the first window, but got nothing

rqt

Launch rqt, choose topic monitor and check /test_ros

 rqt
[ERROR] [1597994826.907225]: bad callback: <bound method TopicInfo.message_callback of <rqt_topic.topic_info.TopicInfo object at 0x7fcb94111220>>
Traceback (most recent call last):
  File "/opt/ros/noetic/lib/python3.8/site-packages/std_msgs/msg/_String.py", line 57, in serialize
    buff.write(struct.pack('<I%ss'%length, length, _x))
TypeError: string argument expected, got 'bytes'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/ros/noetic/lib/python3.8/site-packages/rospy/topics.py", line 750, in _invoke_callback
    cb(msg)
  File "/opt/ros/noetic/lib/python3.8/site-packages/rqt_topic/topic_info.py", line 99, in message_callback
    message.serialize(buff)
  File "/opt/ros/noetic/lib/python3.8/site-packages/std_msgs/msg/_String.py", line 59, in serialize
    except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
  File "/opt/ros/noetic/lib/python3.8/site-packages/genpy/message.py", line 364, in _check_types
    raise SerializationError(str(exc))
genpy.message.SerializationError: <class 'TypeError'>: 'string argument expected, got 'bytes'' when writing 'b'Hi''

Syncing error

Unable to complete synchronization. There is always an error on the unit concrete 76500. H
ash that was given is different from what was expected. In the logs "Storage root must match that calculated."but I don't see the tools for that.

Version 0.2.1

robonomic

error: build of substrate_ros_msgs-master.drv, robonomics_msgs-master.drv failed

Summary

An attempt to launch a node by 3.2. Building with Nix guide failed on catkin_make stage. Please find logs below.

System

$ uname -a
Linux myhostname 4.19.101 #1-NixOS SMP Sat Feb 1 09:37:12 UTC 2020 x86_64 GNU/Linux

Logs

$ nix-shell --run "cargo run --release"
$ nix-shell --run "cargo run --release"
these derivations will be built:
  /nix/store/cfr1hj8krq5fmg0hhsbgahrg38zp2pi4-catkin-0.7.15.drv
  /nix/store/fq1f6xlw6mjlpi4s9z8nwzmlsfdsnfdp-source.drv
  /nix/store/db6y4sdr23ynfzq243sk1xhzmk639ch4-source.drv
  /nix/store/jbsvs7d5ypi17kid8rp7v149lryrwwjx-cmake_modules-0.4.2.drv
  /nix/store/rcmkwpml5f92irabiqiibqx85f3c075j-rospack-2.5.3.drv
  /nix/store/sq48q2agjnzcbmdpg8r1a2q07rs9xjk5-source.drv
  /nix/store/w5i96lcia6j79vrwsi7dmh7xbas8yy14-ros_environment-1.2.1.drv
  /nix/store/0fwzsin6wiy53kqp595fr07hp0r9mmcp-roslib-1.14.6.drv
  /nix/store/r08wc6drwhsg8bx4c9l9050pyv7cfkj1-source.drv
  /nix/store/15r7kim1sjv9a4h1d7jmgdi1ygpbbqzw-rosunit-1.14.6.drv
  /nix/store/rglwhrnfnf5dvx2lbxziff25b8s48pxr-source.drv
  /nix/store/fggl1xn5v45g6p0xm3h2m7y98h9pxiyi-console_bridge-0.3.2.drv
  /nix/store/qbh7irrdvpz0cx87g7vgkrb6s1lhrmfl-source.drv
  /nix/store/n15vc5j7hr03kgbgrsxf74kg7qj06f4g-cpp_common-0.6.11.drv
  /nix/store/s2xqsdsc1z16d9rnfg6f93jjr9hg2lss-source.drv
  /nix/store/fzy7yjjw7wbpdi6966vcasxyn7qirxlm-rostime-0.6.7.drv
  /nix/store/a3p6ykhjdmgap3k2797iwz5vs2zhgzhy-source.drv
  /nix/store/3qrvhg5yz1lwa7k5cpdg10zi53d6x4z7-genmsg-0.5.12.drv
  /nix/store/gcs9j9d25wll71jjghzy7k50591irxpj-source.drv
  /nix/store/6bdd76nqckwj2r1sxr6b5arkl3n4sb3z-genpy-0.6.8.drv
  /nix/store/bq58pizj6cg3civpcvrlmbjfl2n3smpq-source.drv
  /nix/store/86d5dfz41fjvygn9ccfpqmxssq2sv4qb-roscpp_traits-0.6.12.drv
  /nix/store/xvagszvx9pfipxc8yd8dpp9k6nw7c552-source.drv
  /nix/store/v0ysl67ipang3sf31yxpxgm3jzfcbvzs-roscpp_serialization-0.6.12.drv
  /nix/store/5wjmdbndz7sr7qnfz0r0nswc5rz3asz1-source.drv
  /nix/store/y4d7vm27wx26bzjbs4ng27kd9fvgky2k-gencpp-0.6.2.drv
  /nix/store/h10k269c8acch9la6c0j88rv1y3fczg6-message_runtime-0.4.12.drv
  /nix/store/j5kzh9wilkn0bwrfl89lq6n2wy2w0i7x-source.drv
  /nix/store/q0w3jwv1sqywajjf6mscy84bs0yv2kv9-message_generation-0.4.0.drv
  /nix/store/pc9brxr965wvq8c1mzsnr2w3y3d8gpsd-rosbuild-1.14.6.drv
  /nix/store/qsasm6pxrnyh751z35aww9nk9kfghsdr-source.drv
  /nix/store/3s266sy7bxpmlasqhljxdkhgk3v8bn53-rosconsole-1.13.10.drv
  /nix/store/b7j5wh543pbd313glwx62xf53pjx32di-xmlrpcpp-1.14.4.drv
  /nix/store/cyl1c4c5v7150a52bc2si4cdx2i1v57b-source.drv
  /nix/store/dc477wsnv8z2brjh7nd28xsflrm60snn-roslang-1.14.6.drv
  /nix/store/ivx4i6pzjb3492w0921qmplxgqikhbfn-source.drv
  /nix/store/pmcb8j72gicyyfc9iig74bv56v739ix7-std_msgs-0.5.12.drv
  /nix/store/qcs1syl44gjnipzz48sl0q1j792rvlgq-source.drv
  /nix/store/cnpr93wjbgj8rmdrzyclf0hmvaq634di-source.drv
  /nix/store/qmzddbvacw0vzfp5d883q1lg8q81wagm-rosgraph_msgs-1.11.2.drv
  /nix/store/90m6vnxfs756ky7ij394lk9slnyapdb7-roscpp-1.14.4.drv
  /nix/store/gkqpj25mjlyzvb4ad5f92qd11dh2knr8-source.drv
  /nix/store/g9091qiwyrscmbjnqh1hr5n5fb3fvljb-source.drv
  /nix/store/700c1yn5grxxjzlhqnzwyfgw5a2dqz25-source.drv
  /nix/store/k97c8bqwxs0119f2fdskabckl5v8bwjl-rosgraph-1.14.4.drv
  /nix/store/43ssa65g8kknffslwghrbrmyh7hfcyj6-rosmaster-1.14.4.drv
  /nix/store/b4lnai8xs38a4kmnn3ppz5s2x5ch7j7c-source.drv
  /nix/store/nbmjgl24q17sizmlcca4pnghprv5dhgg-source.drv
  /nix/store/c73k9bzxw3p6n5715gvzdkci7d5p61ay-rosclean-1.14.6.drv
  /nix/store/6acglv8jdf71h8rwn1bhz84kclyyplw6-source.drv
  /nix/store/dj9n4fin63cq8ykicclw6xiyfm630yzc-rosout-1.14.4.drv
  /nix/store/vms47dhirrlc5xrbqi402b573ysr7b1q-source.drv
  /nix/store/z7vzsbxkan4mshnad3xzrpn60iw6afwi-rosparam-1.14.4.drv
  /nix/store/6ack0f8fcg4dm6aymxab6y4q551pyaw4-roslaunch-1.14.4.drv
  /nix/store/w3jhrmas29wnfjlj8n0n4v88wzkjs3aw-source.drv
  /nix/store/h3lbl48bscnpckcz34i0w77gh052vrj3-rospy-1.14.4.drv
  /nix/store/ii80kv3jw5hx5bi6h3a4375rzr1a0ldm-rostest-1.14.4.drv
  /nix/store/12zdw7lkyxb0736cfxrxmxm1s59pbqyd-topic_tools-1.14.4.drv
  /nix/store/d0zv8664jyzn0ng0sa5r578w86rnw8ll-roslz4-1.14.4.drv
  /nix/store/lw13axfl7dbgf9b6bdck743pbbxn6568-source.drv
  /nix/store/y8cnajwjag2iv8br3rl4wx4i8pb0ys9p-source.drv
  /nix/store/8v77f11cr0p5jibzdzyliwmpp3h3xjjy-class_loader-0.4.1.drv
  /nix/store/94q8h1n5gln52kscnm282zwc9wxlgpgi-source.drv
  /nix/store/x4iwr1yn4n5pg2jd1ndiky4kn4nn31l5-pluginlib-2.1.1.drv
  /nix/store/4zw8l4rd02zk5cpidh4mnvjmk9vic2x4-rosbag_storage-1.14.4.drv
  /nix/store/7sgxzfqy4fvd6h3mx6iq6065p4bh45sn-source.drv
  /nix/store/d0vpqbx75d6rs359lwrcr4x0jhwfw8wi-std_srvs-1.11.2.drv
  /nix/store/1lk45j5rybv5jq63p1sjz72mycxm520l-rosbag-1.14.4.drv
  /nix/store/iai28ymm691vp13pbwl5ysrx6ap92y7r-source.drv
  /nix/store/13w066spac6rz7nk4i6a0zhjzcnpnjwc-rosmsg-1.14.4.drv
  /nix/store/7jc1pjk8x32bxf34akj2abj3n0acdzj9-source.drv
  /nix/store/8axfcvw061i9ij7m00afv7fy09axghl5-source.drv
  /nix/store/8lzcrkrglyyd2w5q0vwjafcs55zbapjl-source.drv
  /nix/store/jgc10hnc4nn08lb3vvif3yg1m2n0yxzi-source.drv
  /nix/store/p6kkwr0wiv577yfxzhwi2i7ilb9di4l6-rostopic-1.14.4.drv
  /nix/store/8yh5nxgvghl3q1dbvvyvdjgqvdm0m6hs-rosnode-1.14.4.drv
  /nix/store/af0l9hg25c9qy9fzv4y9irb7dnryxs2d-rosboost_cfg-1.14.6.drv
  /nix/store/amp24j2yn7134bh27mcnf3l8rswxxn7z-source.drv
  /nix/store/crqrg1b8wv5a0pg955w9avvfs8gq2a4w-source.drv
  /nix/store/f2hi22pgxa18r9iv478qfxvxzz3pyjdi-source.drv
  /nix/store/h5jpg30q8080lxq9wyqs2wgd5mj5j2wl-rosservice-1.14.4.drv
  /nix/store/ca0niixk8izgxhvx7ai7c1lp3pcwqhpc-roswtf-1.14.4.drv
  /nix/store/hipz94a7vv82w2i06k6ln62ihgcmbvrp-source.drv
  /nix/store/rqb6d9xfdshg8vgm106jybkajrclk6mf-message_filters-1.14.4.drv
  /nix/store/ybjp28dg5rgvhi9xh5v0ds4cffj02s19-source.drv
  /nix/store/hc2ymf6vg4r18v28pq2cmb13v12b0qcx-rosbash-1.14.6.drv
  /nix/store/jvzpclld7mvac59v5lw2x9ljwf5rbkjw-rosmake-1.14.6.drv
  /nix/store/xpwly7q39i7xbnxcdczddvq7sdi9yp81-roscreate-1.14.6.drv
  /nix/store/vwjkp57pxx5pxm27hz9m59kh3i19hw8h-ros-1.14.6.drv
  /nix/store/zp18dbfjcwqrhmc737wfvaydgy4ggynh-ros_comm-1.14.4.drv
  /nix/store/azz2i87rrcshmwilyy14nazjf0skyy1a-substrate_ros_msgs-master.drv
  /nix/store/sq3kkawiqvpbirhh6iijlqi4rrgr2irl-robonomics_msgs-master.drv
building '/nix/store/cfr1hj8krq5fmg0hhsbgahrg38zp2pi4-catkin-0.7.15.drv'...
unpacking sources
unpacking source archive /nix/store/p0s8hkndan2w0p9as70i3hqfr57bs3ab-source
source root is source
patching sources
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/j5j8sf9mvffpnlhnzpv05h7i4c4fsb4z-catkin-0.7.15/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/j5j8sf9mvffpnlhnzpv05h7i4c4fsb4z-catkin-0.7.15/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/j5j8sf9mvffpnlhnzpv05h7i4c4fsb4z-catkin-0.7.15/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/j5j8sf9mvffpnlhnzpv05h7i4c4fsb4z-catkin-0.7.15/share/doc/ -DCMAKE_INSTALL_INFODIR=/nix/store/j5j8sf9mvffpnlhnzpv05h7i4c4fsb4z-catkin-0.7.15/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/j5j8sf9mvffpnlhnzpv05h7i4c4fsb4z-catkin-0.7.15/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/j5j8sf9mvffpnlhnzpv05h7i4c4fsb4z-catkin-0.7.15/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/j5j8sf9mvffpnlhnzpv05h7i4c4fsb4z-catkin-0.7.15/include -DCMAKE_INSTALL_SBINDIR=/nix/store/j5j8sf9mvffpnlhnzpv05h7i4c4fsb4z-catkin-0.7.15/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/j5j8sf9mvffpnlhnzpv05h7i4c4fsb4z-catkin-0.7.15/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/j5j8sf9mvffpnlhnzpv05h7i4c4fsb4z-catkin-0.7.15/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_FIND_FRAMEWORK=last -DCMAKE_STRIP=/nix/store/ffi3j388c39qbbskfqg1zw0x2lmbzhnk-binutils-2.31.1/bin/strip -DCMAKE_RANLIB=/nix/store/ffi3j388c39qbbskfqg1zw0x2lmbzhnk-binutils-2.31.1/bin/ranlib -DCMAKE_AR=/nix/store/ffi3j388c39qbbskfqg1zw0x2lmbzhnk-binutils-2.31.1/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/j5j8sf9mvffpnlhnzpv05h7i4c4fsb4z-catkin-0.7.15 -DCATKIN_ENABLE_TESTING=OFF -DSETUPTOOLS_DEB_LAYOUT=OFF
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /nix/store/1kn7fi3hhi33jms3113riyzwyn2yqpqd-gcc-wrapper-9.2.0/bin/gcc
-- Check for working C compiler: /nix/store/1kn7fi3hhi33jms3113riyzwyn2yqpqd-gcc-wrapper-9.2.0/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /nix/store/1kn7fi3hhi33jms3113riyzwyn2yqpqd-gcc-wrapper-9.2.0/bin/g++
-- Check for working CXX compiler: /nix/store/1kn7fi3hhi33jms3113riyzwyn2yqpqd-gcc-wrapper-9.2.0/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /build/source/build/devel
-- Using CMAKE_PREFIX_PATH: /nix/store/9l2zg4lazdld9v3mhcmcmdh0cx0qf753-patchelf-0.9;/nix/store/1kn7fi3hhi33jms3113riyzwyn2yqpqd-gcc-wrapper-9.2.0;/nix/store/662pxfcxbldq4k00ck53bn33g04ysywk-binutils-wrapper-2.31.1;/nix/store/kzrvnyppsbb86vga4ww832fdck7yfk8n-python3.7-catkin_pkg-0.4.9;/nix/store/zbjznzbm1ldmhdnzxws1cm97pdcvqina-python3.7-pyparsing-2.4.6;/nix/store/ja04f3cmapzb3f2mvjrb883bfqclsirq-python3-3.7.6;/nix/store/jsx5s3fdd2zxs357sgbwsx932f1kwi4g-python3.7-docutils-0.16;/nix/store/ddivg8kiahl1kllshyz4shhyky8ppz2v-python3.7-python-dateutil-2.8.1;/nix/store/l9yvb1hg4prpzv91bkfw1mdpqax3l5m9-python3.7-six-1.14.0;/nix/store/16irg1bsnkyzp4rbmfa5df1b3kw55v4s-python3.7-setuptools_scm-3.4.3;/nix/store/8ydppw7ymyh32iqdjagcpzi9hh7vyd9w-python3.7-rospkg-1.1.7;/nix/store/fnyf2aki0gbf0zqk98b6nks89awcd5j5-python3.7-PyYAML-5.2;/nix/store/hh5z7zyfgsv38azgk43ync9yc6z4cv1r-empy-3.3.2;/nix/store/41irrnq4ki4yijrh1z2by148xhhws0cq-cmake-3.16.4
-- Found PythonInterp: /nix/store/ja04f3cmapzb3f2mvjrb883bfqclsirq-python3-3.7.6/bin/python (found version "3.7.6")
-- Using PYTHON_EXECUTABLE: /nix/store/ja04f3cmapzb3f2mvjrb883bfqclsirq-python3-3.7.6/bin/python
-- Using default Python package layout
-- Found PY_em: /nix/store/hh5z7zyfgsv38azgk43ync9yc6z4cv1r-empy-3.3.2/lib/python3.7/site-packages/em.py
-- Using empy: /nix/store/hh5z7zyfgsv38azgk43ync9yc6z4cv1r-empy-3.3.2/lib/python3.7/site-packages/em.py
-- Using CATKIN_ENABLE_TESTING: OFF
-- catkin 0.7.15
-- BUILD_SHARED_LIBS is on
Traceback (most recent call last):
  File "/build/source/build/catkin_generated/generate_cached_setup.py", line 22, in <module>
    code = generate_environment_script('/build/source/build/devel/env.sh')
  File "/build/source/cmake/../python/catkin/environment_cache.py", line 61, in generate_environment_script
    output = subprocess.check_output([env_script, sys.executable, '-c', python_code])
  File "/nix/store/ja04f3cmapzb3f2mvjrb883bfqclsirq-python3-3.7.6/lib/python3.7/subprocess.py", line 411, in check_output
    **kwargs).stdout
  File "/nix/store/ja04f3cmapzb3f2mvjrb883bfqclsirq-python3-3.7.6/lib/python3.7/subprocess.py", line 488, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/nix/store/ja04f3cmapzb3f2mvjrb883bfqclsirq-python3-3.7.6/lib/python3.7/subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "/nix/store/ja04f3cmapzb3f2mvjrb883bfqclsirq-python3-3.7.6/lib/python3.7/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/build/source/build/devel/env.sh': '/build/source/build/devel/env.sh'
CMake Error at cmake/safe_execute_process.cmake:11 (message):

  execute_process(/nix/store/ja04f3cmapzb3f2mvjrb883bfqclsirq-python3-3.7.6/bin/python
  "/build/source/build/catkin_generated/generate_cached_setup.py") returned
  error code 1
Call Stack (most recent call first):
  cmake/all.cmake:207 (safe_execute_process)
  CMakeLists.txt:8 (include)


-- Configuring incomplete, errors occurred!
See also "/build/source/build/CMakeFiles/CMakeOutput.log".
builder for '/nix/store/cfr1hj8krq5fmg0hhsbgahrg38zp2pi4-catkin-0.7.15.drv' failed with exit code 1
cannot build derivation '/nix/store/sq3kkawiqvpbirhh6iijlqi4rrgr2irl-robonomics_msgs-master.drv': 1 dependencies couldn't be built
error: build of '/nix/store/azz2i87rrcshmwilyy14nazjf0skyy1a-substrate_ros_msgs-master.drv', '/nix/store/sq3kkawiqvpbirhh6iijlqi4rrgr2irl-robonomics_msgs-master.drv' failed

v.0.8.0 Build failed on compiling stage substrate-trie v0.4.0

 Compiling substrate-trie v0.4.0 (https://github.com/paritytech/substrate#4cbd│·······························································································
a5d3)                                                                           │·······························································································
error[E0004]: non-exhaustive patterns: `_` not covered                          │·······························································································
  --> /home/ens/.cargo/git/checkouts/substrate-7e08433d4c370a21/4cbda5d/core/tri│·······························································································
e/src/node_header.rs:60:14                                                      │·······························································································
   |                                                                            │·······························································································
60 |         Some(match input.read_byte()? {                                    │·······························································································
   |                    ^^^^^^^^^^^^^^^^^^ pattern `_` not covered              │·······························································································
                                                                                │·······························································································
error: aborting due to previous error                                           │·······························································································
                                                                                │·······························································································
For more information about this error, try `rustc --explain E0004`.             │·······························································································
error: Could not compile `substrate-trie`.                                      │·······························································································
warning: build failed, waiting for other jobs to finish...                      │·······························································································
error: failed to compile `robonomics-node v0.8.0 (https://github.com/airalab/sub│·······························································································
strate-node-robonomics#1ac312fe)`, intermediate artifacts can be found at `/tmp/│·······························································································
cargo-install9Wzm7Q`                                                            │·······························································································
                                                                                │·······························································································
Caused by:                                                                      │·······························································································
  build failed        

Err(Other(ClientImport("Execution: Trap: Trap { kind: Unreachable }")))

when the node of the parachain crashes ( commit de37f9f5514827556d05a308300d8e1cba250fde ), the following errors periodically appear:

Click to expand Jul 05 12:31:40 node-02 robonomics[122525]: 2020-07-05 12:31:40 panicked at 'Storage root must match that calculated.', /rustc/16957bd4d3a5377263f76ed74c572aad8e4b7e59/src/libcore/macros/mod.rs:10:9 Jul 05 12:31:40 node-02 robonomics[122525]: 2020-07-05 12:31:40 Block prepare storage changes error: Jul 05 12:31:40 node-02 robonomics[122525]: Execution(Wasmi(Trap(Trap { kind: Unreachable }))) Jul 05 12:31:40 node-02 robonomics[122525]: 2020-07-05 12:31:40 💔 Error importing block 0x280bd22487c08eb9a02802f993d18f1fbace6b963d2a428c1ef283b75ee7b518: Err(Other(ClientImport("Execution: Trap: Trap { kind: Unreachable }"))) Jul 05 12:31:42 node-02 robonomics[122525]: 2020-07-05 12:31:42 ✨ [Relaychain] Imported #887 (0xe55c…50ff) Jul 05 12:31:42 node-02 robonomics[122525]: 2020-07-05 12:31:42 Starting parachain attestation session on top of parent 0xe55cd3a2966bb1e138b482681ef410d43a00d4eeadfdc3b91f03c2d0ff8550ff. Local parachain duty is None Jul 05 12:31:43 node-02 robonomics[122525]: 2020-07-05 12:31:43 ⚙️ [Parachain] Syncing 0.0 bps, target=#593 (27 peers), best: #541 (0x6072…7e8d), finalized #541 (0x6072…7e8d), ⬇ 5.5kiB/s ⬆ 3.7kiB/s Jul 05 12:31:43 node-02 robonomics[122525]: Hash: given=9d9fb6e86f04c3e39f42e28b6e5cd29ec63256e9e942d8b6ce779d8675ed12bb, expected=147a18ca49aa976c9fe4597fde215fd5a4c1f3a2329c700adbade6da8366de67 Jul 05 12:31:43 node-02 robonomics[122525]: ==================== Jul 05 12:31:43 node-02 robonomics[122525]: Version: 0.18.3-de37f9f-x86_64-linux-gnu Jul 05 12:31:43 node-02 robonomics[122525]: 0: sp_panic_handler::set::{{closure}} Jul 05 12:31:43 node-02 robonomics[122525]: 1: std::panicking::rust_panic_with_hook Jul 05 12:31:43 node-02 robonomics[122525]: at /rustc/9912925c254589f58338cb2993163e618475ff75/src/libstd/panicking.rs:481 Jul 05 12:31:43 node-02 robonomics[122525]: 2: std::panicking::begin_panic Jul 05 12:31:43 node-02 robonomics[122525]: 3: frame_executive::Executive::execute_block Jul 05 12:31:43 node-02 robonomics[122525]: 4: ,sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic< as sp_runtime::traits::StaticLookup>::Source,robonomics_parachain_runtime::Call,sp_runtime::MultiSignature,(frame_system::extensions::check_spec_version::CheckSpecVersion,frame_system::extensions::check_tx_version::CheckTxVersion,frame_system::extensions::check_genesis::CheckGenesis,frame_system::extensions::check_mortality::CheckMortality,frame_system::extensions::check_nonce::CheckNonce,frame_system::extensions::check_weight::CheckWeight,pallet_transaction_payment::ChargeTransactionPayment)>>>>::execute_block Jul 05 12:31:43 node-02 robonomics[122525]: 5: sp_api::runtime_decl_for_Core::execute_block_native_call_generator::{{closure}} Jul 05 12:31:43 node-02 robonomics[122525]: 6: std::thread::local::LocalKey::with Jul 05 12:31:43 node-02 robonomics[122525]: 7: sc_executor::native_executor::WasmExecutor::with_instance::{{closure}} Jul 05 12:31:43 node-02 robonomics[122525]: 8: sc_executor::wasm_runtime::RuntimeCache::with_instance Jul 05 12:31:43 node-02 robonomics[122525]: 9: as sp_core::traits::CodeExecutor>::call Jul 05 12:31:43 node-02 robonomics[122525]: 10: sp_state_machine::StateMachine::execute_aux Jul 05 12:31:43 node-02 robonomics[122525]: 11: sp_state_machine::StateMachine::execute_using_consensus_failure_handler Jul 05 12:31:43 node-02 robonomics[122525]: 12: as sc_client_api::call_executor::CallExecutor>::contextual_call Jul 05 12:31:43 node-02 robonomics[122525]: 13: as sp_api::CallApiAt>::call_api_at Jul 05 12:31:43 node-02 robonomics[122525]: 14: sp_api::runtime_decl_for_Core::execute_block_call_api_at Jul 05 12:31:43 node-02 robonomics[122525]: 15: sp_api::Core::execute_block_with_context Jul 05 12:31:43 node-02 robonomics[122525]: 16: <&sc_service::client::client::Client as sp_consensus::block_import::BlockImport>::import_block Jul 05 12:31:43 node-02 robonomics[122525]: 17: as sp_consensus::block_import::BlockImport>::import_block Jul 05 12:31:43 node-02 robonomics[122525]: 18: sp_consensus::import_queue::import_single_block_metered Jul 05 12:31:43 node-02 robonomics[122525]: 19: as core::future::future::Future>::poll Jul 05 12:31:43 node-02 robonomics[122525]: 20: as core::future::future::Future>::poll Jul 05 12:31:43 node-02 robonomics[122525]: 21: ::Output> as core::future::future::Future>::poll Jul 05 12:31:43 node-02 robonomics[122525]: 22: as core::future::future::Future>::poll Jul 05 12:31:43 node-02 robonomics[122525]: 23: as core::future::future::Future>::poll Jul 05 12:31:43 node-02 robonomics[122525]: 24: as core::future::future::Future>::poll Jul 05 12:31:43 node-02 robonomics[122525]: 25: as core::future::future::Future>::poll Jul 05 12:31:43 node-02 robonomics[122525]: 26: std::thread::local::LocalKey::with Jul 05 12:31:43 node-02 robonomics[122525]: 27: futures_executor::local_pool::block_on Jul 05 12:31:43 node-02 robonomics[122525]: 28: tokio::runtime::task::core::Core::poll Jul 05 12:31:43 node-02 robonomics[122525]: 29: tokio::runtime::task::raw::poll Jul 05 12:31:43 node-02 robonomics[122525]: 30: tokio::runtime::blocking::pool::Inner::run Jul 05 12:31:43 node-02 robonomics[122525]: 31: tokio::runtime::context::enter Jul 05 12:31:43 node-02 robonomics[122525]: 32: std::sys_common::backtrace::__rust_begin_short_backtrace Jul 05 12:31:43 node-02 robonomics[122525]: 33: core::ops::function::FnOnce::call_once{{vtable.shim}} Jul 05 12:31:43 node-02 robonomics[122525]: 34: as core::ops::function::FnOnce>::call_once Jul 05 12:31:43 node-02 robonomics[122525]: at /rustc/9912925c254589f58338cb2993163e618475ff75/src/liballoc/boxed.rs:1034 Jul 05 12:31:43 node-02 robonomics[122525]: as core::ops::function::FnOnce>::call_once Jul 05 12:31:43 node-02 robonomics[122525]: at /rustc/9912925c254589f58338cb2993163e618475ff75/src/liballoc/boxed.rs:1034 Jul 05 12:31:43 node-02 robonomics[122525]: std::sys::unix::thread::Thread::new::thread_start Jul 05 12:31:43 node-02 robonomics[122525]: at /rustc/9912925c254589f58338cb2993163e618475ff75/src/libstd/sys/unix/thread.rs:87 Jul 05 12:31:43 node-02 robonomics[122525]: 35: start_thread Jul 05 12:31:43 node-02 robonomics[122525]: 36: clone Jul 05 12:31:43 node-02 robonomics[122525]: Thread 'tokio-runtime-worker' panicked at 'Storage root must match that calculated.', /root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/macros.rs:13 Jul 05 12:31:43 node-02 robonomics[122525]: This is a bug. Please report it at: Jul 05 12:31:43 node-02 robonomics[122525]: https://github.com/airalab/robonomics/issues/new

Signature verification has not been called before `SignatureBatching::drop`

I'm running network node on VPS and recently it crashed after a day of operations. Please find failure log below.

My setup

-> % uname -a
Linux hetzner 5.4.56 #1-NixOS SMP Wed Aug 5 07:59:52 UTC 2020 x86_64 GNU/Linux
-> % sudo nix-channel --list
home-manager https://github.com/rycee/home-manager/archive/master.tar.gz
nixos https://nixos.org/channels/nixos-unstable
-> % free -h
              total        used        free      shared  buff/cache   available
Mem:          3.8Gi       484Mi       1.3Gi       3.0Mi       1.9Gi       3.1Gi
Swap:         2.9Gi       4.0Mi       2.9Gi
-> % df -h --type btrfs --type ext4 --type ext3 --type ext2 --type vfat --type iso9660
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        38G   21G   15G  59% /

Failure log

[nix-shell:~/Workspace]$ ~/Workspace/robonomics_v0.20.0 --chain parachain --port 30363 --name "Khassanov-H1 🤖"
[nix-shell:~/Workspace]$ ~/Workspace/robonomics_v0.20.0 --chain parachain --port 30363 --name "Khassanov-H1 🤖"                                                                        
yyyy-mm-dd hh:mm:ss airalab-robonomics                                                                                                                                                 
yyyy-mm-dd hh:mm:ss ✌️  version 0.20.0-5997540-x86_64-linux-gnu                                                                                                                         
yyyy-mm-dd hh:mm:ss ❤️  by Airalab <[email protected]>, 2018-2020                                                                                                                      
yyyy-mm-dd hh:mm:ss 📋 Chain specification: Robonomics                                     
yyyy-mm-dd hh:mm:ss 🏷  Node name: Khassanov-H1 🤖                                                                                                                                      
yyyy-mm-dd hh:mm:ss 👤 Role: FULL                                                          
yyyy-mm-dd hh:mm:ss 💾 Database: RocksDb at /home/khassanov/.local/share/robonomics/chains/robonomics/db                                                                               
yyyy-mm-dd hh:mm:ss ⛓  Native runtime: robonomics-1 (robonomics-airalab-1.tx1.au1)
...
2020-08-11 14:40:07 ✨ [Parachain] Imported #44071 (0x4539…2706)                                                                                                                       
2020-08-11 14:40:11 💤 [Parachain] Idle (47 peers), best: #44069 (0x8d1c…6d39), finalized #44067 (0x978a…bf17), ⬇ 6.7kiB/s ⬆ 6.1kiB/s                                                  
2020-08-11 14:40:11 💤 [Relaychain] Idle (23 peers), best: #56840 (0xeedf…fef0), finalized #56837 (0xd6d3…98af), ⬇ 30.3kiB/s ⬆ 28.9kiB/s                                               
2020-08-11 14:40:12 ✨ [Relaychain] Imported #56841 (0xe5f9…0ec4)                                                                                                                      
                                                                                                                                                                                       
====================                                                                                                                                                                   
                                                                                                                                                                                       
Version: 0.20.0-5997540-x86_64-linux-gnu                                                                                                                                               
                                                                                                                                                                                       
   0: sp_panic_handler::set::{{closure}}                                                                                                                                               
   1: std::panicking::rust_panic_with_hook                                                                                                                                             
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/panicking.rs:530                                                                                            
   2: std::panicking::begin_panic                                                          
   3: frame_executive::Executive<System,Block,Context,UnsignedValidator,AllModules,COnRuntimeUpgrade>::execute_block
   4: <robonomics_parachain_runtime::Runtime as sp_api::runtime_decl_for_Core::Core<sp_runtime::generic::block::Block<sp_runtime::generic::header::Header<u32,sp_runtime::traits::Blake
Two256>,sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic<<pallet_indices::Module<robonomics_parachain_runtime::Runtime> as sp_runtime::traits::StaticLookup>::Source,robono
mics_parachain_runtime::Call,sp_runtime::MultiSignature,(frame_system::extensions::check_spec_version::CheckSpecVersion<robonomics_parachain_runtime::Runtime>,frame_system::extensions
::check_tx_version::CheckTxVersion<robonomics_parachain_runtime::Runtime>,frame_system::extensions::check_genesis::CheckGenesis<robonomics_parachain_runtime::Runtime>,frame_system::ex
tensions::check_mortality::CheckMortality<robonomics_parachain_runtime::Runtime>,frame_system::extensions::check_nonce::CheckNonce<robonomics_parachain_runtime::Runtime>,frame_system:
:extensions::check_weight::CheckWeight<robonomics_parachain_runtime::Runtime>,pallet_transaction_payment::ChargeTransactionPayment<robonomics_parachain_runtime::Runtime>)>>>>::execute
_block
   5: sp_api::runtime_decl_for_Core::execute_block_native_call_generator::{{closure}}                                                                                                     
   6: std::thread::local::LocalKey<T>::with
   7: sc_executor::native_executor::WasmExecutor::with_instance::{{closure}}
   8: sc_executor::wasm_runtime::RuntimeCache::with_instance
   9: <sc_executor::native_executor::NativeExecutor<D> as sp_core::traits::CodeExecutor>::call
   10: sp_state_machine::StateMachine<B,H,N,Exec>::execute_aux
   11: sp_state_machine::StateMachine<B,H,N,Exec>::execute_using_consensus_failure_handler
   12: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt<Block>>::ball_api_at
   13: sp_api::runtime_decl_for_Core::execute_block_call_api_at
   14: sp_api::Core::execute_block_with_context
   15: <&sc_service::client::client::Client<B,E,Block,RA> as sp_consensus::block_import::BlockImport<Block>>::import_block     
  16: <alloc::sync::Arc<T> as sp_consensus::block_import::BlockImport<B>>::import_block                                                                                                
  17: sp_consensus::import_queue::import_single_block_metered                                                                                                                          
  18: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll                                                                                                 
  19: <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll                                                                                            
  20: <futures_util::future::future::flatten::Flatten<Fut,<Fut as core::future::future::Future>::Output> as core::future::future::Future>::poll                                        
  21: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll                                                                                                 
  22: std::panicking::try                                                                                                                                                              
  23: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll                                                                                               
  24: std::thread::local::LocalKey<T>::with                                                           
  25: futures_executor::local_pool::block_on                                                                                                                                           
  26: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut                                                                                                                           
  27: tokio::runtime::task::core::Core<T,S>::poll                                                                                                                                      
  28: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once       
  29: tokio::runtime::task::raw::poll                                                                                                                                                  
  30: tokio::runtime::blocking::pool::Inner::run                                                      
  31: tokio::runtime::context::enter                                                                                                                                                   
  32: std::sys_common::backtrace::__rust_begin_short_backtrace                              
  33: core::ops::function::FnOnce::call_once{{vtable.shim}}                                                                                                                            
  34: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once                                                                                                              
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/liballoc/boxed.rs:1081                                                                                             
      <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once                                                                                                              
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/liballoc/boxed.rs:1081                                                                                             
      std::sys::unix::thread::Thread::new::thread_start                                                                                                                                
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/sys/unix/thread.rs:87
  35: start_thread                                                                                                                                                                     
  36: __clone                                                                                                                                                                          
                                                                                                                                                                                       
                                                                                                      
Thread 'tokio-runtime-worker' panicked at 'Inability to pay some fees (e.g. account balance too low)', /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/macros.rs:13
                                                                                                                                                                                       
This is a bug. Please report it at:                                                                   
                                                                                                      
        https://github.com/airalab/robonomics/issues/new                                  
                                                                                                                                                                                       
                                                                                                      
====================
                                                                                           
Version: 0.20.0-5997540-x86_64-linux-gnu                                                   
                                                                                           
   0: sp_panic_handler::set::{{closure}}                                                   
   1: std::panicking::rust_panic_with_hook                                                 
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/panicking.rs:530                                                                                            
   2: std::panicking::begin_panic                                                          
   3: <sp_runtime::SignatureBatching as core::ops::drop::Drop>::drop                                                                                                                   
   4: frame_executive::Executive<System,Block,Context,UnsignedValidator,AllModules,COnRuntimeUpgrade>::execute_block
   5: <robonomics_parachain_runtime::Runtime as sp_api::runtime_decl_for_Core::Core<sp_runtime::generic::block::Block<sp_runtime::generic::header::Header<u32,sp_runtime::traits::Blake
Two256>,sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic<<pallet_indices::Module<robonomics_parachain_runtime::Runtime> as sp_runtime::traits::StaticLookup>::Source,robono
mics_parachain_runtime::Call,sp_runtime::MultiSignature,(frame_system::extensions::check_spec_version::CheckSpecVersion<robonomics_parachain_runtime::Runtime>,frame_system::extensions
::check_tx_version::CheckTxVersion<robonomics_parachain_runtime::Runtime>,frame_system::extensions::check_genesis::CheckGenesis<robonomics_parachain_runtime::Runtime>,frame_system::ex
tensions::check_mortality::CheckMortality<robonomics_parachain_runtime::Runtime>,frame_system::extensions::check_nonce::CheckNonce<robonomics_parachain_runtime::Runtime>,frame_system:
:extensions::check_weight::CheckWeight<robonomics_parachain_runtime::Runtime>,pallet_transaction_payment::ChargeTransactionPayment<robonomics_parachain_runtime::Runtime>)>>>>::execute
_block
   6: sp_api::runtime_decl_for_Core::execute_block_native_call_generator::{{closure}}
   7: std::thread::local::LocalKey<T>::with                                                           
   8: sc_executor::native_executor::WasmExecutor::with_instance::{{closure}}
   9: sc_executor::wasm_runtime::RuntimeCache::with_instance                                                                                                    
  10: <sc_executor::native_executor::NativeExecutor<D> as sp_core::traits::CodeExecutor>::call                                                                                         
  11: sp_state_machine::StateMachine<B,H,N,Exec>::execute_aux                                                                                                                          
  12: sp_state_machine::StateMachine<B,H,N,Exec>::execute_using_consensus_failure_handler                                                                                              
  13: <sc_service::client::client::Client<B,E,Block,RA> as sp_api::CallApiAt<Block>>::call_api_at                                                                                      
  14: sp_api::runtime_decl_for_Core::execute_block_call_api_at                                                                                                                         
  15: sp_api::Core::execute_block_with_context                                             
  16: <&sc_service::client::client::Client<B,E,Block,RA> as sp_consensus::block_import::BlockImport<Block>>::import_block
  17: <alloc::sync::Arc<T> as sp_consensus::block_import::BlockImport<B>>::import_block                                                                                                
  18: sp_consensus::import_queue::import_single_block_metered                                                                                                                          
  19: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll                                                                                                 
  20: <futures_util::future::future::map::Map<Fut,F> as core::future::future::Future>::poll                                                                                            
  21: <futures_util::future::future::flatten::Flatten<Fut,<Fut as core::future::future::Future>::Output> as core::future::future::Future>::poll
  22: <futures_util::future::poll_fn::PollFn<F> as core::future::future::Future>::poll                                                                                                 
  23: std::panicking::try                                                                  
  24: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll                                                                                               
  25: std::thread::local::LocalKey<T>::with                                                
  26: futures_executor::local_pool::block_on                                               
  27: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut                                                                                                                           
  28: tokio::runtime::task::core::Core<T,S>::poll                                          
  29: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once                                                                                                  
  30: tokio::runtime::task::raw::poll                                                      
  31: tokio::runtime::blocking::pool::Inner::run                                           
  32: tokio::runtime::context::enter
  33: std::sys_common::backtrace::__rust_begin_short_backtrace                                        
  34: core::ops::function::FnOnce::call_once{{vtable.shim}}                                                                                                                            
  35: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once                                                                                                              
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/liballoc/boxed.rs:1081                                                                                             
      <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once                                                                                                              
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/liballoc/boxed.rs:1081                                                                                             
      std::sys::unix::thread::Thread::new::thread_start                                                                                                                                
             at /rustc/d7f94516345a36ddfcd68cbdf1df835d356795c3/src/libstd/sys/unix/thread.rs:87                                                                                       
  36: start_thread                                                                                                                                                                     
  37: __clone                                                                              


Thread 'tokio-runtime-worker' panicked at 'Signature verification has not been called before `SignatureBatching::drop`', /home/khassanov/.cargo/git/checkouts/substrate-7e08433d4c370a2
1/d15f420/primitives/runtime/src/lib.rs:799

This is a bug. Please report it at:                                                        

        https://github.com/airalab/robonomics/issues/new                                                                                                                               

thread panicked while panicking. aborting.                                                 
Illegal instruction (core dumped)                                                          

[nix-shell:~/Workspace]$

[substrate-ros/robonomics] Add multiple message types support

Problem definition

Current ROSBAG player support std_msgs/String message type only. But ROSBAG objective files could contains messages of different types.

Proposal
Make a way to easy support messages from different ROS packages like a std_msgs or nav_msgs.

Architecture
Current RosbagPlayer is std_msgs/String specific. I propose to generalize this code into parametrized by message type function. It should accept list of serialized messages (message type, content, timestamp, topic name) and return future that publish messages to ROS namespace.

fn build_player<T>(msg_type: &str, records: Vec<Record>) -> Result<impl Future<Output=()>, Error>

Using

Macros that support message types substitution could be very useful.

Example of usage:

let records = bag.records();

// Build message players and join it in one future
let task = build_players!(
    // ROSBAG records
    records,
    // Supported message types
    std_msgs / String,
    std_msgs / UInt64,
    std_msgs / Byte
);

service.spawn_task(task);

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.