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

Some blocks failed #3

Open
ludmildev opened this issue Dec 11, 2024 · 5 comments
Open

Some blocks failed #3

ludmildev opened this issue Dec 11, 2024 · 5 comments

Comments

@ludmildev
Copy link

Image: vsyshost/tron-shkeeper:1.0.20

ERROR <ThreadPoolExecutor-1_0 Thread>: Block 1298: Failed to scan: │
│ Traceback (most recent call last): │
│ File "/app/app/block_scanner.py", line 164, in scan │
│ block = self.download_block(block_num) │
│ File "/app/app/block_scanner.py", line 148, in download_block │
│ block = ConnectionManager.client().get_block(n) │
│ File "/usr/local/lib/python3.8/site-packages/tronpy/tron.py", line 662, in get_block │
│ raise BlockNotFound │
│ tronpy.exceptions.BlockNotFound
INFO : Some blocks failed, retrying chunk 1297 - 1298

@PiotrBaczkowski96
Copy link

I have same issue

@PiotrBaczkowski96
Copy link

@ludmildev did you manage to fix it somehow editing databases with last block?

@ludmildev
Copy link
Author

ludmildev commented Dec 13, 2024

Yep tried but didnt help...

@PiotrBaczkowski96
Copy link

@ludmildev downgrading image also doesnt help, let me know if you find solution

@PiotrBaczkowski96
Copy link

PiotrBaczkowski96 commented Dec 14, 2024

@ludmildev
You need to get into bash in your tron-shkeeper

kubectl get pods -n shkeeper

kubectl exec -it ${tron-pod-name} -n shkeeper bash

then inside pod

cd data
apt-get update
apt-get install sqlite3
then
sqlite3 ./database.db

//inside sqlite3 execute following command(you can replace 67719770 to any block you preffer)

update settings set value = '67719770' where name = 'last_seen_block_num';

then you can edit deployement and add variable BLOCK_SCANNER_MAX_BLOCK_CHUNK_SIZE so it syncs faster

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

2 participants