Skip to content

init genesis miner t01000 failed for 2k network #7136

Description

@diwufeiwen

Checklist

  • This is not a security-related bug/issue. If it is, please follow please follow the security policy.
  • This is not a question or a support request. If you have any lotus related questions, please ask in the lotus forum.
  • This is not a new feature request. If it is, please file a feature request instead.
  • This is not an enhancement request. If it is, please file a improvement suggestion instead.
  • I have searched on the issue tracker and the lotus forum, and there is no existing related issue or discussion.
  • I am running the 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.
  • I did not make any code changes to lotus.

Lotus component

  • lotus daemon - chain sync
  • lotus miner - mining and block production
  • lotus miner/worker - sealing
  • lotus miner - proving(WindowPoSt)
  • lotus miner/market - storage deal
  • lotus miner/market - retrieval deal
  • lotus miner/market - data transfer
  • lotus client
  • lotus JSON-RPC API
  • lotus message management (mpool)
  • Other

Lotus Version

lotus version 1.11.0+2k+git.283793f94
lotus-miner version 1.11.0+2k+git.283793f94

Describe the Bug

init genesis miner t01000 failed for 2k network
RUST_LOG=trace ./lotus-miner init --genesis-miner --actor=t01000 --sector-size=2048 --pre-sealed-sectors=/.genesis-sectors --pre-sealed-metadata=/.genesis-sectors/pre-seal-t01000.json --nosync

Logging Information

lotus-miner: 2021-08-19T20:10:24.902 DEBUG merkletree::merkle > generated partial_tree of row_count 3 and len 73 with 8 branches for proof at 35
2021-08-19T20:10:24.901 DEBUG merkletree::merkle > generated partial_tree of row_count 3 and len 73 with 8 branches for proof at 3
2021-08-19T20:10:24.900 ERROR storage_proofs_post::fallback::vanilla > faulty sector: SectorId(0)
2021-08-19T20:10:24.900 ERROR storage_proofs_post::fallback::vanilla > faulty sector: SectorId(0)
2021-08-19T20:10:24.902 ERROR storage_proofs_post::fallback::vanilla > faulty sector: SectorId(0)
2021-08-19T20:10:24.902 DEBUG merkletree::merkle > generated partial_tree of row_count 3 and len 73 with 8 branches for proof at 41
2021-08-19T20:10:24.901 ERROR storage_proofs_post::fallback::vanilla > faulty sector: SectorId(0)
2021-08-19T20:10:24.903 ERROR storage_proofs_post::fallback::vanilla > faulty sector: SectorId(0)
2021-08-19T20:10:24.903 ERROR storage_proofs_post::fallback::vanilla > faulty sector: SectorId(0)
2021-08-19T20:10:24.903 DEBUG merkletree::merkle > generated partial_tree of row_count 3 and len 73 with 8 branches for proof at 53
2021-08-19T20:10:24.903 DEBUG merkletree::merkle > generated partial_tree of row_count 3 and len 73 with 8 branches for proof at 60
2021-08-19T20:10:24.903 ERROR storage_proofs_post::fallback::vanilla > faulty sector: SectorId(0)
2021-08-19T20:10:24.904 ERROR storage_proofs_post::fallback::vanilla > faulty sector: SectorId(0)
2021-08-19T20:10:24.904 ERROR storage_proofs_post::fallback::vanilla > faulty sector: SectorId(0)
2021-08-19T20:10:24.904 DEBUG merkletree::merkle > generated partial_tree of row_count 3 and len 73 with 8 branches for proof at 1
2021-08-19T20:10:24.904 ERROR storage_proofs_post::fallback::vanilla > faulty sector: SectorId(0)
2021-08-19T20:10:24.904 INFO filcrypto::proofs::api > generate_winning_post: finish
2021-08-19T20:10:24.905+0800    ERROR   miner   miner/miner.go:471      completed mineOne       {"tookMilliseconds": 30, "forRound": 1, "baseEpoch": 0, "baseDeltaSeconds": 134, "nullRounds": 0, "lateStart": true, "beaconEpoch": 1131461, "lookbackEpochs": 900, "networkPowerAtLookback": "40960", "minerPowerAtLookback": "40960", "isEligible": true, "isWinner": true, "error": "failed to compute winning post proof: faulty sectors [SectorId(0)]", "errorVerbose": "failed to compute winning post proof:\n    github.com/filecoin-project/lotus/miner.(*Miner).mineOne\n        /root/hj/lotus/miner/miner.go:537\n  - faulty sectors [SectorId(0)]\n    github.com/filecoin-project/filecoin-ffi.GenerateWinningPoSt\n    \t/root/hj/lotus/extern/filecoin-ffi/proofs.go:642\n    github.com/filecoin-project/lotus/extern/sector-storage/ffiwrapper.(*Sealer).GenerateWinningPoSt\n    \t/root/hj/lotus/extern/sector-storage/ffiwrapper/verifier_cgo.go:30\n    github.com/filecoin-project/lotus/storage.(*StorageWpp).ComputeProof\n    \t/root/hj/lotus/storage/miner.go:299\n    github.com/filecoin-project/lotus/miner.(*Miner).mineOne\n    \t/root/hj/lotus/miner/miner.go:535\n    github.com/filecoin-project/lotus/miner.(*Miner).mine\n    \t/root/hj/lotus/miner/miner.go:283\n    runtime.goexit\n    \t/root/go/src/runtime/asm_amd64.s:1371"}
2021-08-19T20:10:24.905+0800    ERROR   miner   miner/miner.go:285      mining block failed: failed to compute winning post proof:
    github.com/filecoin-project/lotus/miner.(*Miner).mineOne
        /root/hj/lotus/miner/miner.go:537
  - faulty sectors [SectorId(0)]
    github.com/filecoin-project/filecoin-ffi.GenerateWinningPoSt
        /root/hj/lotus/extern/filecoin-ffi/proofs.go:642
    github.com/filecoin-project/lotus/extern/sector-storage/ffiwrapper.(*Sealer).GenerateWinningPoSt
        /root/hj/lotus/extern/sector-storage/ffiwrapper/verifier_cgo.go:30
    github.com/filecoin-project/lotus/storage.(*StorageWpp).ComputeProof
        /root/hj/lotus/storage/miner.go:299
    github.com/filecoin-project/lotus/miner.(*Miner).mineOne
        /root/hj/lotus/miner/miner.go:535
    github.com/filecoin-project/lotus/miner.(*Miner).mine
        /root/hj/lotus/miner/miner.go:283
    runtime.goexit
        /root/go/src/runtime/asm_amd64.s:1371
^C2021-08-19T20:10:25.862+0800  ERROR   main    lotus-storage-miner/init.go:496 failed to shut down miner: context canceled
2021-08-19T20:10:25.862+0800    INFO    miner   miner/miner.go:177      received interrupt while trying to sleep in mining cycle
2021-08-19T20:10:25.865+0800    ERROR   main    lotus-storage-miner/init.go:260 Failed to initialize lotus-miner: failed to configure miner:
    main.storageMinerInit
        /root/hj/lotus/cmd/lotus-storage-miner/init.go:500
  - context canceled
2021-08-19T20:10:25.866+0800    INFO    main    lotus-storage-miner/init.go:265 Cleaning up /home/test/.lotusminer after attempt...
ERROR: Storage-miner init failed

Repo Steps

  1. ./lotus-seed pre-seal --sector-size 2048 --num-sectors 2
  2. ./lotus-seed genesis new localnet.json
  3. ./lotus-seed genesis add-miner localnet.json ~/.genesis-sectors/pre-seal-t01000.json
  4. nohup ./lotus daemon --genesis-template=localnet.json --lotus-make-genesis=dev.car --bootstrap=false > lt.log 2>&1 &
  5. ./lotus-miner init --genesis-miner --actor=t01000 --sector-size=2048 --pre-sealed-sectors=/.genesis-sectors --pre-sealed-metadata=/.genesis-sectors/pre-seal-t01000.json --nosync

Activity

  1. JelloHuang commented on Aug 30, 2021

    @JelloHuang

    pls update u hardware machine info

  2. diwufeiwen commented on Sep 27, 2021

    @diwufeiwen
    ContributorAuthor

    This problem ends, and the conclusion is: it doesn’t work in cetos 7.*, it works in ubutun system

  3. JelloHuang commented on Oct 1, 2021

    @JelloHuang

    no,there r some bug which not fixed in lotus daemon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions