This guide explains how to set up a pruned Cosmos Validator node, and manage it using systemd.
chmod +x install_go.sh
./install_go.shThis installs Go from go1.21.0.linux-amd64.tar.gz and sets up the environment.
chmod +x install_gaia.sh
./install_gaia.shThis installs gaiad and its dependencies.
chmod +x init_gaia_node.sh
./init_gaia_node.shThis initializes the Gaia node, sets up configuration, and downloads required files without starting gaiad.
chmod +x setup_pruned_gaia_snapshot.sh
./setup_pruned_gaia_snapshot.shThis downloads and sets up a pruned snapshot for faster sync.
Copy the gaiad.service file to the correct location:
sudo cp gaiad.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable gaiad-
Start Gaia:
sudo systemctl start gaiad
-
Check Gaia Status:
sudo systemctl status gaiad
-
View Logs:
journalctl -fu gaiad
-
Restart Gaia:
sudo systemctl restart gaiad
-
Stop Gaia:
sudo systemctl stop gaiad
If gaiad fails to start, ensure:
- The binary exists and is executable:
ls -l /home/ubuntu/go/bin/gaiad - Permissions are correct:
chmod +x /home/ubuntu/go/bin/gaiad - The
gaiad.servicefile has the correctExecStartpath.
For persistent errors, check logs using:
journalctl -xeu gaiad