Problème de synchro entre 2 nœuds de même clé

A des fin de test, je laisse tourner en permanence 2 nœuds membres avec ma clé sur 2 machines différentes. C’est aussi ce que je compte faire lors de la monnaie de prod pour sécuriser le réseau.
Mais cela semble poser quelques problèmes de synchronisation :

Mon nœud duniter2.elois.ifee.fr est reste bloqué au bloc#3356, voici ses trace log :

2017-02-04T20:00:30+01:00 - debug: apply starts from 3357
2017-02-04T20:00:30+01:00 - debug: Applying from 3357
2017-02-04T20:00:30+01:00 - debug: Peer bDq9H4 is on same blockchain
2017-02-04T20:00:31+01:00 - warn:  Error: ruleInputIsAvailable
    at Error (native)
    at /home/duniter/duniter/app/lib/computation/blockchainContext.js:203:63
    at next (native)
    at onFulfilled (/home/duniter/duniter/node_modules/co/index.js:65:19)
2017-02-04T20:00:31+01:00 - trace: Try with duniter.youpeek.net:8999 2GF9YT
2017-02-04T20:00:32+01:00 - debug: dl starts from 3357
2017-02-04T20:00:32+01:00 - trace: Try with desktop.moul.re:33664 J78bPU
2017-02-04T20:00:32+01:00 - debug: dl starts from 3357
2017-02-04T20:00:34+01:00 - debug: dl starts from 3407
2017-02-04T20:00:34+01:00 - debug: apply starts from 3357
2017-02-04T20:00:34+01:00 - debug: Applying from 3357
2017-02-04T20:00:34+01:00 - debug: Peer J78bPU is on same blockchain
2017-02-04T20:00:36+01:00 - warn:  Error: ruleInputIsAvailable
    at Error (native)
    at /home/duniter/duniter/app/lib/computation/blockchainContext.js:203:63
    at next (native)
    at onFulfilled (/home/duniter/duniter/node_modules/co/index.js:65:19)
2017-02-04T20:00:36+01:00 - trace: Try with urodelus.ddns.net:62150 ATkjQP
2017-02-04T20:00:36+01:00 - debug: dl starts from 3357
2017-02-04T20:00:38+01:00 - debug: dl starts from 3407
2017-02-04T20:00:38+01:00 - debug: apply starts from 3357
2017-02-04T20:00:38+01:00 - debug: Applying from 3357
2017-02-04T20:00:38+01:00 - debug: Peer ATkjQP is on same blockchain
2017-02-04T20:00:40+01:00 - warn:  Error: ruleInputIsAvailable
    at Error (native)
    at /home/duniter/duniter/app/lib/computation/blockchainContext.js:203:63
    at next (native)
    at onFulfilled (/home/duniter/duniter/node_modules/co/index.js:65:19)
2017-02-04T20:00:40+01:00 - info: Will pull blocks from the network in 3 min 59 sec
2017-02-04T20:00:42+01:00 - debug: Document write error:  Unknown reference block of peer
2017-02-04T20:00:42+01:00 - error: Unknown reference block of peer
2017-02-04T20:00:52+01:00 - debug: It already exists a written certification from CFP3oacjwDJARL89D2Gkz6LeMoVAu4ggE65CvqSp9Q9K which is not chainable yet
2017-02-04T20:00:52+01:00 - trace: New node#38
2017-02-04T20:00:52+01:00 - trace: Link 29 -> 38
2017-02-04T20:00:52+01:00 - trace: Link 29 X> 38
2017-02-04T20:00:52+01:00 - trace: Removed node#38
2017-02-04T20:01:00+01:00 - debug: Document write error:  Fork block rejected by 7tuTjCfZ7MTyVHj7GrfA8zNJ1mpWkKL9KxkoaQNpjyAe
2017-02-04T20:01:00+01:00 - error: Fork block rejected by 7tuTjCfZ7MTyVHj7GrfA8zNJ1mpWkKL9KxkoaQNpjyAe
2017-02-04T20:01:14+01:00 - debug: Document write error:  Unknown reference block of peer
2017-02-04T20:01:14+01:00 - error: Unknown reference block of peer
2017-02-04T20:01:14+01:00 - debug: Document write error:  Unknown reference block of peer
2017-02-04T20:01:14+01:00 - error: Unknown reference block of peer

2017-02-04T20:04:30+01:00 - debug: Peer 4LMye6 is on same blockchain
2017-02-04T20:04:32+01:00 - warn:  Error: ruleInputIsAvailable
    at Error (native)
    at /home/duniter/duniter/app/lib/computation/blockchainContext.js:203:63
    at next (native)
    at onFulfilled (/home/duniter/duniter/node_modules/co/index.js:65:19)
2017-02-04T20:04:32+01:00 - trace: Try with gtest.duniter.inso.ovh:80 8Fi1VS
2017-02-04T20:04:32+01:00 - debug: dl starts from 3357
2017-02-04T20:04:32+01:00 - debug: dl starts from 3407
2017-02-04T20:04:32+01:00 - debug: apply starts from 3357
2017-02-04T20:04:32+01:00 - debug: Applying from 3357
2017-02-04T20:04:32+01:00 - debug: Peer 8Fi1VS is on same blockchain
2017-02-04T20:04:34+01:00 - warn:  Error: ruleInputIsAvailable
    at Error (native)
    at /home/duniter/duniter/app/lib/computation/blockchainContext.js:203:63
    at next (native)
    at onFulfilled (/home/duniter/duniter/node_modules/co/index.js:65:19)
2017-02-04T20:04:34+01:00 - trace: Try with duniter.help-web-low.fr:8999 XeBpJw
2017-02-04T20:04:34+01:00 - debug: dl starts from 3357
2017-02-04T20:04:34+01:00 - debug: dl starts from 3407
2017-02-04T20:04:34+01:00 - debug: apply starts from 3357
2017-02-04T20:04:34+01:00 - debug: Applying from 3357
2017-02-04T20:04:34+01:00 - debug: Peer XeBpJw is on same blockchain
2017-02-04T20:04:36+01:00 - warn:  Error: ruleInputIsAvailable
    at Error (native)
    at /home/duniter/duniter/app/lib/computation/blockchainContext.js:203:63
    at next (native)
    at onFulfilled (/home/duniter/duniter/node_modules/co/index.js:65:19)
2017-02-04T20:04:36+01:00 - trace: Try with desktop.moul.re:33664 J78bPU
2017-02-04T20:04:37+01:00 - debug: dl starts from 3357
2017-02-04T20:04:40+01:00 - debug: dl starts from 3407
2017-02-04T20:04:40+01:00 - debug: apply starts from 3357
2017-02-04T20:04:40+01:00 - debug: Applying from 3357
2017-02-04T20:04:40+01:00 - debug: Peer J78bPU is on same blockchain
2017-02-04T20:04:42+01:00 - warn:  Error: ruleInputIsAvailable
    at Error (native)
    at /home/duniter/duniter/app/lib/computation/blockchainContext.js:203:63
    at next (native)
    at onFulfilled (/home/duniter/duniter/node_modules/co/index.js:65:19)
2017-02-04T20:04:42+01:00 - info: Will pull blocks from the network in 3 min 59 sec
2017-02-04T20:04:46+01:00 - debug: Document write error:  Unknown reference block of peer
2017-02-04T20:04:46+01:00 - error: Unknown reference block of peer
2017-02-04T20:05:03+01:00 - debug: Document write error:  Unknown reference block of peer
2017-02-04T20:05:03+01:00 - error: Unknown reference block of peer

Je pense qu’il n’arrivera jamais a se synchroniser sans que je le fasse manuellement. C’est donc un bug !

Pour ma part, j’ai aussi installé deux nœuds membres, et pour l’instant j’ai aucun souci de synchro …
Sous Sakia je voie tes nœuds bien vert avec le même n° de block :

et les miens pareil :

J’ai aussi 2 noeuds sur 2 machines différentes avec 2 OS # Débian Jessie et windows 8.1, en cours de test.
A priori, il semblerait qu’il y ai d’autres “difficultés”.

A suivre donc… :wink:

@vincentux merci pour ta remarque, cela signifie que la vue réseau de Sakia ne traite pas correctement le cas des multi-nœuds, j’ai vérifier manuellement et mes nœuds sont bien désynchroniser :

http://duniter2.elois.ifee.fr:8999/blockchain/current >> bloqué au bloc 3356
http://duniter.elois.ifee.fr:9001/blockchain/current >> actuellement au bloc 3490 (au moment de l’écriture de ce post)

J’ai ouvert une issue pour sakia https://github.com/duniter/sakia/issues/601

Sur cesium en revanche, on vois bien que mes 2 nœuds sont désynchronisés :

@Inso a eu la même erreur que toi “ruleInputIsAvailable”, et semble avoir trouvé une réponse.

Pour ma part, j’aimerais beaucoup que tu fasses un backup de ce noeud pour étude ultérieure (en fait, dès que tu peux me le transmettre).

Comme ça, je dirais que ce noeud est resté en 0.90.4, bien qu’il affiche 0.90.5. Car des sources de monnaie verrouillées en 0.90.4 ont été déverrouillées en 0.90.5, les rendant disponible dans cette nouvelle version et pouvant être intégrées dans un bloc.

La 0.90.4, voyant cela, devrait réagir avec un “ruleInputIsAvailable”. Mais peut-être y a-t-il un vrai bug et ton noeud est vraiment en 0.90.5, et alors un backup permettrait d’identifier le problème.

ok qu’est ce que je doit faire exactement ? je copie tout le repository du nœud duniter ? avec le répertoire de config correspondant ?

Si tu as la web UI, tu vas dans Settings > Backup > Export.

Sinon, tu sauvegardes le contenu du dossier .config/duniter/<nom_bdd>/, en prenant soin d’exclure le fichier conf.json qui contient ta clé privée. Par défaut, c’est le dossier .config/duniter/duniter_default/ qui est utilisé.

1 Like

https://ifee.fr/pub/duniter2.elois.tar.bz2

Je regarde cela demain, merci !

1 Like

J’ai testé ce backup, et le nœud est déjà sur la branche principale et se raccroche au bloc courant sans problème.

Si tu essayes de le redémarrer, suit-il ce comportement ?

J’ai eu de nouveau le même problème aujourd’hui au bloc 3613, tjr avec mon nœud n°2, je viens de refaire une backup puis de réinstaller entièrement mon 2ème nœud pour voir si ça résout le problème !
https://ifee.fr/pub/duniter2.elois.backup2.tar.bz21