-
Notifications
You must be signed in to change notification settings - Fork 2.6k
The substrate node restarts and crashes #11222
Comments
So you can reproduce this every time? |
Have you tried to use a different storage device? |
Yes, tried several new virtual machines will appear. |
I guess it is caused by upgrading the version of rocksdb, it is normal to use paritydb. |
What you mean by upgrading rocksdb? |
|
Hi @bkchr, we have compiled the reproducing instructions
but, if we go with parity-db
everything works perfectly
|
I cannot reproduce this 🤔 Can you repduce it with this python script? import random
import subprocess
import time
CMD = ["target/release/node-template", "--dev", "-d", "node_data"]
while True:
# Delete the data folder with a probability of 10%
if random.randint(0, 100) < 10:
print("Removing data folder")
subprocess.run(["rm", "-rf", "node_data"])
print("Spawning node")
p = subprocess.Popen(CMD)
s = random.uniform(1.0, 10.0)
print("Sleeping for %d seconds" % s)
time.sleep(s)
print("Killing node")
p.terminate()
if p.wait() != 0:
print("Node exited with non-zero exit code")
break |
@ggwpez did you tried CentOS? |
Here someone has experienced a similar crash with rocksdb: paritytech/cumulus#1194 @tylerztl did you tried to revert the rocksdb upgrade? |
Okay, the mentioned rocksdb update only changed some features, so probably not our problem here. |
Regarding paritytech/cumulus#1194, I tried using |
What error do you get with paritydb? |
Same as before, adding the
|
So you have resynced with ParityDb? Can you maybe reproduce this in some docker image? |
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
./target/debug/substrate --dev --base-path=./node-data
The substrate v0.9.18 version is used, and the v0.9.17 version is normal.
Steps to reproduce
Environment:
Linux version 3.10.0-1127.19.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ) #1 SMP Tue Aug 25 17:23:54 UTC 2020
The text was updated successfully, but these errors were encountered: