-
Notifications
You must be signed in to change notification settings - Fork 674
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
[Stacks 2.1] 500 response from GET /v2/pox
#3261
Comments
I found this error is triggered on this line: https://github.com/stacks-network/stacks-blockchain/blob/7d960260b525d270e97bbafc8f09bd77d883b37b/src/net/rpc.rs#L420 This I'm not sure what the fix is here. Perhaps a mismatch between the reward start height and sortition ID? |
Also of note: I think the |
This can be reproduced if you hit up |
Related: don't use the |
@jcnelson accidental close? |
yup, fat-fingered |
I think this is fixed in |
Unfortunately it doesn't appear to be fixed. Running into the same problem (occurs at the same frequency as originally reported). Pulling in the temp work-around from #3281 still works in preventing the 500 responses (it just ignores errors from that Something is up with that |
Does this happen if |
I'm actually unable to get the node to mine the epoch 2.1 start block when setting I get the following error message repeating:
Here's the config I'm using: [node]
name = "krypton-node"
rpc_bind = "0.0.0.0:20443"
p2p_bind = "0.0.0.0:20444"
working_dir = "/chainstate/stacks-blockchain-data"
miner = true
use_test_genesis_chainstate = true
pox_sync_sample_secs = 1
wait_time_for_blocks = 0
wait_time_for_microblocks = 50
microblock_frequency = 1000
[miner]
first_attempt_time_ms = 30000
subsequent_attempt_time_ms = 5000
[connection_options]
disable_block_download = true
disable_inbound_handshakes = true
disable_inbound_walks = true
public_ip_address = "1.1.1.1:1234"
[burnchain]
chain = "bitcoin"
mode = "krypton"
poll_time_secs = 1
peer_host = "localhost"
peer_port = 18444
rpc_port = 18443
rpc_ssl = false
username = "btc"
password = "btc"
timeout = 30
pox_2_activation = 105 # <---- mining error when set to the same value as epoch 2.1 start height
[[burnchain.epochs]]
epoch_name = "1.0"
start_height = 0
[[burnchain.epochs]]
epoch_name = "2.0"
start_height = 103
[[burnchain.epochs]]
epoch_name = "2.05"
start_height = 104
[[burnchain.epochs]]
epoch_name = "2.1"
start_height = 105 I also get the same error when bumping it to one block higher. In the above config, I need to set It also works if I set both the epoch21 start height and Is |
@zone117x i'm not sure what the discrepancy is, but I saw it work with
|
The problem is some block height configs (seemingly arbitrarily) don't work. My guess is something related to |
Also this thread is getting a bit off topic (although the latest issue we are discussing might be related to the initial issue idk). The focus of this issue to fix the HTTP 500 responses returned from Should I open a new issue for cc @jcnelson ? |
Yes, let's do that. |
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. |
Running the latest
next
branch in mocknet mode, and theGET /v2/pox
endpoint often returns an HTTP 500 error with the message:Failed to query peer info
. On my machine, there's around a 2 second window of time where the 500 errors are returned.It's easier to reproduce this issue with a short mocknet block time. So perhaps some race condition that happens around block assembly / broadcast time?
Here's a snippet of logs during a 500 request, with
STACKS_LOG_DEBUG=1
:stacks-node-500.log.txt
It looks like these are the relevant lines:
Using config.toml to bootstrap to epoch 2.1:
The text was updated successfully, but these errors were encountered: