Support

Akeeba Backup for Joomla!

#38340 Can't connect to Google Drive

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
4.2.6
PHP version
8.1.13
Akeeba Backup version
9.4.6

Latest post by Jaydot on Monday, 16 January 2023 10:03 CST

Jaydot

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 10MiB, please upload it on your server and post a link to it.

I'm trying to configure Backup to Google Drive.

(I've done this many times for other sites, never any issues).

Clicking Authentication connects me to Google. I have "allowed" connection to Akeeba. Google has sent me a notification that I have allowed the connection. I have entered the access token and copied the refresh token from another site.

However: clicking "Reload the List of Drives" has no result - so I cannot select my personal drive.

Clicking "View Log" says: No Log File was found.

Default Backup Profile works without issues.

Thanks, regards,
Joyce

nicholas
Akeeba Staff
Manager

> and copied the refresh token from another site.

No, don't do that. That breaks the connection to Akeeba Backup on both sites.

For every site and backup profile use the Step 1 - Authentication link. At the very end you get to a page with a (short lived – 1 hour) Access Token and a (longer lived – 1 month) Refresh Token. Copy both of these to your backup profile, then click on Save. You will then be able to load the list of drives under your account.

When the access token expires an hour after its first issue your Refresh Token is used to get a new Access Token in a process which also involves your Download ID. So, please also make sure that you have entered the correct Download ID in Joomla's Download Keys page per the documentation.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Jaydot

UPDATE

Out of curiosity, I ran an update using the new backup profile. It worked...
The .jpa file is now visible in my Drive, and it has the correct file size.
The "Drive" field is still empty.

Weird... :)

Β 

Thank you.

I deleted the profile I made, made a new one, went through the procedure again, and this time entered the new refresh token.

However: still no option to choose my Drive.

I'm using a Windows 11 laptop, if that makes any difference. I use the Brave browser, but that's never been a problem.

I seem to remember that the Authentication button changes color once the connection is made - it's not doing that now.

The download ID is correct, I've already updated Akeeba twice on this site.

Cheers,
joyce

Β 

As for copying the refresh code: about two years ago I copied this from the documentation and I have been faithfully doing this since then (never had problems):
Refresh token info:
This is essentially what connects your Akeeba Backup installation with your Google Drive. When you want to connect more sites to Google Drive please copy the Refresh Token from another site linked to the same Google Drive account to your site's Refresh Token field.
So I should stop doing that?

nicholas
Akeeba Staff
Manager

Regarding the list of drives, it might be related to an issue we fixed today. I am planning a new release for tomorrow. Using the updated code I do not see any problems.

Regarding the refresh token, correct, do not copy it between sites anymore. The documentation has been updated to no longer tell you to do that several months ago.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Jaydot

Okay.

Thank you for your very fast help!!

Regards,

joyce

Β 

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!