{# R9 (Hani #1 2026-10-23): Tools > Updates - what is waiting, checked by itself once a day; Check and Install with the administrator account. #} {% set uv = updates_view %}{% set row = uv.row or {} %}{% set rep = uv.report or {} %} {% set jobs = update_jobs or [] %}{% set live = jobs[0] if jobs and jobs[0].state == 'running' else none %}
{% if updates_done %}
{{ updates_done }}
{% endif %} {% if updates_error %}{% endif %} {% if uv.kind == 'windows' %}{% include "_windows_updates.html" %}{% else %} {# Hani #1 2026-10-25: one button to check, one to update; the account and the reason are asked in a popup. #} {% set pve = uv.proxmox_api or (rep.os or {}).id == 'debian' %} {% set acct = 'Root or sudo account' if uv.kind == 'server' else "Router administrator account" %} {% set ua = uv.account %}{% set ua_ready = ua and ua.ready %}

{% if uv.local %}This Portal's own server: checked here once a day. {% elif uv.auto %}Checked by itself once a day with NEXXVU's read-only account{% if uv.kind == 'server' %}, from the package lists the server refreshes itself{% endif %}. {% else %}NEXXVU's Proxmox token is read-only, and Proxmox shows updates only to accounts that can change the node: checking asks for the root account.{% endif %} {% if row.checked_at %}Last check {{ row.checked_at }}{% if not row.ok %} failed: {{ row.error }}{% endif %}.{% else %}Not checked yet.{% endif %}

{% if uv.auto %}
{% elif uv.tools and ua_ready %}
{% elif uv.tools %} {% endif %}{{ fresh_tag("updates:left") }} {% set can_update = not live and uv.tools and ((uv.kind == 'server' and row.pending) or (uv.kind == 'routeros' and (rep.routeros_pending or rep.firmware_pending or not rep.latest))) %} {% if can_update %}{% endif %}
{% if not uv.tools and uv.kind == 'server' %}

To update this server from NEXXVU, add its SSH address for actions first (Tools › SNMP explains how).

{% endif %} {% if not live and uv.kind == 'server' and row.ok and not row.pending %}

Nothing to install now{% if uv.phased %}: the {{ uv.phased|length }} update{{ '' if uv.phased|length == 1 else 's' }} left {{ 'is' if uv.phased|length == 1 else 'are' }} in Ubuntu's phased rollout and arrive{{ 's' if uv.phased|length == 1 else '' }} by itself when this server's turn comes (usually within a few days){% endif %}.

{% endif %} {% if uv.kind == 'server' and row.ok %}
System
{{ (rep.os or {}).name or 'unknown' }}
Waiting
{{ row.pending }} update{{ '' if row.pending == 1 else 's' }}{% if row.security %}, {{ row.security }} for security{% endif %}{% if rep.summary_only and row.pending %} (Check with the administrator account lists them){% endif %}{% if uv.phased %}; {{ uv.phased|length }} more held back by Ubuntu's phased rollout - released to this server by itself within days, nothing to do{% endif %}
Package lists
{{ rep.lists_at or 'unknown' }}{% if uv.lists_old %} older than 3 days - Check with the administrator account refreshes them{% endif %}
{% if uv.mirrors is not none %}
Package mirror {{ fresh_tag("updates:mirror") }}
{% for m in uv.mirrors %}{{ m.host }}: {{ {'reachable': 'reachable', 'unreachable': 'no connection on port ' ~ m.port, 'dns-failed': 'name not resolved'}.get(m.state, m.state) }} {% else %}no package sources found {% endfor %} {% if uv.mirror_down %}

The server cannot reach {{ uv.mirror_down|map(attribute='host')|join(', ') }}, so it cannot know whether it is up to date. Check, in this order: DNS (the server resolves names: resolvectl status), the route and NAT to the internet (ip route, the router's NAT rule), and the firewall on the way (outgoing TCP {{ uv.mirror_down|map(attribute='port')|unique|join(', ') }}). A data server reaches the internet only in its update window (03:00-03:45): outside it this is expected, as long as the package lists stay fresh.

{% endif %}
{% endif %} {% if ((rep.os or {}).id or 'unknown') == 'unknown' and not rep.lists_at %}
Not readable
{{ fresh_tag("updates:cagefs") }}The monitoring account cannot read this server's system description, package lists and package sources, so they show as unknown. On CloudLinux (cPanel), CageFS hides them: as root, run cagefsctl --disable <monitoring account>, then Check for updates again.
{% endif %}
Reboot
{% if rep.reboot_required %}required{% if rep.reboot_packages %} (for {{ rep.reboot_packages[:5]|join(', ') }}){% endif %} - {% if uv.proxmox_api or (rep.os or {}).id == 'debian' and rep.pve %}restart the node from Proxmox once its VMs are moved or shut down{% else %}Tools › Reboot{% endif %}{% else %}not required{% endif %}{% if (rep.kernel or {}).running %} kernel {{ rep.kernel.running }}{% endif %}
{% if uv.installing %}
An update job is running on the server. Check now in a few minutes shows the result.
{% endif %} {% if uv.job_failed %}
NEXXVU's last update job on this server did not finish successfully{% if rep.job_log %}: {{ rep.job_log|join(' ') }}{% endif %}. Check with the administrator account shows its last lines.
{% endif %} {% if rep.refresh and rep.refresh != '0' and rep.refresh != 'skipped' %}{% set said = (rep.refresh_said or [])|join(' ') %} {% if 'enterprise.proxmox.com' in said and ('401' in said or 'not signed' in said) %}
Proxmox enterprise repository: no subscription. Without a Proxmox subscription the enterprise repository refuses access (401) - expected, nothing is broken. Debian's updates below install normally. For Proxmox's own updates without a subscription, the node needs Proxmox's no-subscription repository (Proxmox web interface: Node › Updates › Repositories › Add › No-Subscription, and disable the enterprise entries).
What the server reported{{ said }}
{% else %}
Refreshing the package lists reported problems{% if said %}: {{ said }}{% endif %}. The packages below are from the lists that could be read.
{% endif %}{% endif %} {% if rep.packages %}
{% for p in uv.security + uv.other + uv.phased %}{% endfor %}
PackageInstalledAvailableSource
{{ p.name }}{% if p.security %} security{% endif %}{% if p.phased %} phased rollout{% endif %}{{ p.old }}{{ p.new }}{{ p.suite }}
{% endif %} {% elif uv.kind == 'routeros' and row.ok %}
RouterOS
{{ rep.installed or 'unknown' }}{% if rep.routeros_pending %} → {{ rep.latest }} available{% elif rep.latest %} (latest{% if rep.channel %} on {{ rep.channel }}{% endif %}){% endif %}
{% if not rep.latest %}
Latest version
unknown {{ fresh_tag("device:update-cause") }} {{ fresh_tag("device:update-cause-fixed") }} {{ fresh_tag("device:update-cause-busy") }} {% if rep.status %}the router says: {{ rep.status }}. {% endif %}{% if rep.cause %}{{ rep.cause }}{% else %}Check that it reaches the internet (DNS, NAT, firewall){% if not rep.asked %}, or Check with the administrator account{% endif %}.{% endif %}
{% endif %} {% if rep.routerboard %}
Firmware
{{ rep.firmware_current or 'unknown' }}{% if rep.firmware_pending %} → {{ rep.firmware_upgrade }} waiting (comes with the installed RouterOS; installed by an upgrade and a restart){% endif %}
{% endif %}
Model
{{ rep.model or 'unknown' }}
{% endif %} {% if live %}
{{ live.label }} running since {{ live.started_at }}{% if live.who %} (by {{ live.who }}){% endif %}.
    {% for s in live.steps %}
  1. {{ s.text }}
  2. {% endfor %}
{% endif %} {% if uv.tools and not uv.auto %}

Check {{ inventory.asset.name }} for updates

NEXXVU signs in, refreshes the package lists and shows what is waiting. Nothing is installed.

{% endif %} {% if can_update %}

Update {{ inventory.asset.name }}

{% if uv.kind == 'routeros' %}

NEXXVU asks MikroTik for the latest RouterOS, installs it, waits until the router is back, then installs the firmware that came with it and waits again. The router restarts{{ ' twice' if rep.routeros_pending or not rep.latest else '' }}; traffic through it stops meanwhile. Each step shows on this tab.

{% else %}

NEXXVU checks again, installs the {{ row.pending }} update{{ '' if row.pending == 1 else 's' }}, follows the install to the end{% if not pve %}, restarts the server if needed and you allow it{% endif %}, checks again and writes a report in the update history.{% if pve %} A Proxmox node is never restarted from here - its VMs would stop; the report says when it needs a restart.{% endif %}

{% endif %} {% if ua_ready %}

Runs with NEXXVU's update account {{ ua.user }}: no password is needed.

{% else %} {% endif %} {% if uv.kind == 'server' and not pve %}{% endif %}
{% endif %} {% include "_update_account.html" %} {% if scoped_plans is not none %}{% set plans_scope, plans_scope_id = 'device', inventory.asset.id %}{% include "_scoped_plans.html" %}{% endif %}

Update history

{% if jobs %}
{% for j in jobs %}{% endfor %}
Started (UTC)UpdateFrom → toByReasonResult
{{ j.started_at[:16]|replace('T', ' ') }}{{ j.label }}{{ j.from_version or '–' }} → {{ j.to_version or '–' }}{{ j.who or 'NEXXVU' }}{{ j.reason or '–' }}{% if j.reason %}
{% endif %}
{{ {'done': 'Done', 'failed': 'Failed', 'stopped': 'Stopped', 'running': 'Running'}[j.state] }}{% if j.detail %} {{ j.detail }}{% endif %} {% if j.steps %}
{{ j.steps|length }} step{{ '' if j.steps|length == 1 else 's' }}
    {% for s in j.steps %}
  1. {{ s.text }}
  2. {% endfor %}
{% endif %}

Kept one year, then archived in this device's Documents › Logs.

{% else %}

No update has been run from NEXXVU on this device yet.

{% endif %} {% endif %}