Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Snapshot generation fails at height: 1659695 #2

Open
Jsewill opened this issue Aug 4, 2022 · 0 comments
Open

Snapshot generation fails at height: 1659695 #2

Jsewill opened this issue Aug 4, 2022 · 0 comments

Comments

@Jsewill
Copy link

Jsewill commented Aug 4, 2022

While generating the snapshot generation fails after almost a day of runtime, at height 1659695, with the following truncated output:

....

INFO:CatSnapshot:coin_name c8cc80908629b6afa3fda412f9db641033de65ae59751db7ccfb4dda0812359b amount 7736658533 tail_hash b7c0b9c3a59898a8a9e9be1e9d77d63be558bc57060257a2a667c8ca7ab687a8 spent_height 1675378
INFO:CatSnapshot:Persisted CAT coin created with name a7b64fb17a2d9637eebc4edbd0e9b84bdb9f291fa6e760e9ad1ec6c30773f0e1, TAIL b7c0b9c3a59898a8a9e9be1e9d77d63be558bc57060257a2a667c8ca7ab687a8, height 1675378
INFO:CatSnapshot:Persisted CAT coin created with name a7514065b5653d9517b3e2d4c38d4f5e6dba594a94d55e9ba7a5d11cd861190d, TAIL b7c0b9c3a59898a8a9e9be1e9d77d63be558bc57060257a2a667c8ca7ab687a8, height 1675378
INFO:CatSnapshot:coin_name 9e209f34e4c322d2c8b55bf1916dcee810c5727ed836c05b7364112f9aca29c0 amount 1032000 tail_hash 7f3584af7b574030af5be244b6ae332fd3820b44e96e4880bbe7aa8cc05edc88 spent_height 1659695
Traceback (most recent call last):
  File "start.py", line 15, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete
    return future.result()
  File "start.py", line 12, in main
    await cat_snapshot.generate()
  File "/home/farmer/Crypto/chia/cat1_snapshot/src/cat_snapshot.py", line 126, in generate
    persist_coin_create(cursor, coin_create_record)
  File "/home/farmer/Crypto/chia/cat1_snapshot/src/database.py", line 89, in persist_coin_create
    coin_create_record.created_height
sqlite3.IntegrityError: UNIQUE constraint failed: coin_create.coin_name
ERROR:asyncio:Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f8c65328690>

UPDATE:

I also tried running a much smaller snapshot, one at the beginning of the original height range, and one at the end, but the result was the same.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant