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/cosmovisor@v1.5.0
cd $HOME
git clone https://github.com/gitopia/gitopia.git gitopia
cd gitopia
git checkout 0eab60ecf8c3e22e9c71d54346f76a35830a5dc5
make install
gitopiad init NODE_NAME --chain-id gitopia --home $HOME/.gitopia
gitopiad config chain-id gitopia
gitopiad config keyring-backend file
gitopiad config node tcp://localhost:26657
cd $HOME
export DAEMON_NAME=gitopiad
export DAEMON_HOME=$HOME/.gitopia
cosmovisor init $(which gitopiad)
wget -O $HOME/.gitopia/config/genesis.json "https://snapshot-at-1.genznodes.dev/gitopia/genesis.json"
wget -O $HOME/.gitopia/config/addrbook.json "https://snapshot-at-1.genznodes.dev/gitopia/addrbook.json"
sudo tee /etc/systemd/system/gitopiad.service > /dev/null <<EOF
[Unit]
Description="gitopia daemon node"
After=network-online.target
[Service]
User=$USER
Environment="DAEMON_NAME=gitopiad"
Environment="DAEMON_HOME=$HOME/.gitopia"
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 gitopiad
sudo systemctl start gitopiad
journalctl -fu gitopiad -o cat
1. Error: binary not present
Error: binary not present
stat $HOME/.gitopia/cosmovisor/upgrades/[UPGRADE_NAME]/bin/gitopiad: no such file or directory"
gitopiad.service: Main process exited, code=exited, status=1/FAILURE
gitopiad.service: Failed with result 'exit-code'.
export DAEMON_NAME=gitopiad
export DAEMON_HOME=$HOME/.gitopia
cosmovisor add-upgrade [UPGRADE_NAME] $(which gitopiad)
journalctl -fu gitopiad -o cat