Support

Akeeba Backup for Joomla!

#29087 Warning when oploading to S3

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 Wednesday, 21 March 2018 18:17 CDT

guzabi
Hello,

I have a warning when performing a backup task with post-processing set to upload to Amazon S3. I have a warning saying :

Warnings
0 :: Akeeba\Engine\Postproc\Connector\S3v4\Connector::putObject(): [0] Access Denied Debug info: SimpleXMLElement Object ( [Code] => AccessDenied [Message] => Access Denied [RequestId] => 125CFEA9E7C5AFF1 [HostId] => nP48BCcw8EirUc3vuboXrWncX3uwAGFfoeVyg++xDeGquQ7wc1qxX/O4OmjSgRkshwqymzLUvKM= )
Failed to upload kickstart.php

The backup seems fine, though. But the warning is worrying.
Is this a known bug? Should I worry about this ?

tampe125
Akeeba Staff
Hello,

it seems that the S3 user you are using hasn't the correct permissions to upload the backup archive.
You should review your user permissions and double check that he has write permissions on the bucket you're uploading to.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

guzabi
Thanks for the answer. This is what I thought, however it's not the case :

1. The user and his rights are unchanged since months, and the same user is used on other websites, and the upload goes very well, without warnings ;

2. The JPS is indeed uploaded. There's 1.1Gb of data on S3, uploaded at the right time…

Please note that the user is write-only (for security reasons) and that the archive is huge, here (1.1Gb+). The other websites uploading to S3 generate much smaller archives (100 ~ 200 Mb). Maybe that's related, I don't know…

tampe125
Akeeba Staff
If you try again, is it uploaded?
Sometimes Amazon fails on his own and throws cryptic errors.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

guzabi
I saw the warning this morning on the backup notification e-mail (the backup is triggered by a cron task). I was worried, so I logged on and manually started the backup (same profile). I also got the warning. Then I logged on to my AWS console and checked the bucket, and I saw that both archives (from the automatic backup, during the night, and from my manual backup, this morning) were there, with the right modification time and size…

tampe125
Akeeba Staff
Yeah, sometimes it happens: Amazon S3 panics on its own and throws out an error. This is not the first time I see something like that.
Usually those are just temporary issues. I'll leave this ticket open, let me know if that still happens in following days or it was just a one time issue.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

guzabi
Hello,
Coming back on this ticket. I now see that I have a problem with local backup, but with a "slient fail" this time. The notification e-mail simply stops after a while, not displaying a conclusion or error notification (log is attached). The backup fails, no archive is generated. Manual backup with same profile works, though.
This is my only website with errors, and this is the same every time : cron backup fails, manual backup succeeds (using identical profiles). Is there something different when working with cron backups? What's the issue, here? The website is particularly huge (archives are ±1.30 Gb each) but if that was an issue, errors should happen woth manual backup as well, no?
Please, please help…

tampe125
Akeeba Staff
It seems your log didn't come trough, however I have an hunch: most likely your CRON job has an hard limit on a fixed amount of minutes.
On manual backups you don't have such problem, since we're requesting the same page several times, resetting the timer. On CLI backups, instead, everything happens on the same request, thus the problem.
The only solution is to trigger them using frontend backups, further info here

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
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!