filecoin-project / lotus

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

[Bug]I updated v1.4.0, but It is not working #5239

Closed qkrwnsgh1288 closed 2 years ago

qkrwnsgh1288 commented 3 years ago

Describe the bug I updated v1.4.0, and restarted lotus. But it's not getting in sync.

To Reproduce Steps to reproduce the behavior:

  1. Run '...'
  2. See error state: error; Current Epoch: 340787; Tdo:0

Version (run lotus version): v1.4.0

90hacker commented 3 years ago

I got this error after I upgraded @ribasushi

root@FIL:/data/test/lotus# ./lotus sync status
sync status:
worker 664:
        Base:   [bafy2bzaceayxruwmowfdwje3gdpqh2t55jj4wfat66ittgcrb6dl6utvin3uy bafy2bzaceb5qi2rpyc2zdsuxh2urooxvdstksugjxye6pouw5lzaczcu6lsk4]
        Target: [bafy2bzacebjijcuuefahdhbknqmqvm3qrvnw2lyr7fwupmizbxczpytxxgu66] (340904)
        Height diff:    128
        Stage: error
        Height: 0
        Elapsed: 52.809µs
        Error: chain linked to block marked previously as bad ([bafy2bzacebjijcuuefahdhbknqmqvm3qrvnw2lyr7fwupmizbxczpytxxgu66], bafy2bzaceayk2aio5wwusz6rmudsxvvzh25b2zfsoodbaujdolfv2o22swwh2) (reason: linked to bafy2bzaceb3gaydlvqtkt6zstcmthh4c2aa5aev6lwykyd7m6yd4qyje2lvmo caused by: [bafy2bzacecogt34tf5ulrcb74barhdhwpcjbdyym4qzgqw6kbo3uyijkdtlgu] 1 error occurred:
        * block had invalid messages:
    github.com/filecoin-project/lotus/chain.(*Syncer).ValidateBlock.func3
        /data/test/lotus/chain/sync.go:763
  - bls aggregate signature was invalid:
    github.com/filecoin-project/lotus/chain.(*Syncer).checkBlockMessages
        /data/test/lotus/chain/sync.go:1055
  - bls aggregate signature failed to verify:
    github.com/filecoin-project/lotus/chain.(*Syncer).verifyBlsAggregate
        /data/test/lotus/chain/sync.go:1205

)
worker 665:
        Base:   [bafy2bzaceayxruwmowfdwje3gdpqh2t55jj4wfat66ittgcrb6dl6utvin3uy bafy2bzaceb5qi2rpyc2zdsuxh2urooxvdstksugjxye6pouw5lzaczcu6lsk4]
        Target: [bafy2bzacedysio22dju54tbxvyf6cl6gtj3oqxh7uxionf7dprhxxl5zv64pq] (340904)
        Height diff:    128
        Stage: error
        Height: 0
        Elapsed: 59.524µs
        Error: chain linked to block marked previously as bad ([bafy2bzacedysio22dju54tbxvyf6cl6gtj3oqxh7uxionf7dprhxxl5zv64pq], bafy2bzaceayk2aio5wwusz6rmudsxvvzh25b2zfsoodbaujdolfv2o22swwh2) (reason: linked to bafy2bzaceb3gaydlvqtkt6zstcmthh4c2aa5aev6lwykyd7m6yd4qyje2lvmo caused by: [bafy2bzacecogt34tf5ulrcb74barhdhwpcjbdyym4qzgqw6kbo3uyijkdtlgu] 1 error occurred:
        * block had invalid messages:
    github.com/filecoin-project/lotus/chain.(*Syncer).ValidateBlock.func3
        /data/test/lotus/chain/sync.go:763
  - bls aggregate signature was invalid:
    github.com/filecoin-project/lotus/chain.(*Syncer).checkBlockMessages
        /data/test/lotus/chain/sync.go:1055
  - bls aggregate signature failed to verify:
    github.com/filecoin-project/lotus/chain.(*Syncer).verifyBlsAggregate
        /data/test/lotus/chain/sync.go:1205

)
worker 666:
        Base:   [bafy2bzaceayxruwmowfdwje3gdpqh2t55jj4wfat66ittgcrb6dl6utvin3uy bafy2bzaceb5qi2rpyc2zdsuxh2urooxvdstksugjxye6pouw5lzaczcu6lsk4]
        Target: [bafy2bzacec6gnxfvgbhvzr5xk7pxg6vb2ko7u4cn6qvd52jk5l2iymtnjhu7a] (340904)
        Height diff:    128
        Stage: error
        Height: 0
        Elapsed: 44.43µs
        Error: chain linked to block marked previously as bad ([bafy2bzacec6gnxfvgbhvzr5xk7pxg6vb2ko7u4cn6qvd52jk5l2iymtnjhu7a], bafy2bzaceayk2aio5wwusz6rmudsxvvzh25b2zfsoodbaujdolfv2o22swwh2) (reason: linked to bafy2bzaceb3gaydlvqtkt6zstcmthh4c2aa5aev6lwykyd7m6yd4qyje2lvmo caused by: [bafy2bzacecogt34tf5ulrcb74barhdhwpcjbdyym4qzgqw6kbo3uyijkdtlgu] 1 error occurred:
        * block had invalid messages:
    github.com/filecoin-project/lotus/chain.(*Syncer).ValidateBlock.func3
        /data/test/lotus/chain/sync.go:763
  - bls aggregate signature was invalid:
    github.com/filecoin-project/lotus/chain.(*Syncer).checkBlockMessages
        /data/test/lotus/chain/sync.go:1055
  - bls aggregate signature failed to verify:
    github.com/filecoin-project/lotus/chain.(*Syncer).verifyBlsAggregate
        /data/test/lotus/chain/sync.go:1205

)
cryptocamtech commented 3 years ago

I had a similar issue when the chain was stored on a HDD. Moving to SSD fixed the problem - I think the chain is moves pretty quickly.

rjan90 commented 2 years ago

I think issue can be closed, as never versions of Lotus are not experiencing this issue. #rengjøring