Commit 2e768048 authored by Attila Lendvai's avatar Attila Lendvai Committed by GitHub

cmd, packaging: improve user-facing logging (#1379)

parent d566acb3
...@@ -255,7 +255,7 @@ func waitForClef(logger logging.Logger, maxRetries uint64, endpoint string) (ext ...@@ -255,7 +255,7 @@ func waitForClef(logger logging.Logger, maxRetries uint64, endpoint string) (ext
return nil, err return nil, err
} }
maxRetries-- maxRetries--
logger.Errorf("cannot connect to clef signer: %v", err) logger.Warningf("failing to connect to clef signer: %v", err)
time.Sleep(5 * time.Second) time.Sleep(5 * time.Second)
} }
......
...@@ -2,28 +2,37 @@ ...@@ -2,28 +2,37 @@
if [ ! `id -u` -eq 0 ] ; then if [ ! `id -u` -eq 0 ] ; then
echo " echo "
use sudo! This script requires root priviledges, use sudo.
" "
exit 1 exit 1
fi fi
RESP=$(/usr/bin/bee init --config /etc/bee/bee.yaml 2>&1) RESP=$(/usr/bin/bee init --config /etc/bee/bee.yaml 2>&1)
case "$RESP" in case "$RESP" in
Error*) Error*|*'No such file'*)
echo " echo "
Enabled clef-signer but clef is not running. The bee node has returned an error, probably because the bee-clef external signer is enabled, but the node couldn't connect to it.
Check https://docs.ethswarm.org/ for more info. Check https://docs.ethswarm.org/ for more info.
After you fix configuration run 'sudo bee-get-addr' again. Fix the configuration and try again.
The node's output was:
" "
echo "$RESP"
;; ;;
*) *)
ETH_ADDRESS=$(echo "$RESP" | grep ethereum | cut -d' ' -f6 | tr -d '"') ETH_ADDRESS=$(echo "$RESP" | grep ethereum | cut -d' ' -f6 | tr -d '"')
echo " echo "
Please make sure there is sufficient eth and bzz available on $ETH_ADDRESS address. Please make sure there is sufficient ETH and BZZ available on the node's Ethereum address: $ETH_ADDRESS.
You can get both Goerli ETH and Goerli BZZ now via the bzzaar at https://bzz.ethswarm.org/?transaction=buy&amount=%d&slippage=30&receiver=0x$ETH_ADDRESS
You can get both Goerli ETH and Goerli BZZ via the Bzzaar at https://bzz.ethswarm.org/?transaction=buy&amount=10&slippage=30&receiver=0x$ETH_ADDRESS
Or you can join us on Discord (at https://discord.gg/ykCupZMuww) and ask our bot for a sprinkle in the #faucet-request channel.
Once the node's wallet has received the funds it will begin joining the Swarm network.
After you get the funds start service with 'systemctl start bee.service'. See the docs for more at https://docs.ethswarm.org/docs/.
" "
;; ;;
esac esac
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment