Upgrade Procedure

Last updated 2 min read
Report issue

GritivaCore Upgrade Guide#

This document provides a comprehensive guide for upgrading the GritivaCore agent on your virtual machines (VMs). It is critical to follow the outlined steps to ensure a smooth upgrade process while maintaining compatibility with the hosted control plane.

Before proceeding with the upgrade, ensure that you have the following:

  • Current version of the GritivaCore agent. The agent binary has no version subcommand — the panel shows the running version for each VM under INFRA → VMs, or:

    curl -s https://api.gritiva.com/api/v1/vms/ -H "X-API-Key: $GRITIVA_API_KEY"
  • Available version for upgrade. The installer at https://gritiva.com/install-gritiva.sh always fetches the current release; the panel flags VMs whose agent is behind.

  • Compatibility with the control plane (agents must be within 2 minor versions of the control plane).

The upgrade process consists of the following steps:

Step 1: Backup#

Ensure that you have backups of your current configuration and data.

Step 2: Upgrade Process#

To upgrade a single agent, run the following command on the VM:

TEXT
curl -fsSL https://gritiva.com/install-gritiva.sh | sudo bash

There is no fleet-wide rolling-upgrade command. For a fleet, upgrade one VM at a time: run the installer on that VM, wait for it to report healthy in the panel, and only then move on to the next.

Step 3: Post-Upgrade Checks#

After the upgrade, verify the agent on the VM:

TEXT
sudo systemctl status gritiva-agent
sudo /opt/gritiva/gritiva-agent health

Then check the VM in the panel under INFRA → VMs, and its mesh peers under Mesh -> your network -> Topology. Ensure that it shows healthy mesh peers and no scopes in error.

If you encounter issues after the upgrade, restore the pre-upgrade agent state you captured in Step 1 and restart the service:

TEXT
sudo tar xzf /root/backups/gritiva-<date>.tgz -C /
sudo systemctl restart gritiva-agent

The installer does not expose a version-pin option, so if you need a specific earlier build of the agent binary, contact our contact form.

If you experience issues during the upgrade process, refer to the CHANGELOG.md for any breaking changes and ensure that your agent is compatible with the control plane.

Q: What should I do if the upgrade fails?#

A: Check the logs (sudo journalctl -u gritiva-agent -n 200 --no-pager) for errors and ensure that your agent is within the compatibility window.

Q: How can I verify the upgrade was successful?#

A: Run sudo /opt/gritiva/gritiva-agent health on the VM and confirm in the panel under Mesh -> your network -> Topology that all peers are healthy.

Upgrade Tips

Upgrade Tips
- Refer to the version release notes for changes. - Always test the upgrade in a staging environment first. - Document any issues encountered during the upgrade process.

Critical Notes

Critical Notes
Upgrading GritivaCore in production requires careful attention. The hosted control plane is upgraded by us, while you are responsible for upgrading the agent on each VM. Ensure you follow the compatibility matrix and documented procedures.