Skip to content

Unable to fetch first block after catching up. #5352

@winder

Description

@winder

Subject of the issue

After a fast catchup, fetching the messagepack encoded first block from the API returns a 404.

Steps to reproduce

In this test, we use the conduit profile and a version of algod which causes followers to pause after a fast catchup. This makes the issue easier to reproduce.

  1. mkdir test_data
  2. algocfg profile set conduit -d "test_data"
  3. algocfg set -p EndpointAddress -v "0.0.0.0:8080" -d "test_data"
  4. cp /path/to/go-algorand/installer/genesis/betanet/genesis.json test_data/genesis.json
  5. goal node start -d "test_data"
  6. goal node catchup -d "test_data" 26000000#LLCDX3RAAYVU7T4ZIHBVEK4SJCIAHK4IIJLVI52SJGJIBYJHZ75Q
  7. wait for catchup watch goal node status -d "test_data"
  8. curl -H "Authorization: Bearer "$(cat test_data/algod.token) "http://127.0.0.1:8080/v2/blocks/26000000?format=msgpack"

Note: format=json works: curl -H "Authorization: Bearer "$(cat test_data/algod.token) "http://127.0.0.1:8080/v2/blocks/26000000?format=json"

Expected behaviour

The msgpack encoded block is returned.

Actual behaviour

An error: {"message":"failed to retrieve information from the ledger"}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions