Updates

The appliance installs its own updates by itself with unattended-upgrades: Debian’s security updates and the EDON repository, so Argos updates itself too…

The Updates blockThe Updates block
The Updates block

What it is for

The appliance installs its own updates by itself with unattended-upgrades: Debian’s security updates and the EDON repository, so Argos updates itself too. The schedule is a single daily window: first the package lists, then the upgrade, then the reboot if needed.

On a new installation updates are on: every day, with no automatic reboot, window at 05:30. A choice saved here (on or off) is never changed by an Argos upgrade.

The fields

Field What it does Default
“Install updates automatically” Master switch. On, the unattended-upgrades package is installed if it is missing. on
“Interval (days)” How often the unattended upgrade runs, from 1 to 365. 1
“Report recipient” An e-mail address, or a local account (root), which means the relay’s recipients. root
“Reboot automatically when required” Reboots only if an update requires it (new kernel, libc). off
“Maintenance time” The time of the window, HH:MM. 05:30

The package lists are refreshed 40 minutes before the time and the upgrade starts 20 minutes before. In the example company (the figure) the time is 03:30 with “Reboot automatically when required” on: the lists are refreshed at 02:50, the upgrade starts at 03:10 and the reboot, if any, happens at 03:30. The time holds without the automatic reboot too.

The “Report recipient” field appears only if the relay is configured; otherwise the block says “The report of every automatic run goes out through the relay (System → E-mail notifications): configure it to receive one.”. The report arrives only for a run that installs something or that fails.

Under the fields the block shows “Last upgrade” (date and time, or “never”) and, when needed, “A reboot is pending to finish applying the installed updates.”.

Update now and Reboot now

  • “Update now” starts an upgrade at once (package lists, then installation). The console moves to the “Updating…” page and goes back to the settings by itself when it answers again: if Argos is upgraded too, the console restarts. If in the meantime the console’s HTTPS front did not come back, the page offers the console in plain http on port 80 and, if a reverse proxy or a publication holds 80, on 8000. The outcome arrives by e-mail through the relay. If an upgrade is already running the message is “An update is already running”, and the block shows “Updating…” until it finishes.
  • “Reboot now” appears only with a pending reboot: it reboots the appliance and moves to the reboot’s waiting page.

“Save” saves the schedule (“Automatic updates saved”).

Message Meaning
“Interval must be 1-365 days” Interval not valid.
“Not a valid e-mail address or local account” Recipient not valid.
“Time must be HH:MM” Time not valid.
“Installing unattended-upgrades failed” The package could not be installed (repositories unreachable?).
“the apt timers kept their previous schedule (see the journal)” Saved, but the new time did not reach the system timers.
“The update could not be started (see the journal)” systemd did not start “Update now”.

For the technician The state lives in apt’s files, not in argos.json: /etc/apt/apt.conf.d/20auto-upgrades (schedule) and 52argos-unattended-upgrades (the page’s keys and the EDON origin). Two timer drop-ins (apt-daily.timer.d/argos-schedule.conf, apt-daily-upgrade.timer.d/argos-schedule.conf) pin the window with no random delay. “Update now” runs in the transient unit argos-update-now (apt-get update, then apt-get upgrade --with-new-pkgs, never dist-upgrade), so it survives Argos restarting; its log is /var/log/argos-update-now.log, with a 2-hour limit. The automatic report is sent by argos-update-report.service. These files are not restored from a backup.

LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer