Skip to main content
Your Configview server runs Ubuntu. Most security fixes install themselves overnight through Ubuntu’s unattended-upgrades. Three things do not, and are yours to do on a schedule that suits you. Once a month is a good default.
Patching is yours. You host the server, so keeping its operating system and database up to date is part of running it, the same as backups. Configview provides the script below and keeps it working; it does not log in to your server or patch it for you.

What does not update automatically, and why

  • MySQL. The install script keeps MySQL out of automatic updates (the file /etc/apt/apt.conf.d/51configview-unattended-blacklist). An automatic MySQL upgrade restarts the database at a random time, and Configview stops with it. Keeping MySQL out means its security fixes wait for you, so this is the part not to skip.
  • Ordinary updates. Unattended-upgrades only installs security updates. Bug-fix updates from Ubuntu’s -updates channel wait for you.
  • Reboots. A new Linux kernel installs, but nothing reboots the server to start using it. The file /var/run/reboot-required tells you one is waiting.

See what is waiting

The script was added in November 2026. If the file is missing, your server has not taken the latest Configview update yet. Until it has, the same by hand is sudo apt-get update && sudo apt-get upgrade --with-new-pkgs, then sudo systemctl restart configview-backend configview-mcp, then sudo reboot if /var/run/reboot-required exists.
This changes nothing. It refreshes the package lists and shows how many updates are waiting, which of them are MySQL, whether a reboot is needed, and when the server was last patched with this script. It exits with code 2 when anything is waiting, so you can run it from your own monitoring.

Install everything

systemd-run keeps the update running if your SSH session drops when the server reboots. To patch without rebooting, leave out --reboot and reboot later in your own window. What the script does, in order:
  1. Stops if the disk is 90% full or has less than 1 GB free, rather than risk filling it.
  2. Pauses Configview’s watchdog and auto-update timers, so nothing restarts Configview while MySQL is being upgraded.
  3. Installs every waiting update, keeping your existing configuration files, then clears the download cache.
  4. Waits for MySQL, restarts the Configview backend and its AI connector (MCP) service, and checks the backend answers.
  5. Resumes the timers. With --reboot, reboots only if Ubuntu asks for it. Every Configview service starts by itself after a reboot.
If any step fails, it stops before rebooting, says what failed, and exits with code 1. The log is /var/log/configview-os-patch.log.

Downtime

Expect about a minute. The Configview API (dashboards, the Slack bot, the AI connector) is down while MySQL restarts and again during the reboot. The web interface keeps loading but cannot show data in that time. Scheduled collections that were due run on their next scheduled time. Pick a quiet hour.

Check it worked

If the backend shows failed after an update:
If an update was interrupted, run sudo dpkg --configure -a and then the install command again. Updates the script lists as held back need a person to look at them; it never forces them.
Take a disk snapshot of the server before patching if your policies require one. The nightly database backup covers your data, not the operating system.