filecoin-project / dealbot

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

make deal with devnet - how to confirm is it succeed? #364

Closed kuchaguangjie closed 2 years ago

kuchaguangjie commented 2 years ago

I've installed dealbot, and built a local lotus devnet on linux. And tested dealbot mock tasks, it works.


Then started programs:


Then made deals via controller:

storage deal:

command:

dealbot queue-storage -e http://127.0.0.1:8764 -s 1KB -m t01000

log - daemon:

2022-02-15T16:04:01.691+0800    INFO    engine  engine/engine.go:263    successfully acquired task  {"taskID": "0c482432-5397-442d-a12e-f0ee0deff48a"}
2022-02-15T16:04:01.691+0800    INFO    engine  engine/engine.go:269    worker running task {"taskID": "0c482432-5397-442d-a12e-f0ee0deff48a", "run_count": 1}
2022-02-15T16:04:01.721+0800    INFO    engine  tasks/storage_deal.go:183   remote peer version {"version": "lotus-1.12.0+2k+git.6d8a6c480.dirty"}
2022-02-15T16:04:01.722+0800    INFO    engine  tasks/storage_deal.go:186   local client version    {"version": "1.12.0+2k+git.6d8a6c480.dirty"}
2022-02-15T16:04:03.003+0800    INFO    engine  tasks/storage_deal.go:237   creating deal file  {"name": "6425eb98-d000-41ce-8a04-b318561ea87c", "size": {}, "path": "/mnt/mars/data/dealbot/daemon/data/6425eb98-d000-41ce-8a04-b318561ea87c"}
2022-02-15T16:04:03.046+0800    INFO    engine  tasks/storage_deal.go:274   imported deal file, got data cid    {"datacid": "bafk2bzacedkvrwvz2edacuvk6l5lwtrox4nrqpk7g2np67uwstg2jbysbwvj2"}
2022-02-15T16:04:03.048+0800    INFO    engine  tasks/storage_deal.go:307   got deal updates channel
2022-02-15T16:04:03.240+0800    INFO    engine  tasks/storage_deal.go:315   got proposal cid    {"cid": "bafyreifjvk7vbuvy4qkr66iccoippc5db53vtrve7ima7pw77hklfj2xd4"}
2022-02-15T16:04:03.245+0800    INFO    engine  tasks/storage_deal.go:360   Deal status {"cid": "bafyreifjvk7vbuvy4qkr66iccoippc5db53vtrve7ima7pw77hklfj2xd4", "piece": "baga6ea4seaqgbnd7dlz4hbzr45yheaene5ci4yjxuxh7phtwnmti4bc6ciymaaa", "state": "StorageDealReserveClientFunds", "deal_message": "", "provider": "f01000"}
2022-02-15T16:04:03.285+0800    INFO    engine  tasks/storage_deal.go:360   Deal status {"cid": "bafyreifjvk7vbuvy4qkr66iccoippc5db53vtrve7ima7pw77hklfj2xd4", "piece": "baga6ea4seaqgbnd7dlz4hbzr45yheaene5ci4yjxuxh7phtwnmti4bc6ciymaaa", "state": "StorageDealClientFunding", "deal_message": "", "provider": "f01000"}
2022-02-15T16:04:51.505+0800    INFO    engine  tasks/storage_deal.go:360   Deal status {"cid": "bafyreifjvk7vbuvy4qkr66iccoippc5db53vtrve7ima7pw77hklfj2xd4", "piece": "baga6ea4seaqgbnd7dlz4hbzr45yheaene5ci4yjxuxh7phtwnmti4bc6ciymaaa", "state": "StorageDealFundsReserved", "deal_message": "", "provider": "f01000"}
2022-02-15T16:04:51.573+0800    INFO    engine  tasks/storage_deal.go:360   Deal status {"cid": "bafyreifjvk7vbuvy4qkr66iccoippc5db53vtrve7ima7pw77hklfj2xd4", "piece": "baga6ea4seaqgbnd7dlz4hbzr45yheaene5ci4yjxuxh7phtwnmti4bc6ciymaaa", "state": "StorageDealStartDataTransfer", "deal_message": "", "provider": "f01000"}
2022-02-15T16:04:51.588+0800    INFO    engine  tasks/storage_deal.go:360   Deal status {"cid": "bafyreifjvk7vbuvy4qkr66iccoippc5db53vtrve7ima7pw77hklfj2xd4", "piece": "baga6ea4seaqgbnd7dlz4hbzr45yheaene5ci4yjxuxh7phtwnmti4bc6ciymaaa", "state": "StorageDealTransferQueued", "deal_message": "", "provider": "f01000"}
2022-02-15T16:04:51.900+0800    INFO    engine  tasks/storage_deal.go:360   Deal status {"cid": "bafyreifjvk7vbuvy4qkr66iccoippc5db53vtrve7ima7pw77hklfj2xd4", "piece": "baga6ea4seaqgbnd7dlz4hbzr45yheaene5ci4yjxuxh7phtwnmti4bc6ciymaaa", "state": "StorageDealTransferring", "deal_message": "", "provider": "f01000"}
2022-02-15T16:04:51.915+0800    INFO    engine  tasks/storage_deal.go:360   Deal status {"cid": "bafyreifjvk7vbuvy4qkr66iccoippc5db53vtrve7ima7pw77hklfj2xd4", "piece": "baga6ea4seaqgbnd7dlz4hbzr45yheaene5ci4yjxuxh7phtwnmti4bc6ciymaaa", "state": "StorageDealCheckForAcceptance", "deal_message": "", "provider": "f01000"}

retrieval deal:

command:

dealbot queue-retrieval -e http://127.0.0.1:8764 -cid bafyreifjvk7vbuvy4qkr66iccoippc5db53vtrve7ima7pw77hklfj2xd4

log - daemon:

2022-02-15T16:07:12.112+0800    INFO    engine  engine/engine.go:263    successfully acquired task  {"taskID": "cd52b87a-20b2-462a-b98a-b48ede3ad689"}
2022-02-15T16:07:12.112+0800    INFO    engine  engine/engine.go:269    worker running task {"taskID": "cd52b87a-20b2-462a-b98a-b48ede3ad689", "run_count": 1}
2022-02-15T16:07:12.120+0800    ERROR   engine  engine/engine.go:307    retrieval task returned error   {"taskID": "cd52b87a-20b2-462a-b98a-b48ede3ad689", "err": "failed to load miner actor: GetActor called on undefined address"}

Questions

  1. I'm not sure is the storage deal succeed from the log? Anyway to check that? I'm not familiar with lotus's mining.
  2. The retrieval deal failed, from log: failed to load miner actor: GetActor called on undefined address, is that a lotus version issue, or?
  3. I can't specify -m option for dealbot queue-retrieval, is that ok?
  4. queue-storage vs storage-deal, which is preferred? I guess queue-storage use controller, while storage-deal specify daemon dir directly, is there any other differences?

Thanks.

kuchaguangjie commented 2 years ago

Turns out, the devnet has some problem, now I switched to v1.13.2, and the actor issue is gone with pure lotus client command. I'll try dealbot later, and closing this issue, since it's not relevant to dealbot itself.