Sync failed with error "Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory"

Sur ma machine avec 1 Go de libre, il m’est impossible de synchroniser, la ram sature autour de 50 % de la synchronisation. Ce que je fais, c’est une copie des données d’un nœud Duniter synchronisé vers cette machine ram en difficulté. Je vous laisse adapter les chemins et l’hôte ssh :

cd $HOME/.config/duniter_default/duniter
tar cavf duniter-g1-time-date.tar.gz data duniter.db g1 peers.db txs.db
rsync -avh --progress duniter-g1-time-date.tar.gz yuno-host

# Pour YunoHost
ssh yuno-host
sudo -i
cd /home/yunohost.app/duniter/duniter_default/
tar xvf duniter-g1-time-date.tar.gz
chown -r duniter: *
systemctl start duniter

Il faut généralement pas trop trainer pour ces étapes. J’ai des fois un problème pour démarrer le service. Surement, dû aux droits. Autrement, le nœud rattrape les blocs qui lui manque une fois s’être connecté aux autres nœuds via WS2P. Donc, ça fonctionne comme hack. Après, il faut avoir un autre nœud synchronisé.

1 Like

Sur Matrix Westbam à réussi à syncro son noeud duniter sur yunohost sur une machine avec 8Go. Il à limité la synchro à 5Go d’utilisation de RAM et avec l utilisateur duniter avec cette commande:

sudo su - duniter -c "NODE_OPTIONS=--max-old-space-size=5120 duniter --home /home/yunohost.app/duniter sync g1.duniter.org"
1 Like

Nouvel essai :

guenoel@debian ~/duniter % su -c "NODE_OPTIONS=--max-old-space-size=5120 ./target/release/duniter sync g1.duniter.org"

Progress:

Milestones:   [||||||||||||||||||||] 100 %
Download:     [|||||||||||||||||   ] 88 %
Apply:        [|||||||||||||||||   ] 87 %
Sandbox:      [                    ] 0 %
Peers:        [                    ] 0 %

Status: Peers...
Message from syslogd@debian at Jun  5 00:39:56 ...
 kernel:[223883.449828] NMI watchdog: BUG: soft lockup - CPU#1 stuck for 22s! [Socket Thread:6455]

J’ai pas tout collé mais au total il y 117 PID ! C’est normal ?

htop

  1  [||                                                                                      1.3%]   Tasks: 122, 451 thr; 3 running
  2  [                                                                                        0.0%]   Load average: 92.78 90.57 89.85
  3  [                                                                                        0.0%]   Uptime: 3 days, 07:59:13
  4  [                                                                                        0.0%]
  Mem[|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||10.7G/15.7G]
  Swp[||||||||||||                                                                      386M/3.00G]

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
17646 root       20   0 12.9G 10.5G  442M R  0.0 67.3  9h19:33 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17707 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1h45:41 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17657 root       20   0 12.9G 10.5G  442M S  0.0 67.3 35:12.98 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17659 root       20   0 12.9G 10.5G  442M S  0.0 67.3 34:29.57 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17658 root       20   0 12.9G 10.5G  442M S  0.0 67.3 34:21.75 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17656 root       20   0 12.9G 10.5G  442M S  0.0 67.3 33:31.65 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17674 root       20   0 12.9G 10.5G  442M S  0.0 67.3  9:44.70 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17684 root       20   0 12.9G 10.5G  442M S  0.0 67.3  8:33.80 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17685 root       20   0 12.9G 10.5G  442M S  0.0 67.3  8:23.51 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17672 root       20   0 12.9G 10.5G  442M S  0.0 67.3  7:25.01 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17651 root       20   0 12.9G 10.5G  442M S  0.0 67.3  5:04.33 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17648 root       20   0 12.9G 10.5G  442M S  0.0 67.3  5:02.29 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17650 root       20   0 12.9G 10.5G  442M S  0.0 67.3  4:51.18 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17649 root       20   0 12.9G 10.5G  442M S  0.0 67.3  4:49.17 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17948 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:12.85 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17736 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:10.08 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17805 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:08.99 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17795 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:08.68 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17813 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:08.51 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17796 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:08.20 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
18017 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:07.82 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17804 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:07.54 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17664 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:07.04 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17788 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:06.15 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17810 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:05.95 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17817 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:05.98 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17711 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:05.68 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
18090 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:05.66 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17923 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:05.29 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17852 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:05.15 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17851 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:04.99 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17663 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:04.96 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17821 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:04.90 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17847 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:04.72 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17905 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:04.86 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17730 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:04.68 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17816 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:04.66 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
18021 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:04.58 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17949 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:04.51 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17762 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:04.31 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17755 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:04.25 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17792 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:04.14 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17913 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:04.10 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17667 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:04.04 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17712 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:03.73 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17758 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:03.36 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17773 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:03.30 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17844 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:03.19 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17837 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:03.11 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17791 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:03.11 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
18043 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:02.89 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17716 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:02.78 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17858 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:02.77 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17809 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:02.75 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17763 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:02.68 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17710 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:02.70 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17759 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:02.50 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
18006 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:02.41 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17770 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:02.36 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17666 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:02.28 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17797 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:02.06 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17921 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:02.01 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17668 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:01.86 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17719 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:01.84 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17926 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:01.68 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17925 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:01.66 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17768 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:01.55 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17907 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:01.53 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17662 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:01.31 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17715 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:01.25 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
17883 root       20   0 12.9G 10.5G  442M D  0.0 67.3  1:01.01 node --max-old-space-size=4096 bin/duniter_js --loglevel info sync g1.duniter.org:443
...
...

05/06/2023
Finalement après de nombreux essai, j’ai fini par terminer une synchro avec la même commande. Je viens de lancer mon noeud.

06/06/2023
Je suis au bloc 632 629 ça synchronise pas. J ai du mettre trop de temps pour lancer mon noeud. Je dois recommencer une synchro depuis le début ?

1 Like

Bonjour à tous,

J’ai le même problème, je fais tourner duniter serveur 1.8.6 sur linux mint.
Plusieurs tentatives de synchro via la commande “duniter sync g1.duniter.org” me renvoient un problème de manque de mémoire.

J’ai essayé avec la commande “NODE_OPTIONS=–max-old-space-size=8192”, même résultat :

Milestones:   [||||||||||||||||||||] 100 %
Download:     [||||||||||||||||||| ] 98 %
Apply:        [||||||||||||||||||| ] 96 %
Sandbox:      [                    ] 0 %
Peers:        [                    ] 0 %

Status: GOT chunck #2477/2531 from 619250 to 619499 on peer g1.duniter.org
<--- Last few GCs --->

[50930:0x33e38b0] 11395940 ms: Scavenge 1326.3 (1435.1) -> 1314.0 (1436.1) MB, 4.1 / 0.0 ms  (average mu = 0.387, current mu = 0.384) allocation failure 
[50930:0x33e38b0] 11395992 ms: Scavenge 1327.9 (1436.1) -> 1315.6 (1437.6) MB, 4.0 / 0.0 ms  (average mu = 0.387, current mu = 0.384) allocation failure 
[50930:0x33e38b0] 11396045 ms: Scavenge 1329.6 (1437.6) -> 1317.4 (1439.1) MB, 4.2 / 0.0 ms  (average mu = 0.387, current mu = 0.384) allocation failure 


<--- JS stacktrace --->

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

Security context: 0x160281d1e6c1 <JSObject>
    0: builtin exit frame: stringify(this=0x160281d119f9 <Object map = 0x3cd5563842a9>,0x13c69ac826f1 <undefined>,0x13c69ac826f1 <undefined>,0x304531b0bf39 <Object map = 0x3f1b9177e539>,0x160281d119f9 <Object map = 0x3cd5563842a9>)

    1: arguments adaptor frame: 1->3
    2: put [0x321685a51149] [/opt/duniter/app/lib/dal/indexDAL/leveldb/LevelDBTable.js:~35] [pc=0x436f5dfca42](this=0x1b24575fdb...

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: 0x1206a95 v8::internal::IncrementalStringBuilder::Extend() [/opt/duniter//node/bin/node]
13: 0xfcb2cf v8::internal::JsonStringifier::Result v8::internal::JsonStringifier::Serialize_<true>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [/opt/duniter//node/bin/node]
14: 0xfd01bd v8::internal::JsonStringifier::Result v8::internal::JsonStringifier::Serialize_<false>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [/opt/duniter//node/bin/node]
15: 0xfcd70a v8::internal::JsonStringifier::Result v8::internal::JsonStringifier::Serialize_<true>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [/opt/duniter//node/bin/node]
16: 0xfd01bd v8::internal::JsonStringifier::Result v8::internal::JsonStringifier::Serialize_<false>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [/opt/duniter//node/bin/node]
17: 0xfd0f19 v8::internal::JsonStringifier::Stringify(v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>) [/opt/duniter//node/bin/node]
18: 0xbd7cf1 v8::internal::Builtin_JsonStringify(int, v8::internal::Object**, v8::internal::Isolate*) [/opt/duniter//node/bin/node]
19: 0x436f39dbf7d 
/usr/bin/duniter : ligne 15 : 50930 Abandon                 (core dumped) $NODE "$DUNITER_DIR/bin/duniter" "$@"

Je suis en train de synchroniser avec la commande “NODE_OPTIONS=–max-old-space-size=8192 duniter sync g1.duniter.org
On va voir ce que ça donne.

Edit : le résultat est le même que précédemment :thinking:

Bon, je pense que je vais abandonner la synchronisation sous Yunohost tant qu’il n’y aura pas une nouvelle mise à jour de Duniter…
j’ai refait une énième synchronisation, elles est allée au bout, mais pour autant lorsque je lance la webadmin, je suis toujours en retard de bloc en date du 30/01/2023…
Il y a vraiment un soucis important car plus le temps passe et plus nous sommes nombreux à ne plus arriver à synchroniser nos noeuds duniter.

1 Like

Quelle version utilisez vous ? 1.8 ou 1.9 ?

Y a t’il une différence pour la synchro ?

J’utilise la version 1.8.5

J’avais pas vu tout ces échanges. J’en suis rendu à 93 % à nouveau, on va bien voir si ça échoue à nouveau, pourtant, j’ai 11 Go de libre.
Je suis sous Yunohost, si je dois relancer, la commande à tester est?
sudo su - duniter -c "NODE_OPTIONS=--max-old-space-size=8192 duniter --home \$HOME sync g1.duniter.org" && sudo systemctl start duniter
n’est-ce pas?

2 Likes

Bonsoir à tous, j’ai finalement désinstallé la version 1.8.6 serveur et installé la 1.8.5 serveur.
La synchro s’est bien passé, le noeud semble tourner correctement…

@cgeek ce n’est pas la version 1.8.6 qui a introduit LevelDB ?

Pour info, j’ai commencé une mise à jour vers node 20 et LevelDB. Plus que quelques tests qui ne passent pas.

1 Like

Salut à tous,
Pour ceux qui sont sous yunohost avec l’app duniter de leur catalogue.
Voici en détails ce qu’il faut faire.
Dans un premier temps, si vous n’avez pas beaucoup de RAM de libre sur votre serveur pour la synchro, il ne faut pas la lancer avec l’interface graphique. Car en passant par la, que la synchro soit compléte ou pas, le script démarre le serveur duniter, c’est pour cela que vous vous retrouver avec une synchro en début d’année.
Attention la synchro est longue (plusieurs heures) en fonction de votre machine et de votre connexion internet. Je vous conseille lancer la commande dans une session screen pour la laisser tourner en tâche de fond et la reprendre de temps en temps pour voir le résultat.
Pour le reste, le mieux est de faire ainsi :

  • connectez vous en SSH sur votre serveur
  • stopper le serveur duniter : sudo systemctl start duniter
  • stopper tout vos services et apps qui ne vous servent pas, surtout les plus gourmands
  • lancer la commande : free -h (permet de voir la quantité de mémoire dispo)
  • lancer la synchro avec la commande suivante et patientez :
    sudo su - duniter -c “NODE_OPTIONS=–max-old-space-size=5120 duniter --home /home/yunohost.app/duniter sync g1.duniter.org
  • la variable --max-old-space-size=5120 indique la quantité de mémoire que j’ai de dispo pour la synchro.
  • la commande free -h m’a dit 6Go de dispo j’ai indiqué un peu moins 5120 correspond à 5Go pour tranquille/
  • une fois la synchro terminée vous pouvez demarrer le serveur duniter : sudo systemctl start duniter

SURTOUT ne lancez pas de commande : duniter sync g1.duniter.org directement en tant que root ou sans avoir renseigner la valeur de --home car cela va demarrer une deuxieme instance du serveur duniter qui n’aura aucun lien avec l’interface web.

voili voilou

6 Likes

Non c’est la 1.7.

La 1.8 a introduit la migration d’une partie du code vers Rust.

1 Like

J’ai essayé une synchro en RAM avec 1.8.6, avec 6 Go de libres, et un profileur d’allocation (mevi). (Ryzen 7 2700X)

De temps en temps il monte de quelques dizaines de Mo en quelques secondes puis stagne pendant plusieurs minutes. J’ai atteint 500 Mo et puis à un moment où je ne regardais pas il a planté à 96/98% avec la même erreur que le titre du topic.

Edit : si la synchro plante même sur une machine bien plus puissante qu’un RPi, il faudrait privilégier le téléchargement des bdd comme méthode de synchro.

2 Likes

Salut,
suite à ton tuto, malgré mon désespoir après x tentatives de re-synchroniser mon noeud infructueuses, je me suis lancé et YES ! Mon noeud est reparti comme il faut cette fois-ci ! Ouf :sweat_smile:
En fait j’arrêtais le noeud uniquement avec la commande duniter stop au lieu de sudo systemctl stop duniter… enfin bref… cette fois, le noeud est bien synchronisé à la bonne date et au bon numéro de bloc, MERCI :slight_smile:
Maintenant je vais m’attaquer au tuto de @HugoTrentesaux en vidéo pour installer un noeud gdev pour la V2S, encore une autre histoire !

2 Likes

Bon la joie de revoir mon noeud en route a été de courte durée puisqu’il c’est re-désynchronisé hier…
Là je rencontre un nouveau souci, lorsque je lance la synchro de la même manière dont j’ai procédé l’autre jour, le noeud ne démarre pas du tout la synchro, tout reste à 0% avec un message d’erreur déjà vu il me semble sur d’autres posts, voir capture d’écran =>
Edit, j’ai fait un reset data au cas où mais cela ne change rien au problème…

Yep Francis, j’ai abandonné Duniter sous Yunohost également, j’ai changé de VPS puis avec Docker ca roulle pour l’instant

1 Like