Celestia
light node reference for Celestia Mocha testnet
The legacy guide pinned obsolete source tags, replaced system Go and removed node directories. Confirm the supported Mocha network, current release and official checksum or signature before installing or upgrading.
Read-only diagnostics
These checks do not install, initialize, restart, upgrade or delete services or nodes.
SERVICE="celestia-light"
STORE="$HOME/.celestia-light-mocha-4"
command -v celestia >/dev/null || { echo "celestia binary is not installed" >&2; exit 1; }
celestia version
sudo systemctl status "$SERVICE" --no-pager || true
sudo journalctl -u "$SERVICE" -n 100 --no-pager
celestia header sync-state --node.store "$STORE"Reversible decommission
This stops and disables the service, then moves the complete node store to a retained timestamped path. Nothing is removed.
set -euo pipefail
SERVICE="celestia-light"
STORE="$HOME/.celestia-light-mocha-4"
STAMP=$(date -u +%Y%m%dT%H%M%SZ)
RETIRED_STORE="$STORE.retired.$STAMP"
NODE_STOPPED=0
STORE_MOVED=0
rollback() {
trap - ERR INT TERM
if [ "$STORE_MOVED" -eq 1 ]; then mv "$RETIRED_STORE" "$STORE"; fi
if [ "$NODE_STOPPED" -eq 1 ]; then sudo systemctl start "$SERVICE" || true; fi
exit 1
}
trap rollback ERR INT TERM
test -d "$STORE"
test ! -e "$RETIRED_STORE"
sudo systemctl stop "$SERVICE"
NODE_STOPPED=1
mv "$STORE" "$RETIRED_STORE"
STORE_MOVED=1
sudo systemctl disable "$SERVICE"
trap - ERR INT TERM
NODE_STOPPED=0
STORE_MOVED=0
echo "Node store retained at $RETIRED_STORE. No keys, data, binary or service file were deleted."