diegosouzapw/OmniRoute · error
[STARTUP] Could not start cleanup scheduler (non-fatal):
Error message
[STARTUP] Could not start cleanup scheduler (non-fatal):
What it means
Error "[STARTUP] Could not start cleanup scheduler (non-fatal):" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/instrumentation-node.ts:525
// 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();
if (!isBackgroundServicesDisabled()) {
// All services are independent — run in parallel for faster cold start.
await Promise.allSettled([
import("@/lib/services/bootstrap")
.then(async (m) => {
await m.bootstrapEmbeddedServices();
console.log("[STARTUP] Embedded services bootstrap complete");
})
.catch((err: unknown) => {
const msg = err instanceof Error ? err.message : String(err);
console.warn("[STARTUP] Embedded services bootstrap failed (non-fatal):", msg);View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/instrumentation-node.ts:525 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/2cba2fc7e6367a48.
Report an issue: GitHub.