Support

Akeeba Backup for Joomla!

#20300 Azure remote file deletion support

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 dlb on Friday, 18 July 2014 14:16 CDT

ipertrade
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:I've configured a backup job of my joomla website to an Azure Cloud Blob and I've enabled the "Enable remote files quotas" and set the "Count quota" to 1 but the older backup set files are never deleted from Azure, is this a supported configuration ?

dlb
The user that you set up in Backup has to have delete rights in Azure for the remote quotas to work.

The other thing to watch is that quotas are enforced per profile. So if all your profiles have a quota of one, and you do backups with three different profiles, you will have three backups stored on Azure. That is the way it is supposed to work.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

ipertrade
Thanks for the fast reply. I'm using in Akeeba the only azure account I've created and it has all the rights to create and delete files, Ive tested the deletion of files using Cloudberry Explorer using the same account and key and the deletion of files was made.

dlb
OK, you caught me. :-)

I can't confirm that remote quota management works in Azure right now. Davide is on vacation this week and Nicholas is away from his computer. There isn't anything in the docs that tells me one way or the other.

I'll follow up with Nicholas when he gets back.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

ipertrade
Ok, thanks
I wait your follow up

dlb
Nicholas has just confirmed that there is a problem with remote quota management with Azure.
There is a temporary workaround. He can edit the file administrator/components/com_akeeba/akeeba/plugins/engines/proc/azure.php and put the following just before the `public function processPart` line:

public function __construct()
    {
        parent::__construct();

        $this->can_delete = true;
    }


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

ipertrade
Hi Dale,
I've made inserted the code in the file but now when I launch the backup it returns this error :

Backup Failed
The backup operation has been halted because an error was detected.
The last error message was:

AJAX Loading Error
HTTP Status: 500 (Internal Server Error)
Internal status: error
XHR ReadyState: 4
Raw server response:

Please click the 'Analyse Log' button below have Akeeba Backup analyse its log file for further information.

Following the suggestions of ALICE, our log analyser, may not be enough. The automatic log analyser cannot cover all possible problem cases. We strongly recommend going through the step-by-step instructions in our troubleshooting wizard to easily resolve this issue yourself.
If this doesn't help, please do not hesitate to ask for support in our support ticket system. Do note that you need an active subscription to request assistance through the ticket system. If Akeeba Backup Professional was installed on your site by a third party -e.g. your web developer- please do not contact AkeebaBackup.com for support. Instead, contact the person who installed the software on your site and request assistance to solve this issue. If you do post to our ticket system, please remember to ZIP and attach your backup log file in your post so that we can help you faster.

In Azure I find all the files but no delete

dlb
Nicholas has created a dev release of Akeeba Backup. It is located at https://www.akeebabackup.com/download/developer-releases/akeebapro/reva4b0e42.html. Can you please install that and try again?

Note that the dev release always wants to "upgrade" to the public version. So you will get a notice to "upgrade" to the older 3.11.2 version, don't do it.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

ipertrade
Hi Dale,
I've installed the dev release but Always the same error, there is a log that Ican send you and that can help you in debugging this problem ?

The error:
Backup Failed
The backup operation has been halted because an error was detected.
The last error message was:

AJAX Loading Error
HTTP Status: 500 (Internal Server Error)
Internal status: error
XHR ReadyState: 4
Raw server response:

Please click the 'Analyse Log' button below have Akeeba Backup analyse its log file for further information.

dlb
Can you please zip and post the backup log? Thanks.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

ipertrade
here the logs

dlb
The file did not come through, can you try again please? You will probably need to zip the file to make it small enough to post.

If you can't get it to post, just throw it on Dropbox of on your site and post a link to it here.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

ipertrade
there was a problem with the name of the attachment

dlb
There are two log files, one completed successfully but did not delete the remote file. The other did not complete. Did both of them end with a 500 error or just the incomplete backup?


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

ipertrade
Hi Dale,
excuse me but I have some project to close and I dont have time to answer you.
I attach the screenshot of the "error 500" and the backend log, please let me know if you can solve the problem with the deletion of files in azure.
Thanks,
Pierpaolo

dlb
Pierpaolo,

Please edit administrator/components/com_akeeba/akeeba/plugins/engines/proc/azure.php and put the following line prior to line 94:
$config = AEFactory::getConfiguration();
Please let me know if that fixes the error.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

ipertrade
Hi Dale,
all is working well now, after the last modification the file deletion in Azure Blob works.
If I have to configure another server with Akeeba I have to follow all the modify you asked me ( install the dev release and after modify the azure.php file ) ?

Thanks, Pierpaolo

dlb
I apologize, I wanted to talk to Nicholas about this today and I missed him. Being 6 hours apart makes it hard sometimes.

No, you do not need the dev release any more. The changes in that release would be included in today's 3.11.3 release.

Now, Nicholas had about 9 million things going on when he gave me that last change. That was never in the dev release. Did it make it into the 3.11.3 update? Probably. :-)

If you have any trouble with 3.11.3, it is just that last change that we made. Please let me know if you have any problems and I'll remind Nicholas that it needs to be added.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

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!