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 info doesn't work after MRA service separation #6887

Closed
7 tasks done
nonsense opened this issue Jul 27, 2021 · 1 comment · Fixed by #6906
Closed
7 tasks done

lotus-miner info doesn't work after MRA service separation #6887

nonsense opened this issue Jul 27, 2021 · 1 comment · Fixed by #6906
Assignees
Labels
kind/bug Kind: Bug P1 P1: Must be resolved
Milestone

Comments

@nonsense
Copy link
Member

nonsense commented Jul 27, 2021

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 miner - mining and block production

Lotus Version

$ lotus version
Daemon: 1.11.1-dev+mainnet+git.48e8f54c6+api1.3.0
Local: lotus version 1.11.1-dev+mainnet+git.48e8f54c6

feat/replace-multistore-carv2 branch

Describe the Bug

MRA feature allows miners to split their monolith miner node into multiple service - proving/sealing miner process, and markets process.

This creates a problem for lotus-miner info command - it is currently trying to fetch data from APIs that are available exclusively on one or the other process, so it will always return an error, for example:

$ LOTUS_MINER_PATH=~/lotus-miner-path ./lotus-miner info
Chain: [sync ok] [basefee 137.976 pFIL]
Miner: f0127896 (32 GiB sectors)
Power: 25.7 Ti / 8.15 Ei (0.0003%)
        Raw: 22.72 TiB / 8.149 EiB (0.0003%)
        Committed: 22.72 TiB
        Proving: 22.72 TiB
Projected average block win rate: 0.30/week (every 554h56m13s)
Projected block win with 99.9% probability every 3833h20m28s
(projections DO NOT account for future network and miner growth)

ERROR: fatal error calling 'Filecoin.MarketListIncompleteDeals': panic in rpc method 'Filecoin.MarketListIncompleteDeals': runtime error: invalid memory address or nil pointer dereference

or

$ LOTUS_MINER_PATH=~/markets-repo-location ./lotus-miner info
Chain: [sync ok] [basefee 143.99 pFIL]
ERROR: getting actor address: fatal error calling 'Filecoin.ActorAddress': panic in rpc method 'Filecoin.ActorAddress': runtime error: invalid memory address or nil pointer dereference

We should refactor lotus-miner info to return relevant information, depending on which repo is being targetted.



### Logging Information

.

### Repo Steps

_No response_
@jennijuju jennijuju added M1-release P1 P1: Must be resolved and removed Epic labels Jul 27, 2021
@jennijuju jennijuju added this to the 1.11.1 milestone Jul 27, 2021
@jennijuju
Copy link
Member

We want the fix to this to be in v1.11.1-rc2 (cc @jacobheun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Kind: Bug P1 P1: Must be resolved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants