Results 1 to 22 of 22
-
05-29-2011, 12:21 AM #1WHT Addict
- Join Date
- Jan 2011
- Location
- Australia
- Posts
- 117
CURL Error: 7 - couldn't connect to host - NetEarthOne Domain Sync
Hello everyone,
I'm trying to fix an issue with our WHMCS where we are getting "CURL Error: 7 - couldn't connect to host" every time the WHMCS NetEarthOne Domain Syncronisation runs.
I did a google on this and I found that the server IP needs to be entered in the "Settings > API section" area in netearthone. I have already done that, however we are still getting the same error message.
Can someone please give me some general ideas as to what could be wrong?
Thanks
Daniel
PS we are running WHMCS Version: 4.5.1
-
05-29-2011, 12:24 AM #2Web Hosting Evangelist
- Join Date
- Jan 2011
- Posts
- 453
Hello,
Did you check whether PHP is compiled with curl or not? If not, you need to recompile PHP to enable the curl module." Your work is to discover your work and then with all your heart to give yourself to it. "
That's the mark of a true professional !
-
05-29-2011, 12:29 AM #3WHT Addict
- Join Date
- Jan 2011
- Location
- Australia
- Posts
- 117
Hello,
Yes curl is turned on in php. I even did a version check in WHMCS to make sure that it is working and it is. Also I did an upgrade on wordpress the other day so I'm sure that curl is turned on.
Thanks
Daniel
-
05-29-2011, 12:36 AM #4Web Hosting Evangelist
- Join Date
- Jan 2011
- Posts
- 453
Hello,
I got the below given info from WHMCS docs.
Server Command Error - Curl Error - Couldn't connect to host (7)
This response means you have a firewall blocking the connection. The port being used depends on what module you are using but for cPanel it would be 2086/2087, Plesk 8443, DirectAdmin 2222, etc...
Can you check this? If you are still having issues simply open a support ticket to WHMCS." Your work is to discover your work and then with all your heart to give yourself to it. "
That's the mark of a true professional !
-
05-29-2011, 12:42 AM #5WHT Addict
- Join Date
- Jan 2011
- Location
- Australia
- Posts
- 117
Hello,
Yes I did see that, however I didn't think that would affect it. Port 2086/2087 is open on our firewall since we use cpanel. I wonder if NetEarthOne got ports that need to be opened.
Thanks
Daniel
-
05-29-2011, 01:07 AM #6WHT Addict
- Join Date
- Jan 2011
- Location
- Australia
- Posts
- 117
Update:
Just got the next email:
-----------------------------
Error for xxxxxxx: CURL Error: 7 - couldn't connect to host
Error for xxxxxxx: CURL Error: 7 - couldn't connect to host
Error for xxxxxxx: CURL Error: 7 - couldn't connect to host
Error for xxxxxxx: CURL Error: 7 - couldn't connect to host
Error for xxxxxxx: CURL Error: 7 - couldn't connect to host
Error for xxxxxxx: CURL Error: 7 - couldn't connect to host
Updated xxxxxxx expiry to 16/05/2012
Error for xxxxxxx: CURL Error: 7 - couldn't connect to host
Error for xxxxxxx: CURL Error: 7 - couldn't connect to host
I have opened a ticket to WHMCS, just waiting for then to get back to me
Thanks
Daniel
-
05-29-2011, 01:35 AM #7Web Hosting Guru
- Join Date
- Jun 2007
- Posts
- 264
It's either your firewall or your resolvers cannot resolve the domain you are attempting to connect to or your connecting IP hasnt been added to your API IP access list (which was recently introduced - which is likely to be the case here)
-
05-29-2011, 02:13 AM #8Web Hosting Evangelist
- Join Date
- Jan 2011
- Posts
- 453
Hello Daniel,
Please don't forget to post the fix here." Your work is to discover your work and then with all your heart to give yourself to it. "
That's the mark of a true professional !
-
05-29-2011, 03:53 AM #9WHT Addict
- Join Date
- Jan 2011
- Location
- Australia
- Posts
- 117
Ok,
WHMCS support got back to me and sent 2 links, and I'm like been there done that (I didn't say that in my reply)
Please see our release notes regarding the LogicBoxes modules (Reseller Club, NetEarthOne etc) @ http://wiki.whmcs.com/Version_4.5_Re...#Release_Notes & http://wiki.whmcs.com/ResellerClub#C...ub_.28v_4.5.29
Can you please tell me how I can test this from the server? What IP adress / url should I ping and what port should I have open in the firewall?
Also does anyone know how long it should take for the API IP access list to take affect?
Thanks
Daniel
-
05-29-2011, 04:08 AM #10Web Hosting Evangelist
- Join Date
- Sep 2008
- Posts
- 545
Did you add your IP to the trusted IP list?
-
05-29-2011, 04:17 AM #11WHT Addict
- Join Date
- Jan 2011
- Location
- Australia
- Posts
- 117
Yes I did add the server IP to the trusted list
Thanks
Daniel
-
05-29-2011, 11:39 AM #12Web Hosting Master
- Join Date
- Jun 2003
- Location
- Sheffield
- Posts
- 810
Try adding your server's primary IP address to the API whitelist too.
-
05-29-2011, 08:30 PM #13WHT Addict
- Join Date
- Jan 2011
- Location
- Australia
- Posts
- 117
Ok,
I got it worked out. Don't ask how I did it, but I somehow manage to put the wrong IP address in the API whitelist. I had every bit of the IP right bar the very last number. I put xxx.xxx.xxx.x6 but it should have been xxx.xxx.xxx.x4.
Thanks for you help guys
Daniel
-
05-29-2011, 11:43 PM #14Web Hosting Evangelist
- Join Date
- Jan 2011
- Posts
- 453
Hello Daniel,
It is good to hear that the issue is sorted out and thanks for sharing the fix." Your work is to discover your work and then with all your heart to give yourself to it. "
That's the mark of a true professional !
-
05-30-2011, 12:00 PM #15Disabled
- Join Date
- Apr 2009
- Posts
- 3,262
Thanks for the information. We was having the same issue as well.
-
06-30-2011, 10:31 AM #16New Member
- Join Date
- Jun 2011
- Posts
- 2
I want to make sure I understand I was at the right place.
I logged into my NetEarth One Account, clicked on
Settings> API
Scrolled to the bottom then added my IP address of my server.
It gave me a message that said it will be added within the next 30 minutes.
Did I do that correctly?
-
06-30-2011, 10:35 AM #17New Member
- Join Date
- Jun 2011
- Posts
- 2
I waited 30 minutes and still I get the error????
-
07-08-2011, 03:34 PM #18Web Hosting Master
- Join Date
- Oct 2007
- Posts
- 750
Hi All,
This is down to a few different reasons :
1. Your server is blocking outgoing 443 (https)
2. The IP you have added to NEO is not the correct one.
3. You didnt want the magic 30 mins :p
Pop along to live chat, we are here to help and there is a file you can upload to your server to check the IP to add to NEO.
ChrisNetEarth One
ICANN Accredited Registrar, https://reseller.netearthone.com
Full UK support, 7 days a week 365 days a year!
-
08-30-2011, 11:13 PM #19Disabled
- Join Date
- Dec 2009
- Posts
- 143
i have the same problem. Mine if i manually execute the sync file, all are updated without error. If it is on cron job, it will just gives error after the 10th domain. CURL Error: 7 - couldn't connect to host
-
10-13-2011, 04:43 PM #20New Member
- Join Date
- Oct 2011
- Posts
- 2
I have been trying to find where to edit the API access list, but so far no success. Can someone point me in the right direction here?
Is there documentation on this somewhere I am missing by chance or is this just for netearthone domain sync?
-
10-13-2011, 04:46 PM #21Web Hosting Master
- Join Date
- Oct 2007
- Posts
- 750
NetEarth One
ICANN Accredited Registrar, https://reseller.netearthone.com
Full UK support, 7 days a week 365 days a year!
-
10-10-2014, 12:58 PM #22New Member
- Join Date
- Oct 2014
- Posts
- 1
Dears,
I am newbie in web hosting business, and i got same error as
"FAILED: (Curl Error) couldn't connect to host - code: 7"
can any help me how to fix this problem?
Similar Threads
-
Module Create Failed: Error: (Curl Error) couldn't connect to host - code: 7
By zomex in forum Hosting Software and Control PanelsReplies: 6Last Post: 11-13-2010, 03:07 PM -
WHMCS Curl ERROR: name lookup timed out error
By datamansystem in forum Programming DiscussionReplies: 1Last Post: 02-19-2007, 11:26 AM -
Exim SMTP Sync Error
By devonblzx in forum Hosting Security and TechnologyReplies: 2Last Post: 02-04-2007, 02:08 PM -
curl: (6) Couldn't resolve host
By FULLAMHRD in forum Hosting Security and TechnologyReplies: 2Last Post: 07-15-2005, 07:14 AM -
very odd mysql error (sync)
By popdirt in forum Programming DiscussionReplies: 0Last Post: 10-24-2004, 06:32 PM