lotus 扇区报错 PreCommitFailed
- 1,lotus 扇区报错 PreCommitFailed
- 2,扇区重新运行PreCommitting
- 删除扇区
- 3,CommitFailed
- CommitFailed
- SealPreCommit2Failed
1,lotus 扇区报错 PreCommitFailed
# lotus version
Daemon: 0.9.0+git.8f35a5c0.dirty+api0.16.0
Local: lotus version 0.9.0+git.8f35a5c0.dirty
- 查看扇区
PreCommitFailed
# lotus-miner sectors list
94 PreCommitFailed
lotus-miner storage find 94
lotus-miner sectors status --log --on-chain-info 94
- 扇区已经完成PreCommit2 ,PreCommitting报错
- 参考:扇区状态
/** Empty <- incoming deals| || v*<- WaitDeals <- incoming deals| || v*<- Packing <- incoming committed capacity| || v*<- PreCommit1 <--> SealPreCommit1Failed| | ^ ^^| | *----------++----\| v v || |*<- PreCommit2 --------++--> SealPreCommit2Failed| | ||| v /-------/|* PreCommitting <-----+---> PreCommitFailed| | | ^| v | |*<- WaitSeed -----------+-----/| ||| ^ || ||| \--------*-----/| ||| || vvv v----+----> ComputeProofFailed*<- Committing || | ^--> CommitFailed| v ^| SubmitCommit || | || v |*<- CommitWait ---/| || v| FinalizeSector <--> FinalizeFailed| || v*<- Proving|vFailedUnrecoverableUndefinedSectorState <- ¯\_(ツ)_/¯| ^*---------------------/*/
2,扇区重新运行PreCommitting
lotus-miner sectors update-state --really-do-it 94 PreCommitting
# lotus-miner sectors status --log --on-chain-info 94
[event;sealing.SectorForceState] {"User":{"State":"PreCommitting"}}
删除扇区
lotus-miner sectors remove --really-do-it 3
3,CommitFailed
# lotus-miner sectors list | grep CommitFailed
1566 CommitFailed YES NO 1771845 (in 1 year 24 weeks) CC
lotus-miner sectors update-state --really-do-it 1566 Committing
# lotus-miner sectors list | grep 1566
1566 FinalizeSector YES NO 1771845 (in 1 year 24 weeks) CC
- 报错
error in RPC call to 'Filecoin.SectorsUpdate': normal shutdown of state machine:
# lotus-miner sectors list | grep CommitFailed
1613 CommitFailed NO NO n/a
# lotus-miner sectors update-state --really-do-it 1613 Committing
ERROR: normal shutdown of state machine
- 重启miner
- 扇区状态变为
PreCommit1
CommitFailed
# lotus-miner sectors update-state --really-do-it 2958 Committing
SealPreCommit2Failed
- P2 计算错误
0 SealPreCommit2Failed NO NO n/a CC
lotus-miner sectors update-state --really-do-it 0 PreCommit2
- 重新开始计算
0 PreCommit2 NO NO n/a CC
参考:
- 扇区状态