Skip to content

There are no working instructions to update the database #10371

@nomonkeynodeal

Description

@nomonkeynodeal

I tried updating, following the instructions to delete /db and db.version, adding checkpoint-sync-url. This resulted in:

java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "tech.pegasys.teku.storage.server.metadata.V6DatabaseMetadata$SingleDBMetadata.getConfiguration()" because the return value of "tech.pegasys.teku.storage.server.metadata.V6DatabaseMetadata.getSingleDbConfiguration()" is null

Perplexity is telling me the instructions are wrong and I have to resync? What is the actual way to update?

It specifically says that it requires the checkpoint-sync-url or initial-state or it won't create the new database.

WRONG ORDER (what instructions told you):

  1. Delete db/ + db.version
  2. Add checkpoint-sync-url
  3. Restart → CRASH (null metadata during DB creation)

CORRECT ORDER:

  1. Delete db/ + db.version
  2. Restart WITHOUT checkpoint-sync-url → Teku would error "missing checkpoint"
  3. Teku needs checkpoint FIRST for new DB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions