# Watch the node logs for the upgradejournalctl -u story -f -o cat
Note: Cosmovisor will automatically handle the binary switch once the specified block height is reached. Before the upgrade, confirm that your node is fully synced and has enough disk space available.
If you have any permission issues, you can run the following command to fix it.
Copy
Ask AI
sudo chown -R $USER:$USER $HOME/.story
Setup the cosmovisor
Copy
Ask AI
# Create the cosmovisor directorymkdir -p $HOME/.story/cosmovisor/genesis/bin# Copy the new binary to the cosmovisor directorycp $HOME/go/bin/story $HOME/.story/cosmovisor/genesis/bin/
Add cosmovisor to the systemd service
Copy
Ask AI
sudo tee /etc/systemd/system/cosmovisor.service > /dev/null <<EOF[Unit]Description=CosmovisorAfter=network.target[Service]Type=simpleUser=$USERGroup=$GROUPExecStart=${which cosmovisor} run run \--api-enable \--api-address=${API_ADDRESS}Restart=on-failureRestartSec=5sLimitNOFILE=65535Environment="DAEMON_NAME=$DAEMON_NAME"Environment="DAEMON_HOME=$DAEMON_HOME"Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"Environment="DAEMON_RESTART_AFTER_UPGRADE=true"Environment="DAEMON_DATA_BACKUP_DIR=$DAEMON_HOME/cosmovisor/backup"WorkingDirectory=$DAEMON_HOME[Install]WantedBy=multi-user.targetEOF
Copy
Ask AI
# Enable the cosmovisor servicesudo systemctl enable cosmovisorsudo systemctl daemon-reloadsudo systemctl stop story# Start the cosmovisor servicesudo systemctl start cosmovisor# Check the status of the cosmovisor servicesudo systemctl status cosmovisorsudo journalctl -u cosmovisor -f -o cat