Support

Akeeba Backup for Joomla!

#30479 An unhandled exception has been detected (trying to downoad remote files)

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
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by on Thursday, 20 December 2018 17:17 CST

lightbulbwebdesign
Please look at the bottom of this page (under Support Policy Summary) for our support policy summary, containing important information regarding our working hours and our support policy. Thank you!

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 2Mb, please upload it on your server and post a link to it.

Description of my issue:

When I try to download a remote file to desktop, I get the error:

Akeeba Backup - An unhandled exception has been detected

500 Could not get he download URL

I have attached PDFs of the error. It has been working OK until this month.

Thanks for any help.

Chris

nicholas
Akeeba Staff
Manager
Thank you for reporting this! It will be fixed for the next release scheduled for later this month.

I am actually surprised it did work until now. Getting a download URL from OneDrive requires sending the access token. However, access tokens have a limited lifetime (about one hour), after which they need to be refreshed. The code which generates the download URL does not try to refresh the token when it has expired. Instead, it throws an exception. The only way this would work is if you tried to download a backup archive within an hour of having uploaded something to OneDrive (uploading does refresh the tokens when they have expired). The missing refresh when generating the download URL is the actual issue and what I am going to fix.

Again, thank you very much for reporting this! Since our tests work sequentially, the download test was run withing seconds after the upload test so I never got to spot that condition until you filed this ticket. Oops!

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!

nicholas
Akeeba Staff
Manager
If you want to test the fix yourself please download the latest development release of Akeeba Backup for Joomla! from https://www.akeebabackup.com/download/developer-releases/akeebapro/revf703ff92.html

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!

lightbulbwebdesign
Hi Nicholas,

Was the fix in the recent 6.3.0 Update?

I'm still having the same issue with it, though have not tried the dev download you mentioned, and the backup is one I took minutes before trying to download.

Thanks,

Chris

nicholas
Akeeba Staff
Manager
Yes, the fix is included in 6.3.0. I thought that having not responded to my previous reply you had tested the fix and confirmed it.

To clarify: do you STILL have the EXACT SAME issue with 6.3.0?

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!

lightbulbwebdesign
Apologies, I've been unwell this week and only got to look at this today - yes, it is still happening for me on websites using the 6.3.0 version too. Same error message that shows as noted above.

I'm also having issues with most sites refusing to auto-update Akeeba and other extensions, not sure if that may be related.

Kind regards,

Chris

nicholas
Akeeba Staff
Manager
The update issue is due to a new feature in Joomla! 3.9.0 which was not announced in advance and which has some pretty basic bugs. If an extension publishes checksums in its update server and your site has a problem downloading or extracting the update file you get misleading error messages about the update server and checksums being wrong. This is unrelated to anything else. We addressed that today by removing checksums from our update server.

Regarding the issue you have, are you sure that the file still exists in OneDrive? Also, have you taken a backup to OneDrive within the last 24 hours leading to trying to create a download URL?

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!

lightbulbwebdesign
Thanks,

Yes, the download link gives that error even for a backup I took minutes before.

Kind regards,

Chris

nicholas
Akeeba Staff
Manager
I cannot reproduce this with my OneDrive account. I also checked the Microsoft API documentation and it looks like we're doing exactly what is described there. The only thing I can think of is that something in your drive or that specific folder is preventing creating a publicly shared URL.

Can you create a shared URL for the file from the OneDrive interface? Right click on the file, Share, uncheck Allow Editing, check Set Expiration Date and then click on Get Link. If that worked I have no idea why the API doesn't let us do the same thing. Unfortunately Microsoft does not return a descriptive error in this case so I really can't help any further :/

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!

lightbulbwebdesign
Thanks, I'll try the manual link and see what happens - this is affecting all of my sites (over 100), so not really sure what is going on at all.

Chris

nicholas
Akeeba Staff
Manager
Can you reproduce it on a different server, ideally a local MAMP/XAMPP server, using the same OneDrive account? I have a hunch that this may be related to a bug / behavior change in a recent version of cURL.

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!