diegosouzapw/OmniRoute · error

[STARTUP] memory backend initialization failed (non-fatal):

Error message

[STARTUP] memory backend initialization failed (non-fatal):

What it means

startup memory backend init warning: initMemoryBackends (PR #8752 provider pattern — sqlite, obsidian, notion, custom) failed to initialize from settings. Persistent conversational memory falls back to default/unavailable.

Solutions

  1. Check memory backend credentials/config in settings
  2. Verify Notion/Obsidian endpoints if used
  3. Restart after fixing so backends initialize
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at src/instrumentation-node.ts:666 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/fe49c8ad3e2077b8. Report an issue: GitHub.

Appendix: source

Thrown at src/instrumentation-node.ts:666

      // Doubly opt-in (no-op unless MEMORY_TYPED_DECAY_ENABLED=true AND
      // MEMORY_TYPED_DECAY_SWEEP_INTERVAL>0). Never deletes by default. Never fatal.
      import("@/lib/memory/typedDecay")
        .then((m) => m.startMemoryDecaySweep())
        .catch((err: unknown) => {
          const msg = err instanceof Error ? err.message : String(err);
          console.warn("[STARTUP] memory decay sweep failed to start (non-fatal):", msg);
        }),

      // MemoryBackend provider pattern (PR #8752): initialize configured memory
      // backends from settings (sqlite, obsidian, notion, custom HTTP, etc.).
      // Reads the DB settings synchronously (non-blocking, never fatal). Must
      // run after the DB is ready AND after getSettings/applyRuntimeSettings so
      // memory backend config is hydrated.
      import("@/lib/memory/index")
        .then((m) => m.initMemoryBackends())
        .catch((err: unknown) => {
          const msg = err instanceof Error ? err.message : String(err);
          console.warn("[STARTUP] memory backend initialization failed (non-fatal):", msg);
        }),

      // Backup schedule (#8513): execute `backup-schedule.json` cron server-side.
      // Reads the schedule written by `omniroute backup auto enable` and fires
      // `runBackupCommand` when the cron expression matches. Self-gated: no-op
      // when no schedule file exists or the schedule is disabled. Never fatal.
      import("@/lib/jobs/backupScheduleJob")
        .then((m) => m.startBackupScheduleJob())
        .catch((err: unknown) => {
          const msg = err instanceof Error ? err.message : String(err);
          console.warn("[STARTUP] backup schedule job failed to start (non-fatal):", msg);
        }),

      // Real-time dashboard WebSocket daemon (port 20132): powers Combo Studio Live,
      // the Home live-pulse, and Live Compression. Side-effect import triggers the
      // flag-gated auto-start (OMNIROUTE_ENABLE_LIVE_WS, default ON).
      import("@/server/ws/liveServer")
        .then(() => {

View on GitHub (pinned to a179ffed5b)