Skip to main content

Scheduled OneDrive Cloud File backup job is not running

April 15, 2025

Product Version

AhsayACB / AhsayOBM: 8.1.0.x

Operating System

Windows

Symptom

Scheduled One Drive or OneDrive for Business Cloud File backup jobs are not running, no missed backup report is sent to the user. Upon further checking on the AhsayCBS server, the following error message is received in the obs context log (e.g. obs_context_yyyy-mm-dd.log):


    MMM DD, YYYY h:mm:ss org.apache.catalina.core.ApplicationContext log
SEVERE: [Job][DailyJob] Failed to update refresh token of Cloud File Backup Source [User: username, BackupSet: backupset_name (backupset_id)].
Failed to access destination "". Reason="null"
com.ahsay.afc.cloud.d: Failed to access destination "". Reason="null"
        at com.ahsay.cbs.jy.a(Unknown Source)
        at com.ahsay.cbs.jy.a(Unknown Source)
        at com.ahsay.obs.core.job.T.a(Unknown Source)
        at com.ahsay.obs.core.job.T.a(Unknown Source)
        ...

MMM DD, YYYY h:mm:ss org.apache.catalina.core.ApplicationContext log
SEVERE: Unable to run backup
com.ahsay.afc.cloud.i: [CloudException.ConnectFailedExpt] [d.A] Failed to login OneDrive for Business, (NullPointerException: null)         ...

Cause

This issue can occur if the access token of the OneDrive / OneDrive for Business Cloud File backup set (e.g. authorization token for AhsayOBM / ACB to access the cloud backup source) had expired.

Resolution

To resolve the issue, refresh the access token of the affected backup set:

  1. Login to the AhsayOBM / ACB user interface, select Backup Sets, then the corresponding backup set.
  2. Under General, Cloud File, click on the Refresh button:

    CloudFile Backupset settings - Refresh Button

  3. Copy and paste the authorization code from the opened browser to the AhsayOBM / ACB user interface, then click OK:

    CloudFile Backupset settings - Entre new refresh token

  4. This will refresh the access token of the backup set and allow backup to be performed properly.

To prevent the issue from reoccurring again in the future, Upgrade the AhsayCBS server application to v9 (Upgrade Instruction).

Note that the resolution provided above will only prevent the access token of OneDrive / OneDrive for Business from expiring. However, if the password of the OneDrive / OneDrive for the Business account had changed, or if the access token was revoked (e.g. account policy change), a manual refresh (refer to the above steps) must be performed in order for the backup to be performed again.