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

Error when starting Stacks Node Error with Bitcoin Node synced 77% #3588

Closed
BowTiedDeployer opened this issue Feb 27, 2023 · 3 comments
Closed
Assignees
Labels

Comments

@BowTiedDeployer
Copy link

Describe the bug
Started to sync Bitcoin node mainnet.
When at 77%, tried to start the Stacks node mainnet.
Before downloading the BTC block headers or anything else, it split the following error:

WARN [1677421413.559267] [src/burnchains/burnchain.rs:694] [main] Failed to stat burnchain DB path '/home/ubuntu/stacks-blockchain/data/mainnet/burnchain/burnchain.sqlite': Os { code: 2, kind: NotFound, message: "No such file or directory" }
ERRO [1677421413.577888] [testnet/stacks-node/src/main.rs:58] [main] Process abort due to thread panic: panicked at 'index out of bounds: the len is 0 but the index is 0', src/burnchains/bitcoin/spv.rs:834:33
ERRO [1677421413.618335] [testnet/stacks-node/src/main.rs:60] [main] Panic backtrace:    0: stacks_node::main::{{closure}}
             at testnet/stacks-node/src/main.rs:59:18

Steps To Reproduce
Download bitcoin 24.0.1

wget https://bitcoincore.org/bin/bitcoin-core-24.0.1/bitcoin-24.0.1-x86_64-linux-gnu.tar.gz

Create the bitcoin.conf for the mainnet node.
Start bitcoin core

./bitcoind -conf=/home/ubuntu/bitcoin-24.0.1/bitcoin.conf

Clone master branch stacks repo

git clone https://github.com/stacks-network/stacks-blockchain.git

Compile node

cargo build --features monitoring_prom,slog_json --release --bin stacks-node

Run compiled node

Expected behavior
I expect it to start downloading the headers, and then sync with the bitcoin node progress.

Environment (please complete the following information):

  • OS: Ubuntu 22.04
  • Rust version rustc 1.61.0
  • Version of the appropriate binary / software package
    • bitcoin node 24.0.1
    • stacks node branch master
@jcnelson jcnelson self-assigned this Feb 27, 2023
@jcnelson
Copy link
Member

Yup, looks like bug. Got a mitigation: #3589.

@jcnelson
Copy link
Member

jcnelson commented Mar 7, 2023

This particular issue is fixed in develop.

@blockstack-devops
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Nov 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Archived in project
Development

No branches or pull requests

3 participants