Oups, merci, je n’ai pas eu le temps de faire un diagnostic complet.
Récupérer la dernière image
> docker pull duniter/duniter-v2s-gdev-800:latest
[pulling]
> docker run -it -p9988:9944 duniter/duniter-v2s-gdev-800:latest
Generating node key file '/var/lib/duniter/node.key'...
thread 'main' panicked at node/src/command.rs:185: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: --node-key-file /var/lib/duniter/node.key --rpc-cors all --dev -d /var/lib/duniter --unsafe-rpc-external
WARNING: No public address specified, validator node may not be reachable.
Consider setting `--public-addr` to the public IP address of this node.
This will become a hard requirement in future versions.
WARNING: No public address specified, validator node may not be reachable.
Consider setting `--public-addr` to the public IP address of this node.
This will become a hard requirement in future versions.
2025-01-15 12:42:57 Duniter
2025-01-15 12:42:57 ✌️ version 0.8.0-unknown
2025-01-15 12:42:57 ❤️ by librelois <c@elo.tf>:tuxmain <tuxmain@zettascript.org>:c-geek <https://forum.duniter.org/u/cgeek>:HugoTrentesaux <https://trentesaux.fr>:bgallois <benjamin@gallois.cc>:Duniter Developers <https://duniter.org>:Axiom-Team Developers <https://axiom-team.fr>, 2021-2025
2025-01-15 12:42:57 📋 Chain specification: Ğdev Local Testnet
2025-01-15 12:42:57 🏷 Node name: tame-birthday-5891
2025-01-15 12:42:57 👤 Role: AUTHORITY
2025-01-15 12:42:57 💾 Database: ParityDb at /var/lib/duniter/chains/gdev_local/paritydb/full
2025-01-15 12:42:59 🔨 Initializing Genesis block/state (state: 0x9367…a85f, header-hash: 0xbb0f…1968)
2025-01-15 12:42:59 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.
2025-01-15 12:42:59 👶 Creating empty BABE epoch changes on what appears to be first startup.
2025-01-15 12:42:59 Using default protocol ID "sup" because none is configured in the chain specs
2025-01-15 12:42:59 Local node identity is: 12D3KooWCFmqPVFvxnxYSMZFJcsEJ5FYACAwnnHkk8aeb4WUh4tz
2025-01-15 12:42:59 Running litep2p network backend
2025-01-15 12:42:59 👶 Starting BABE Authorship worker
2025-01-15 12:42:59 💻 Operating system: linux
2025-01-15 12:42:59 💻 CPU architecture: x86_64
2025-01-15 12:42:59 💻 Target environment: gnu
2025-01-15 12:42:59 💻 CPU: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
2025-01-15 12:42:59 💻 CPU cores: 4
2025-01-15 12:42:59 💻 Memory: 15708MB
2025-01-15 12:42:59 💻 Kernel: 6.6.65-1-MANJARO
2025-01-15 12:42:59 💻 Linux distribution: Debian GNU/Linux 11 (bullseye)
2025-01-15 12:42:59 💻 Virtual machine: no
2025-01-15 12:42:59 📦 Highest known block at #0
2025-01-15 12:42:59 〽️ Prometheus exporter started at 127.0.0.1:9615
2025-01-15 12:42:59 Running JSON-RPC server: addr=0.0.0.0:9944,[::]:44693
2025-01-15 12:42:59 ***** Duniter has fully started *****
2025-01-15 12:43:00 🧙 [distance inherent] No published result at this block.
2025-01-15 12:43:00 🙌 Starting consensus session on top of parent 0xbb0f5f8bb403d4144f65bdb8128bb0fab66ca1b37c2d4df9b594ec042a941968 (#0)
2025-01-15 12:43:00 🎁 Prepared block for proposing at 1 (1 ms) [hash: 0x49ea073d22e52933f7771a98bf59b5b38a817add67bc620850dad345020c5f40; parent_hash: 0xbb0f…1968; extrinsics (1): [0xc3b5…1150]
2025-01-15 12:43:00 🔖 Pre-sealed block for proposal at 1. Hash now 0x8870406e7072a747d759e3d3acd2d542413f4f5c2797c1b18a86f0e94cb92bb3, previously 0x49ea073d22e52933f7771a98bf59b5b38a817add67bc620850dad345020c5f40.
2025-01-15 12:43:00 👶 New epoch 0 launching at block 0x8870…2bb3 (block slot 289490830 >= start slot 289490830).
2025-01-15 12:43:00 👶 Next epoch starts at slot 289490860
2025-01-15 12:43:00 🏆 Imported #1 (0xbb0f…1968 → 0x8870…2bb3)
2025-01-15 12:43:04 💤 Idle (0 peers), best: #1 (0x8870…2bb3), finalized #0 (0xbb0f…1968), ⬇ 0 ⬆ 0
2025-01-15 12:43:06 🧙 [distance inherent] No published result at this block.
2025-01-15 12:43:06 🙌 Starting consensus session on top of parent 0x8870406e7072a747d759e3d3acd2d542413f4f5c2797c1b18a86f0e94cb92bb3 (#1)
2025-01-15 12:43:06 🎁 Prepared block for proposing at 2 (1 ms) [hash: 0xd80098b1b87c9bc4c433401861910dc8b73c8a1165566f5b3c4547c90413fdaf; parent_hash: 0x8870…2bb3; extrinsics (1): [0x9157…c0c6]
2025-01-15 12:43:06 🔖 Pre-sealed block for proposal at 2. Hash now 0xee8389dc13551e84402f7a053cc35d0481c88762db1dcbc7c778b4a59f7af050, previously 0xd80098b1b87c9bc4c433401861910dc8b73c8a1165566f5b3c4547c90413fdaf.
2025-01-15 12:43:06 🏆 Imported #2 (0x8870…2bb3 → 0xee83…f050)
2025-01-15 12:43:09 💤 Idle (0 peers), best: #2 (0xee83…f050), finalized #0 (0xbb0f…1968), ⬇ 0 ⬆ 0
2025-01-15 12:43:12 🧙 [distance inherent] No published result at this block.
2025-01-15 12:43:12 🙌 Starting consensus session on top of parent 0xee8389dc13551e84402f7a053cc35d0481c88762db1dcbc7c778b4a59f7af050 (#2)
2025-01-15 12:43:12 🎁 Prepared block for proposing at 3 (1 ms) [hash: 0xd4458588df9a96ab7f611ca2df2c985096f0996e2df33633f79d5c3091f19d0a; parent_hash: 0xee83…f050; extrinsics (1): [0x8a7c…c0b4]
2025-01-15 12:43:12 🔖 Pre-sealed block for proposal at 3. Hash now 0xc1fac1752b62a13b6787b2e05a28d2bf47d373290e7b163271e450d1ec8bcffa, previously 0xd4458588df9a96ab7f611ca2df2c985096f0996e2df33633f79d5c3091f19d0a.
2025-01-15 12:43:12 🏆 Imported #3 (0xee83…f050 → 0xc1fa…cffa)
J’ai effectivement les mêmes erreurs, ce qui n’empêche pas mon nœud de démarrer une blockchain locale.
Se connecter au réseau gdev
> docker run -it -p9988:9944 -e DUNITER_CHAIN_NAME=gdev duniter/duniter-v2s-gdev-800:latest
Generating node key file '/var/lib/duniter/node.key'...
thread 'main' panicked at node/src/command.rs:185: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: --node-key-file /var/lib/duniter/node.key --rpc-cors all --chain gdev -d /var/lib/duniter --unsafe-rpc-external
2025-01-15 12:44:46 Duniter
2025-01-15 12:44:46 ✌️ version 0.8.0-unknown
2025-01-15 12:44:46 ❤️ by librelois <c@elo.tf>:tuxmain <tuxmain@zettascript.org>:c-geek <https://forum.duniter.org/u/cgeek>:HugoTrentesaux <https://trentesaux.fr>:bgallois <benjamin@gallois.cc>:Duniter Developers <https://duniter.org>:Axiom-Team Developers <https://axiom-team.fr>, 2021-2025
2025-01-15 12:44:46 📋 Chain specification: ĞDev
2025-01-15 12:44:46 🏷 Node name: spectacular-regret-6184
2025-01-15 12:44:46 👤 Role: FULL
2025-01-15 12:44:46 💾 Database: ParityDb at /var/lib/duniter/chains/gdev/paritydb/full
2025-01-15 12:44:48 🔨 Initializing Genesis block/state (state: 0xea8a…64d2, header-hash: 0xc184…b6c3)
2025-01-15 12:44:49 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.
2025-01-15 12:44:49 👶 Creating empty BABE epoch changes on what appears to be first startup.
2025-01-15 12:44:49 Local node identity is: 12D3KooWCpPTGjC6Wg2s47brt2rstJjkiAVasSFiwtjMzHQF4fvs
2025-01-15 12:44:49 Running litep2p network backend
2025-01-15 12:44:49 💻 Operating system: linux
2025-01-15 12:44:49 💻 CPU architecture: x86_64
2025-01-15 12:44:49 💻 Target environment: gnu
2025-01-15 12:44:49 💻 CPU: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
2025-01-15 12:44:49 💻 CPU cores: 4
2025-01-15 12:44:49 💻 Memory: 15708MB
2025-01-15 12:44:49 💻 Kernel: 6.6.65-1-MANJARO
2025-01-15 12:44:49 💻 Linux distribution: Debian GNU/Linux 11 (bullseye)
2025-01-15 12:44:49 💻 Virtual machine: no
2025-01-15 12:44:49 📦 Highest known block at #0
2025-01-15 12:44:49 〽️ Prometheus exporter started at 127.0.0.1:9615
2025-01-15 12:44:49 Running JSON-RPC server: addr=0.0.0.0:9944,[::]:45597
2025-01-15 12:44:49 ***** Duniter has fully started *****
2025-01-15 12:44:54 ⚙️ Syncing, target=#4782546 (1 peers), best: #1746 (0x908d…02f5), finalized #1536 (0x9f12…270c), ⬇ 119.2kiB/s ⬆ 0.3kiB/s
2025-01-15 12:44:59 ⚙️ Syncing 256.2 bps, target=#4782546 (3 peers), best: #3027 (0xfbc0…bbc3), finalized #2560 (0x927d…63ed), ⬇ 202.7kiB/s ⬆ 1.1kiB/s
2025-01-15 12:45:04 ⚙️ Syncing 354.6 bps, target=#4782547 (3 peers), best: #4800 (0xc101…6bb9), finalized #4608 (0x081a…e9cc), ⬇ 76.7kiB/s ⬆ 76 B/s
J’ai aussi les mêmes erreurs, mais ça ne m’empêche pas de synchroniser sur la gdev.
Quelle est mon image
> docker inspect duniter/duniter-v2s-gdev-800:latest | head
[
{
"Id": "sha256:285612bb53add8e77e03c8967f86f446ac0750fd29125ba78ccf14492f68c2a5",
"RepoTags": [
"duniter/duniter-v2s-gdev-800:latest"
Je ne sais plus à quoi correspond ce hash, mais as-tu le même ?
En mode validateur
> docker run -it -p9988:9944 -e DUNITER_CHAIN_NAME=gdev -e DUNITER_VALIDATOR=true duniter/duniter-v2s-gdev-800:latest
Generating node key file '/var/lib/duniter/node.key'...
thread 'main' panicked at node/src/command.rs:185: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: --node-key-file /var/lib/duniter/node.key --rpc-cors all --rpc-methods Unsafe --validator --chain gdev -d /var/lib/duniter --unsafe-rpc-external
WARNING: No public address specified, validator node may not be reachable.
Consider setting `--public-addr` to the public IP address of this node.
This will become a hard requirement in future versions.
Error: NetworkKeyNotFound("/var/lib/duniter/node.key")
Ok, donc ce problème arrive uniquement en mode validateur. Effectivement, en mode validateur, duniter ne génère pas la clé sans qu’on lui demande. Voilà la raison du entrypoint de @Pini :
Il doit donc y avoir un problème à ce niveau.
Test de la génération de clé
> docker run -it -p9988:9944 -e DUNITER_CHAIN_NAME=gdev -e DUNITER_VALIDATOR=true duniter/duniter-v2s-gdev-800:latest -- key generate-node-key
thread 'main' panicked at node/src/command.rs:185:21:
unknown runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
> docker run -it -p9988:9944 -e DUNITER_CHAIN_NAME=gdev -e DUNITER_VALIDATOR=true duniter/duniter-v2s-gdev-800:latest -- key generate-node-key --chain=gdev
12D3KooWBigCnxRSAMSCECX9NzoaiHDVL9jy8HBq7Qfdh4peYYcN
555020b3a84b2d816789070daebc0e46209574b1444cdfe523c08d2f3844b07c%
Il manque effectivement un argument à la fonction generate key : --chain=gdev
. Je crée un rapport de bug : #286.