backups not possible when node is only

Aperta
#237 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
aws, javascript, node.js
Ambito
backend, databases

Direzione di ricerca

Inizia riproducendo il fallimento del ripristino dello snapshot AWS e leggendo ocore/storage.js intorno alla riga 1685, insieme alle voci dello stack di kvstore.js e levelup mostrate nel report. Traccia il modo in cui il database ripristinato gestisce l’unità mancante e considera completata l’issue quando un node riavviato da un backup completo automatico non fallisce più con un missing-unit error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

To be able to recover a full node fast and easy, if would be nice to allow full backups in an automatic way: Creating disc snapshots instead of application / database backups.

I tried this on AWS with automated backups , which creates backups while the vm is running.

Trying to relaunch the node from such a backup leads to the following errors

Error: unit not found: RWxLmESDr7........B1nFk/ljbKQ=
    at Object.ifNotFound (/home/obyte/obyte-hub/node_modules/ocore/storage.js:1685:13)
    at /home/obyte/obyte-hub/node_modules/ocore/storage.js:54:21
    at /home/obyte/obyte-hub/node_modules/ocore/kvstore.js:30:13
    at /home/obyte/obyte-hub/node_modules/levelup/lib/levelup.js:164:14
    at /home/obyte/obyte-hub/node_modules/encoding-down/index.js:51:21
(node:3467) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 ready listeners added. Use emitter.setMaxListeners() to increase limit
/home/obyte/obyte-hub/node_modules/ocore/storage.js:1685
                        throw Error("unit not found: "+row.unit);

Probably the obyte core is not able to deal with small database inconsistencies?

Lingua principale
JavaScript
Stelle
149
Fork
120
Merge medio
2h 5m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di byteball/ocore

Tutte le issue di byteball/ocore

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.