Binary Info
sudo apt update
sudo apt upgrade -y
sudo apt install git build-essential curl jq -y
ver="1.21.5"
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version
# go version 1.21.5 ...
go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]
cd $HOME
wget -O uniond https://testnet-snapshot.genznodes.dev/union/binary-linux-amd64 &&\
chmod +x uniond &&\
if [ ! -d "$HOME/go/bin" ]; then
mkdir -p $HOME/go/bin
fi
mv $HOME/uniond $HOME/go/bin
uniond init NODE_NAME --chain-id union-testnet-6 --home $HOME/.union
uniond config chain-id union-testnet-6
uniond config keyring-backend test
uniond config node tcp://localhost:26657
cd $HOME
export DAEMON_NAME=uniond
export DAEMON_HOME=$HOME/.union
cosmovisor init $(which uniond)
wget -O $HOME/.union/config/genesis.json "https://testnet-snapshot.genznodes.dev/union/genesis.json"
wget -O $HOME/.union/config/addrbook.json "https://testnet-snapshot.genznodes.dev/union/addrbook.json"
sudo tee /etc/systemd/system/uniond.service > /dev/null <<EOF
[Unit]
Description="Union daemon node"
After=network-online.target
[Service]
User=$USER
Environment="DAEMON_NAME=uniond"
Environment="DAEMON_HOME=$HOME/.union"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="DAEMON_PREUPGRADE_MAX_RETRIES=0"
Environment="DAEMON_LOG_BUFFER_SIZE=512"
ExecStart=$(which cosmovisor) run start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable uniond
sudo systemctl start uniond
journalctl -fu uniond -o cat
1. Error: binary not present
Error: binary not present
stat $HOME/.union/cosmovisor/upgrades/[UPGRADE_NAME]/bin/uniond: no such file or directory"
uniond.service: Main process exited, code=exited, status=1/FAILURE
uniond.service: Failed with result 'exit-code'.
export DAEMON_NAME=uniond
export DAEMON_HOME=$HOME/.union
cosmovisor add-upgrade [UPGRADE_NAME] $(which uniond)
journalctl -fu uniond -o cat