sodcalculator

10 Tech How-To

Fix OneDrive Error 0x8004deb4

Guide 10-32656 · Updated · Step by step

OneDrive error 0x8004deb4 usually appears when you try to sign in or sync files, and it means Windows can’t complete the connection to OneDrive’s servers. The fix is to clear your cached OneDrive credentials, reset the app, and make sure your system time and network settings are correct. Below are the exact steps to resolve it, plus why the error happens and how to avoid it in the future.

What Causes Error 0x8004deb4?

This error is a generic sign-in failure that OneDrive shows when it cannot authenticate your account. Common triggers include:

  • Stale cached credentials – Windows or OneDrive saved an old password or token that no longer works.
  • Corrupted OneDrive cache – Temporary files that help OneDrive sync can become damaged, especially after a crash or forced shutdown.
  • Incorrect system date/time – If your clock is off by even a few minutes, the security certificates OneDrive uses fail validation.
  • Network or proxy issues – A VPN, firewall, or proxy can block the connection to Microsoft’s servers.
  • Conflicting Office or Windows updates – Sometimes a pending update leaves OneDrive in a broken state.

You’ll often see the error in a pop-up window when you launch OneDrive, or as a red circle with a white cross in the system tray. The account may still appear in File Explorer, but files won’t sync.

Before You Start: Quick Checks

Try these simple things first—they fix a surprising number of cases:

  1. Restart your computer. A full reboot clears temporary glitches.
  2. Check your internet connection. Open a browser and go to onedrive.com to confirm you can reach Microsoft’s servers.
  3. Verify the date and time. Right-click the clock, choose “Adjust date/time,” and enable “Set time automatically” and “Set time zone automatically.”
  4. Disable VPN or proxy. Temporarily turn off any VPN or proxy and try signing in again.

If the error persists, move on to the reset steps below.

Reset OneDrive (The Main Fix)

Resetting OneDrive clears the cached credentials and restores the app to its default state without deleting your files. Here’s how:

  1. Press Windows + R to open the Run dialog.
  2. Type the following and press Enter:
    %localappdata%\Microsoft\OneDrive\onedrive.exe /reset
  3. Wait about 30 seconds. OneDrive should restart automatically. If it doesn’t, launch it from the Start menu.
  4. Sign in again with your Microsoft account.

If the reset command doesn’t work because the path is different (some versions use a different folder), you can find the exact path by right-clicking the OneDrive icon in the system tray, choosing “Settings,” and looking at the “About” tab. Or use the full path:
C:\Users\YourUsername\AppData\Local\Microsoft\OneDrive\onedrive.exe /reset

After resetting, OneDrive will re-sync your files. This usually resolves the 0x8004deb4 error because it forces a fresh authentication.

Clear Windows Credentials

If resetting doesn’t help, the problem may be in Windows Credential Manager, where old login details for OneDrive are stored. To clear them:

  1. Open Control Panel → User Accounts → Credential Manager.
  2. Click Windows Credentials.
  3. Look for entries that start with OneDrive Cached Credential or contain “OneDrive” or “MicrosoftOffice16”.
  4. Click the arrow next to each entry and select Remove.
  5. Close the window and restart OneDrive.

This step is safe—it only removes saved login tokens, not your files. After removal, OneDrive will ask you to sign in again, which is exactly what you want.

Reinstall OneDrive

If the error still appears, the installation itself may be corrupted. Uninstall and reinstall OneDrive:

  1. Press Windows + I to open Settings.
  2. Go to Apps → Apps & features.
  3. Find Microsoft OneDrive, click it, and choose Uninstall.
  4. Restart your PC.
  5. Download the latest OneDrive from the official Microsoft website and install it.

After reinstalling, sign in with your account. Your files will re-sync from the cloud—nothing is lost because OneDrive stores a copy online.

Frequently Asked Questions

Will resetting OneDrive delete my files?

No. The reset command only clears the app’s cache and credentials. Your files remain on your computer 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 after a Windows update?

Windows updates can change how OneDrive interacts with the system, especially around authentication and network settings. If the update leaves a stale token or changes a security setting, OneDrive may fail to sign in. The reset and credential clearing steps usually fix this.

Can I fix this error on a Mac?

Yes. On macOS, the error is less common, but the fix is similar: quit OneDrive, then delete the cached credentials from Keychain Access (search for “OneDrive” and delete the entries), then reopen OneDrive and sign in again.

What if I still get the error after trying all steps?

If the error persists, check if your OneDrive account is locked or if there’s a service outage. Visit the Microsoft 365 Service Health page (you may need to sign in) to see if there’s a known issue. Also try signing in to onedrive.com in a browser—if that fails, the problem is with your account, not the app.

Does this error affect my files?

No. The error only prevents new syncs and sign-ins. Your files remain safe on your local drive and in the cloud. Once you fix the error, OneDrive will resume syncing normally.

Preventing Future 0x8004deb4 Errors

To reduce the chance of this error recurring:

  • Keep Windows and OneDrive updated automatically.
  • Don’t force-quit OneDrive; use the “Quit OneDrive” option in the system tray.
  • If you use a VPN, make sure it doesn’t block Microsoft’s IP ranges.
  • Regularly sign out and sign back in if you change your Microsoft account password.
  • Set your system clock to automatic time sync.

These habits prevent most sign-in and sync errors, not just this one.

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

The whole Tech How-To bed →