OneDrive · Microsoft 365 · Major errors
OneDrive 0x8004de40 / 0x8004de88: can’t sign in — check the web first, then TLS, then reset
“OneDrive Can’t sign in. Error 0x8004de40 — Login was either interrupted or unsuccessful. Please try logging in again.” The sibling code 0x8004de88 reads: “We can’t sign into your account, please try again later.”
Microsoft documents both codes on one page, because they mean the same thing: OneDrive is having trouble connecting to the cloud. Web access working proves it is the desktop client, not the account.
The fast answer
Do not reset OneDrive first. The fast answer is a three-test split:
- Sign in on the web in your browser. If that works, your account and files are fine.
- Check TLS 1.2 is enabled in Internet Properties (Windows + R,
inetcpl.cpl, Advanced tab). Microsoft’s own page names TLS as the documented cause. - Only then reset OneDrive with
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset.
If the reset also fails, the tail of this guide covers the causes Microsoft’s page does not: VPN/proxy, stale credentials, and personal-versus-work-account confusion.
What you are looking at, in plain words
OneDrive sign-in is not just a password check. The desktop client must open a secure (TLS) connection to Microsoft’s cloud, prove the device and account, and then start syncing. Error 0x8004de40 / 0x8004de88 says that connection to the cloud failed — which is why the message can appear even with a perfect password and a working internet connection. The two codes are twins: 0x8004de40 is the “login interrupted” wording, 0x8004de88 is the “try again later” wording, and Microsoft treats them together.
That is also why generic network advice (“forget the Wi-Fi”, “flush DNS”) so often fails here: it does not touch the causes that matter here — the TLS settings, the account type, or the client state. Work those causes first.
Step 0 — Prove which part is failing
Do not change anything yet. Every fix below depends on what these checks show.
- Sign in to OneDrive on the web in your browser. If the web sign-in works and your files are visible, your account, password and files are fine. The fault is the desktop client or its connection.
- Check the internet connection honestly. Open any website. If nothing loads, fix the connection first — OneDrive cannot sign in without it. If websites load but OneDrive fails, the fault is specific to OneDrive’s connection.
- Confirm which account you are signing in with. Personal Microsoft accounts and work/school accounts sign in through different paths. If you have both, make sure OneDrive is trying the account whose files you expect — signing in with the wrong one produces a confusing “cannot sign in” loop.
- Try a different network. A phone hotspot test separates “this computer” from “this network”. If OneDrive signs in on the hotspot, a VPN, proxy, or office firewall rule is in the way.
The fixes, in order
- Verify TLS is enabled. Press Windows + R, type
inetcpl.cpland press Enter. Open the Advanced tab, scroll to the Security section, and make sure TLS 1.2 is checked. Click Apply, then OK, and restart the computer before retrying. Microsoft’s Learn page for these codes directs you to this check, and warns that TLS deprecation changes can cause exactly this error. (That page also lists TLS 1.0 and 1.1 alongside TLS 1.2; those versions are deprecated — do not enable them as a fix. TLS 1.2 is the version to confirm, and an out-of-date Windows that cannot do TLS 1.2 needs updating, not downgrading.) - Turn off the VPN and any manual proxy, then retry. Open Settings > Network & internet > Proxy and make sure a manual proxy is off unless your organisation requires one. If OneDrive signs in with the VPN off, the VPN’s path or its own firewall is the block — ask the VPN provider or your admin, rather than leaving the VPN off permanently.
- Clear stale credentials. Note: this step follows community and Q&A guidance for the standard Windows procedure, not Microsoft documentation. Open Credential Manager from Windows search, open Windows Credentials, and remove stored credentials for OneDrive and Microsoft account sign-in that look stale or duplicated. Then sign in to OneDrive again and let it store a fresh credential. A credential saved before a password change is a classic silent cause.
- Reset OneDrive. Press Windows + R, type
%localappdata%\Microsoft\OneDrive\onedrive.exe /resetand press Enter. OneDrive should restart on its own; if the icon does not reappear after a couple of minutes, start OneDrive from the Start menu and sign in again. Before resetting, Step 0’s web check has already proved your files are safe in the cloud — the reset touches the local client state, not the cloud copy. - Update OneDrive and Windows. An out-of-date client can fail against current cloud requirements (including TLS). Update Windows, then download the current OneDrive client from Microsoft and install it over the existing one, then sign in again.
Prove it worked
- OneDrive signs in without an error code and the cloud icon in the taskbar shows your account.
- Create a small test file in the OneDrive folder (or upload one on the web) and confirm it appears on the other side within a few minutes.
- Restart the computer and confirm OneDrive signs in automatically — a fix that only survives until reboot is not a fix.
Still not working? Work this ladder in order
- Reset did not work? Unlink and relink the account: in OneDrive settings, unlink the PC, then sign in again. If the sign-in still fails, the fault is deeper than client state — check the admin-side causes below.
- Work or school account? Your organisation’s network, conditional-access policy, or device-management enrolment can block sign-in even when everything on the computer is correct. Give your admin the exact code, the web-sign-in result, and the hotspot result — those three facts point straight at policy versus device.
- Personal account, and it fails on every network? Try signing in with a different Microsoft account on the same computer. If the second account works, the fault follows the first account (its security settings or status); if both fail, the fault follows the computer.
- Still failing after all of this? Microsoft’s own Q&A answer for this code says that if the issue persists after the TLS steps, it may come down to your organisation’s network or domain configuration. At that point, collect the evidence (code, web result, hotspot result, TLS result, reset result) and open a Microsoft support case through your admin — do not keep reinstalling in circles.
Mistakes that make it worse
- Resetting OneDrive before checking web sign-in, and then not knowing whether the files were safe.
- Enabling deprecated TLS 1.0/1.1 because Microsoft’s page lists them alongside TLS 1.2. Confirm TLS 1.2; update Windows if it cannot do that.
- Following generic “forget Wi-Fi / flush DNS” advice that never touches TLS, credentials, or the client state.
- Signing in with the wrong account (personal instead of work, or vice versa) and troubleshooting the wrong mailbox.
FAQ — the issues behind this error, answered
Are 0x8004de40 and 0x8004de88 different problems?
No — Microsoft documents them together on one page. Both mean OneDrive is having trouble connecting to the cloud when signing in. The fix order in this guide covers both.
Does resetting OneDrive delete my files?
The reset restarts the local client and clears its local state. Your files in the cloud are untouched — which is why Step 0 has you prove web access first, before any reset. If a file exists only on this computer and has never synced, copy it somewhere safe before resetting.
Why does the error say “check your internet” when the internet works?
Because “connection to the cloud” is narrower than “internet works”. Websites can load while OneDrive’s TLS connection, proxy path, or sign-in is blocked. The hotspot test and the TLS check separate general internet from OneDrive’s connection.
I did the official reset and it still fails. Now what?
You are in the tail Microsoft’s own answer for this code points to: it says a case that persists after the TLS steps may come down to your organisation’s network or domain configuration. Work the ladder above — VPN/proxy, stale credentials, account type, admin policy — and take the collected Step 0 evidence to Microsoft support through your admin rather than repeating the reset.
Sources
Microsoft Learn — Error Code 0x8004de40 or 0x8004de88 when signing in to OneDrive (English edition; same symptoms, TLS steps and reset direction) · Microsoft Q&A — How to solve error 0x8004de40 · Microsoft Support — Reset OneDrive (the /reset command; a reset does not delete cloud files).
Did this fix work for you?
Your reaction is stored only in your own browser — it is not sent to us.