filecoin-project / lotus

Reference implementation of the Filecoin protocol, written in Go
https://lotus.filecoin.io/
Other
2.85k stars 1.27k forks source link

failed to wait for porep inclusion: found message with equal nonce as the one we are looking for that is NOT a valid replacement message #8866

Closed licornduan closed 2 years ago

licornduan commented 2 years ago

Checklist

Lotus component

Lotus Version

Daemon:  1.14.0+mainnet+git.47d77c933.dirty+api1.5.0
Local: lotus version 1.14.0+mainnet+git.47d77c933.dirty

Daemon:  1.14.0+mainnet+git.47d77c933.dirty+api1.3.0
Local: lotus-miner version 1.14.0+mainnet+git.47d77c933.dirty

Describe the Bug

SectorID: 122982 Status: CommitWait CIDcommD: baga6ea4seaqao7s73y24kcutaosvacpdjgfe5pw76ooefnyqw4ynr3d2y6x2mpq CIDcommR: bagboea4b5abcakyd73w4glpiya3kewiiwjxhycwzqi7rrct3x7cx6tabgdwqq5to Ticket: b2391c9a41280d4c8f401d776230f0429d899c10d4865ee3b513eeafd81ac9b4 TicketH: 1877169 Seed: ea597bce66331e02f10aab31bb7a599e9c71d4b93dccf717281df7b0165cfe66 SeedH: 1878852 Precommit: bafy2bzacedwo3xrqn65qd2seezaiaxrnfn7flu3dy55rdqvf2o2t5ofzpl3hk Commit: bafy2bzacedgaggotn27fd4jutieo3u7hklxaewdpdmdj2sbjunpiamt3slcoi Deals: [0] Retries: 0

Event Log:

  1. 2022-06-08 08:11:56 +0800 CST: [event;sealing.SectorStartCC] {"User":{"ID":122982,"SectorType":8}}
  2. 2022-06-08 08:35:48 +0800 CST: [event;sealing.SectorPacked] {"User":{"FillerPieces":[{"Size":34359738368,"PieceCID":{"/":"baga6ea4seaqao7s73y24kcutaosvacpdjgfe5pw76ooefnyqw4ynr3d2y6x2mpq"}}]}}
  3. 2022-06-08 08:35:48 +0800 CST: [event;sealing.SectorTicket] {"User":{"TicketValue":"sjkcmkEoDUyPQB13YjDwQp2JnBDUhl7jtRPur9gaybQ=","TicketEpoch":1877169}}
  4. 2022-06-08 12:20:48 +0800 CST: [event;sealing.SectorPre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ZERyZzMyR2lCVjFfMSJ9"}}
  5. 2022-06-08 12:50:32 +0800 CST: [event;sealing.SectorPreCommit2] {"User":{"Sealed":{"/":"bagboea4b5abcakyd73w4glpiya3kewiiwjxhycwzqi7rrct3x7cx6tabgdwqq5to"},"Unsealed":{"/":"baga6ea4seaqao7s73y24kcutaosvacpdjgfe5pw76ooefnyqw4ynr3d2y6x2mpq"}}}
  6. 2022-06-08 12:50:32 +0800 CST: [event;sealing.SectorPreCommitBatch] {"User":{}}
  7. 2022-06-08 13:50:34 +0800 CST: [event;sealing.SectorPreCommitBatchSent] {"User":{"Message":{"/":"bafy2bzacedwo3xrqn65qd2seezaiaxrnfn7flu3dy55rdqvf2o2t5ofzpl3hk"}}}
  8. 2022-06-08 13:54:33 +0800 CST: [event;sealing.SectorPreCommitLanded] {"User":{"TipSet":"AXGg5AIgGa/j6SneH+zlOzYTIwOyvFJ7cJnjZz0fGSFTkIrGMkgBcaDkAiBwB5aXDbG2aUesCZQVpDsJw3xPTjtVUgFkzaCfLvTEYAFxoOQCIPEcLcVpZaxqJ0/ivwy0d4xX8bZRhB20IZaaz6xYex+sAXGg5AIgRbGPKZWLt1tJYq+L1ehyJJEaLZxd79N1ws9crvRQzYQBcaDkAiAeH0PZ4coDY1venDe67xmBvvByyTu4km7KavYInAn1ZgFxoOQCIM3CbwCIU9izCl16otTq4aKy2VkcEq0LLB2MwXJqkCsu"}}
  9. 2022-06-08 15:09:44 +0800 CST: [event;sealing.SectorSeedReady] {"User":{"SeedValue":"6ll7zmYzHgLxCqsxu3pZnpxx1Lk9zPcXKB33sBZc/mY=","SeedEpoch":1878852}}
  10. 2022-06-08 15:30:52 +0800 CST: [event;sealing.SectorCommitted] {"User":{"Proof":"jJEE9lI7MzLk3jC5jV7LieuZhFii3oBtRi+sUJurOc7LJMXhQp3GvtgQVZGnO5h7gYvfG4szzQYYblnfOYpVexv4bn2IXyNinkVYobdvzGYCkyxcZEwwQpplVFo7ZUkxFoj1dYKrTnXR/TN38HY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vsGH9UgWMrF5GbBp+QQUJHuXvgCvkng9I4MEwo/zhIjh8tI71xseR20lYad6dTQbBERL6C1bhTPDWMVmJxlIvmYIhAsQN/AfANAjT3lv+SKqFIXf8Y2ox/UbWNfLsFqydwMGrobz+vIutRgAO5uDO1Y/jEd63D2iKk2YyyLGYKLkmqu4TnlijGz5vE4SOkgmMT1BsIkmmlTPCcVq22Pen7nsUdDt8o9+B+foAbdQxw5nhpizbblXBCTk62fWNJAm1rRK8gmaxOhCMyk"}}
  11. 2022-06-08 15:30:52 +0800 CST: [event;sealing.SectorCommitSubmitted] {"User":{"Message":{"/":"bafy2bzacedgaggotn27fd4jutieo3u7hklxaewdpdmdj2sbjunpiamt3slcoi"}}}
  12. 2022-06-08 15:31:39 +0800 CST: [event;sealing.SectorCommitFailed] {"User":{}} failed to wait for porep inclusion: found message with equal nonce as the one we are looking for that is NOT a valid replacement message (F:bafy2bzacedgaggotn27fd4jutieo3u7hklxaewdpdmdj2sbjunpiamt3slcoi n 67491, TS: bafy2bzaceabcgqcyiabelywgfs2kbp37b4nhm7qpvgblx4kmxsqjbfizeg5lu n67491)
  13. 2022-06-08 15:32:39 +0800 CST: [event;sealing.SectorRetryCommitWait] {"User":{}}

Logging Information

10. 2022-06-08 15:30:52 +0800 CST:  [event;sealing.SectorCommitSubmitted]   {"User":{"Message":{"/":"bafy2bzacedgaggotn27fd4jutieo3u7hklxaewdpdmdj2sbjunpiamt3slcoi"}}}
11. 2022-06-08 15:31:39 +0800 CST:  [event;sealing.SectorCommitFailed]  {"User":{}}
    failed to wait for porep inclusion: found message with equal nonce as the one we are looking for that is NOT a valid replacement message (F:bafy2bzacedgaggotn27fd4jutieo3u7hklxaewdpdmdj2sbjunpiamt3slcoi n 67491, TS: bafy2bzaceabcgqcyiabelywgfs2kbp37b4nhm7qpvgblx4kmxsqjbfizeg5lu n67491)
12. 2022-06-08 15:32:39 +0800 CST:  [event;sealing.SectorRetryCommitWait]   {"User":{}}

Repo Steps

1.14.0+mainnet+git.47d77c933.dirty

2022-06-08T13:50:34.102+0800 INFO sectors storage-sealing/states_sealing.go:470 Sector precommitted: 122982 2022-06-08T13:54:33.518+0800 INFO sectors storage-sealing/states_sealing.go:490 precommit message landed on chain: 122982 2022-06-08T15:09:44.692+0800 INFO sectors storage-sealing/states_sealing.go:570 KOMIT 122982 b2391c9a41280d4c8f401d776230f0429d899c10d4865ee3b513eeafd81ac9b4(1877169); ea597bce66331e02f10aab31bb7a599e9c71d4b93dccf717281df7b0165cfe66(1878852); [{34359738368 baga6ea4seaqao7s73y24kcutaosvacpdjgfe5pw76ooefnyqw4ynr3d2y6x2mpq}]; r:bagboea4b5abcakyd73w4glpiya3kewiiwjxhycwzqi7rrct3x7cx6tabgdwqq5to; d:baga6ea4seaqao7s73y24kcutaosvacpdjgfe5pw76ooefnyqw4ynr3d2y6x2mpq 2022-06-08T15:09:44.929+0800 DEBUG advmgr sector-storage/sched.go:765 SCHED ASSIGNED sqi:1 sector 122982 task seal/v0/commit/1 to window 101 2022-06-08T15:09:44.929+0800 INFO advmgr sector-storage/sched.go:788 wp test sector 122982,task:seal/v0/commit/1 sqi:1 to wid:a7b097ea-4434-4cda-836f-9bc4e5baf47e,hostname:worker27-pc2_1 2022-06-08T15:09:44.929+0800 DEBUG advmgr sector-storage/sched_worker.go:439 assign worker sector 122982 (ready) 2022-06-08T15:09:54.787+0800 DEBUG advmgr sector-storage/sched.go:765 SCHED ASSIGNED sqi:2 sector 122982 task seal/v0/commit/2 to window 3 2022-06-08T15:09:54.787+0800 INFO advmgr sector-storage/sched.go:788 wp test sector 122982,task:seal/v0/commit/2 sqi:2 to wid:c6756d3b-92fc-4a66-866f-2515f66e2a49,hostname:workerc31-c2-2 2022-06-08T15:09:54.788+0800 DEBUG advmgr sector-storage/sched_worker.go:439 assign worker sector 122982 (ready) 2022-06-08T15:31:39.186+0800 WARN sectors storage-sealing/fsm.go:733 sector 122982 got error event sealing.SectorCommitFailed: failed to wait for porep inclusion: found message with equal nonce as the one we are looking for that is NOT a valid replacement message (F:bafy2bzacedgaggotn27fd4jutieo3u7hklxaewdpdmdj2sbjunpiamt3slcoi n 67491, TS: bafy2bzaceabcgqcyiabelywgfs2kbp37b4nhm7qpvgblx4kmxsqjbfizeg5lu n67491) 2022-06-08T15:31:39.217+0800 INFO sectors storage-sealing/states_failed.go:28 CommitFailed(122982), waiting 59.78269733s before retrying

rjan90 commented 2 years ago

Hey @licornduan! From this error message: failed to wait for porep inclusion: found message with equal nonce as the one we are looking for that is NOT a valid replacement message it seems like you are trying to send an entirely different message with the same nonce as message that has already been sent. Are you implementing some kind of custom message-logic?

https://github.com/filecoin-project/lotus/blob/d48b629b4666d5659892611d4163268e68a94588/chain/stmgr/searchwait.go#L254-L259

github-actions[bot] commented 2 years ago

Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 24 hours.

github-actions[bot] commented 2 years ago

This issue was closed because it is missing author input.