aptos-core
aptos-core copied to clipboard
[Bug][Indexer] sometimes always can not call get_ledger_info success...
🐛 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.
I used release version. cd ecosystem/indexer && caogo build --release
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.
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.