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

Test run on a new VM #33

Open
bobdubois opened this issue Sep 27, 2023 · 0 comments
Open

Test run on a new VM #33

bobdubois opened this issue Sep 27, 2023 · 0 comments

Comments

@bobdubois
Copy link
Collaborator

1st fatal error

TASK [zorlin.lotus_daemon : Read Lotus API token from file] *******************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["cat", "/home/bobbus/.lotus_calibnet/api_token"], "delta": "0:00:00.006346", "end": "2023-09-27 19:08:45.869965", "msg": "non-zero return code", "rc": 1, "start": "2023-09-27 19:08:45.863619", "stderr": "cat: /home/bobbus/.lotus_calibnet/api_token: No such file or directory", "stderr_lines": ["cat: /home/bobbus/.lotus_calibnet/api_token: No such file or directory"], "stdout": "", "stdout_lines": []}
...ignoring

TASK [zorlin.lotus_daemon : If we successfully read a token, flatten the fact] ************************************************************************************************************************************************
skipping: [localhost]

TASK [zorlin.lotus_daemon : Create API token] *********************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "set -o pipefail ; lotus auth api-info --perm admin | cut -d':' -f1 | cut -d'=' -f2", "delta": "0:00:00.122854", "end": "2023-09-27 19:08:46.699500", "msg": "non-zero return code", "rc": 1, "start": "2023-09-27 19:08:46.576646", "stderr": "ERROR: could not get API info for FullNode: could not get api endpoint: API not running (no endpoint)", "stderr_lines": ["ERROR: could not get API info for FullNode: could not get api endpoint: API not running (no endpoint)"], "stdout": "", "stdout_lines": []}

Restarting playbook... (lotus daemon running this time, API token will be collected properly)

waiting for wallet balance does not wait, rather dump into interactive CLI - problematic if you don't know what goes on behind the scene.

Lotus API token
We seem not to store the token in .bashrc or .profile for the lotus user. We need FULLNODE_API_INFO= registered for future interaction from the CLI.
Unable to continue though because the API is totally unreachable.
Reboot brought API available -> needs fixing!

Next run to be documented

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

No branches or pull requests

1 participant