"One Click Tangle" intends to make lives easier to IOTA adopters by providing pre-configured scripts and recipes that allow to deploy IOTA Networks and Nodes "in one click".
MIT License
55
stars
36
forks
source link
Add notes on peer multiaddress and docker images #42
sed: -e expression #1, char 30: unknown option to `s'
The cause of the error being the back slash found in the docker image and the peer multiAddress.
A way to avoid this error is adding forward slashes before a back slash.
For example, a docker image or a peer multiaddress that looks like this /ip4/x.x.x.x/tcp/15600/p2p/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx and gohornet/hornet:latest
Can be formatted to look like this
\/ip4\/x.x.x.x\/tcp\/15600\/p2p\/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx and gohornet\/hornet:latest
The pull request seeks to alert the reader to this.
Type of change
Choose a type of change, and delete any options that are not relevant.
Remove the existing config.json in the one-click-tangle/hornet-mainnet/config/config.json file and add the latest config file found here
Edit the config.json file to change the dasboard.bindAddress to 0.0.0.0:8081 instead of localhost:8081 and also change the dashboard.auth.passwordHash and the dashboard.auth.passwordSalt respectively so that you are able to log in to the dashboard.
Install the hornet configuration by running ./hornet.sh install -p "\/ip4\/178.18.253.217\/tcp\/15600\/p2p\/12D3KooWMkDp22T9hPEz7mMaM9EgDGioiUiRxSiFKXBwt1mcHbpm" -i "gohornet\/hornet:1.0.3"
Check dashboard to see if the node is running, and the peer that you added exists in the peering.json file, and that the node is synching and after synching becomes healthy.
Change checklist
[x] My code follows the contribution guidelines for this project
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
Description of change
When installing a hornet node with the docker image option or with the peer multiAddress option as
./hornet.sh install -p /ip4/x.x.x.x/tcp/15600/p2p/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -i gohornet/hornet:latest
An error shows up that states that
sed: -e expression #1, char 30: unknown option to `s'
The cause of the error being the back slash found in the docker image and the peer multiAddress.
A way to avoid this error is adding forward slashes before a back slash.
For example, a docker image or a peer multiaddress that looks like this
/ip4/x.x.x.x/tcp/15600/p2p/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
andgohornet/hornet:latest
Can be formatted to look like this
\/ip4\/x.x.x.x\/tcp\/15600\/p2p\/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
andgohornet\/hornet:latest
The pull request seeks to alert the reader to this.
Type of change
Choose a type of change, and delete any options that are not relevant.
How the change has been tested
The tests are closely related to the fix provided in the pull request https://github.com/iotaledger/one-click-tangle/pull/41#issue-698803741 as this pull request hasn't or may have not been merged yet
sed -i 's/\[\]/\[{"alias": "peer1","multiAddress": "'$peer'"}\]/g' config/peering.json
./hornet.sh install -p "\/ip4\/178.18.253.217\/tcp\/15600\/p2p\/12D3KooWMkDp22T9hPEz7mMaM9EgDGioiUiRxSiFKXBwt1mcHbpm" -i "gohornet\/hornet:1.0.3"
Change checklist