Support

Akeeba Backup for Joomla!

#8760 Post-processing error - SSL read

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 nicholas on Tuesday, 24 May 2011 04:45 CDT

user7330
Hi guys,

Suddenly I'm receiving the following error in the backend when Akeeba is doing the post-processing to Amazon S3. Heres the error...

AEUtilAmazons3::putObject(): [56] SSL read: error:00000000:lib(0):func(0):reason(0), errno 104
Failed to process file /miracleinthebelly.com/html/Akeeba Backup/www.miracleinthebelly.com-002716-20110103.j01
Post-processing interrupted -- no more files will be transferred


This suddenly started about 4 days ago, and its been happening every day I try to backup. I haven't upgraded or otherwise changed Akeeba's settings or changed anything at all in the last few days.

Any ideas?

nicholas
Akeeba Staff
Manager
There seems some issue with your host's setup. Maybe they did an upgrade which broke their OpenSSL installation. I suggest asking your host about it. There's nothing we can do from this end :(

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!

user7330
Thanks, somethings strange is definitely going on. First off, I tried a backup again today, and it worked without error. Weird.

Then, my host got back to me and basically told me that openSSL hasn't been touched since things like that are rarely changed on a clustered host like them (affects too many customers). They mentioned 2 things, one is the issue might have something to do with the folder I use for storing backups having a SPACE in it; its called 'Akeeba backup'. They also provided the following link related to CURL as a good place to start, heres the link, http://curl.haxx.se/mail/archive-2004-12/0059.html

Could the source of the problem be something on Amazon's side??

Thanks again Nicholas

nicholas
Akeeba Staff
Manager
Seems that it was a temporary glitch in the connection with Amazon's servers.

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!

sandstorm871
sorry to butt in on this post and know your busy after JAB11, but have a similar problem.

I have a dedicated server - so no host.
I dont really know what im doing with it so have a guy tweak, maintain and upgrade things on it.

My server guy upgraded the OS, kernerl & cPanel yesterday, now my backups dont transfer to S3.

Ive told him what you said in previous post
"There seems some issue with your host's setup. Maybe they did an upgrade which broke their OpenSSL installation. I suggest asking your host about it."


But he's struggling finding the problem and has asked could we let him know the steps that are taken to transfer the backup.

My actual error is
AEUtilAmazons3::uploadMultipart(): [56] Recv failure: Connection reset by peer
Failed to process file /home/banation/public_html/administrator/components/com_akeeba/backup/site-www.bodyactive-nation.co.uk-20110512-130330.j01
Post-processing interrupted -- no more files will be transferred


Hope that makes sense and appreciate any reply as do know your busy catching up at the momemnt.

Andy

nicholas
Akeeba Staff
Manager
There are three reasons why you might be receiving this error:

1. Lack of libssl compatible with libcurl. This is impossible to know unless you have compiled cURL and PHP yourself, in which case you can see if there are OpenSSL conflicts during the ./config stage.

2. Host-side firewall. IIRC cPanel does have its own firewall and you have to explicitly allow communications with s3.amazonaws.com over ports 80 and 443. I haven't had root access on a cPanel host for a while, so my memory fails me as to where that option was.

3. Lack of system-wide cacert.pem. We have worked around this issue in our latest developer releases, accessible from the top menu item titled "Download" on this site (look for the dark gray box titled "Akeeba Backup Professional").

I hope that 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!

sandstorm871
We have tried several different things with this all day and still getting same errors.

My server guy says he only upgraded kernel & cPanel and hasn't come across this before.

following your suggestions he switched off firewall and default SSL, which allowed us to backup and it was stored away to S3 OK somehow

Switched them back on and we couldn't backup to S3.

Switched them off again and now we still cant backup to S3??

Both lost now as Akeeba is backing up OK, just not sending to S3.

To test further I set up a dropbox account reconfigured Akeeba to save the backup there.

At about 85% complete I get the error
Cannot extract token! (form action=https://dl-web.dropbox.com/upload)
Cannot execute request: Empty reply from server


but after checking dropbox the backup is in the dropbox.

Confused

I know its a setting problem somewhere, but would appreciate it if you could afford some time to help.

Andy

nicholas
Akeeba Staff
Manager
I'm not a server guy, really. Setting up a server requires a completely different skill set than building software and I have focused on the latter. The furthest I can go to is telling you that there is indeed a problem with your firewall setup. Exactly what, that eludes me. When I have this kind of issues myself, I just file a ticket with my host and they fix the firewall setup for me. I have no idea what they're doing, like they have no idea what my code is doing. I could try to help you with the server setup, but since I'm not properly qualified I would most likely cause more problems than what I can potentially solve :(

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!

sandstorm871
Fair enough!

Just a bit puzzled as at the moment the firewall is completely switched off and yet we still get these errors ??

Andy

nicholas
Akeeba Staff
Manager
Try creating a file named test.php with the following contents:
<?php error_reporting(E_ALL); echo gethostbyname('s3.amazonaws.com');?>
and run it through the command line version of PHP, e.g.
php /path/to/test.php
from an SSH terminal. It should return an IP address like 1.2.3.4. If it replies "s3.amazonaws.com" then you have a DNS issue.

If the DNS resolution does work, please let me know and I'll attach a script which will run a test upload to your S3 server so that we can see what's going on.

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!

sandstorm871
Thanks!

Ive created that php file and uploaded it into the public_html folder of my site.

If I visit it in a browser I see an IP address - 72.21.211.170

Just waiting on my server guy who will check it via a ssh terminal.

Andy

nicholas
Akeeba Staff
Manager
Yes, I need him to try through SSH. The command-line and web binaries of PHP have different configurations. One may work and the other may not.

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!

user12153
Hi. I've been getting the same message when trying to backup through remote ftp. This used to work fine until a few works ago when it just stopped working. The proved insist nothing has changed on their servers.

I get the message :
Uploading /hsphere/local/home/c299501/adplayer.co.uk/site/safe/site-adplayer.co.uk-20110514-084311.jpa has failed.
Failed to process file /hsphere/local/home/c299501/adplayer.co.uk/site/safe/site-adplayer.co.uk-20110514-084311.jpa
Post-processing interrupted -- no more files will be transferred

Is there a debug mode or something that will help to get to the bottom of this?

Any ideas will be much appreciated.

Thanks, Harry

sandstorm871
Hi Nicholas,


My server guy has tried in SSH and got.

root@ds-22917 [~]# php test.php

72.21.214.143




Andy

nicholas
Akeeba Staff
Manager
@hdhothar You have a completely different issue with a completely different post-processing engine. Please start a new thread and attach your log file so that I can help you. Do not reply on this thread; your question is off-topic.

@sandstorm871 Since you don't have a DNS issue, there are only two possibilities left:
- Server-side firewall, or
- Something's wrong with the (recompiled) cURL PHP module or the (recompiled) OpenSSL library. Try setting the SSL option to off in the post-processing engine's options. If that works, you probably have to recompile OpenSSL and then recompile PHP's cURL module, specifying the full path to your just-recompiled OpenSSH library.

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!

sandstorm871
Thanks for your latest advice.

Firewall has been disabled for a few days now while we test.

Also SSL option are off, yet we still get the same error.

Backup is fine just not moving to S3.
If I use dropbox, I get the error as above, but the backup does move to my drop box.

nicholas
Akeeba Staff
Manager
Sorry, that is as far as I can go. The problem is certainly not in the PHP code I have written. It's running the curl_exec as it's supposed to, but it doesn't execute successfully due to some networking issue at the operating system level. As I said I'm not a servers guy and I can't help you fix it. All of the above posts are based on the common (and some not so common) networking issues I have come across and know how to fix. This issue you're experiencing is beyond me. I think you need to rebuild your server :(



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!

sandstorm871
Hi Nicholas,

Never doubted the Akeeba Backup Pro code as have it working on several sites and know this issue only turned up after upgrading the server last week.

Thanks for your help and advice.

Andy

nicholas
Akeeba Staff
Manager
No offense taken, don't worry about that. I am just puzzled about what the heck is going on and a bit frustrated that my server configuration knowledge (or, should I say, effective lack thereof) don't allow me to help you solve this :(

If you get to the bottom of this, please let me know what went wrong. I would like to try and replicate a bad server on a virtual machine and subsequently fix it. Going through all that trouble is worth the extra experience!

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!

sandstorm871
We sort of have it working, without anything being altered on the server, but is now puzzling me more ??

In the Akeeba Backup S3 Configuration we have set the disable multipart uploads to yes.

I already had the configuration set so that the backup is taken and uploaded in one .jpa file but never had the disable multipart uploads.

Now when we back up, the backup is taken (as it was before) but now uploads OK to S3?

I have re-enabled the firewall and tested again and this works.

Does this sound correct?

Also after reading some of your docs again today, I'm guesssing the problem with the dropbox transfer was becuase it was transferring a 100+Mb file. Where your docs say this should be spllit to less than 50mB files

Andy

nicholas
Akeeba Staff
Manager
Yes, that sounds correct! Many servers don't play nice with multipart uploads, but I don't understand why. It's not like the error message helps. Using the legacy (single part) uploads is the safest bet. I'm not sure how I missed that, it's one of the standard things I tell people to do. Sorry :(

Regarding DropBox, yes, there is a limitation of 50Mb per file. We have to use DropBox' form upload method which allows up to 50Mb instead of their API which allows up to 300Mb. The reason is that the way the API is coded it makes it impossible to upload large files through PHP code without suffering timeout or memory outage errors.

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!

sandstorm871
No Problem,

Its working now, and I have learned a lot more about Akeeba Backup and my server!

Thanks,

nicholas
Akeeba Staff
Manager
You're welcome! The learning process never stops for any of us, including yours truly :)

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
Andy, I saw you posted a message and then deleted it? Did you adjust your IPFilters settings?

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!

sandstorm871
Just an extra not on this - RE Dropbox transfers.

If I set the backup to more than 50Mb splits.
I get an error after the back up, but the backup does work and transfer to dropbox.

I tested it with a 160Mb backup ??

To be safe I have set my backups at 49.99mb, but just thought I'd mention it!

nicholas
Akeeba Staff
Manager
According to DropBox' documentation, it should not accept files over 50Mb. FYI, we are using the web upload method to send files to DropBox and they clearly state that the files should be 50Mb or less. One thing I know for sure is that with files over 50Mb it will throw an error message. The fact that the files are nonetheless saved in your account sounds like a bug in DropBox which will be eventually fixed.

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!

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!