Fix Synology Cloud Sync 502 Error with OneDrive for Business
Question details
Reconnect Synology Cloud Sync to OneDrive for Business after a 502 Bad Gateway error appears during authentication.

- Product
- Synology Cloud Sync and OneDrive for Business
- Device & OS
- not provided
- Scenario
- A previously working NAS sync connection needs to be reauthenticated with a OneDrive for Business account.
- Observed behavior
- After authentication, the connection fails with a 502 Bad Gateway error from synooauth.synology.com.
Have your OneDrive for Business sign-in details and access to your Synology DSM administrator account ready. Note the error URL and when the error occurred for troubleshooting.
Check OneDrive for Business access in a private browser
Use this check to determine whether the problem affects OneDrive access itself or only the Synology connection.
Open an incognito or private browsing window in your browser.
Go to microsoft365.com, sign in with the same work or school account, and open OneDrive. Confirm that you can access the library used by Cloud Sync.
If OneDrive is inaccessible, resolve the sign-in or library permissions issue with your Microsoft 365 administrator. If it opens normally, continue with the Synology checks below.

Update Synology software and check NAS time settings
Use these checks when OneDrive works in the browser but Cloud Sync still fails to authenticate.
Work with Office files using WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with Microsoft Office files. It can help you continue editing compatible documents, but it does not fix Synology Cloud Sync authentication errors.

Frequently Asked Questions
Does a 502 error mean OneDrive for Business is down?
Not necessarily. Sign in to OneDrive through microsoft365.com in a private browser window. If the library opens there, the issue may involve Synology's authentication service, Cloud Sync, or the account integration.
Where can I update Synology Cloud Sync?
In DSM, open Package Center, find Cloud Sync, and install any available update. Check DSM updates separately under Control Panel > Update & Restore.
What should I do if OneDrive also fails in the browser?
Resolve the Microsoft 365 sign-in or library permissions issue first. Contact your Microsoft 365 administrator if you cannot access the work or school account or the required library.
What information should I send to Synology Support?
Provide the error URL, the time of the failure, your DSM and Cloud Sync versions, and relevant logs. Do not include passwords or authentication tokens.




