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

Create an Interface to remote_console release command #620

Conversation

humaite
Copy link
Collaborator

@humaite humaite commented Sep 23, 2024

Arweave is started with Distributed Erlang feature enabled by default. This means it is possible to connect to the node using its node name and a cookie. These values are configured in arweave.env script. remote_console command is available through the release generated during compilation, used to give access to Erlang node. In fact, this is a shortcut for the following command:

erl -rsh -cookie ${arweave_cookie} -sname ${console_name}

This kind of feature is required if we want to use something different than screen during the starting process, and offering a better way to deal with the main arweave process.

bin/console Outdated

# Sets $ARWEAVE and $ARWEAVE_* variables
source ${SCRIPT_DIR}/arweave.env
./$(ARWEAVE} ${SCRIPT_ACTION}
Copy link
Collaborator

Choose a reason for hiding this comment

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

$ARWEAVE as set by arweave.env is (or should be...) a full path, so i think ./$ARWEAVE might not work as hoped

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

True, I fixed it.

Arweave is started with Distributed Erlang feature enabled
by default. This means it is possible to connect to the
node using its node name and a cookie. These values
are configured in `arweave.env` script. `remote_console`
command is available through the release generated during
compilation, used to give access to Erlang node. In fact,
this is a shortcut for the following command:

    erl -rsh -cookie ${arweave_cookie} -sname ${console_name}

This kind of feature is required if we want to use something
different than screen during the starting process, and
offering a better way to deal with the main arweave process.
@humaite humaite force-pushed the improvement/615-use-remote_console-feature-instead-of-using-direct-input-from-screen branch from 1c77519 to a0d15f3 Compare September 25, 2024 06:33
@humaite humaite merged commit a283bcc into ArweaveTeam:master Sep 30, 2024
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.

2 participants