open-web3-stack/parachain-launch

Statemint fails to start

rakanalh opened this issue · 2 comments

When trying to run a statemint parachain on a rococo-local relaychain, the parachain nodes fail to start.

Config:

# Relaychain Configuration
relaychain:
  image: parity/polkadot:v0.9.26
  chain: rococo-local
  runtimeGenesisConfig:
    configuration:
      config:
        validation_upgrade_cooldown: 10
        validation_upgrade_delay: 10
  hrmp:
    preopenHrmpChannels:
      - sender: 2000
        recipient: 2021
        maxCapacity: 8
        maxMessageSize: 102400
      - sender: 2021
        recipient: 2000
        maxCapacity: 8
        maxMessageSize: 102400
  env:
    RUST_LOG: parachain::candidate-backing=trace,parachain::candidate-selection=trace,parachain::pvf=trace,parachain::collator-protocol=trace,parachain::provisioner=trace
  flags:
    - --rpc-methods=unsafe
  nodes:
    - name: alice
      wsPort: 9944
      rpcPort: 9933
      port: 30333
      flags:
        - --force-authoring
      env:
        RUST_LOG: babe=debug
    - name: bob

# Parachain Configuration
parachains:
######################################
# STATEMINT
######################################
- image: parity/polkadot-parachain:0.9.230
  chain:
    base: statemint-local
  id: 1000
  parachain: true
  flags:
    - --force-authoring
    - --rpc-methods=unsafe
    - --execution=wasm
  relaychainFlags:
    - --execution=wasm
    - --port=30347
    - --rpc-methods=Auto
  volumePath: /statemint/data
  nodes:
  - wsPort: 10030
    rpcPort: 10031
    port: 30337
    flags:
      - --alice
  - flags:
    - --bob

Running parachain-launch/bin/parachain-launch generate -y config-statemint.yaml would generate the required output files. However, the following error is shown as soon as the parachain nodes start:

parachain-1000-0_1  | 2022-08-11 15:57:44 Failed to run the sequential write disk benchmark: failed to create a test file: No such file or directory (os error 2)
parachain-1000-0_1  | 2022-08-11 15:57:44 Failed to run the random write disk benchmark: failed to create a test file: No such file or directory (os error 2)
parachain-1000-1_1  | 2022-08-11 15:57:44 Failed to run the sequential write disk benchmark: failed to create a test file: No such file or directory (os error 2)
parachain-1000-0_1  | Error: Service(Keystore(Io(Os { code: 13, kind: PermissionDenied, message: "Permission denied" })))
parachain-1000-0_1  | 2022-08-11 15:57:44 assembling new collators for new session 0 at #0
parachain-1000-0_1  | 2022-08-11 15:57:44 assembling new collators for new session 1 at #0
parachain-1000-0_1  | 2022-08-11 15:57:44 Parachain id: Id(1000)
parachain-1000-0_1  | 2022-08-11 15:57:44 Parachain Account: 5Ec4AhPZk8STuex8Wsi9TwDtJQxKqzPJRCH7348Xtcs9vZLJ
parachain-1000-0_1  | 2022-08-11 15:57:44 Parachain genesis state: 0x00000000000000000000000000000000000000000000000000000000000000000082825f73d38d68d3984b009f48799d59964bab0c17f1a0ae4e08e54f48b402db03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400
parachain-1000-0_1  | 2022-08-11 15:57:44 Is collating: yes
parachain-1000-1_1  | 2022-08-11 15:57:44 Failed to run the random write disk benchmark: failed to create a test file: No such file or directory (os error 2)
parachain-1000-1_1  | Error: Service(Keystore(Io(Os { code: 13, kind: PermissionDenied, message: "Permission denied" })))
parachain-1000-1_1  | 2022-08-11 15:57:44 assembling new collators for new session 0 at #0
parachain-1000-1_1  | 2022-08-11 15:57:44 assembling new collators for new session 1 at #0
parachain-1000-1_1  | 2022-08-11 15:57:44 Parachain id: Id(1000)
parachain-1000-1_1  | 2022-08-11 15:57:44 Parachain Account: 5Ec4AhPZk8STuex8Wsi9TwDtJQxKqzPJRCH7348Xtcs9vZLJ
parachain-1000-1_1  | 2022-08-11 15:57:44 Parachain genesis state: 0x00000000000000000000000000000000000000000000000000000000000000000082825f73d38d68d3984b009f48799d59964bab0c17f1a0ae4e08e54f48b402db03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400
parachain-1000-1_1  | 2022-08-11 15:57:44 Is collating: yes
output_parachain-1000-0_1 exited with code 1
output_parachain-1000-1_1 exited with code 1

Full log until terminated:

Creating output_relaychain-bob_1   ... done
Creating output_parachain-1000-0_1 ... done
Creating output_parachain-1000-1_1 ... done
Creating output_relaychain-alice_1 ... done
Attaching to output_parachain-1000-0_1, output_parachain-1000-1_1, output_relaychain-alice_1, output_relaychain-bob_1
parachain-1000-0_1  | 2022-08-11 15:57:43 Polkadot parachain
parachain-1000-0_1  | 2022-08-11 15:57:43 ✌️  version 0.9.230-7f8f20b3513
parachain-1000-0_1  | 2022-08-11 15:57:43 ❤️  by Parity Technologies <admin@parity.io>, 2017-2022
parachain-1000-0_1  | 2022-08-11 15:57:43 📋 Chain specification: Statemint Local
parachain-1000-0_1  | 2022-08-11 15:57:43 🏷  Node name: parachain-1000-0
parachain-1000-0_1  | 2022-08-11 15:57:43 👤 Role: AUTHORITY
parachain-1000-0_1  | 2022-08-11 15:57:43 💾 Database: RocksDb at /statemint/data/chains/statemint_local/db/full
parachain-1000-0_1  | 2022-08-11 15:57:43 ⛓  Native runtime: statemint-9230 (statemint-0.tx7.au1)
parachain-1000-1_1  | 2022-08-11 15:57:44 Polkadot parachain
parachain-1000-1_1  | 2022-08-11 15:57:44 ✌️  version 0.9.230-7f8f20b3513
parachain-1000-1_1  | 2022-08-11 15:57:44 ❤️  by Parity Technologies <admin@parity.io>, 2017-2022
parachain-1000-1_1  | 2022-08-11 15:57:44 📋 Chain specification: Statemint Local
parachain-1000-1_1  | 2022-08-11 15:57:44 🏷  Node name: parachain-1000-1
parachain-1000-1_1  | 2022-08-11 15:57:44 👤 Role: AUTHORITY
parachain-1000-1_1  | 2022-08-11 15:57:44 💾 Database: RocksDb at /statemint/data/chains/statemint_local/db/full
parachain-1000-1_1  | 2022-08-11 15:57:44 ⛓  Native runtime: statemint-9230 (statemint-0.tx7.au1)
relaychain-alice_1  | 2022-08-11 15:57:44.064  INFO main sc_cli::runner: Parity Polkadot
relaychain-alice_1  | 2022-08-11 15:57:44.065  INFO main sc_cli::runner: ✌️  version 0.9.26-d8785970175
relaychain-alice_1  | 2022-08-11 15:57:44.065  INFO main sc_cli::runner: ❤️  by Parity Technologies <admin@parity.io>, 2017-2022
relaychain-alice_1  | 2022-08-11 15:57:44.065  INFO main sc_cli::runner: 📋 Chain specification: Rococo Local Testnet
relaychain-alice_1  | 2022-08-11 15:57:44.065  INFO main sc_cli::runner: 🏷  Node name: alice
relaychain-alice_1  | 2022-08-11 15:57:44.065  INFO main sc_cli::runner: 👤 Role: AUTHORITY
relaychain-alice_1  | 2022-08-11 15:57:44.065  INFO main sc_cli::runner: 💾 Database: RocksDb at /data/chains/rococo_local_testnet/db/full
relaychain-alice_1  | 2022-08-11 15:57:44.065  INFO main sc_cli::runner: ⛓  Native runtime: rococo-9260 (parity-rococo-v2.0-0.tx1.au0)
relaychain-bob_1    | 2022-08-11 15:57:44.072  INFO main sc_cli::runner: Parity Polkadot
relaychain-bob_1    | 2022-08-11 15:57:44.072  INFO main sc_cli::runner: ✌️  version 0.9.26-d8785970175
relaychain-bob_1    | 2022-08-11 15:57:44.072  INFO main sc_cli::runner: ❤️  by Parity Technologies <admin@parity.io>, 2017-2022
relaychain-bob_1    | 2022-08-11 15:57:44.072  INFO main sc_cli::runner: 📋 Chain specification: Rococo Local Testnet
relaychain-bob_1    | 2022-08-11 15:57:44.072  INFO main sc_cli::runner: 🏷  Node name: bob
relaychain-bob_1    | 2022-08-11 15:57:44.072  INFO main sc_cli::runner: 👤 Role: AUTHORITY
relaychain-bob_1    | 2022-08-11 15:57:44.072  INFO main sc_cli::runner: 💾 Database: RocksDb at /data/chains/rococo_local_testnet/db/full
relaychain-bob_1    | 2022-08-11 15:57:44.072  INFO main sc_cli::runner: ⛓  Native runtime: rococo-9260 (parity-rococo-v2.0-0.tx1.au0)
parachain-1000-0_1  | 2022-08-11 15:57:44 Failed to run the sequential write disk benchmark: failed to create a test file: No such file or directory (os error 2)
parachain-1000-0_1  | 2022-08-11 15:57:44 Failed to run the random write disk benchmark: failed to create a test file: No such file or directory (os error 2)
parachain-1000-1_1  | 2022-08-11 15:57:44 Failed to run the sequential write disk benchmark: failed to create a test file: No such file or directory (os error 2)
parachain-1000-0_1  | Error: Service(Keystore(Io(Os { code: 13, kind: PermissionDenied, message: "Permission denied" })))
parachain-1000-0_1  | 2022-08-11 15:57:44 assembling new collators for new session 0 at #0
parachain-1000-0_1  | 2022-08-11 15:57:44 assembling new collators for new session 1 at #0
parachain-1000-0_1  | 2022-08-11 15:57:44 Parachain id: Id(1000)
parachain-1000-0_1  | 2022-08-11 15:57:44 Parachain Account: 5Ec4AhPZk8STuex8Wsi9TwDtJQxKqzPJRCH7348Xtcs9vZLJ
parachain-1000-0_1  | 2022-08-11 15:57:44 Parachain genesis state: 0x00000000000000000000000000000000000000000000000000000000000000000082825f73d38d68d3984b009f48799d59964bab0c17f1a0ae4e08e54f48b402db03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400
parachain-1000-0_1  | 2022-08-11 15:57:44 Is collating: yes
parachain-1000-1_1  | 2022-08-11 15:57:44 Failed to run the random write disk benchmark: failed to create a test file: No such file or directory (os error 2)
parachain-1000-1_1  | Error: Service(Keystore(Io(Os { code: 13, kind: PermissionDenied, message: "Permission denied" })))
parachain-1000-1_1  | 2022-08-11 15:57:44 assembling new collators for new session 0 at #0
parachain-1000-1_1  | 2022-08-11 15:57:44 assembling new collators for new session 1 at #0
parachain-1000-1_1  | 2022-08-11 15:57:44 Parachain id: Id(1000)
parachain-1000-1_1  | 2022-08-11 15:57:44 Parachain Account: 5Ec4AhPZk8STuex8Wsi9TwDtJQxKqzPJRCH7348Xtcs9vZLJ
parachain-1000-1_1  | 2022-08-11 15:57:44 Parachain genesis state: 0x00000000000000000000000000000000000000000000000000000000000000000082825f73d38d68d3984b009f48799d59964bab0c17f1a0ae4e08e54f48b402db03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400
parachain-1000-1_1  | 2022-08-11 15:57:44 Is collating: yes
output_parachain-1000-0_1 exited with code 1
output_parachain-1000-1_1 exited with code 1
relaychain-bob_1    | 2022-08-11 15:57:46.806  INFO main sc_service::client::client: 🔨 Initializing Genesis block/state (state: 0x2b14…5319, header-hash: 0xb6c9…aa29)
relaychain-bob_1    | 2022-08-11 15:57:46.815  INFO main afg: 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.
relaychain-alice_1  | 2022-08-11 15:57:46.999  INFO main sc_service::client::client: 🔨 Initializing Genesis block/state (state: 0x2b14…5319, header-hash: 0xb6c9…aa29)
relaychain-alice_1  | 2022-08-11 15:57:47.007  INFO main afg: 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.
relaychain-bob_1    | 2022-08-11 15:57:47.237  INFO main babe: 👶 Creating empty BABE epoch changes on what appears to be first startup.
relaychain-bob_1    | 2022-08-11 15:57:47.238  INFO main sub-libp2p: 🏷  Local node identity is: 12D3KooWFmasu1eVGSSyhDF6FxU9h1pqtbZQbFCnAe7GKvummuUa
relaychain-alice_1  | 2022-08-11 15:57:47.303  INFO main babe: 👶 Creating empty BABE epoch changes on what appears to be first startup.
relaychain-alice_1  | 2022-08-11 15:57:47.303  INFO main sub-libp2p: 🏷  Local node identity is: 12D3KooWHdRqGW7RAaBm7q6ac21sEYzipxkE4PMsy6myKCguQMLj
relaychain-bob_1    | 2022-08-11 15:57:47.590  INFO main sc_sysinfo: 💻 Operating system: linux
relaychain-bob_1    | 2022-08-11 15:57:47.590  INFO main sc_sysinfo: 💻 CPU architecture: x86_64
relaychain-bob_1    | 2022-08-11 15:57:47.590  INFO main sc_sysinfo: 💻 Target environment: gnu
relaychain-bob_1    | 2022-08-11 15:57:47.590  INFO main sc_sysinfo: 💻 CPU: 12th Gen Intel(R) Core(TM) i9-12900K
relaychain-bob_1    | 2022-08-11 15:57:47.590  INFO main sc_sysinfo: 💻 CPU cores: 16
relaychain-bob_1    | 2022-08-11 15:57:47.590  INFO main sc_sysinfo: 💻 Memory: 64060MB
relaychain-bob_1    | 2022-08-11 15:57:47.590  INFO main sc_sysinfo: 💻 Kernel: 5.15.59
relaychain-bob_1    | 2022-08-11 15:57:47.590  INFO main sc_sysinfo: 💻 Linux distribution: Ubuntu 20.04.4 LTS
relaychain-bob_1    | 2022-08-11 15:57:47.590  INFO main sc_sysinfo: 💻 Virtual machine: no
relaychain-bob_1    | 2022-08-11 15:57:47.590  INFO main sc_service::builder: 📦 Highest known block at #0
relaychain-bob_1    | 2022-08-11 15:57:47.590  INFO tokio-runtime-worker substrate_prometheus_endpoint: 〽️ Prometheus exporter started at 127.0.0.1:9615
relaychain-bob_1    | 2022-08-11 15:57:47.591  INFO                 main sc_rpc_server: Running JSON-RPC HTTP server: addr=0.0.0.0:9933, allowed origins=None
relaychain-bob_1    | 2022-08-11 15:57:47.591  INFO                 main sc_rpc_server: Running JSON-RPC WS server: addr=0.0.0.0:9944, allowed origins=None
relaychain-bob_1    | 2022-08-11 15:57:47.591  INFO                 main sc_sysinfo: 🏁 CPU score: 1301MB/s
relaychain-bob_1    | 2022-08-11 15:57:47.591  INFO                 main sc_sysinfo: 🏁 Memory score: 8010MB/s
relaychain-bob_1    | 2022-08-11 15:57:47.591  INFO                 main sc_sysinfo: 🏁 Disk score (seq. writes): 1363MB/s
relaychain-bob_1    | 2022-08-11 15:57:47.591  INFO                 main sc_sysinfo: 🏁 Disk score (rand. writes): 616MB/s
relaychain-bob_1    | 2022-08-11 15:57:47.591  INFO                 main babe: 👶 Starting BABE Authorship worker
relaychain-bob_1    | 2022-08-11 15:57:47.592  INFO tokio-runtime-worker libp2p_mdns::behaviour::iface: creating instance on iface 172.19.0.4
relaychain-bob_1    | 2022-08-11 15:57:47.594 TRACE tokio-runtime-worker parachain::collator-protocol: received a message msg=NetworkBridgeUpdate(OurViewChange(OurView { view: View { heads: [0xb6c91736ccf75376f1fdcb37227cf7745f42f70e4963fce1427e0d4a0c88aa29], finalized_number: 0 }, span_per_head: {0xb6c91736ccf75376f1fdcb37227cf7745f42f70e4963fce1427e0d4a0c88aa29: <jaeger span>} }))
relaychain-bob_1    | 2022-08-11 15:57:47.602 TRACE tokio-runtime-worker parachain::collator-protocol: Not a validator relay_parent=0xb6c91736ccf75376f1fdcb37227cf7745f42f70e4963fce1427e0d4a0c88aa29
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO main sc_sysinfo: 💻 Operating system: linux
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO main sc_sysinfo: 💻 CPU architecture: x86_64
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO main sc_sysinfo: 💻 Target environment: gnu
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO main sc_sysinfo: 💻 CPU: 12th Gen Intel(R) Core(TM) i9-12900K
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO main sc_sysinfo: 💻 CPU cores: 16
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO main sc_sysinfo: 💻 Memory: 64060MB
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO main sc_sysinfo: 💻 Kernel: 5.15.59
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO main sc_sysinfo: 💻 Linux distribution: Ubuntu 20.04.4 LTS
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO main sc_sysinfo: 💻 Virtual machine: no
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO main sc_service::builder: 📦 Highest known block at #0
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO tokio-runtime-worker substrate_prometheus_endpoint: 〽️ Prometheus exporter started at 127.0.0.1:9615
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO                 main sc_rpc_server: Running JSON-RPC HTTP server: addr=0.0.0.0:9933, allowed origins=None
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO                 main sc_rpc_server: Running JSON-RPC WS server: addr=0.0.0.0:9944, allowed origins=None
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO                 main sc_sysinfo: 🏁 CPU score: 1342MB/s
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO                 main sc_sysinfo: 🏁 Memory score: 7013MB/s
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO                 main sc_sysinfo: 🏁 Disk score (seq. writes): 1352MB/s
relaychain-alice_1  | 2022-08-11 15:57:47.653  INFO                 main sc_sysinfo: 🏁 Disk score (rand. writes): 615MB/s
relaychain-alice_1  | 2022-08-11 15:57:47.654  INFO                 main babe: 👶 Starting BABE Authorship worker
relaychain-alice_1  | 2022-08-11 15:57:47.654  INFO tokio-runtime-worker libp2p_mdns::behaviour::iface: creating instance on iface 172.19.0.5
relaychain-alice_1  | 2022-08-11 15:57:47.657  INFO tokio-runtime-worker libp2p_mdns::behaviour: discovered: 12D3KooWFmasu1eVGSSyhDF6FxU9h1pqtbZQbFCnAe7GKvummuUa /ip4/172.19.0.4/tcp/30333
relaychain-alice_1  | 2022-08-11 15:57:47.657  INFO tokio-runtime-worker libp2p_mdns::behaviour: discovered: 12D3KooWFmasu1eVGSSyhDF6FxU9h1pqtbZQbFCnAe7GKvummuUa /ip4/127.0.0.1/tcp/30333
relaychain-bob_1    | 2022-08-11 15:57:47.658  INFO tokio-runtime-worker libp2p_mdns::behaviour: discovered: 12D3KooWHdRqGW7RAaBm7q6ac21sEYzipxkE4PMsy6myKCguQMLj /ip4/172.19.0.5/tcp/30333
relaychain-bob_1    | 2022-08-11 15:57:47.658  INFO tokio-runtime-worker libp2p_mdns::behaviour: discovered: 12D3KooWHdRqGW7RAaBm7q6ac21sEYzipxkE4PMsy6myKCguQMLj /ip4/127.0.0.1/tcp/30333
^CGracefully stopping... (press Ctrl+C again to force)
Stopping output_relaychain-alice_1 ... done
Stopping output_relaychain-bob_1   ... done
xlc commented

The volumePath did not exists in the docker image. Can you try to use the default value /data?

You were right... that resolved the issue.