-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Several CLI commands failed to connect to lotus-miner #7072
Comments
I can confirm the same issue on : Daemon: 1.11.1-rc3+mainnet+git.56c35ff1e+api1.2.0 running lotus daemon on separate machine command's run fine on rc1 |
I confirm similar issue on m1.3.5
|
Guys, i reply in your slack thread. myabe you can try the solution I suggested |
@William8Work could you please run |
Is it not working on the miner node or worker node? |
This comment has been minimized.
This comment has been minimized.
From @William8Work
|
Running this on worker nodes:
Running the same command in miner node:
|
on my miner node : miner:~# lotus-miner -vv info |
netstat -an : |
other command: miner:~# lotus-miner -vv sectors list --fast seems to connect just fine on that port |
I had set : LOTUS_MARKETS_PATH, was from a test a while back |
Having read the Slack thread, I now understand that you are running @William8Work could you confirm that all 3 API_INFO env vars are setup correctly? In order to interact with
Having debugged this, we should further improve the error messages, because |
@nonsense ok, since my worker nodes already have MINER_API_INFO and FULLNODE_API_INFO, I added the MARKETS_API_INFO env. and now the lotus-miner info and lotus-miner storage-deals commands works in worker nodes!! the only small change to your advice above is that I set the market api exactly same value as miner api (same IP address, same port):
|
Now that filecoin-project/filecoin-docs#1012 and #7088 are merged, I think we can close this. For now miners have to specify all environment variables in order to connect to a remote miner, and in order for Lotus CLI configuration will get a revamp in the near future, when we plan on simplifying it and unifying it at one place. |
Checklist
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.Lotus component
lotus miner - mining and block production
Lotus Version
Describe the Bug
After upgraded to v1.11.1-rc2, I tried to run cli commands on worker nodes:
These commands run successful in miner node. However, in the worker nodes (separate machines) encountered the following:
these commands failed:
but these commands works:
The worker machine has the proper MINER_API_INFO env set up so the lotus-miner sealing jobs and other commands are able to success. However,
lotus-miner info
andlotus-miner storage-deals list
failed.Logging Information
Repo Steps
lotus-miner info
command in lotus miner machine as well as a worker machine.The text was updated successfully, but these errors were encountered: