Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add repair functionality for archive and indexer nodes #1114

Closed
olehnikolaiev opened this issue Oct 9, 2024 · 1 comment · Fixed by skalenetwork/node-cli#787, skalenetwork/node-cli#788 or skalenetwork/node-cli#789
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@olehnikolaiev
Copy link
Contributor

to make snapshot downloading easier on archive and indexer nodes we need support of repair functionality for these types of nodes. in details, cli command skale schain repair --no-snapshot-majority should be supported on archive and indexer nodes

@oleksandrSydorenkoJ
Copy link

Verified pn Legacy network

Exited (200) 23 minutes ago             skale_schain_black-spherical-graffias
2024-11-07 19:00:15.924766   FATAL STATE ROOT MISMATCH ERROR: current state root 32850266053400104199903004961338331573212038881612506956084650222279401989147 is not equal to arrived state root 84535759767856942336915094297786613834963007407141836686681143671087607070439 with block ID #1760134, /data_dir cleanup is recommended, exiting with code 200...
skale sync-node repair  --snapshot-from --archive --historic-state
Are you sure you want to start sync node from empty database? [y/N]: y
2024-11-07 19:24:49,946 - INFO - Stopping container: skale_sync_admin, timeout: 60
2024-11-07 19:24:49,964 - INFO - Stopping container: skale_schain_black-spherical-graffias, timeout: 20
2024-11-07 19:24:49,964 - INFO - Going to backup container logs: skale_schain_black-spherical-graffias
2024-11-07 19:24:50,087 - INFO - Old container logs saved to /root/.skale/node_data/log/.removed_containers/skale_schain_black-spherical-graffias-0.log, tail: 10000
2024-11-07 19:24:50,087 - INFO - Removing container: skale_schain_black-spherical-graffias, kwargs: {}
2024-11-07 19:24:50,094 - INFO - Container removed: skale_schain_black-spherical-graffias
2024-11-07 19:24:50,094 - INFO - Updating node options
2024-11-07 19:24:50,094 - INFO - Removing regular folders
2024-11-07 19:24:50,233 - INFO - Removing subvolumes
2024-11-07 19:24:50,301 - INFO - Cleaning up snapshots folder
2024-11-07 19:24:52,856 - INFO - Updating node options
2024-11-07 19:24:52,857 - INFO - Updating cli status
2024-11-07 19:24:52,866 - INFO - Starting container skale_sync_admin
2024-11-07 19:24:52,978 - INFO - Schain was started from scratch

@EvgeniyZZ EvgeniyZZ moved this from QA to Done in SKALE Engineering 🚀 Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment