Skip to content

Cluster edit and asdb management scripts#422

Open
pinebit wants to merge 15 commits intomainfrom
pinebit/script-replace-operator
Open

Cluster edit and asdb management scripts#422
pinebit wants to merge 15 commits intomainfrom
pinebit/script-replace-operator

Conversation

@pinebit
Copy link
Contributor

@pinebit pinebit commented Feb 11, 2026

Cluster Edit Scripts

  • All edit operations (script/edit/)
  • Anti-Slashing Database Scripts (scripts/edit/vc/)
  • Corresponding Claude Skills

# Export slashing protection data from the container
# The container writes to /tmp/export.json, then we copy it out
# Using full path to lodestar binary as found in run.sh to ensure it's found
if ! docker compose exec -T vc-lodestar node /usr/app/packages/cli/bin/lodestar validator slashing-protection export \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this point, I believe a running lodestar will have a lock on the database file and not allow export right?

 ✖ Error: Database already in use by another process
    at LevelDbController.create (file:///usr/app/packages/db/src/controller/level.ts:58:15)
    at processTicksAndRejections (node:internal/process/task_queues:103:5)
    at getSlashingProtection (file:///usr/app/packages/cli/src/cmds/validator/slashingProtection/utils.ts:23:14)
    at Object.handler (file:///usr/app/packages/cli/src/cmds/validator/slashingProtection/export.ts:66:46)

Error: Failed to export slashing protection from vc-lodestar container

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Export requires VC to be running by design. Weird error.. I need to double check this.

@pinebit pinebit changed the title Scripts for replace-operator and asdb management Cluster edit and asdb management scripts Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments