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

Failed to put key-value, corruption on data-block: checksum mismatch #545

Open
zhangxf55 opened this issue Jun 6, 2024 · 1 comment
Open

Comments

@zhangxf55
Copy link

Describe the bug
Failed to put key-value, corruption on data-block: checksum mismatch.

To Reproduce

  1. Install and configure Golang 1.21
cd ~ && wget https://go.dev/dl/go1.21.10.linux-amd64.tar.gz
tar -zxvf go1.21.10.linux-amd64.tar.gz
mv ~/go /usr/local/
echo "export GOPATH=\$HOME/go" >> ~/.profile
echo "export PATH=\$PATH:/usr/local/go/bin:\$GOPATH/bin" >> ~/.profile
source ~/.profile
rm -rf go1.21.10.linux-amd64.tar.gz
  1. Download the source code and compile to binary:
# Download Source and checkout the latest release
git clone https://github.com/Fantom-foundation/go-opera.git
cd ~/go-opera && git checkout release/1.1.3-rc.5
# Compile
cd ~/go-opera && make
# Move to the bin dir
cp ~/go-opera/build/opera ~/fantom/bin/
  1. Download the genesis file from the link: https://files.fantom.network/mainnet-171200-pruned-mpt.g
apt install aria2
mkdir -p /data/fantom/genesis && cd /data/fantom/genesis && \
aria2c -s8 -x8 -k1000M https://files.fantom.network/mainnet-171200-pruned-mpt.g
  1. Run opera
/root/fantom/bin/opera \
	--datadir="/data/fantom" \
	--genesis="/data/fantom/genesis/mainnet-171200-pruned-mpt.g" \
	--syncmode="full" \
	--http \
	--http.addr="127.0.0.1" \
	--http.port=18545 \
	--http.api="web3,eth,net,txpool" \
	--ws \
	--ws.addr="127.0.0.1" \
	--ws.port=18546 \
	--ws.api="web3,eth,net,txpool" \
	--port=5050 \
	--db.preset="ldb-1" \
	--cache 96494

Expected behavior
An Critical Error occurs:

INFO [06-06|16:49:34.024] - Reading blocks unit 1                  progress=36.59% elapsed=47m9.057s  eta=1h47m35.822s
INFO [06-06|16:50:34.591] - Reading blocks unit 1                  progress=37.34% elapsed=48m9.624s  eta=1h46m9.158s
INFO [06-06|16:51:36.296] - Reading blocks unit 1                  progress=38.01% elapsed=49m11.328s eta=1h45m4.527s
INFO [06-06|16:52:37.342] - Reading blocks unit 1                  progress=38.79% elapsed=50m12.374s eta=1h43m28.676s
INFO [06-06|16:53:37.658] - Reading blocks unit 1                  progress=39.36% elapsed=51m12.690s eta=1h42m48.565s
CRIT [06-06|16:53:58.760] Failed to put key-value                  module=rlp err="leveldb/table: corruption on data-block (pos=1638013): checksum mismatch, want=0x59450c32 got=0xcd1d8171 [file=175142.ldb]"

Screenshots
image

Desktop (please complete the following information):

  • OS: ubuntu 22.04
  • Version 1.1.3-rc.5
@zhangxf55
Copy link
Author

If I download the snapshot files from the office site:

mkdir -p /data/fantom/tgz && cd /data/fantom/tgz && \
aria2c -s8 -x8 -k1000M https://snapshot.fantom.network/files/pruned/snapshot-01-Jun-2024-03-32/opera-pruned_01-Jun-2024-03-32_split_00.tgz && \
aria2c -s8 -x8 -k1000M https://snapshot.fantom.network/files/pruned/snapshot-01-Jun-2024-03-32/opera-pruned_01-Jun-2024-03-32_split_01.tgz && \
aria2c -s8 -x8 -k1000M https://snapshot.fantom.network/files/pruned/snapshot-01-Jun-2024-03-32/opera-pruned_01-Jun-2024-03-32_split_02.tgz && \
aria2c -s8 -x8 -k1000M https://snapshot.fantom.network/files/pruned/snapshot-01-Jun-2024-03-32/opera-pruned_01-Jun-2024-03-32_split_03.tgz && \
aria2c -s8 -x8 -k1000M https://snapshot.fantom.network/files/pruned/snapshot-01-Jun-2024-03-32/opera-pruned_01-Jun-2024-03-32_split_04.tgz && \
aria2c -s8 -x8 -k1000M https://snapshot.fantom.network/files/pruned/snapshot-01-Jun-2024-03-32/opera-pruned_01-Jun-2024-03-32_split_05.tgz && \
aria2c -s8 -x8 -k1000M https://snapshot.fantom.network/files/pruned/snapshot-01-Jun-2024-03-32/opera-pruned_01-Jun-2024-03-32_split_06.tgz && \
aria2c -s8 -x8 -k1000M https://snapshot.fantom.network/files/pruned/snapshot-01-Jun-2024-03-32/opera-pruned_01-Jun-2024-03-32_split_07.tgz && \
aria2c -s8 -x8 -k1000M https://snapshot.fantom.network/files/pruned/snapshot-01-Jun-2024-03-32/opera-pruned_01-Jun-2024-03-32_split_08.tgz && \
aria2c -s8 -x8 -k1000M https://snapshot.fantom.network/files/pruned/snapshot-01-Jun-2024-03-32/opera-pruned_01-Jun-2024-03-32_split_09.tgz && \
aria2c -s8 -x8 -k1000M https://snapshot.fantom.network/files/pruned/snapshot-01-Jun-2024-03-32/opera-pruned_01-Jun-2024-03-32_split_10.tgz && \
aria2c -s8 -x8 -k1000M https://snapshot.fantom.network/files/pruned/snapshot-01-Jun-2024-03-32/opera-pruned_01-Jun-2024-03-32_split_11.tgz && \
aria2c -s8 -x8 -k1000M https://snapshot.fantom.network/files/pruned/snapshot-01-Jun-2024-03-32/opera-pruned_01-Jun-2024-03-32_split_12.tgz

And untar them:

tar -zxvf opera-pruned_01-Jun-2024-03-32_split_00.tgz -C /data/fantom && \
tar -zxvf opera-pruned_01-Jun-2024-03-32_split_01.tgz -C /data/fantom && \
tar -zxvf opera-pruned_01-Jun-2024-03-32_split_02.tgz -C /data/fantom && \
tar -zxvf opera-pruned_01-Jun-2024-03-32_split_03.tgz -C /data/fantom && \
tar -zxvf opera-pruned_01-Jun-2024-03-32_split_04.tgz -C /data/fantom && \
tar -zxvf opera-pruned_01-Jun-2024-03-32_split_05.tgz -C /data/fantom && \
tar -zxvf opera-pruned_01-Jun-2024-03-32_split_06.tgz -C /data/fantom && \
tar -zxvf opera-pruned_01-Jun-2024-03-32_split_07.tgz -C /data/fantom && \
tar -zxvf opera-pruned_01-Jun-2024-03-32_split_08.tgz -C /data/fantom && \
tar -zxvf opera-pruned_01-Jun-2024-03-32_split_09.tgz -C /data/fantom && \
tar -zxvf opera-pruned_01-Jun-2024-03-32_split_10.tgz -C /data/fantom && \
tar -zxvf opera-pruned_01-Jun-2024-03-32_split_11.tgz -C /data/fantom && \
tar -zxvf opera-pruned_01-Jun-2024-03-32_split_12.tgz -C /data/fantom

And start the go-opera:

/root/fantom/bin/opera \
	--datadir="/data/fantom" \
	--syncmode="full" \
	--http \
	--http.addr="127.0.0.1" \
	--http.port=18545 \
	--http.api="web3,eth,net,txpool" \
	--ws \
	--ws.addr="127.0.0.1" \
	--ws.port=18546 \
	--ws.api="web3,eth,net,txpool" \
	--port=5050 \
	--db.preset="ldb-1"

The same error occurs. I have checked the md5sum of each tgz file.

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