{% extends "base.html" %} {% block title %}{{ _('Vaultwarden diagnostics') }} — mcprack{% endblock %} {% block content %}

{{ _('Vaultwarden connection wizard') }}

{{ _('Checks each prerequisite in order and stops at the first problem, so you can fix one thing at a time instead of guessing from a raw error message.') }}

    {% for step in steps %}
  1. {% if step.status == "ok" %}✓ {% elif step.status == "fail" %}✗ {% else %}― {% endif %}
    {{ step.label }}
    {{ step.detail }}
  2. {% endfor %}
{% if steps and steps[-1].status == "ok" %}

{{ _('All checks passed — Vaultwarden is fully configured and reachable.') }}

{% else %}

{{ _('Edit /etc/mcprack/env on the mcprack host to fix the flagged setting, then restart the mcprack service, then re-run this diagnostics page.') }}

{% endif %}

{{ _('Re-run diagnostics') }} · {{ _('Back to servers') }}

{{ _('Migrate secrets between local storage and Vaultwarden') }}

{{ _("These are deliberate, one-off data moves — not automatic fallbacks. Neither backend is ever chosen silently at request time based on live reachability; which one is authoritative is decided purely by whether BW_SERVER is configured.") }}

{{ _('Run this once Vaultwarden has been newly configured, to move over whatever accumulated locally while it was not.') }}

{{ _("Run this before a planned Vaultwarden outage. Vaultwarden's copy is left untouched — afterwards you can unset BW_SERVER for the duration and switch back once it's back up.") }}

{% if not vaultwarden_configured %}

{{ _('Both actions require BW_SERVER to be configured and reachable.') }}

{% endif %}
{% endblock %}