PHP cURL: Error 7 - couldn't connect to host

2,156 views
Skip to first unread message

Miguel Quintal

unread,
Jan 7, 2014, 6:51:36 PM1/7/14
to appfog...@googlegroups.com
Hi, 

I have a simple PHP script (working for a year) using cURL and  some days ago stop working.
I don't know why I've already search about this error and somebody told me that its because some firewall is blocking the request.
I me localhost this script are working well in appfog don't.

$url = 'www.mydomain.com';
$cURL
= curl_init($url);
curl_setopt
($cURL, CURLOPT_RETURNTRANSFER, true);
$rresult
= curl_exec($cURL);
echo "-".curl_errno($cURL)."<br>";
echo "-".curl_error($cURL)."<br>";
curl_close
($cURL);

OUTPUT;
- 7 
- couldn't connect to host

Someone can help me.

Thank you!

Luca Morettoni

unread,
Jan 7, 2014, 6:58:50 PM1/7/14
to appfog...@googlegroups.com
On 8 January 2014 00:51, Miguel Quintal <mquin...@gmail.com> wrote:
> Hi,
>
> I have a simple PHP script (working for a year) using cURL and some days
> ago stop working.
> I don't know why I've already search about this error and somebody told me
> that its because some firewall is blocking the request.
> I me localhost this script are working well in appfog don't.

I have a similar problem into an app under appfog (node.js); starting
from last 10 hours I get a lot (99.9% of the times) a timeout error,
looks like we can't access any external resource from appfog network.
Which server are you using? I use the eu amazon ones, and my app is
under paid profile...

--
Luca Morettoni <luca(AT)morettoni.net> | http://www.morettoni.net
http://it.linkedin.com/in/morettoni/ | http://twitter.com/morettoni
Google+ profile: https://www.google.com/+LucaMorettoni
Member of GDG Perugia: http://perugia.gtugs.org

Tommie Podzemski

unread,
Jan 8, 2014, 5:03:03 AM1/8/14
to appfog...@googlegroups.com
Same issue here. Curl cannot access anything on Internet. I'm a paying customer on the higher tiers. I'll mail support and see whats going on.

Tommie Podzemski

unread,
Jan 8, 2014, 5:07:21 AM1/8/14
to appfog...@googlegroups.com
All apps on AWS-EU btw.

Luca Morettoni

unread,
Jan 8, 2014, 5:29:26 AM1/8/14
to appfog...@googlegroups.com
On 8 January 2014 11:07, Tommie Podzemski <tommiep...@gmail.com> wrote:
> All apps on AWS-EU btw.

yes, also I sent an email to the support, but I didn't received any
feedback... :(
Message has been deleted

Matthijs Jansen

unread,
Jan 8, 2014, 7:07:56 AM1/8/14
to appfog...@googlegroups.com
I have the same problem since two days or something. (At least that's when I mentioned it...) I tweeted @AppFogHelp but they don't reply. I've also sent an email just now.

Miguel Quintal

unread,
Jan 8, 2014, 9:06:01 AM1/8/14
to appfog...@googlegroups.com
Please when you something about this problem tell us. I've my application stopped for two days!

Thanks a lot I was thinking the problem is mine.

Tommie Podzemski

unread,
Jan 8, 2014, 9:20:21 AM1/8/14
to appfog...@googlegroups.com
I'm on priority support, so i'll report back here when i hear from them.

Luca Morettoni

unread,
Jan 8, 2014, 9:53:15 AM1/8/14
to appfog...@googlegroups.com
On 8 January 2014 15:20, Tommie Podzemski <tommiep...@gmail.com> wrote:
> I'm on priority support, so i'll report back here when i hear from them.

I have a paid plan, and I sent an email to the support yesterday, but
I don't get any answer, I'm planning to move my apps away and request
back my money!

Jasper Verweij

unread,
Jan 8, 2014, 2:24:07 PM1/8/14
to appfog...@googlegroups.com
I have similar related problem.

I use simplexml_load_file for retrieving two RSS feeds. All of sudden this stopped working. Results is that PHP page tries to obtain RSS for 60 seconds. After 60 seconds default connection reset is done by PHP server.

I have tried to workaround the issue without results


On Wednesday, January 8, 2014 12:51:36 AM UTC+1, Miguel Quintal wrote:

Jasper Verweij

unread,
Jan 8, 2014, 2:49:18 PM1/8/14
to appfog...@googlegroups.com
Does anybody experience same behaviour on other infrastructures or only AWS-EU?

Tommie Podzemski

unread,
Jan 8, 2014, 3:40:02 PM1/8/14
to appfog...@googlegroups.com
I've been in touch with the support now. It's a problem and they're working on fixing it. Also, this only affects AWS-EU.


On Wednesday, January 8, 2014 12:51:36 AM UTC+1, Miguel Quintal wrote:

Tracy

unread,
Jan 8, 2014, 3:41:38 PM1/8/14
to appfog...@googlegroups.com
Good afternoon

We've isolated the issue. It's only on EU-AWS, but our ops team discovered a bit ago, that one of the cloud controllers failed to come back up properly after a recent restart. We've restarted the processes and would like for you guys to try again, please? And let us know if you still have issues or if it's working correctly either way. Thank you for your patience while we work to resolve this. And if I don't get a chance to get back in here, please feel free to send a ticket to support:   sup...@appfog.com

~Tracy
Appfog Tech Support Engineer
sup...@appfog.com

sappollo

unread,
Jan 8, 2014, 3:49:15 PM1/8/14
to appfog...@googlegroups.com
Tracy, thanks for reply. I have restarted my app, but still the following page isn't loading fast: http://kenteken.tv/blog.php (it uses a function to retrieve a RSS feed)


2014/1/8 Tracy <tr...@appfog.com>

--
You received this message because you are subscribed to a topic in the Google Groups "AppFog Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/appfog-users/wenLTB56zLk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to appfog-users...@googlegroups.com.
To post to this group, send email to appfog...@googlegroups.com.
Visit this group at http://groups.google.com/group/appfog-users.
For more options, visit https://groups.google.com/groups/opt_out.

Jasper Verweij

unread,
Jan 9, 2014, 1:19:00 AM1/9/14
to appfog...@googlegroups.com
Problem is still not solved for my webapp. To be more precisely what i would expect on page http://kenteken.tv/blog.php. It should load a RSS feed and show last 10 titles of blogpostings. None of them are shown currently.

Luca Morettoni

unread,
Jan 9, 2014, 2:48:46 AM1/9/14
to appfog...@googlegroups.com
I have the same issue after a restart; I hope to receive a discount
for the next month payment... I just loose a costumer for this
issue...
Message has been deleted

sappollo

unread,
Jan 9, 2014, 11:09:35 AM1/9/14
to appfog...@googlegroups.com, sup...@appfog.com
Restarting cloud controllers of EU-AWS didn't solve the problem of my PHP webapp connecting with external RSS sources.
 
Eg. the page http://www.kenteken.tv/laatstekenteken.php should show last issued licenseplate of The Netherlands. This fails currently
 
Could you relook to this cloud controller again by your ops team?


2014/1/9 Luca Morettoni <lu...@morettoni.net>

Hashem Qolami

unread,
Jan 9, 2014, 2:55:28 PM1/9/14
to appfog...@googlegroups.com
After struggling for two days, I moved my application to Openshift, perforce.

Albert Xu

unread,
Jan 10, 2014, 2:59:26 AM1/10/14
to appfog...@googlegroups.com
I've been experiencing this for about 2 weeks. I've spent a lot of time debugging my code and finally admitted that it should be an AppFog issue.

António Azevedo

unread,
Jan 10, 2014, 1:23:07 PM1/10/14
to appfog...@googlegroups.com
Hi,

I also have this issue. I'm using PHP's file_get_contents function and it takes a very long time, eventually returning false.

Miguel Quintal

unread,
Jan 10, 2014, 2:14:22 PM1/10/14
to appfog...@googlegroups.com
Hi,

I've already try with file_get_contents and CURL but didn't work too.
I thing this problem have more than four days, and still. In my case the application isn't enterprise but for users with enterprise solutions is very bad.





--
You received this message because you are subscribed to a topic in the Google Groups "AppFog Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/appfog-users/wenLTB56zLk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to appfog-users...@googlegroups.com.
To post to this group, send email to appfog...@googlegroups.com.
Visit this group at http://groups.google.com/group/appfog-users.
For more options, visit https://groups.google.com/groups/opt_out.

Alexander Novikov

unread,
Jan 10, 2014, 3:12:07 PM1/10/14
to appfog...@googlegroups.com
I have the same problems with my Python scripts and Nodejs app.
Now moved projects to US appfog - all works fine.

Miguel Quintal

unread,
Jan 10, 2014, 3:50:32 PM1/10/14
to appfog...@googlegroups.com
How I move my free app to an US server without chanage dns? 


On 10 January 2014 20:12, Alexander Novikov <avnov...@gmail.com> wrote:
I have the same problems with my Python scripts and Nodejs app.
Now moved projects to US appfog - all works fine.

--
You received this message because you are subscribed to a topic in the Google Groups "AppFog Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/appfog-users/wenLTB56zLk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to appfog-users...@googlegroups.com.
To post to this group, send email to appfog...@googlegroups.com.
Visit this group at http://groups.google.com/group/appfog-users.
For more options, visit https://groups.google.com/groups/opt_out.

Nghi Phan

unread,
Jan 12, 2014, 5:46:23 AM1/12/14
to appfog...@googlegroups.com
I have same problem here, problem from euro local.

Nghi Phan

unread,
Jan 12, 2014, 5:43:47 AM1/12/14
to appfog...@googlegroups.com
Same problem here, only euro local.Please check

Tracy

unread,
Jan 13, 2014, 9:24:29 PM1/13/14
to appfog...@googlegroups.com
Hi guys

We had to restart EU earlier today (at 3:30pm PST) and it's back up again, but we've still got the issue with Port 80 being blocked. We're looking in to it and we're in communication with AWS about it. We should know more hopefully in the morning. As soon as I have the go ahead to post anything, or, at the very least, let you guys know what we know when we know it, we will.

~Tracy | Appfog Technical Support

Shikhar Sethi

unread,
Jan 14, 2014, 2:12:37 AM1/14/14
to appfog...@googlegroups.com
any update on this?

Tommie Podzemski

unread,
Jan 14, 2014, 4:19:41 AM1/14/14
to appfog...@googlegroups.com
Looks like its back now. After over 216 hours of downtime. 

Matthijs Jansen

unread,
Jan 14, 2014, 2:22:26 PM1/14/14
to appfog...@googlegroups.com
It's working again! Finally!

derek

unread,
Jan 15, 2014, 9:53:26 AM1/15/14
to appfog...@googlegroups.com
I've got a couple of node.js apps that were down for the same reason (AWS EU). They're back up now.



On Tuesday, 14 January 2014 19:22:26 UTC, Matthijs Jansen wrote:
It's working again! Finally!

Tommie Podzemski

unread,
Jan 20, 2014, 9:15:25 AM1/20/14
to appfog...@googlegroups.com
Anyone else experiencing those problems again?

They seem to be back.

Miguel Quintal

unread,
Jan 20, 2014, 9:22:53 AM1/20/14
to appfog...@googlegroups.com
My app never works well after problem begins.


--
Reply all
Reply to author
Forward
0 new messages