aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

[Bug][Indexer] sometimes always can not call get_ledger_info success...

Open LevenSton opened this issue 3 years ago • 2 comments

🐛 Bug

To reproduce

Code snippet to reproduce

while true
do
  ps -ef | grep "aptos-indexer" | grep -v "grep"
  if [ "$?" -eq  1 ]
  then
    ./aptos-indexer --pg-uri postgresql://root:123456@localhost/test --node-url https://fullnode.devnet.aptoslabs.com --index-token-data --skip-previous-errors --emit-every 25 --batch-size 100 >> indexer.log &
    echo "aptos-indexer process restarted!"
  else
    echo "aptos-indexer process already started!"
  fi
  sleep 2
done

Stack trace/error message

2022-09-08T13:39:16.466692Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:43 Running migrations...
2022-09-08T13:39:16.467639Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:52 Migrations complete!
2022-09-08T13:39:16.467651Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:57 Checking if chain id is correct
2022-09-08T13:39:18.445143Z [main] INFO ecosystem/indexer/src/main.rs:72 Starting indexer...
2022-09-08T13:39:18.470909Z [main] INFO ecosystem/indexer/src/main.rs:75 Created the connection pool...
2022-09-08T13:39:18.475983Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:43 Running migrations...
2022-09-08T13:39:18.476975Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:52 Migrations complete!
2022-09-08T13:39:18.476992Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:57 Checking if chain id is correct
2022-09-08T13:39:20.455748Z [main] INFO ecosystem/indexer/src/main.rs:72 Starting indexer...
2022-09-08T13:39:20.481374Z [main] INFO ecosystem/indexer/src/main.rs:75 Created the connection pool...
2022-09-08T13:39:20.486503Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:43 Running migrations...
2022-09-08T13:39:20.487426Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:52 Migrations complete!
2022-09-08T13:39:20.487438Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:57 Checking if chain id is correct
2022-09-08T13:39:22.465743Z [main] INFO ecosystem/indexer/src/main.rs:72 Starting indexer...
2022-09-08T13:39:22.493018Z [main] INFO ecosystem/indexer/src/main.rs:75 Created the connection pool...
2022-09-08T13:39:22.498130Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:43 Running migrations...
2022-09-08T13:39:22.499060Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:52 Migrations complete!
2022-09-08T13:39:22.499073Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:57 Checking if chain id is correct
2022-09-08T13:39:24.476054Z [main] INFO ecosystem/indexer/src/main.rs:72 Starting indexer...
2022-09-08T13:39:24.501859Z [main] INFO ecosystem/indexer/src/main.rs:75 Created the connection pool...
2022-09-08T13:39:24.506995Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:43 Running migrations...
2022-09-08T13:39:24.507979Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:52 Migrations complete!
2022-09-08T13:39:24.507995Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:57 Checking if chain id is correct
2022-09-08T13:39:26.486390Z [main] INFO ecosystem/indexer/src/main.rs:72 Starting indexer...
2022-09-08T13:39:26.512877Z [main] INFO ecosystem/indexer/src/main.rs:75 Created the connection pool...
2022-09-08T13:39:26.517941Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:43 Running migrations...
2022-09-08T13:39:26.518935Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:52 Migrations complete!
2022-09-08T13:39:26.518948Z [main] INFO ecosystem/indexer/src/indexer/tailer.rs:57 Checking if chain id is correct
// Paste the output here

Expected Behavior

System information

Please complete the following information:

Additional context

Add any other context about the problem here.

LevenSton avatar Sep 08 '22 13:09 LevenSton

I used release version. cd ecosystem/indexer && caogo build --release

LevenSton avatar Sep 08 '22 14:09 LevenSton

This issue is stale because it has been open 45 days with no activity. Remove the stale label or comment - otherwise this will be closed in 15 days.

github-actions[bot] avatar Nov 07 '22 03:11 github-actions[bot]

This issue is stale because it has been open 45 days with no activity. Remove the stale label or comment - otherwise this will be closed in 15 days.

github-actions[bot] avatar Dec 24 '22 01:12 github-actions[bot]