filecoin-project / dealbot

🤖🤝 A bot for making deals
Apache License 2.0
32 stars 10 forks source link

[dealbot v0.0.43 and lotus-v1.13.2 devnet] queue-retrieval - get error "failed to load miner actor: GetActor called on undefined address" #367

Closed kuchaguangjie closed 2 years ago

kuchaguangjie commented 2 years ago

I'm testing storage & retrieval of dealbot, on devnet.


What I've done

1. Installed dealbot v0.0.43 and lotus-v1.13.2 devnet.

2. Created deal via: dealbot queue-storage -e http://127.0.0.1:8764 -s 1KB -m t01000

in dealbot daemon's log, get deal's data cid:

imported deal file, got data cid {"datacid": "bafk2bzacecqsqfyk5g5esrhln3ctvsljk5sdg2vyhaeo5ahtosqb5lgobpvcs"}

run lotus-miner sectors list, could see sector is Proving:

ID  State    OnChain  Active  Expiration                   Deals  DealWeight  VerifiedPower  
3   Proving  YES      NO      609042 (in 4 weeks 2 hours)  1      1.716KiB  

3. retrieve via lotus's command: lotus client retrieve bafk2bzacecqsqfyk5g5esrhln3ctvsljk5sdg2vyhaeo5ahtosqb5lgobpvcs output succeed with output:

Recv 0 B, Paid 0 FIL, Open (New), 0s
Recv 0 B, Paid 0 FIL, DealProposed (WaitForAcceptance), 3ms
Recv 0 B, Paid 0 FIL, DealAccepted (Accepted), 21ms
Recv 0 B, Paid 0 FIL, PaymentChannelSkip (Ongoing), 21ms
Recv 1 KiB, Paid 0 FIL, BlocksReceived (Ongoing), 31ms
Recv 1 KiB, Paid 0 FIL, AllBlocksReceived (BlocksComplete), 32ms
Recv 1 KiB, Paid 0 FIL, Complete (CheckComplete), 39ms
Recv 1 KiB, Paid 0 FIL, CompleteVerified (FinalizingBlockstore), 41ms
Recv 1 KiB, Paid 0 FIL, BlockstoreFinalized (Completed), 42ms
Success

Problem

4. But when retrieve with dealbot's command: dealbot queue-retrieval -e http://127.0.0.1:8764 --cid bafk2bzacecqsqfyk5g5esrhln3ctvsljk5sdg2vyhaeo5ahtosqb5lgobpvcs

It failed with error:

2022-02-18T03:49:54.295+0800    INFO    engine  engine/engine.go:263    successfully acquired task  {"taskID": "7d461a52-2b82-4aac-8867-5176d017977c"}
2022-02-18T03:49:54.295+0800    INFO    engine  engine/engine.go:269    worker running task {"taskID": "7d461a52-2b82-4aac-8867-5176d017977c", "run_count": 1}
2022-02-18T03:49:54.308+0800    ERROR   engine  engine/engine.go:307    retrieval task returned error   {"taskID": "7d461a52-2b82-4aac-8867-5176d017977c", "err": "failed to load miner actor: GetActor called on undefined address"}

I'm using the same cid for 2 commands. Should I use a different cid for dealbot queue-retrieval ? Or there is something else wrong?


Thanks.


@Update

Refer:

kuchaguangjie commented 2 years ago

Seems fixed with newest code.