Support

Akeeba Backup for Joomla!

#23266 Amazon not allowing backups

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 iamalive on Thursday, 17 September 2015 01:32 CDT

iamalive
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:




Warnungen

Amazon S3 returned an error message: 0 :: The difference between the request time and the current time is too large.
Failed to process file /home/gundold1/public_html/version3/administrator/components/com_akeeba/backup/site-Joomla!-3.4.4-mysite.ch-20150916-085631.jpa
Post-processing interrupted -- no more files will be transferred

iamalive
Ooops!
Hit the wrong button.

The problem - I've been backing up to Amazon S3 for over a year without any problems.
I've just deceided to make use of the Watchful.li service to do an automated backup and the firs site - where I've never had problems manually - makes the backup but doesn't send it it amazon.
The message is :

Warnungen



Amazon S3 returned an error message: 0 :: The difference between the request time and the current time is too large.

Failed to process file /home/gundold1/public_html/version3/administrator/components/com_akeeba/backup/site-Joomla!-3.4.4-mysite.ch-20150916-085631.jpa

Post-processing interrupted -- no more files will be transferred


I've no tried doing a manual backup and get the same error message. So now I'm stuck.

Any ideas?

tampe125
Akeeba Staff
Hello David!

You are receiving that message because the system time if not updated or the timezone is not correctly set.
You have to contact your host and ask them to double check the current date and time, if the NTPD daemon is up and running and if the timezone is correctly set.

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!

iamalive
Hi Davide
I like your components - which I use regularly :-)

I checked with the hoster, and the server timezones are all set for Zurich/Berlin which is correct.
Also, I have had no problems before and the last backup I did on the 23rd of August was fine.

i'm wondering if this is related to the frontend backups created by watchful.li. That is the only thing which has changed on this site.

What is also strange, is that I now get this message even when I try to do it manually, which has always worked before.

tampe125
Akeeba Staff
The timezone is just one of the possible cause, can you please ask them to double check if the server time is fine?
While performing the upload, we are asking PHP to give us the correct time, which in turn asks it to the operating system. So that's something our of our control, your host should double check it.

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!

iamalive
Hi Davide
Yes, I did check - they ran a double check using a php test file and it's correct.

nicholas
Akeeba Staff
Manager
Have you checked the timezone you are using in your Joomla! back-end, Global Configuration? Does it match the timezone of your server (not necessarily where you live in)? Also, if you try taking a backup from the backend of your site do you have the same issue or does it only happen with Watchful.li?

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!

iamalive
Hi
The timezone in joomla is correct. Also set to Zürich/Berlin.

Yes, that's the issue as well - I can't make a backend backup to S3 now.

I noticed that watchful seems to also use AWS for their service - maybe there's a conflict there?

tampe125
Akeeba Staff
I guess you had to install a plugin in order to manage your site with Watchful.li
Can you please try to disable it and run a backup from the backend?

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!

iamalive
All I've installed is the Watchful component - that doesn't appear to have any separate plugins. I've deactivated the component and still get the same message. Prior to that I used admintools to purge sessions as well.

nicholas
Akeeba Staff
Manager
This proves that the problem is what Davide told you all along: your server has the wrong time set on it.

Please note that there are THREE different things that your host must check:
1. The timezone of the server. Typically stored in /etc/localtime or /etc/timezone it must match the location of the server.
2. The timezone in php.ini. It has to match the timezone above. In case you are overriding php.ini values in local php.ini files inside your site; or any .htaccess file into any path leading from the root of the filesystem to where the script is located; or any .user.ini files into any path leading from the root of the filesystem to where the script is located: you must make sure you are NOT overriding the system's timezone.
3. The date and time itself.

I would like to stress that setting the time itself is NOT enough. For example, at the time of this writing it's 16:17 EEST which translates to 13:17 UTC. If I was stupid enough to set my timezone to GMT (even though my computer is in Athens, Greece therefore in EEST timezone which is GMT+3 due to Daylight Savings Time) and set my clock to 16:17 then
echo date('Y-m-d H:i:s');
would look MISLEADINGLY correct. I believe this is what your host did. If I, however, did the CORRECT date dump, i.e.
echo date('Y-m-d H:i:s T');
which prints the timezone or, even better,
echo gmdate('Y-m-d H:i:s');
which returns the GMT time I would have noticed the fact that my runtime clock is set three hours into the future.

Furthermore I'd like to stress that running ntpd / ntpdate (depending on the age of the Linux distribution) manually is not enough. In fact, if the time of the server deviates to the time of the atomic clock it connects to by more than 1000 seconds (16 minutes 40 seconds) ntpd will NOT update the local time, NOT throw an error and only set an error code. I've hit that issue twice, once setting up my Raspberry Pi (no hardware real time clock on this puppy!) and once setting up my CCTV system. In both cases I had to set the time manually to a good approximation, i.e. within a few seconds of the actual time, then run ntpd.

Please note that I've hit the exact save issue you are experiencing twice on our site last year when SiteGround had inadvertently turned off the NTP daemon. Every three weeks the clock would deviate more than 15' and my backups would fail uploading. The second time I asked to speak to an engineer, told him that the NTP daemon is probably not running and he fixed it. No problems ever since. I have twice daily backups delivered to S3 without fail every single day the last 11 months. So, no bug here. I have our site's backups to prove it ;)

Also, the date and time for the signature is fetched using this very simple code:
echo gmdate('D, d M Y H:i:s T');
(I added the echo for your benefit. The actual code is a variable assignment but the important thing is the gmdate call). You can check its output against www.timeanddate.com/worldclock/timezone/utc If the two outputs differ for more than 15' (I can guarantee they do) you know that you have to ask your host to fix the issue without any more excuses.

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!

iamalive
Hi Nicholas

OK - thanks for your input. I've forwarded your comments to the hoster and I hope he can find a solution. I'll come back with their results.
Regards
David

nicholas
Akeeba Staff
Manager
You're welcome, David :) Having been through this myself I know how frustrating it can be.

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!

iamalive
Hi again - yes frustrating is right. Problem is often communication - I can't deliver the level of details you do, so I just pass it and hope the recipient can understand it. :-)

So, I did that and it seems to have led to a result: They just replied and after checking the server, the manual backups work again :-)

I haven't been told what the problem was.....
But I think this ticket can be closed now

Thanks a lot to you and your team

Regards
David

nicholas
Akeeba Staff
Manager
ROFL! I love how the problem "magically" disappeared without any further reply from them when we told them how to do their job. Are you sure you don't want me to give you any hosting recommendations?

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!

iamalive
Well They then said, the had reset the timing on the server :-)

No, I'm happy with the hoster - they are the main sponsors of Joomla here and mostly OK - it also depends with whom you are talking.

But: thanks for your help and thanks for your in-depth understanding

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!