Skip to content
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

lotus-miner init defaults to 2KiB sectors for mainnet and calib #9359

Closed
8 of 18 tasks
Reiers opened this issue Sep 22, 2022 · 0 comments · Fixed by #9364
Closed
8 of 18 tasks

lotus-miner init defaults to 2KiB sectors for mainnet and calib #9359

Reiers opened this issue Sep 22, 2022 · 0 comments · Fixed by #9364
Labels
area/mining Area: Mining kind/bug Kind: Bug P2 P2: Should be resolved

Comments

@Reiers
Copy link

Reiers commented Sep 22, 2022

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

Daemon:  1.17.2-rc1+mainnet+git.39604faa0+api1.5.0
Local: lotus version 1.17.2-rc1+mainnet+git.39604faa0

Daemon:  1.17.2-rc1+calibnet+git.39604faa0+api1.5.0
Local: lotus version 1.17.2-rc1+calibnet+git.39604faa0

Describe the Bug

Seen a few reports, and reproduced myself.

As the title says, you will need to specify sector size if you want init a new miner right now. (--sector-size)
The default should be 32GiB.

NAME:
   lotus-miner init - Initialize a lotus miner repo

USAGE:
   lotus-miner init command [command options] [arguments...]

COMMANDS:
   restore  Initialize a lotus miner repo from a backup
   service  Initialize a lotus miner sub-service
   help, h  Shows a list of commands or help for one command

OPTIONS:
   --actor value                specify the address of an already created miner actor
   --create-worker-key          create separate worker key (default: false)
   --worker value, -w value     worker key to use (overrides --create-worker-key)
   --owner value, -o value      owner key to use
   --sector-size value          specify sector size to use (default: "2KiB")

Logging Information

2022-09-22T17:26:16.053+0200	ERROR	main	lotus-miner/init.go:263	Failed to initialize lotus-miner: creating miner failed:
    main.storageMinerInit
        /home/reiers/lotus/cmd/lotus-miner/init.go:546
  - pushing createMiner message:
    main.createStorageMiner
        /home/reiers/lotus/cmd/lotus-miner/init.go:744
  - GasEstimateMessageGas error: estimating gas used: message execution failed: exit 16, reason: message failed with backtrace:
00: f04 (method 2) -- send to f01 method 2 aborted with code 16 (16)
01: f01 (method 2) -- constructor failed: send to f040009 method 1 aborted with code 16 (16)
02: f040009 (method 1) -- proof type StackedDRGWindow2KiBV1 not allowed for new miner actors (16)
 (RetCode=16)
2022-09-22T17:26:16.053+0200	INFO	main	lotus-miner/init.go:268	Cleaning up /home/reiers/fullnode/LOTUS_MINER after attempt...
ERROR: Storage-miner init failed

StackedDRGWindow2KiBV1

Repo Steps

  1. Run lotus-miner init --owner=<address> --worker=<address> --no-local-storage
  2. See error above
@Reiers Reiers added P2 P2: Should be resolved kind/bug Kind: Bug area/mining Area: Mining labels Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mining Area: Mining kind/bug Kind: Bug P2 P2: Should be resolved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant