Troubleshooting
Troubleshooting Migration Issues
Section titled “Troubleshooting Migration Issues””Plan shows unexpected drift”
Section titled “”Plan shows unexpected drift””Cause: Some keys have values that change constantly (timestamps, counters).
Solution: These are ephemeral keys—remove them from your config:
# Check which keys are driftingmacprefs plan --config my-config.json --verbose“Apply failed: Could not write to domain”
Section titled ““Apply failed: Could not write to domain””Cause: The domain is protected or requires elevation.
Solution:
# Run preflight to diagnosemacprefs preflight
# Check for MDM profiles that might restrict preferencessudo profiles list“Settings don’t take effect”
Section titled ““Settings don’t take effect””Cause: Some settings require restarting the affected process.
Solution:
# Restart common serviceskillall Dock # For dock settingskillall Finder # For Finder settingskillall SystemUIServer # For menu bar settings
# Or log out and back in for comprehensive refresh“Config validation fails”
Section titled ““Config validation fails””Cause: JSON syntax error or schema issue.
Solution:
# Validate your configmacprefs validate --config my-config.json
# Common issues:# - Trailing commas in JSON# - Missing "version": "1.0"# - Missing "domains" key