Impossible de synchroniser mon noeud Duniter V1

Bonjour,

J’espère que mon sujet ne fait pas doublon !?

Depuis une semaine, mon nœud (1.8.6) s’est désynchronisé.
Comme je n’arrivais pas à le re-synchroniser, j’ai réinstallé la nouvelle version en 1.8.7.

Cependant, la synchronisation par l’interface graphique n’arrive jamais au bout. J’ai donc essayé avec le script de synchronisation dans la RAM (j’ai 8Go), mais les résultats sont identiques : ça n’arrive pas au bout … :roll_eyes:

Une idée pour synchroniser mon noeud ? Ou la block-chain est elle trop lourde et il vaut mieux que j’attende la V2 ?

Merci :slight_smile:

1 Like

En fouillant sur le forum, je suis tombé là dessus :
https://forum.duniter.org/t/astuce-pour-etre-prevenu-des-que-votre-noeud-sarrete/6139/4

Du coup, je fais un essai avec le script qui me relance Duniter désactivé, dans le cron … Quel boulet … lol

[EDIT] Bon, la synchro n’est pas arrivée au bout … :roll_eyes:

Voici les logs

Progress:



Milestones:   [||||||||||||||||||||] 100 %

Download:     [||||||||||||||||||| ] 95 %

Apply:        [||||||||||||||||||  ] 94 %

Sandbox:      [                    ] 0 %

Peers:        [                    ] 0 %



Status: GOT chunk #2464/2583 from 616000 to 616249 on peer g1.cloud-libre.eu

<--- Last few GCs --->



[7324:0x2eef9f0] 18935524 ms: Scavenge 1339.9 (1411.6) -> 1339.1 (1411.6) MB, 12.1 / 0.0 ms  (average mu = 0.365, current mu = 0.359) allocation failure 

[7324:0x2eef9f0] 18935580 ms: Scavenge 1339.9 (1411.6) -> 1339.1 (1411.6) MB, 25.5 / 0.0 ms  (average mu = 0.365, current mu = 0.359) allocation failure 

[7324:0x2eef9f0] 18935623 ms: Scavenge 1340.0 (1411.6) -> 1339.2 (1411.6) MB, 16.3 / 0.0 ms  (average mu = 0.365, current mu = 0.359) allocation failure 





<--- JS stacktrace --->



==== JS stack trace =========================================



    0: ExitFrame [pc: 0x24fb0eadbe1d]

Security context: 0x0d93fbb1e6c1 <JSObject>

    1: /* anonymous */(aka /* anonymous */) [0x2b9ce52a1c19] [/opt/duniter/app/lib/indexer.js:~1772] [pc=0x24fb14ef5f62](this=0x26019a5826f1 <undefined>,value=0x2b9ce529dbf9 <JSArray[1]>)

    2: arguments adaptor frame: 3->1

    3: map [0xd93fbb06e39](this=0x2b9ce52a1bf9 <JSArray[57]>,0x2b9ce52a1c19 <JSFunction underscore_1.Underscore.values.map (sfi = 0x27a...



FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

 1: 0x8fb090 node::Abort() [/opt/duniter//node/bin/node]

 2: 0x8fb0dc  [/opt/duniter//node/bin/node]

 3: 0xb031ce v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/opt/duniter//node/bin/node]

 4: 0xb03404 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/opt/duniter//node/bin/node]

 5: 0xef7462  [/opt/duniter//node/bin/node]

 6: 0xef7568 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [/opt/duniter//node/bin/node]

 7: 0xf03642 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/opt/duniter//node/bin/node]

 8: 0xf03f74 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/opt/duniter//node/bin/node]

 9: 0xf053af v8::internal::Heap::HandleGCRequest() [/opt/duniter//node/bin/node]

10: 0xea472a v8::internal::StackGuard::HandleInterrupts() [/opt/duniter//node/bin/node]

11: 0x1170125 v8::internal::Runtime_StackGuard(int, v8::internal::Object**, v8::internal::Isolate*) [/opt/duniter//node/bin/node]

12: 0x24fb0eadbe1d 

/usr/bin/duniter : ligne 15 :  7324 Abandon                 (core dumped) $NODE "$DUNITER_DIR/bin/duniter" "$@"

2023-07-22T21:00:00+02:00 - debug: Plugging file system...

2023-07-22T21:00:00+02:00 - debug: Loading conf...

2023-07-22T21:00:00+02:00 - debug: Configuration saved.

2023-07-22T21:00:01+02:00 - warn: Data successfully reseted.

Ça ressemble fort à un souci de mémoire. Peux-tu essayer cette astuce ?

Oui, j’ai aussi cette impression … pourtant, j’ai 8Go, sur ce portable … :roll_eyes:

Merci !
J’ai tapé la commande

export NODE_OPTIONS=--max-old-space-size=8192

dans un terminal et j’ai lancé une synchro …

Cependant, est-ce que je n’aurais pas dû mettre moins ? Genre

export NODE_OPTIONS=--max-old-space-size=5120

Pour l’instant, j’ai ça :

Progress:



Milestones:   [||||||||||||||||||||] 100 %

Download:     [||||||||||||||||    ] 82 %

Apply:        [||||||||||||||||    ] 81 %

Sandbox:      [                    ] 0 %

Peers:        [                    ] 0 %



Status: GOT chunk #2131/2584 from 532750 to 532999 on peer duniter.pini.fr

ri.frg.frenersExceededWarning: Possible EventEmitter memory leak detected. 11 pipe listeners added. Use emitter.setMaxListeners() to increase limit

Alors, ça semble avoir fonctionné :hugs:

Progress:



Milestones:   [||||||||||||||||||||] 100 %

Download:     [||||||||||||||||||||] 100 %

Apply:        [||||||||||||||||||||] 100 %

Sandbox:      [                    ] 0 %

Peers:        [||||||||||||||||||||] 100 %



Status: Peer 5jnQuUd9vu4rB5VrJeDiTbsQ9k1Y1Wz5JcTikrEUFYjL

All done in 23836.720 seconds. Possible EventEmitter memory leak detected. 11 pi2023-07-23T17:20:46+02:00 - debug: Plugging file system...ase limit

2023-07-23T17:20:46+02:00 - debug: Loading conf...

2023-07-23T17:20:46+02:00 - debug: Configuration saved.

2023-07-23T17:20:47+02:00 - warn: Data successfully reseted.

J’ai quelques blocs de retard, mais on dirait que ça tourne … :grin:

Merci @Pini !!

2 Likes

Pour compenser rapidement les blocs en retard (si jamais tu vois que ça ne bouge pas dans les logs) il suffit de redémarrer le noeud. Ça devrait rattraper ensuite.

Ah oui, il est bloqué à une centaine de blocs … J’essaie ça de suite :grin:

[EDIT] J"ai donc fait un

duniter webrestart

Le noeud tourne mais j’ai l’impression qu’il ne se connecte à aucun “pairs” … :roll_eyes:

[EDIT2]

2023-07-23T20:02:59+02:00 info Matched 5 zeros 00000C43C421632202B3AFD17E867F62D5D670AAD09B318717632B1626538A98 with Nonce = 10100001097933 for block#646066 by FEcfFy

2023-07-23T20:03:50+02:00 info Matched 5 zeros 00000775540748918382A9139851F2FA84174214F5C0AE4040272BFEBD7E9FA4 with Nonce = 10200001386423 for block#646066 by FEcfFy

2023-07-23T20:04:53+02:00 info Matched 5 zeros 0000092608BE2CA45C4D2AF587BACDC568320D0E3D089B7CA07241F5D1D2B728 with Nonce = 10100001915683 for block#646066 by FEcfFy

2023-07-23T20:08:52+02:00 info Block resolution: 1 potential blocks after current#646065...

2023-07-23T20:08:53+02:00 error 

2023-07-23T20:08:53+02:00 info Block resolution: 1 potential blocks after current#646065...

2023-07-23T20:08:53+02:00 error 

2023-07-23T20:13:48+02:00 info Matched 5 zeros 00000F3B5DCD33D253BA740A8524A5EEEDE20572A425335D555332608CF04461 with Nonce = 10100004928360 for block#646066 by FEcfFy

2023-07-23T20:15:51+02:00 info Matched 5 zeros 0000051B40D6AB9ED407C8087FF779C64746D8AC2D3C1F2FF55C9393EE3005AB with Nonce = 10200005762611 for block#646066 by FEcfFy

2023-07-23T20:16:24+02:00 error Error: timeout
    at Timeout._onTimeout (/opt/duniter/node_modules/nat-upnp/lib/nat-upnp/client.js:187:14)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)

2023-07-23T20:16:38+02:00 info Sibling endpoints:

2023-07-23T20:16:48+02:00 error Error: timeout
    at Timeout._onTimeout (/opt/duniter/node_modules/nat-upnp/lib/nat-upnp/client.js:187:14)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)

2023-07-23T20:17:22+02:00 info Matched 5 zeros 00000745B5DB15CB14F92C1AB4C6D015D4D239C046304F3CD7BA8549C87C8DC2 with Nonce = 10200006169203 for block#646066 by FEcfFy

2023-07-23T20:18:52+02:00 info Block resolution: 1 potential blocks after current#646065...

2023-07-23T20:18:53+02:00 error 

2023-07-23T20:18:53+02:00 info Block resolution: 1 potential blocks after current#646065...

2023-07-23T20:18:54+02:00 error 

2023-07-23T20:19:47+02:00 info Matched 5 zeros 00000C4CBE2CA5110E08876045C636E632F141153D0FB46B279DE4470E61B434 with Nonce = 10200006708704 for block#646066 by FEcfFy

Dans ce cas je tente de redémarrer plusieures fois, et si ça ne marche pas je recommence tout avec synchro complète.

Et si ça ne marche toujours pas, au bout de deux ou trois essais, ben je ne sais pas :confused:

J’ai relancé une synchro cette nuit, avec la commande :

export NODE_OPTIONS=--max-old-space-size=6144

J’ai redémarré le noeud plusieurs fois, mais il reste bloqué au bloc 646218 … :roll_eyes:

On atteint mes limites de compétences. Désolé :confused:

Merci pour tous tes conseils ! J’ai pu avancer un peu :sweat_smile: :wink:

Pour faire suite, et fin j’espère :sweat_smile: , j’ai donc fait ceci :

export NODE_OPTIONS=--max-old-space-size=5120

Puis :

duniter sync g1.cgeek.fr

Ça a duré super longtemps …
Puis :

duniter webrestart

Ouais, parce que je suis faignant :stuck_out_tongue_winking_eye: et le serveur a raccroché :hugs:
Merci pour tout !! :wink:

5 Likes

Bravo pour ta persévérance !
Et le partage de ta réussite !

Bonjour,

J’ai également une erreur lorsque je fais une synchro (première installation de Duniter) à 96% de téléchargement et 94% appliqué.

j’ai d’autres screenshots mais comme je suis nouveau je peux pas les mettre dans le même message.

Au moment où ça a crashé, je crois que j’étais à 3Go de ram de consommation au total, sachant que ça tourne sur une VM avec un coeur i7 11700 et 30Go (c’était au cas où) de ram disponible pour la VM.
Je suis en 1.8.7rc4 et Linux Mint (je ne sais plus quelle version mais elle date à peu près d’un mois)

Bonjour @MikaPac oui, c’est un pb mémoire. Cf les posts ci-dessus pour savoir comment augmenter. a+

[quote=“Frederic_LASSAVE, post:4, topic:11427”] au lieu de
export NODE_OPTIONS=--max-old-space-size=8192
[/quote]

ça marche avec la commande export NODE_OPTIONS=–max-old-space-size=8192

Merci kimamila :blush:

Par contre maintenant je bloque sur l’accès au noeud… Je l’ai lancé en webstart, j’ai configuré le port 10901, et impossible d’y accéder en localhost avec firefox. → correction, j’essayais avec le port 10901 au lieu de 9220… par contre, il ne le trouve pas quand je l’indique dans l’appli cesium. → bizarrement je viens de voir que ça fonctionne dans l’extension cesium de chromium… je vais voir par après si ça fonctionne dans l’appli → bon impossible de me connecter à mon noeud dans l’appli android (il me jette direct en m’indiquant que mon noeud est inaccessible), problème que je n’ai pas depuis l’extension chromium.

l’adresse de mon noeud : pac.mikapac.be:10901 (pas de SSL)

Sync KO !!! Que faire, docteur ?
Status: GOT chunk #2474/2602 from 618500 to 618749 on peer g1.le-sou.org
<— Last few GCs —>

[512112:0x3969900] 22852466 ms: Mark-sweep 1350.0 (1439.6) → 1333.5 (1439.6) MB, 2586.8 / 10.8 ms (average mu = 0.256, current mu = 0.156) allocation failure scavenge might not succeed
[512112:0x3969900] 22855413 ms: Mark-sweep 1350.3 (1439.6) → 1333.5 (1439.6) MB, 2521.4 / 2.4 ms (average mu = 0.204, current mu = 0.144) allocation failure scavenge might not succeed

<— JS stacktrace —>

==== JS stack trace =========================================

0: ExitFrame [pc: 0x4a136855941]

Security context: 0x374b9d31e6c1
1: toString [0x24b1264a0651] [buffer.js:~643] [pc=0x4a13b689d56](this=0x109016a8e311 ,encoding=0x1258f93826f1 ,start=0x1258f93826f1 ,end=0x1258f93826f1 )
2: arguments adaptor frame: 0->3
3: InternalFrame [pc: 0x4a13678ee75]
4: EntryFrame [pc: 0x4a1367892c1]
5: ExitFrame [pc: …

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0x8fb090 node::Abort() [/opt/duniter//node/bin/node]
2: 0x8fb0dc [/opt/duniter//node/bin/node]
3: 0xb031ce v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/opt/duniter//node/bin/node]
4: 0xb03404 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/opt/duniter//node/bin/node]
5: 0xef7462 [/opt/duniter//node/bin/node]
6: 0xef7568 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [/opt/duniter//node/bin/node]
7: 0xf03642 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/opt/duniter//node/bin/node]
8: 0xf03f74 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/opt/duniter//node/bin/node]
9: 0xf06be1 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/opt/duniter//node/bin/node]
10: 0xeceec5 [/opt/duniter//node/bin/node]
11: 0xed673a v8::internal::factory::NewRawOneByteString(int, v8::internal::PretenureFlag) [/opt/duniter//node/bin/node]
12: 0xed6a4b v8::internal::factory::NewStringFromOneByte(v8::internal::Vector, v8::internal::PretenureFlag) [/opt/duniter//node/bin/node]
13: 0xed749d v8::internal::factory::NewStringFromUtf8(v8::internal::Vector, v8::internal::PretenureFlag) [/opt/duniter//node/bin/node]
14: 0xb11129 v8::String::NewFromUtf8(v8::Isolate*, char const*, v8::NewStringType, int) [/opt/duniter//node/bin/node]
15: 0x9c37e8 node::StringBytes::Encode(v8::Isolate*, char const*, unsigned long, node::encoding, v8::Localv8::Value*) [/opt/duniter//node/bin/node]
16: 0x9177a0 [/opt/duniter//node/bin/node]
17: 0x4a136855941
/usr/bin/duniter : ligne 15 : 512112 Abandon (core dumped) $NODE “DUNITER_DIR/bin/duniter" "@”

refaire une synchro en baissant la valeur size par exemple a 4096
export NODE_OPTIONS=–max-old-space-size=4096
et
duniter sync noeud.host --nointeractive

ici ca s est synchro comme ca avec 8go de ram

1 Like

C’est lancé … A+ pour +
Lancée à 16h55, la synchro est toujours en cours (22h16)