Thread Title: [SOLVED] File Upload Dialogs Crashing, Apple ID Settings Frozen & Finder Locks (The iCloud Deadlock)
Post Content:
I finally fixed a critical issue that made my user profile almost unusable. I’m posting the solution here to save others the headache. Big props to Google Gemini for sticking with me through the deep-dive troubleshooting to find the root cause when standard fixes failed.
The Symptoms:
- Upload Crashes: Clicking "Upload File" in Chrome/Safari would instantly crash the browser or beachball forever.
- Settings Frozen: System Settings > Apple ID was unresponsive or showed "Application Not Responding."
- Finder Locks: I couldn’t move, rename, or delete files in my Desktop or Documents folders.
- The Clue: Everything worked fine in a New Admin User, and everything worked fine if I was Offline (Wi-Fi off). The moment I signed into iCloud, the system deadlocked.
The Root Cause:
This wasn't an OS issue or a Permissions/TCC issue. It was Data Corruption in the local CloudKit Group Containers (~/Library/Group Containers).
Specifically, the bird (iCloud Drive) and cloudd background processes were choking on a corrupted local database. When they tried to sync, they entered a "zombie" state, deadlocking the file system. Any app attempting to open a file dialog (which queries iCloud) would hang waiting for bird to respond.
The Solution (The "Surgical Deep Clean")
Warning: This resets your local iCloud cache. Your actual files on iCloud.com are safe, but local unsynced changes might be lost if you don't back them up manually.
Step 1: Go Offline (Critical)
- Turn OFF Wi-Fi and unplug Ethernet. You must sever the connection to stop the background processes from auto-restarting and locking the files.
Step 2: The Terminal Fix
Open Terminal and run these commands in order:
- Kill the frozen processes:
killall -9 accountsd bird cloudd "System Settings"
- Quarantine your local Mobile Documents folder: (We rename it instead of deleting it to avoid "Resource Busy" hangs).
sudo mv ~/Library/Mobile\ Documents ~/Library/Mobile_Documents_Old
- Nuke the Corrupted CloudKit Engines: (This forces macOS to generate fresh sync databases from scratch).
rm -rf ~/Library/Group\ Containers/group.com.apple.cloudd
rm -rf ~/Library/Group\ Containers/group.com.apple.bird
rm -rf ~/Library/Group\ Containers/group.com.apple.iCloudDrive
rm -rf ~/Library/Accounts
Step 3: The Restart
- Reboot your Mac.
- Log in (Keep Wi-Fi OFF).
- Open TextEdit and press Cmd+O. If the window opens instantly, the deadlock is broken.
- Turn Wi-Fi ON.
- Go to System Settings and sign in to your Apple ID.
- Wait 60 seconds for the system to rebuild the Group Containers.
After doing this, I re-enabled "Desktop & Documents" sync, and everything is working perfectly. No more crashes.
Hope this helps anyone else stuck in this iCloud loop!