LockDown Browser Error -21 on Mac (Configuration Mismatch Fix)

Error -21 in LockDown Browser on Mac signals a configuration mismatch between LDB's local cache and what the Respondus Dashboard server returns at launch. The fix is to delete LDB's Application Support directory and relaunch - forces a fresh Dashboard config download. Resolves ~80% of -21 reports without reinstall.

What error -21 means

Error -21 fires when LDB's cached course configuration disagrees with the server's current state. Triggered by: a Dashboard edit on your university's side after your last launch, an LDB version update, an interrupted previous launch that left state half-written, or a course that was re-published with new settings.

Mac-specific causes

Fix 1 - Clear LDB cache (most common fix)

# Quit LDB first.
rm -rf ~/Library/Application\ Support/LockDown\ Browser/
rm -rf ~/Library/Caches/com.respondus.lockdownbrowser/
# Relaunch from your LMS.

This preserves the .app bundle but discards every cached course configuration. Next launch fetches a fresh Dashboard config.

Fix 2 - Restart your Mac

Resolves the rare case where LDB has a kernel-level lock on a cached file that rm -rf cannot remove. After the reboot, run the cache-clear from Fix 1 again and relaunch.

Fix 3 - Reinstall LDB from your LMS

If cache-clear does not help on the second attempt, the .app bundle itself may have an inconsistent install. Run the complete uninstall procedure (uninstall cluster), then reinstall from your LMS's current LDB download link.

If none of these work

The remaining cases trace to your specific course's Respondus Dashboard configuration - your university IT or instructor needs to look at the server side. Contact them with: the exact error code, the LDB version (right-click LDB.app → Get Info), the macOS version (About This Mac), and the time of your launch attempt.

Frequently asked questions

How is -21 different from -101?

-21 is typically client-side cache stale; -101 is typically server-side Dashboard config issue. The Mac-side fix (cache-clear + reinstall) resolves -21 reliably; -101 needs your university IT to check the server.

Will clearing cache lose my saved exam answers?

No - your answers are stored in your LMS, not in LDB's local cache. The cache contains only the course configuration LDB pulled from your Respondus Dashboard, never your exam content.

My professor just edited the exam and now -21 appears. Coincidence?

Almost certainly not. Respondus Dashboard edits invalidate cached configs on the client side without notifying LDB to refresh. Cache-clear forces the refresh.