abhigyanpatwari/GitNexus · error

GitNexus: ${lockPath} is still present after the wipe retrie

Error message

GitNexus: ${lockPath} is still present after the wipe retries — continuing: the lock file is contentless and initLbug recreates it; a genuinely held lock will surface as the reopen's own lock-busy error.

What it means

Error "GitNexus: ${lockPath} is still present after the wipe retries — continuing: the lock file is contentless and initLbug recreates it; a genuinely held lock will surface as the reopen's own lock-busy error." thrown in abhigyanpatwari/GitNexus.

Source

Thrown at gitnexus/src/core/lbug/lbug-adapter.ts:2398

        // but the ENOENT-probe below stays authoritative either way (another
        // process may have removed the path between the rm and the probe).
      }
      const gone = await fs.access(f).then(
        () => false, // still present
        (err: unknown) => (err as NodeJS.ErrnoException | null)?.code === 'ENOENT',
      );
      if (!gone) survivors.push(f);
    }
    if (survivors.length === 0) return;
    if (attempt < HANDLE_RELEASE_PROBE_ATTEMPTS) {
      await sleep(HANDLE_RELEASE_PROBE_DELAY_MS * attempt);
    }
  }

  // Class split (FIX 2): the contentless `.lock` never fails the wipe.
  const dataSurvivors = survivors.filter((f) => f !== lockPath);
  if (survivors.includes(lockPath)) {
    logger.warn(
      `GitNexus: ${lockPath} is still present after the wipe retries — continuing: the ` +
        'lock file is contentless and initLbug recreates it; a genuinely held lock will ' +
        "surface as the reopen's own lock-busy error.",
    );
  }
  if (dataSurvivors.length > 0) {
    throw new LbugWipeError(dataSurvivors);
  }
};

export const isLbugReady = (): boolean => conn !== null && db !== null;

/**
 * Multi-label alternation over exactly the labels that can own embedding
 * rows: EMBEDDABLE_LABELS plus File, which embedding-pipeline.ts embeds as
 * the zero-symbol fallback for text-only repositories (#2454). Reserved
 * keywords are backtick-escaped via {@link escapeTableName}. Probed on
 * @ladybugdb/core 0.18.0 (this shipping review, FIX 4): the full multi-label

View on GitHub (pinned to 0d1aed942f)

When it happens

Trigger: Thrown at gitnexus/src/core/lbug/lbug-adapter.ts:2376 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of abhigyanpatwari/GitNexus@0d1aed942f (2026-08-20). Data as JSON: /api/errors/78ef084e74b92d9a. Report an issue: GitHub.