paperclipai/paperclip · error

reconciled stale managed runtime control operations from a…

Error message

reconciled stale managed runtime control operations from a previous server process

What it means

Startup reconciliation log in startServer. Fires when reconcileManagedRuntimeControlOperationsOnStartup found and reconciled stale managed runtime control operations left behind by a previous server process (operationIds listed).

Solutions

  1. Informational only; stale control operations from the previous process were cleaned up.
  2. If this appears on every startup, ensure the server shuts down gracefully so operations are finalized.
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at server/src/index.ts:825 when the library encounters an invalid state.

Common situations: Logged at startup when managed runtime control operations left in a pending state by a previous (crashed or killed) server process are reconciled.


AI-assisted analysis of paperclipai/paperclip@3f1d897a7c (2026-08-18). Data as JSON: /api/errors/bdd7e942f0a61498. Report an issue: GitHub.

Appendix: source

Thrown at server/src/index.ts:873

          backupFile: result.backupFile,
          sizeBytes: result.sizeBytes,
          prunedCount: result.prunedCount,
          backupDir: config.databaseBackupDir,
          retention,
          trigger,
          durationMs: response.durationMs,
        },
        `${label} database backup complete: ${formatDatabaseBackupResult(result)}`,
      );
      return response;
    } catch (err) {
      logger.error({ err, backupDir: config.databaseBackupDir, trigger }, `${label} database backup failed`);
      throw err;
    } finally {
      databaseBackupInFlight = false;
    }
  };
  const pluginWorkerManager = createPluginWorkerManager();
  const heartbeat = config.heartbeatSchedulerEnabled
    ? heartbeatService(db as any, { pluginWorkerManager })
    : null;
  const decisionServiceOptions = {
    wakeOriginAgent: createDecisionWakeOriginAgent(heartbeat?.wakeup ?? null),
  };
  // Managed instances drive bundled plugin auto-install from the managed-config
  // document parsed fail-closed above (`plugins.autoInstall`). Absent env means
  // self-hosted: createApp falls back to its built-in kubernetes-only default.
  const managedPluginAutoInstall = managedConfig?.plugins.autoInstall ?? null;
  const app = await createApp(db as any, {
    uiMode,
    serverPort: listenPort,
    storageService,
    feedbackExportService: feedback,
    databaseBackupService: {
      runManualBackup: async () => {
        const result = await runServerDatabaseBackup("manual");

View on GitHub (pinned to 3f1d897a7c)