-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Failed retrieval deal v1.13.2-rc4 #7763
Comments
might be somewhat related to #7938 |
We should look into how the UNS job is schedule and find the sector data and start the job. |
Describe the Bugfailed to load blockstore for piece baga6ea4seaqd4yfmzsdzozlpiafowmc6z6mh64wfl7tcney5rohvsabgviwc2mi: invalid header: malformed stream: invalid appearance of int token; expected start of map Please see my steps, 100% reproducible @jennijuju @magik6k version:lotus-miner version 1.14.2+2k+git.6347daf84Logging Informationroot@ubuntu:~# lotus-miner storage-deals list
ProposalCid DealId State Client Size Price Duration
...spcrbwbu 2 StorageDealActive t3setqboohk7dj4rhyifgmuernjotbdrxzzr35wjjuqaoitw5uamtmruiixnoa6nlqycywnuzfrxi3etsx3bvq 512B 0.0002594 FIL 518800
root@ubuntu:~# lotus-miner retrieval-deals list
Receiver DealID Payload State PricePerByte BytesSent Message
12D3KooWEJNLRCY8MPYjttH31tKH9Ww93UnmzTMDuAPEXVYD2JQb 1646120577260757912 ...aa5gwlhc DealStatusErrored 0 0 failed to load blockstore for piece baga6ea4seaqd4yfmzsdzozlpiafowmc6z6mh64wfl7tcney5rohvsabgviwc2mi: invalid header: malformed stream: invalid appearance of int token; expected start of map
root@ubuntu:~# lotus-miner data-transfers list --show-failed
Sending Channels
ID Status Sending To Root Cid Initiated? Transferred Voucher
1646120577259778241 Cancelled ...XVYD2JQb ...aa5gwlhc N 0B ...lIncrease":1048576,"UnsealPrice":"0"}
Receiving Channels miner log2022-03-01T03:43:00.200-0500 INFO dt-impl impl/events.go:314 channel 12D3KooWEJNLRCY8MPYjttH31tKH9Ww93UnmzTMDuAPEXVYD2JQb-12D3KooWKWZMaYTCda54yC1MLqi5unqEXeuyWfdSpoW4R1BRHo61-1646120577259778241: received new channel request from 12D3KooWEJNLRCY8MPYjttH31tKH9Ww
93UnmzTMDuAPEXVYD2JQb
2022-03-01T03:43:00.209-0500 INFO dt-impl impl/events.go:393 data-transfer request validated, will create & start tracking channel {"channelID": "12D3KooWEJNLRCY8MPYjttH31tKH9Ww93UnmzTMDuAPEXVYD2JQb-12D3KooWKWZMaYTCda54yC1MLqi5unqEXeuyWfdSpoW4R1BRHo61-1646120
577259778241", "payloadCid": "bafk2bzacebtltydsplrijykspygstp6usex5x3ghlrddgimmleqlzaa5gwlhc"}
2022-03-01T03:43:00.209-0500 INFO markets loggers/loggers.go:30 retrieval provider event {"name": "ProviderEventOpen", "deal ID": "1646120577260757912", "receiver": "12D3KooWEJNLRCY8MPYjttH31tKH9Ww93UnmzTMDuAPEXVYD2JQb", "state": "DealStatusNew", "message":
""}
2022-03-01T03:43:00.211-0500 INFO dt_graphsync graphsync/graphsync.go:1060 incoming graphsync request {"peer": "12D3KooWEJNLRCY8MPYjttH31tKH9Ww93UnmzTMDuAPEXVYD2JQb", "graphsync request id": 0, "data transfer channel id": "12D3KooWEJNLRCY8MPYjttH31tKH9Ww
93UnmzTMDuAPEXVYD2JQb-12D3KooWKWZMaYTCda54yC1MLqi5unqEXeuyWfdSpoW4R1BRHo61-1646120577259778241"}
2022-03-01T03:43:00.211-0500 INFO gs-queryexecutor queryexecutor/queryexecutor.go:103 Empty task on peer request stack
2022-03-01T03:43:00.213-0500 INFO markets loggers/loggers.go:30 retrieval provider event {"name": "ProviderEventDealAccepted", "deal ID": "1646120577260757912", "receiver": "12D3KooWEJNLRCY8MPYjttH31tKH9Ww93UnmzTMDuAPEXVYD2JQb", "state": "DealStatusUnsealin
g", "message": ""}
2022-03-01T03:43:00.219-0500 DEBUG advmgr sector-storage/piece_provider.go:89 did not get storage reader;sector={Miner:1000 Number:86}, err:failed to read sector {{1000 86} 5} from remote(1): sector not found
2022-03-01T03:43:00.219-0500 DEBUG advmgr sector-storage/piece_provider.go:169 result of first tryReadUnsealedPiece: r=<nil>, err=failed to read sector {{1000 86} 5} from remote(1): sector not found
2022-03-01T03:43:00.219-0500 DEBUG advmgr sector-storage/piece_provider.go:172 no unsealed sector file with unsealed piece, sector={ID:{Miner:1000 Number:86} ProofType:5}, pieceOffset=0, size=508
2022-03-01T03:43:00.219-0500 DEBUG advmgr sector-storage/manager.go:235 acquire unseal sector lock for sector {1000 86}
2022-03-01T03:43:00.219-0500 DEBUG advmgr sector-storage/manager.go:264 will schedule unseal for sector {1000 86}
2022-03-01T03:43:00.219-0500 DEBUG advmgr sector-storage/sched.go:356 SCHED 1 queued; 2 open windows
2022-03-01T03:43:00.220-0500 DEBUG advmgr sector-storage/sched.go:452 SCHED windows: [{allocated:{memUsedMin:0 memUsedMax:0 gpuUsed:0 cpuUse:0 cond:<nil> waiting:0} todo:[]} {allocated:{memUsedMin:0 memUsedMax:0 gpuUsed:0 cpuUse:0 cond:<nil> waiting:0} todo:[]}]
2022-03-01T03:43:00.220-0500 DEBUG advmgr sector-storage/sched.go:453 SCHED Acceptable win: [[0 1]]
2022-03-01T03:43:00.220-0500 DEBUG advmgr sector-storage/sched.go:467 SCHED try assign sqi:0 sector 86 to window 0
2022-03-01T03:43:00.220-0500 DEBUG advmgr sector-storage/sched.go:476 SCHED ASSIGNED sqi:0 sector 86 task seal/v0/unseal to window 0
2022-03-01T03:43:00.220-0500 DEBUG advmgr sector-storage/sched_worker.go:375 assign worker sector 86
2022-03-01T03:43:00.220-0500 DEBUG advmgr sector-storage/sched.go:356 SCHED 0 queued; 2 open windows
2022-03-01T03:43:00.220-0500 DEBUG advmgr sector-storage/manager.go:243 copy sealed/cache sector data for sector {1000 86}
2022-03-01T03:43:00.221-0500 DEBUG advmgr sector-storage/worker_local.go:140 acquired sector {{1000 86} 5} (e:6; a:0): {{0 0} /root/.lotusminer/sealed/s-t01000-86 /root/.lotusminer/cache/s-t01000-86 }
2022-03-01T03:43:00.221-0500 DEBUG advmgr sector-storage/sched_worker.go:280 task done {"workerid": "c5cc877c-d604-4fe2-a286-b3878b123b0b"}
2022-03-01T03:43:00.221-0500 DEBUG advmgr sector-storage/sched.go:356 SCHED 0 queued; 2 open windows
2022-03-01T03:43:00.221-0500 DEBUG advmgr sector-storage/manager.go:271 calling unseal sector on worker, sectoID={1000 86}
2022-03-01T03:43:00.223-0500 DEBUG advmgr sector-storage/worker_local.go:515 worker will unseal piece now, sector={Miner:1000 Number:86}
2022-03-01T03:43:00.223-0500 DEBUG advmgr sector-storage/worker_local.go:140 acquired sector {{1000 86} 5} (e:0; a:1): {{0 0} /root/.lotusminer/unsealed/s-t01000-86 }
2022-03-01T03:43:00.223-0500 DEBUG advmgr sector-storage/worker_local.go:140 acquired sector {{1000 86} 5} (e:14; a:0): {{0 0} /root/.lotusminer/sealed/s-t01000-86 /root/.lotusminer/cache/s-t01000-86 /root/.lotusminer/update/s-t01000-86 }
2022-03-01T03:43:00.223 INFO filcrypto::proofs::api > fil_empty_sector_update_decode_from: start
2022-03-01T03:43:00.223 INFO filecoin_proofs::api::update > decode_from:start
2022-03-01T03:43:00.223 INFO storage_proofs_update::vanilla > out data path "/root/.lotusminer/unsealed/s-t01000-86", len 2052
2022-03-01T03:43:00.223 INFO storage_proofs_update::vanilla > replica path "/root/.lotusminer/update/s-t01000-86", len 2048
2022-03-01T03:43:00.223 INFO storage_proofs_update::vanilla > sector key path "/root/.lotusminer/sealed/s-t01000-86", len 2048
2022-03-01T03:43:00.225 INFO filecoin_proofs::api::update > decode_from:finish
2022-03-01T03:43:00.225 INFO filcrypto::proofs::api > fil_empty_sector_update_decode_from: finish
2022-03-01T03:43:00.225-0500 WARN stores stores/local.go:607 RemoveCopies: no primary copies of sector {1000 86} (sealed), not removing anything
2022-03-01T03:43:00.225-0500 WARN stores stores/local.go:607 RemoveCopies: no primary copies of sector {1000 86} (cache), not removing anything
2022-03-01T03:43:00.225-0500 DEBUG advmgr sector-storage/worker_local.go:528 worker has unsealed piece, sector={Miner:1000 Number:86}
2022-03-01T03:43:00.225-0500 DEBUG advmgr sector-storage/manager.go:275 completed unseal sector {1000 86}
2022-03-01T03:43:00.226-0500 DEBUG advmgr sector-storage/piece_provider.go:196 unsealed a sector file to read the piece, sector={ID:{Miner:1000 Number:86} ProofType:5}, pieceOffset=0, size=508
2022-03-01T03:43:00.226-0500 DEBUG stores stores/remote.go:602 Check local /root/.lotusminer/unsealed/s-t01000-86 (+0,512)
2022-03-01T03:43:00.226-0500 DEBUG stores stores/remote.go:607 fetched sector size /root/.lotusminer/unsealed/s-t01000-86 (+0,512)
2022-03-01T03:43:00.226-0500 DEBUG stores stores/remote.go:614 local partial file opened /root/.lotusminer/unsealed/s-t01000-86 (+0,512)
2022-03-01T03:43:00.226-0500 DEBUG stores stores/remote.go:622 check if partial file is allocated /root/.lotusminer/unsealed/s-t01000-86 (+0,512)
2022-03-01T03:43:00.226-0500 INFO stores stores/remote.go:625 returning piece reader for local unsealed piece sector={Miner:1000 Number:86}, (offset=0, size=512)
2022-03-01T03:43:00.226-0500 DEBUG advmgr sector-storage/piece_provider.go:207 got a reader to read unsealed piece, sector={ID:{Miner:1000 Number:86} ProofType:5}, pieceOffset=0, size=508
2022-03-01T03:43:00.226-0500 DEBUG advmgr sector-storage/piece_provider.go:212 returning reader to read unsealed piece, sector={ID:{Miner:1000 Number:86} ProofType:5}, pieceOffset=0, size=508
2022-03-01T03:43:00.227-0500 INFO markets loggers/loggers.go:30 retrieval provider event {"name": "ProviderEventUnsealError", "deal ID": "1646120577260757912", "receiver": "12D3KooWEJNLRCY8MPYjttH31tKH9Ww93UnmzTMDuAPEXVYD2JQb", "state": "DealStatusFailing",
"message": "failed to load blockstore for piece baga6ea4seaqd4yfmzsdzozlpiafowmc6z6mh64wfl7tcney5rohvsabgviwc2mi: invalid header: malformed stream: invalid appearance of int token; expected start of map"}
2022-03-01T03:43:00.228-0500 INFO dt-impl impl/impl.go:286 close channel 12D3KooWEJNLRCY8MPYjttH31tKH9Ww93UnmzTMDuAPEXVYD2JQb-12D3KooWKWZMaYTCda54yC1MLqi5unqEXeuyWfdSpoW4R1BRHo61-1646120577259778241
2022-03-01T03:43:00.228-0500 INFO dt-impl impl/impl.go:303 12D3KooWKWZMaYTCda54yC1MLqi5unqEXeuyWfdSpoW4R1BRHo61: sending cancel channel to 12D3KooWEJNLRCY8MPYjttH31tKH9Ww93UnmzTMDuAPEXVYD2JQb for channel 12D3KooWEJNLRCY8MPYjttH31tKH9Ww93UnmzTMDuAPEXVYD2JQb-12
D3KooWKWZMaYTCda54yC1MLqi5unqEXeuyWfdSpoW4R1BRHo61-1646120577259778241
2022-03-01T03:43:00.228-0500 INFO markets loggers/loggers.go:30 retrieval provider event {"name": "ProviderEventCancelComplete", "deal ID": "1646120577260757912", "receiver": "12D3KooWEJNLRCY8MPYjttH31tKH9Ww93UnmzTMDuAPEXVYD2JQb", "state": "DealStatusErrore
d", "message": "failed to load blockstore for piece baga6ea4seaqd4yfmzsdzozlpiafowmc6z6mh64wfl7tcney5rohvsabgviwc2mi: invalid header: malformed stream: invalid appearance of int token; expected start of map"}
2022-03-01T03:43:00.229-0500 ERROR retrievalmarket_impl dtutils/dtutils.go:74 processing dt event: normal shutdown of state machine Repo Steps
|
Ongoing unsealing enhancements referenced here - #10316 |
Closing this ticket as the Legacy Lotus/Lotus-Miner Markets sub-system reached EOL at the end of the 31st January 2023, and is being completely removed from the code here: |
Checklist
Latest release
, or the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.Lotus component
Lotus Version
Describe the Bug
Markets node received request for retrieval
No unsealed version (sector 1318) so lotus-miner sends sealed and cache to worker
Worker fetches sealed an cache and ready to start unseal
But lotus-miner errors out and sealed sector and fetched data remain on worker.
Why is retrieval process looking in markets node for a path that only exists on miner and worker nodes?
Why does a failed deal leave behind data in worker?
Logging Information
Repo Steps
...
The text was updated successfully, but these errors were encountered: