diegosouzapw/OmniRoute · error

[STARTUP] Could not initialize vacuum scheduler (non-fatal):

Error message

[STARTUP] Could not initialize vacuum scheduler (non-fatal):

What it means

Error "[STARTUP] Could not initialize vacuum scheduler (non-fatal):" thrown in diegosouzapw/OmniRoute.

Source

Thrown at src/instrumentation-node.ts:514

      cleanup.deletedAuditLogs ||
      cleanup.deletedMcpAuditLogs
    ) {
      console.log("[COMPLIANCE] Expired log cleanup:", cleanup);
    }
  } catch (err: unknown) {
    const msg = err instanceof Error ? err.message : String(err);
    console.warn("[COMPLIANCE] Could not initialize audit log:", msg);
  }

  // Storage-configured scheduled VACUUM (#4437): registers the timer from
  // Settings > System & Storage and persists lastVacuumAt for the UI.
  try {
    const { initVacuumScheduler } = await import("@/lib/db/vacuumScheduler");
    initVacuumScheduler();
    console.log("[STARTUP] Scheduled VACUUM initialized (#4437)");
  } catch (err: unknown) {
    const msg = err instanceof Error ? err.message : String(err);
    console.warn("[STARTUP] Could not initialize vacuum scheduler (non-fatal):", msg);
  }

  // Retention cleanup scheduler (#4691/#6988, #9624): runs the general retention
  // cleanup once after startup and then every 6 hours. Previously this was only
  // wired into the unused src/server-init.ts, so telemetry tables grew unboundedly
  // even with retention.autoCleanupEnabled=true. Idempotent (guarded internally).
  try {
    startCleanupScheduler();
  } catch (err: unknown) {
    const msg = err instanceof Error ? err.message : String(err);
    console.warn("[STARTUP] Could not start cleanup scheduler (non-fatal):", msg);
  }

  // Warm the model catalog's durable, apiKey-independent sub-caches at
  // startup — see warmModelCatalogCache() for why the top-level Response
  // cache alone doesn't deliver this. Fire-and-forget, non-fatal.
  void warmModelCatalogCache();

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/instrumentation-node.ts:514 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/9226a44fc55fe85b. Report an issue: GitHub.