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

Add doc explaining how to run daemon and miner on separate hosts #3352

Closed
wants to merge 1 commit into from

Conversation

lanzafame
Copy link
Contributor

No description provided.

@hsanjuan
Copy link
Contributor

I can take care of this

Comment on lines +19 to +27
For the token file, you can copy the contents of the ~/.lotus/token file on the lotus daemon machine exactly.

So on the miner machine you end up with a ~/.lotus directory that looks like the following:

```sh
$ ls ~/.lotus
-rw-r--r-- 1 lotus lotus 32 Aug 25 15:49 api
-rw-r--r-- 1 lotus lotus 137 Aug 25 15:49 token
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is poorly documented - but you can use the FULLNODE_API_INFO env var for this instead of creating fake lotus repo

lotus auth api-info --perm admin
FULLNODE_API_INFO=eyJhbGci[...]4HVg:/ip4/127.0.0.1/tcp/1234/http

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In FULLNODE_API_INFO I believe there should be set an IP address of host where the daemon is running, right?
I ran into some strange behaviour while trying to get miner to work with a remote daemon. #4209

@hsanjuan
Copy link
Contributor

Fixed by #3431 which documents more clearly the env var setting.

@lanzafame
Copy link
Contributor Author

@hsanjuan feel free to close

@hsanjuan hsanjuan closed this Sep 11, 2020
@Kubuxu Kubuxu deleted the feat/add-separate-daemon-miner-doc branch November 25, 2021 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants