Panique docker synchro forgeron

Coucou @HugoTrentesaux ,
j’ai suivi la doc pour lancer un forgeron, et j’ai une panique:

Error: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Node peer ID is ''.
Starting duniter with parameters: --name Soul_node --node-key-file /var/lib/duniter/node.key --public-addr /dns/g1.syoul.fr/tcp/30334 --listen-addr /ip4/0.0.0.0/tcp/30333 --rpc-cors all --rpc-methods Unsafe --validator --blocks-pruning 14400 --chain gdev -d /var/lib/duniter --unsafe-rpc-external
Error: NetworkKeyNotFound("/var/lib/duniter/node.key")
Generating node key file '/var/lib/duniter/node.key'...
thread 'main' panicked at node/src/command.rs:182:21:
unknown runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Node peer ID is ''.
Starting duniter with parameters: --name Soul_node --node-key-file /var/lib/duniter/node.key --public-addr /dns/g1.syoul.fr/tcp/30334 --listen-addr /ip4/0.0.0.0/tcp/30333 --rpc-cors all --rpc-methods Unsafe --validator --blocks-pruning 14400 --chain gdev -d /var/lib/duniter --unsafe-rpc-external
Error: NetworkKeyNotFound("/var/lib/duniter/node.key")
Generating node key file '/var/lib/duniter/node.key'...
thread 'main' panicked at node/src/command.rs:182:21:
unknown runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Node peer ID is ''.
Starting duniter with parameters: --name Syoul_smith --node-key-file /var/lib/duniter/node.key --public-addr /dns/g1.syoul.fr/tcp/30334 --listen-addr /ip4/0.0.0.0/tcp/30333 --rpc-cors all --rpc-methods Unsafe --validator --blocks-pruning 14400 --chain gdev -d /var/lib/duniter --unsafe-rpc-external
Error: NetworkKeyNotFound("/var/lib/duniter/node.key")
Generating node key file '/var/lib/duniter/node.key'...
thread 'main' panicked at node/src/command.rs:182:21:
unknown runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Node peer ID is ''.
Starting duniter with parameters: --name Soul_node --node-key-file /var/lib/duniter/node.key --public-addr /dns/g1.syoul.fr/tcp/30334 --listen-addr /ip4/0.0.0.0/tcp/30333 --rpc-cors all --rpc-methods Unsafe --validator --blocks-pruning 14400 --chain gdev -d /var/lib/duniter --unsafe-rpc-external
Error: NetworkKeyNotFound("/var/lib/duniter/node.key")
Generating node key file '/var/lib/duniter/node.key'...
thread 'main' panicked at node/src/command.rs:182:21:
unknown runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Node peer ID is ''.
Starting duniter with parameters: --name Soul_node --node-key-file /var/lib/duniter/node.key --public-addr /dns/g1.syoul.fr/tcp/30334 --listen-addr /ip4/0.0.0.0/tcp/30333 --rpc-cors all --rpc-methods Unsafe --validator --blocks-pruning 14400 --chain gdev -d /var/lib/duniter --unsafe-rpc-external
Error: NetworkKeyNotFound("/var/lib/duniter/node.key")
Generating node key file '/var/lib/duniter/node.key'...
thread 'main' panicked at node/src/command.rs:182:21:
unknown runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Node peer ID is ''.
Starting duniter with parameters: --name Soul_node --node-key-file /var/lib/duniter/node.key --public-addr /dns/g1.syoul.fr/tcp/30334 --listen-addr /ip4/0.0.0.0/tcp/30333 --rpc-cors all --rpc-methods Unsafe --validator --blocks-pruning 14400 --chain gdev -d /var/lib/duniter --unsafe-rpc-external
Error: NetworkKeyNotFound("/var/lib/duniter/node.key")
Generating node key file '/var/lib/duniter/node.key'...
thread 'main' panicked at node/src/command.rs:182:21:
unknown runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Node peer ID is ''.
Starting duniter with parameters: --name Soul_node --node-key-file /var/lib/duniter/node.key --public-addr /dns/g1.syoul.fr/tcp/30334 --listen-addr /ip4/0.0.0.0/tcp/30333 --rpc-cors all --rpc-methods Unsafe --validator --blocks-pruning 14400 --chain gdev -d /var/lib/duniter --unsafe-rpc-external
Error: NetworkKeyNotFound("/var/lib/duniter/node.key")
Generating node key file '/var/lib/duniter/node.key'...
thread 'main' panicked at node/src/command.rs:182:21:
unknown runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Node peer ID is ''.
Starting duniter with parameters: --name Soul_node --node-key-file /var/lib/duniter/node.key --public-addr /dns/g1.syoul.fr/tcp/30334 --listen-addr /ip4/0.0.0.0/tcp/30333 --rpc-cors all --rpc-methods Unsafe --validator --blocks-pruning 14400 --chain gdev -d /var/lib/duniter --unsafe-rpc-external
Error: NetworkKeyNotFound("/var/lib/duniter/node.key")
Generating node key file '/var/lib/duniter/node.key'...
thread 'main' panicked at node/src/command.rs:182:21:
unknown runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Node peer ID is ''.
Starting duniter with parameters: --name Soul_node --node-key-file /var/lib/duniter/node.key --public-addr /dns/g1.syoul.fr/tcp/30334 --listen-addr /ip4/0.0.0.0/tcp/30333 --rpc-cors all --rpc-methods Unsafe --validator --blocks-pruning 14400 --chain gdev -d /var/lib/duniter --unsafe-rpc-external
Error: NetworkKeyNotFound("/var/lib/duniter/node.key")
Generating node key file '/var/lib/duniter/node.key'...
thread 'main' panicked at node/src/command.rs:182:21:
unknown runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Node peer ID is ''.
Starting duniter with parameters: --name Soul_node --node-key-file /var/lib/duniter/node.key --public-addr /dns/g1.syoul.fr/tcp/30334 --listen-addr /ip4/0.0.0.0/tcp/30333 --rpc-cors all --rpc-methods Unsafe --validator --blocks-pruning 14400 --chain gdev -d /var/lib/duniter --unsafe-rpc-external
Error: NetworkKeyNotFound("/var/lib/duniter/node.key")
Generating node key file '/var/lib/duniter/node.key'...
thread 'main' panicked at node/src/command.rs:182:21:
unknown runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Node peer ID is ''.
Starting duniter with parameters: --name Soul_node --node-key-file /var/lib/duniter/node.key --public-addr /dns/g1.syoul.fr/tcp/30334 --listen-addr /ip4/0.0.0.0/tcp/30333 --rpc-cors all --rpc-methods Unsafe --validator --blocks-pruning 14400 --chain gdev -d /var/lib/duniter --unsafe-rpc-external
Error: NetworkKeyNotFound("/var/lib/duniter/node.key")
Generating node key file '/var/lib/duniter/node.key'...
thread 'main' panicked at node/src/command.rs:182:21:
unknown runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Node peer ID is ''.
Starting duniter with parameters: --name Soul_node --node-key-file /var/lib/duniter/node.key --public-addr /dns/g1.syoul.fr/tcp/30334 --listen-addr /ip4/0.0.0.0/tcp/30333 --rpc-cors all --rpc-methods Unsafe --validator --blocks-pruning 14400 --chain gdev -d /var/lib/duniter --unsafe-rpc-external
Error: NetworkKeyNotFound("/var/lib/duniter/node.key")
Generating node key file '/var/lib/duniter/node.key'...
thread 'main' panicked at node/src/command.rs:182:21:
unknown runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })
Node peer ID is ''.
Starting duniter with parameters: --name Soul_node --node-key-file /var/lib/duniter/node.key --public-addr /dns/g1.syoul.fr/tcp/30334 --listen-addr /ip4/0.0.0.0/tcp/30333 --rpc-cors all --rpc-methods Unsafe --validator --blocks-pruning 14400 --chain gdev -d /var/lib/duniter --unsafe-rpc-external
Error: NetworkKeyNotFound("/var/lib/duniter/node.key")

mon compose:

# Duniter smith node
services:
  duniter-smith:
    image: duniter/duniter-v2s-gdev:latest # <--- here is the image
    restart: unless-stopped
    ports:
      # prometheus endpoint
      - 127.0.0.1:9615:9615
      # rpc via websocket
      - 127.0.0.1:9944:9944
      # public p2p endpoint
      - 30334:30333 # <--- here is your public p2p port
    volumes:
      - duniter-data:/var/lib/duniter/
    environment:
      - DUNITER_CHAIN_NAME=gdev # <--- the network you want to connect to
      - DUNITER_NODE_NAME=Syoul_smith # <--- the name of your node on the network
      - DUNITER_VALIDATOR=true # <--- enable validator
      - DUNITER_PRUNING_PROFILE=light # <--- stays light
      - DUNITER_PUBLIC_ADDR=/dns/g1.syoul.fr/tcp/30334 # <--- your public p2p endpoint
      - DUNITER_LISTEN_ADDR=/ip4/0.0.0.0/tcp/30333

volumes:
  duniter-data:

J’ai vu ça avec @1000i100 aussi, je pense que c’est lié à la dernière image poussée par @cgeek sur

Je ne sais plus comment on avait réglé ça mais on avait réussi puisqu’il forge des blocs. Soit on avait changé d’image, soit on avait forcé la génération de la clé en supprimant le volume ou manuellement. En gros l’idée c’est que Duniter devrait générer une clé automatiquement si elle n’existe pas grâce au entrypoint de @Pini :

Mais ça ne fonctionne pas avec l’argument “gdev”

Donc comme la génération de clé n’a pas fonctionné, le nœud ne peut pas démarrer. @1000i100 tu pourrais aider @syoul46 ?

1 Like

j’ai modifié mon compose avec l’avant dernière release :

image: duniter/duniter-v2s-gdev:runtime-800

là la synchro s’est exécutée nikel (et donc la génération de clé aussi).


Prochaine étape :

Je ne trouve pas de doc claire sur comment injecter ma clé membre dans mon noeud.
set session keys

Quelqu’un pour m’aiguiller ?
merci par avance

1 Like

Normalement tu devrais pouvoir trouver toutes infos dans ce fil : Ğcli s'adapte au runtime 800 : nouveau parcours forgeron

L’association avec ton identité se fait via la configuration de gcli.

3 Likes

Merci @Pini , je vais regarder cela.

2 Likes