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

Peers.dat database corruption #318

Open
peerchemist opened this issue Nov 2, 2022 · 0 comments
Open

Peers.dat database corruption #318

peerchemist opened this issue Nov 2, 2022 · 0 comments

Comments

@peerchemist
Copy link

java -jar /opt/v-systems/bin/v-systems.jar /v-systems.conf

2022-11-02 08:25:58 INFO  [main] vsys.Application$ - Starting...
2022-11-02 08:25:59 INFO  [main] kamon.Kamon$Instance - Initializing Kamon...
2022-11-02 08:26:00 INFO  [lt-dispatcher-2] a.event.slf4j.Slf4jLogger - Slf4jLogger started
2022-11-02 08:26:00 INFO  [main] vsys.Application$ - VSYS Core v0.4.2 Blockchain Id: M
2022-11-02 08:26:00 INFO  [main] v.b.s.BlockchainUpdaterImpl - Constructing BlockchainUpdaterImpl, total blocks: 30888191, persisted: 30884591, topMemDiff: 0, bottomMemDiff: 0
2022-11-02 08:26:00 INFO  [main] v.b.s.BlockchainUpdaterImpl - State rebuild started, total blocks: 30888191, persisted: 30884591, topMemDiff: 0, bottomMemDiff: 0
2022-11-02 08:26:04 INFO  [main] v.b.s.BlockchainUpdaterImpl - State rebuild finished, total blocks: 30888191, persisted: 30884591, topMemDiff: 0, bottomMemDiff: 3600
2022-11-02 08:26:05 ERROR [main] v.actor.RootActorSystem$ - Error while initializing actor system vsys
java.lang.IllegalArgumentException: Unknown version 70120405 [1.4.196/0]
	at org.h2.mvstore.DataUtils.newIllegalArgumentException(DataUtils.java:728)
	at org.h2.mvstore.DataUtils.checkArgument(DataUtils.java:715)
	at org.h2.mvstore.MVStore.rollbackTo(MVStore.java:2282)
	at org.h2.mvstore.MVStore.verifyLastChunks(MVStore.java:758)
	at org.h2.mvstore.MVStore.readStoreHeader(MVStore.java:678)
	at org.h2.mvstore.MVStore.<init>(MVStore.java:358)
	at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2930)
	at vsys.utils.package$.createMVStore(package.scala:58)
	at vsys.network.PeerDatabaseImpl.<init>(PeerDatabaseImpl.scala:18)
	at vsys.Application.run(Application.scala:72)
	at vsys.Application$.$anonfun$main$1(Application.scala:254)
	at vsys.Application$.$anonfun$main$1$adapted(Application.scala:244)
	at vsys.actor.RootActorSystem$.start(RootActorSystem.scala:25)
	at vsys.Application$.main(Application.scala:244)
	at vsys.Application.main(Application.scala)

If the node crashes with this error, it means that peers.dat is corrupted. The easiest way to resolve this is to delete the file and restart the node.

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

No branches or pull requests

1 participant