fix: health history all-down — connectivity checks and UI data path

Service manager fixes (connectivity tests):
- email_manager: replace telnet with socket.create_connection for SMTP/IMAP;
  replace nslookup with socket.getaddrinfo for DNS; exclude unconfigured domain
  from success (email healthy=False now correctly means ports refused, not missing domain)
- calendar_manager: replace localhost:5232 with cell-radicale:5232;
  fix database check to test dir writability instead of file existence (files created on demand)
- file_manager: replace localhost:8080 with cell-webdav:80; add top-level success key
- network_manager: replace nslookup with socket.getaddrinfo;
  add success key to dhcp_test and ntp_test return values
- routing_manager: exclude iptables_access from success
  (iptables runs in cell-wireguard, not API container)
- wireguard_manager: add success key to no-arg test_connectivity result

Health history UI:
- SvcCol reads data?.status?.running || data?.status?.status — handles nested health check shape

Result: network/wireguard/calendar/files/routing/vault all healthy=True.
Email healthy=False is correct — mail server needs ≥1 account before Dovecot starts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-21 02:18:23 -04:00
parent f848a1d056
commit a5381b2ebc
7 changed files with 68 additions and 117 deletions
+8 -3
View File
@@ -360,9 +360,14 @@ function HealthHistoryTab() {
useEffect(() => { load(); }, []);
const SvcCol = ({ data }) => (data?.status === 'online' || data?.running === true)
? <span className="text-green-600">OK</span>
: <span className="text-red-600 font-bold">Down</span>;
// health history entries have shape: { status: {running, status}, healthy, connectivity, ... }
const SvcCol = ({ data }) => {
const running = data?.status?.running === true || data?.status?.status === 'online'
|| data?.running === true || data?.status === 'online';
return running
? <span className="text-green-600">OK</span>
: <span className="text-red-600 font-bold">Down</span>;
};
return (
<div className="space-y-4">