usebruno/bruno · error · Error

Migration cancelled

Error message

Migration cancelled

What it means

Error "Migration cancelled" thrown in usebruno/bruno.

Source

Thrown at packages/bruno-electron/src/ipc/yml-migration.js:260

  // double-processed as live changes) and clear every cache keyed by the deterministic
  // path-derived uid, so the post-migration reopen loads genuinely fresh state.
  if (watcher) {
    watcher.removeWatcher(collectionPathname, mainWindow, collectionUid);
  }
  try {
    await unmount(collectionUid);
  } catch (_) {}
  clearCollectionIndex(collectionPathname);
  clearBrunoConfig(collectionUid);
  clearRequestUidsForCollection(collectionPathname);
  migrationCancellations.delete(collectionUid);

  const emitProgress = (phase, current, total) => {
    mainWindow.webContents.send('main:collection-migration-progress', { collectionUid, phase, current, total });
  };
  const checkCancelled = () => {
    if (migrationCancellations.has(collectionUid)) {
      throw new Error(MIGRATION_CANCELLED_MESSAGE);
    }
  };
  const reportError = (message) => {
    mainWindow.webContents.send('main:display-error', { message });
  };
  // The renderer dropped the collection from its store before invoking us, so on every
  // exit — success, failure or cancel — re-open from disk; the renderer re-creates and
  // mounts it fresh via the normal main:collection-opened flow (same deterministic uid).
  // openCollection catches load errors and returns { opened: false, error } rather than
  // always throwing, so treat that shape as failure too.
  const reopenCollection = async () => {
    let result;
    try {
      result = await openCollection(mainWindow, watcher, collectionPathname);
    } catch (reopenError) {
      console.error('Failed to reopen collection after migration:', reopenError);
      throw reopenError;
    }

View on GitHub (pinned to 9bdd81c7bd)

Solutions

  1. Re-run the migration and confirm when prompted if you want to proceed.

When it happens

Trigger: Thrown at packages/bruno-electron/src/ipc/yml-migration.js:260 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of usebruno/bruno@9bdd81c7bd (2026-08-13). Data as JSON: /api/errors/da022477f77b5eb3. Report an issue: GitHub.