Support

Akeeba Backup for Joomla!

#38208 Unable to backup to Dropbox - Errors 503 or Error expired_access_token

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
3.10.11 Stable
PHP version
7.4.28
Akeeba Backup version
8.2.3

Latest post by ruhaniat on Friday, 23 December 2022 07:11 CST

ruhaniat

With default Akeeba backup setting we were getting HTTP 503.  I read this https://www.akeeba.com/support/akeeba-backup-3x/12713-backup-failing-with-503-error.html and attempted to adjust settings based on the suggestions there:

Tuesday, 19 June 2012 11:15 CDT Please go to Akeeba Backup's Configuration and try these settings:

Minimum execution time: 1 second
Maximum execution time: 5 seconds
Runtime bias: 50%

If this doesn't work, try this:

Minimum execution time: 5 second
Maximum execution time: 2 seconds
Runtime bias: 50% *****  

However we now end up with Error expired_access_token: No error description provided. Raw error: Array ( [.tag] => expired_access_token ).

Note: We have 32 jpa (.j01 to .j32) files to copy to dropbox plus the main .jpa. 

The last settings I tried were:

 

Process Each Part Immediately: Checked

Chunk Size: 5MB

Minimum execution time: 2 sec

Maximum execution time: 5 sec

Execution Time Bias: 50%

 

nicholas
Akeeba Staff
Manager

You need to connect Dropbox to your account again.

When you create a new backup profile — generally: if you want to use the same Dropbox account on a different backup profile or site — do NOT copy the access and refresh tokens; this will break all backup profiles except for the first one to take a backup after this change. You need to relink Dropbox.

When you copy or import backup profiles you are essentially creating copies. Therefore you need to relink Dropbox to that profile.

Relinking Dropbox does not remove the previous link. It simply creates a new (ephemeral; 1 hour lifetime) Access Token and a (persistent) Refresh Token. When the Access Token expires, Akeeba Backup uses the Refresh Token to get a new access token.

Finally, please keep in mind that unlinking the entire Akeeba Backup application from Dropbox (in your Dropbox account's settings) breaks the connection for all sites and backup profiles which were using this Dropbox account. Unlinking the application in Dropbox' settings is the last resort, as it requires a lot of effort on your part to recover from its effects.

I hope this helps!

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!

ruhaniat

I am pretty sure I went through this refresh/relinking but am trying again now.  Will update tomorrow as the backup/upload takes a few hours.  Thanks.

ruhaniat

(I didn't see here the response I posted from earlier today that the issue is still occurring even after relinking.  Attaching log again as well.)

nicholas
Akeeba Staff
Manager

I see that the log file says that you have the exact same issue. However, when I try backing up to Dropbox with a backup profile which definitely has an expired access token I do not have the same issue. Akeeba Backup does see the expired token, gets a new one using the Refresh Token and the Download ID using our mediation service, and uses the new access token to complete the upload.

So, let's check everything from the top.

  1. Have you relinked Dropbox on Profile #4? Remember that all settings, including the Dropbox configuration is per backup profile. If you only relinked profile #1 it will have no effect on profile #4. Go to Components, Akeeba Backup. Select profile #4 from the dropdown; the page reloads. Now click on Configuration. Relink Dropbox.
  2. Have you entered your Download ID in Akeeba Backup? You can find your Download IDs after logging into our site by going to Add-on Download IDs. You enter the Download ID in the component's Options page. This is necessary because using Dropbox requires access to the authentication mediation service running on our server. Using that service requires a valid Download ID belonging to a user account that has an active subscription to one or more of our backup products. Do not paste your Download ID in your reply, this is a public ticket.
  3. Is the Download ID correct? As per above. Please double check and confirm that the Download ID you have entered matches one of the Download IDs in the Add-on Download IDs page on our site. Do not paste your Download ID in your reply, this is a public ticket.

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!

ruhaniat

I created a new backup profile and now everything is working.  Please consider the matter resolved. Thank you!

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!