× Joomla Facebook Connect support forum

Topic-icon [front&back-end] php_network_getaddresses: getaddrinfo failed

Active Subscriptions:

None
These days, i offen (not always) got the following errors in front and back-end.
In front-end, it may give out when user login in.

PS: I am using Nginx as the web server instead of apache
Could you help check it? I could PM the back-end access info to you.
Thanks a lot=]

awesomescreenshot.com/00b7f4y8a
awesomescreenshot.com/0917f5061
The topic has been locked.
Support Specialist
I'm not sure. I've never seen that error before, but I just did a search for "getaddrinfo failed" and found a bunch of results. It seems to happen both on Apache and other servers, and looks to be caused by the server not being able to resolve the IP address of a hostname. Servers aren't are main area of expertise, but many people say a reboot or hard shutdown and startup of Apache (assuming similar for Nginx) works to reconfigure for the current DNS servers.

Beyond that, I don't have many answers for you. JFBConnect does need to contact the Facebook servers, but many other components will also do the same type of calls we do to communicate externally.

Hopefully this helps you out in determining the cause, and sorry I don't have a 'do this' type answer to fix it. Let us know if you figure anything out, and we'll try to research it a little more as well.
The topic has been locked.
Active Subscriptions:

None
Thanks for your quick, Alex=]

After reboot and restart of Nginx server, the problem seems gone. No sure whether it's fixed, but thanks for your research and recommendation=]

By the way, the register and login of my site via facebook connect is quite slow, usually 10 seconds, could you suggest something i can do to improve it?
When I ping api.facebook.com, the time is about 285 ms, is there any Asia Pacific server of facebook api?

PS: I am using virtual private server.

Thanks a lot=]
The topic has been locked.
Support Specialist
There really aren't any international servers for the PHP API that we know of. I'll definitely check around and see if I can find any information about that. For the Javascript API, which we also use, we already set it to the correct language. I'm not sure if Facebook uses that language string to load from a server nearer to your locale, but it's possible.

Something you can try, though I don't know if it will improve your situation, is to hard-code the IP addresses for the different servers we connect to. If you go to the /administrator/components/com_jfbconnect/assets/facebook-api/facebook.php file, at ~line 138, you'll see 4 facebook addresses. If you ping them, and then insert their IP address instead of the 'pretty' name, it may shave off a few ms. However, this may cause issues if Facebook ever updates those IPS. It may also give you a clue as to whether it's the actually communication with Facebook or the DNS lookup itself.

Hope this helps, and let us know if you figure anything out.

As for our support. No problem. Glad we could help. If you'd like to leave a review about JFBConnect or our support on the JED, we'd definitely appreciate it, though it's certainly not required. Thanks!
extensions.joomla.org/extensions/social-...ook-integration/7215

Good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
I would try this later=] Thanks Alex

BTW, I have submitted review in JED, really appreciate the support you given=]
The topic has been locked.
Support Specialist
Thanks for the JED review, we definitely appreciate it!

As for the issue at hand, definitely let us know the results. We're curious too. Thanks
The topic has been locked.