diegosouzapw/OmniRoute · error

[STARTUP] Could not warm adaptive virtual lanes flag…

Error message

[STARTUP] Could not warm adaptive virtual lanes flag (non-fatal):

What it means

startup virtual-lanes warm warning: warming adaptive admission virtual lanes into runtime (before first request touches admission control) threw at boot. Non-fatal by design, but lanes may materialize lazily on first traffic.

Solutions

  1. Inspect the admissionVirtualLanes warm failure in logs
  2. Restart to re-attempt the warm
  3. Verify DB readiness if lane state cannot load
Defensive patterns

Strategy: retry

When it happens

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

Appendix: source

Thrown at src/instrumentation-node.ts:259

 * construction, so this must run before the first request touches it — hence
 * awaited here, after ensureDbReadyForBoot(). Non-fatal.
 *
 * Exported (rather than inline in registerNodejs()) so it can be unit tested
 * directly without exercising the rest of the startup sequence.
 */
export async function warmAdaptiveVirtualLanesIntoRuntime(): Promise<void> {
  try {
    const { warmAdaptiveVirtualLanesIntoRuntime: warm } =
      await import("@/lib/admissionVirtualLanes");
    const materialized = await warm();
    if (materialized) {
      console.log(
        "[STARTUP] Adaptive virtual lanes flag materialized from dashboard override (#9654)"
      );
    }
  } catch (err: unknown) {
    const msg = err instanceof Error ? err.message : String(err);
    console.warn("[STARTUP] Could not warm adaptive virtual lanes flag (non-fatal):", msg);
  }
}

export async function registerNodejs(): Promise<void> {
  markServerStarting();

  // Rename the process title so OmniRoute is identifiable in ps/htop instead
  // of the generic "next-server" standalone server name.
  process.title = renameProcessTitle(process.title);

  // Initialize proxy fetch patch FIRST (before any HTTP requests)
  await import("@omniroute/open-sse/index.ts");
  console.log("[STARTUP] Global fetch proxy patch initialized");

  // Guarantee the SQLite singleton — including a sql.js WASM pre-init when
  // both synchronous drivers (better-sqlite3, node:sqlite) are unavailable —
  // is ready before ANY other startup step reaches getDbInstance(). This
  // MUST run before ensureSecrets, clearStaleCrashCooldowns,

View on GitHub (pinned to a179ffed5b)