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

Abnormal behavior after starting with Docker compose #36

Open
AiDaiP opened this issue Mar 24, 2024 · 0 comments
Open

Abnormal behavior after starting with Docker compose #36

AiDaiP opened this issue Mar 24, 2024 · 0 comments

Comments

@AiDaiP
Copy link

AiDaiP commented Mar 24, 2024

Hello, I tried to set up a local test environment according to the README, but the behavior of the container after running seems to be abnormal. The stacks-regtest-env commit I use is 4a0fcd7, and the stacks-core commit is 9b377f9c36357d6bdc7df4134c0bfd358c42c651.

I start the container using this command

REWARD_RECIPIENT=STQM73RQC4EX0A07KWG1J5ECZJYBZS4SJ4ERC6WN MINE_INTERVAL=2.5s docker compose -f docker-compose-miner.yml -f docker-compose-follower.yml up --build -d

The logs of stacks-regtest-env-stacks-node-miner keep appearing

...
WARN [1711268740.843700] [testnet/stacks-node/src/neon_node.rs:5176] [main] Tenure: skipped tenure because no active VRF key. Trying to register one.
INFO [1711268740.845788] [testnet/stacks-node/src/burnchains/bitcoin_regtest_controller.rs:856] [relayer-http://0.0.0.0:20443] Miner node: submitting leader_key_register op - 035379aa40c02890d253cfa577964116eb5295570ae9f7287cbae5f2585f5b2c7c, waiting for its inclusion in the next Bitcoin block
ERRO [1711268740.846368] [testnet/stacks-node/src/burnchains/bitcoin_regtest_controller.rs:1661] [relayer-http://0.0.0.0:20443] Bitcoin RPC failure: transaction submission failed - Network("Bitcoin RPC: status(500) != success, body is 'Object {\"error\": Object {\"code\": Number(-1), \"message\": String(\"sendrawtransaction \\\"hexstring\\\" ( maxfeerate )\\n\\nSubmit a raw transaction (serialized, hex-encoded) to local node and network.\\n\\nNote that the transaction will be sent unconditionally to all peers, so using this\\nfor manual rebroadcast may degrade privacy by leaking the transaction's origin, as\\nnodes will normally not rebroadcast non-wallet transactions already in their mempool.\\n\\nAlso see createrawtransaction and signrawtransactionwithkey calls.\\n\\nArguments:\\n1. hexstring     (string, required) The hex string of the raw transaction\\n2. maxfeerate    (numeric or string, optional, default=0.10) Reject transactions whose fee rate is higher than the specified value, expressed in BTC/kB.\\n                 Set to 0 to accept any fee rate.\\n                 \\n\\nResult:\\n\\\"hex\\\"    (string) The transaction hash in hex\\n\\nExamples:\\n\\nCreate a transaction\\n> bitcoin-cli createrawtransaction \\\"[{\\\\\\\"txid\\\\\\\" : \\\\\\\"mytxid\\\\\\\",\\\\\\\"vout\\\\\\\":0}]\\\" \\\"{\\\\\\\"myaddress\\\\\\\":0.01}\\\"\\nSign the transaction, and get back the hex\\n> bitcoin-cli signrawtransactionwithwallet \\\"myhex\\\"\\n\\nSend the transaction (signed hex)\\n> bitcoin-cli sendrawtransaction \\\"signedhex\\\"\\n\\nAs a JSON-RPC call\\n> curl --user myusername --data-binary '{\\\"jsonrpc\\\": \\\"1.0\\\", \\\"id\\\": \\\"curltest\\\", \\\"method\\\": \\\"sendrawtransaction\\\", \\\"params\\\": [\\\"signedhex\\\"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/\\n\")}, \"id\": String(\"stacks\"), \"result\": Null}'")

The log of stacks-regtest-env-stacks-node-follower is

...
INFO [1711268734.199457] [stackslib/src/burnchains/burnchain.rs:1475] [main] Syncing Bitcoin blocks: 100.0% (96 to 101 out of 101)
INFO [1711268734.205651] [stackslib/src/burnchains/burnchain.rs:976] [burnchain-db] Update PoX affirmation maps for reward cycle, prev_reward_cycle: 19, this_reward_cycle: 20, block_height: 100, cycle-length: 5
INFO [1711268734.223447] [stackslib/src/chainstate/burn/db/sortdb.rs:2329] [chains-coordinator-0.0.0.0:20443] Reward cycle #20 (100): (F*w) not reached, expecting consensus over proof of burn
INFO [1711268734.224183] [stackslib/src/chainstate/burn/db/sortdb.rs:3612] [chains-coordinator-0.0.0.0:20443] Begin reward-cycle sortition with present anchor block=None
INFO [1711268734.225312] [stackslib/src/chainstate/burn/db/sortdb.rs:3612] [chains-coordinator-0.0.0.0:20443] Begin reward-cycle sortition with present anchor block=None
INFO [1711268734.225328] [stackslib/src/chainstate/burn/db/sortdb.rs:3612] [chains-coordinator-0.0.0.0:20443] Begin reward-cycle sortition with present anchor block=None
INFO [1711268735.209353] [testnet/stacks-node/src/run_loop/neon.rs:1138] [main] Runloop: Downloaded burnchain blocks up to height 101; target height is 101; remote_chain_height = 101 next_sortition_height = 101, sortition_db_height = 96
INFO [1711268735.233943] [testnet/stacks-node/src/run_loop/neon.rs:1138] [main] Runloop: Downloaded burnchain blocks up to height 101; target height is 101; remote_chain_height = 101 next_sortition_height = 101, sortition_db_height = 101
INFO [1711268735.234034] [testnet/stacks-node/src/run_loop/neon.rs:1255] [main] Runloop: Synchronized full burnchain up to height 101. Proceeding to mine blocks

The log of stacks-regtest-env-bitcoind-miner is

...
No Stacks mining tx detected
No Stacks mining tx detected
No Stacks mining tx detected
No Stacks mining tx detected
No Stacks mining tx detected
No Stacks mining tx detected
No Stacks mining tx detected
No Stacks mining tx detected

The log of stacks-regtest-env-bitcoind is

2024-03-24T08:25:08Z [default wallet] AddToWallet 26cedaae1ee806e2fc5c70a2452cd5509cdf2b9d8b60716b8b33444795f9de5e  new
2024-03-24T08:25:08Z CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2024-03-24T08:25:08Z UpdateTip: new best=3a33cbfe8432f1b8e16213dac4ed2eeb651bb26ca02dd7a78997f5485dde9f10 height=99 version=0x20000000 log2_work=7.643856 tx=100 date='2024-03-24T08:25:26Z' progress=1.000000 cache=0.0MiB(99txo)
2024-03-24T08:25:08Z [default wallet] AddToWallet 1b32811dcc4534798fe1bbe8876da7e01d59d2d194e584ef79379141fe1f1c9b  new
2024-03-24T08:25:08Z CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2024-03-24T08:25:08Z UpdateTip: new best=7ca3af572892c760fd3b99055f95318bdb695a2f1b55bf7615b2db064034931c height=100 version=0x20000000 log2_work=7.658211 tx=101 date='2024-03-24T08:25:26Z' progress=1.000000 cache=0.0MiB(100txo)
2024-03-24T08:25:08Z CreateNewBlock(): block weight: 900 txs: 0 fees: 0 sigops 400
2024-03-24T08:25:08Z [default wallet] AddToWallet 0ad37cd16d8615500045b7fb261ee6f5ff81e7142e5c078d7aab067e6a4af780  new
2024-03-24T08:25:08Z UpdateTip: new best=46fcf8c644a57ed963243d5ec8f4cbd0a584df0118a178d4dc4486a2ec2cdfe6 height=101 version=0x20000000 log2_work=7.672425 tx=102 date='2024-03-24T08:25:26Z' progress=1.000000 cache=0.0MiB(101txo)
2024-03-24T08:25:08Z [default wallet] AddToWallet 0e9d5594500cfcc517035213fce9d1f601a9eb72e3ce4cff62dfaead3287b5b0  new
2024-03-24T08:26:08Z Adding fixed seed nodes as DNS doesn't seem to be available.

I cannot interact with the network normally, such as querying account information

curl http://localhost:20443/v2/accounts/STQM73RQC4EX0A07KWG1J5ECZJYBZS4SJ4ERC6WN

No stacks chain tip exists at this point in time.

My test environment is:

OS: Ubuntu 22.04 jammy
Kernel: x86_64 Linux 6.5.0-26-generic
CPU: Intel Xeon Gold 5218R @ 64x 2.095GHz
RAM: 32GB

Docker version is

Docker version 24.0.6, build ed223bc
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