Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Google Drive Remote Backup - 401 : Invalid Credentials



Threaded Mode | Print  

 Google Drive Remote Backup - 401 : Invalid Credentials (3 Replies, Read 3314 times)
bcardone
Group: Member
Post Group: Newbie
Posts: 2
Status:
Hello,

I am on a VPS server and manage 80+ cPanels on it. Last week I set them all up to use Softaculous to backup remotely to my Google Drive account using your instructions here:

softaculous.com/docs/enduser/add-backup-location-google-drive/

So i set them all up as suggested and successfully backed up all installs manually, and I also set them up to automatically back up periodically, which they all also did succefully.

However, today I am starting to get email notifications as follows.

The automatic backup of your WordPress installation did not complete successfully.
The details are as follows :
Installation Path : ... Removed for privacy and security
Installation URL : ... Removed for privacy and security
Backup Path : NA

The following error occured :
invalid_grant : Bad Request
invalid_grant : Bad Request
Invalid Credentials
invalid_grant : Bad Request
invalid_grant : Bad Request
Invalid Credentials
401 : Invalid Credentials

If you wish to unsubscribe from such emails, go to your Control Panel -> Softaculous -> Email Settings

I can see my initial manual backups and the initial auto backup in Google drive so I know it worked. But now when I go into Softaculous and try to edit the backup location every single account I had set up now shows this error (See attached screenshot).

So I remove the remote backup location completely and add it back again per the instructions provided above and it works again.

This is a problem if I have to go back through and do this to 80+ installs again. And I am going to assume that this will happen again even if I did.

Do you have any thoughts as to what is going on here?

I feel like this has to do with not having proper API credentials in place?

Per the instructions for cpanel and WHM I had to set up proper credentials as mentioned here:

documentation.cpanel.net/display/CKB/How+to+Configure+Google+Drive+as+a+Backup+Additional+Destination

Yet your instructions seemingly bypass all that and just allow me when prompted to authorize Softaculous to access my Google Drive which I have done?

Any thoughts?
IP: --   

Google Drive Remote Backup - 401 : Invalid Credentials
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5653
Status:
Hi,

Are you using the same Google Drive account for all the accounts ?

It could be possible that when you add your drive in one cPanel account it works then you add same drive in another cPanel account it works in this account but stops working in the previous account.

We will try to replicate this on our test servers.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

Google Drive Remote Backup - 401 : Invalid Credentials
bcardone
Group: Member
Post Group: Newbie
Posts: 2
Status:
Hi,

Thank you for your quick reply and looking into this. Yes, I have a VPS server with over 80 individual cPanel accounts on them. I paid extra to have Softaculous installed on the VPS server.

Here is what I have done and set up incase it helps in your tests.

Out of the 80+ cPanel accounts I have logged into each of about 70 of them and set up a remote backup location for each one to my Google drive per the Softaculous instructions. When I set up each remote location I made sure I set them up with their own unique directory.

Example: cPanelAccount1 was set up with a directory /cPanelAccount1, and cPanelAccount2 was set up with a directory labeled /cPanelAccount2 and so on......

When I inspect my Google Drive account I can see a folder structure that was added due to my set up mentioned above as follows

There is a main directory labeled "Softaculous Auto Installer" and then each unique directory I set up for each cPanel account is within that main directory. And in each unique directory are the backups as expected. And so the folder structure kind of looks like this example:

-> Softaculous Auto Installer
    -> -> cPanelAccount1
    -> -> cPanelAccount2
    -> -> cPanelAccount3
    -> -> cPanelAccount4

With each of the 70 or so individual cPanel accounts the process per your documentation was completely succesful and I set all of them up in the same day throughout the day.

When setting up each remote directory for each cPanel account, I would also make it the default backup location, I would then immediately initiate a manual backup to the remote location which ran successfully for all 70 cPanel accounts I set up.

After initiating a manual backup to the remote location and verifying it worked, I then configured auto backups tp the remote location for each of the 70 accounts (most were set to a weekly backup with a rotation of 3 backups). Shortly after configuring Softaculous with up auto backups, all the 70 accounts ran an initial auto backup successfully. So at this point each when I inspect my Google Drive, I can now see two backups in each unique directory, the manual backup I initiated and an initial auto backup.

So I figured that it was a Mission Accomplished situation!

Then about a week later when the auto backup I configured for each of the 70 cPanel accounts was triggered, I then started getting emails and notifications with the error mentioned above.

I then logged into a few random accounts and tried to initiate a manual backup or try to modify the remote location settings and get the 401 credentials message for ALL 70 accounts as shown in the attached screenshot in my initial post thread above.

Oddly, if I remove/delete the initial remote location I set up and add it back again it works. just as when I did it a week ago. But I suspect it will repeat the issue again.

It could perhaps be an issue with multiple cpanel accounts on the single VPS server. But I can't imagine I am the only one doing this. And a VPS server is still a shared server environment. As I also mentioned my guess is it is a combination of what you suggest but I also feel it has to do with the authorization process. As I also set up backups at the cPanel/WHM level and for that I had to create unique Google API credentials per the instructions here:

documentation.cpanel.net/display/CKB/How+to+Configure+Google+Drive+as+a+Backup+Additional+Destination

Again, thank you very much for your help and your time. I look forward to your response and if you need anything else from me please let me know.


IP: --   

Google Drive Remote Backup - 401 : Invalid Credentials
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5653
Status:
Hi,

We tried to replicate the scenario on our test servers and it worked fine with 3 cPanel accounts.

Our support team is working with you on the ticket and they should be able to help you.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 9, 2024, 2:19 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.020