An "Error 401: Invalid Credentials, authError" message popped up during the initial configuration. What’s gone wrong?


Error message

Error 401: Invalid Credentials

Solution

This error usually happens when some APIs are not enabled, or the Google service account is not correctly authorized. Please recheck your configuration using the steps below:

  1. Please click the Previous button to go back to the earlier steps. Carefully check that you entered the Domain and Administrator correctly.

  2. Sign in to the Google Developer Console, select the project created for CubeBackup, in the APIs & Services > Dashboard page, make sure the Google Drive API, Google Calendar API, Gmail API, Admin SDK, Google People API are listed. If any of these APIs is not listed, please follow the instructions at Enable Google APIs for CubeBackup to enable all necessary APIs.

  3. Sign in to your G Suite Admin console using a domain administrator account. In the Home > Security > API Permissions page, make sure Gmail, Drive, Calendar, Contacts, and Admin are enabled.

  4. In the G Suite Admin console, go to the Home > Security > Advanced Settings > Manage API client Access page, make sure that your service account client name and the right scopes are listed, as described at https://www.cubebackup.com/docs/user_guide/initial_config_windows/#4-authorize-domain-wide-access.

  5. In the G Suite Admin Console, go to the Home > Apps > G Suite page, select All users in this account from the left panel, and make sure Calendar, Drive and Docs, Gmail, and Sites are “ON for everyone”.
    Tip: If the Service Status is “OFF” or “ON for some”, you can turn it on for everyone by clicking the menu at the end of the service entry. Turn on GSuite Apps

  6. On the Home > Apps > G Suite page, click Drive and Docs > Features and Applications. In the Drive SDK section, make sure that Allow users to access Google Drive with the Drive SDK API is ON. Turn on Google Drive SDK

Support

If you have carefully checked all of these steps and the problem persists, please contact us at support@cubebackup.com for assistance.