OneDrive error 0x8004deef usually appears when the app cannot connect to Microsoft’s servers, often due to a corrupted token, incorrect system time, or a blocked network connection. The fastest fix is to sign out and back into OneDrive, then check your date/time and firewall settings if the error persists.
What Causes Error 0x8004deef?
This error is a generic sign-in or sync failure that Microsoft’s own support documentation ties to authentication problems. The most common triggers are:
- An expired or corrupted authentication token that OneDrive stores locally.
- Your Windows clock is set to the wrong date, time, or time zone, which breaks the secure connection.
- Antivirus software, a VPN, or a firewall is blocking OneDrive’s traffic to Microsoft servers.
- OneDrive is paused or not fully updated on your PC.
- Network issues, such as a weak Wi-Fi signal or a proxy that interferes with the connection.
Because the error code is shared across many underlying issues, you often need to try fixes in order, from the simplest to the more involved.
Fix 1: Sign Out and Back In
This refreshes your authentication token and is the most effective first step. Here’s how:
- Right-click the OneDrive cloud icon in the system tray (near the clock).
- Select Settings (or the gear icon) and then Account.
- Click Sign out and confirm.
- Once signed out, open the OneDrive app again and sign in with your Microsoft account.
If you don’t see the cloud icon, click the small upward arrow in the taskbar to show hidden icons. After signing back in, wait a minute for the sync to start and see if the error disappears.
Fix 2: Check Your System Date and Time
OneDrive uses secure HTTPS connections that rely on your computer’s clock to verify certificates. If your date, time, or time zone is wrong, the connection is rejected with an authentication error like 0x8004deef.
- Right-click the clock in the taskbar and choose Adjust date/time.
- Turn on Set time automatically and Set time zone automatically.
- If those are already on, toggle them off, wait a few seconds, then turn them back on to force a re-sync.
- Restart your PC and try OneDrive again.
If the automatic settings still show the wrong time, your CMOS battery may be failing, which is common on older desktops. In that case, replace the battery or set the time manually until you can.
Fix 3: Clear OneDrive Credentials
Windows stores your OneDrive login credentials in a secure vault called Credential Manager. If those credentials are corrupted, signing out may not be enough. Clearing them forces a fresh authentication.
- Close OneDrive completely: right-click the cloud icon and select Exit.
- Open the Start menu, type Credential Manager, and open it.
- Click Windows Credentials.
- Look for entries that start with OneDrive or MicrosoftOffice16 (for Office 2016 or later).
- Click the arrow next to each and choose Remove.
- Restart your PC and open OneDrive. It will ask you to sign in again.
Be careful not to remove credentials for other services like Outlook or your corporate network, as that could break those connections. Only remove the OneDrive-related entries.
Fix 4: Reset OneDrive
If the above steps fail, a full reset of OneDrive can clear deeper corruption. Microsoft provides a built-in reset command that doesn’t delete your files.
- Press Windows + R to open the Run dialog.
- Type
%localappdata%\Microsoft\OneDrive\onedrive.exe /resetand press Enter. - A command prompt window may flash briefly. Wait for the OneDrive icon to reappear in the system tray.
- If it doesn’t reappear, run the same command again but without the
/resetflag to launch OneDrive.
This resets the app’s local configuration, including cached tokens and sync settings, but your files remain on your PC and in the cloud. After the reset, you’ll need to sign in again.
Fix 5: Check Firewall and Antivirus
Sometimes security software mistakes OneDrive’s traffic for a threat and blocks it. To test this, temporarily disable your third-party antivirus or firewall and try syncing. If the error goes away, add OneDrive to the allowed list in that software.
For Windows Defender Firewall, you can allow OneDrive through:
- Open Windows Security and go to Firewall & network protection.
- Click Allow an app through firewall.
- Click Change settings and then Allow another app.
- Browse to
C:\Users\[YourUsername]\AppData\Local\Microsoft\OneDrive\OneDrive.exeand add it. - Make sure both Private and Public boxes are checked for OneDrive.
If you use a VPN, disconnect it and try again. Some VPNs route traffic through servers that Microsoft’s security systems distrust, causing authentication failures.
Fix 6: Update OneDrive
Running an outdated version of OneDrive can cause compatibility issues with Microsoft’s servers. To check for updates:
- Right-click the OneDrive cloud icon and select Settings.
- Go to the About tab. It will show your version and automatically check for updates.
- If an update is available, it will download and install automatically. You may need to restart OneDrive.
You can also download the latest version from Microsoft’s official site, but the built-in updater usually handles it. After updating, repeat the sign-out/sign-in step to ensure the new version uses a fresh token.
Frequently Asked Questions
Will I lose my files if I reset OneDrive?
No. The reset command only clears the app’s local configuration and cached tokens. Your files remain safely on your hard drive and in the cloud. After resetting, OneDrive will re-sync everything, which may take some time depending on the amount of data.
Why does this error happen on my work PC but not my personal one?
Work computers often have stricter firewall, VPN, or group policy settings that can interfere with OneDrive. Your organization may also require a different sign-in process, such as multi-factor authentication. Check with your IT department if the error persists after trying the fixes above.
Does this error affect my files already synced?
No. The error only prevents new syncs or sign-ins. Files that were already synced remain on your local drive and are still accessible. You just can’t upload or download changes until the error is resolved.
Can I fix this error on a Mac?
Yes, the same general principles apply. Sign out and back in, check your date/time, and ensure your firewall or VPN isn’t blocking OneDrive. The reset command for Mac is different: close OneDrive, then run killall OneDrive in Terminal, and relaunch the app.
What if none of these fixes work?
If you’ve tried all the steps and still get the error, the issue may be on Microsoft’s side. Check the Microsoft 365 Service Status page to see if there’s an ongoing outage. If not, you can try uninstalling and reinstalling OneDrive completely, but back up any files that aren’t yet synced first.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Gmail Gemini Privacy: Data Access & Limit Settings
- Fix Outlook Inbox Corruption with DISM in Windows
- How to Set Up Apple Pay on iPhone
- How to Choose a Refurbished iPhone With Years of Support
- Voice Dictation in Google Docs: How to Use It
- Turn Off Message Notifications on Mac