Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING: Error while getting SEO stats (domain age): curl_exec: Connection timed out after 10001 milliseconds. #11495

Closed
howdytom opened this issue Mar 17, 2017 · 13 comments
Labels
duplicate For issues that already existed in our issue tracker and were reported previously. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@howdytom
Copy link

Since I have upgraded to Piwik 3 the following warning shows up most of the time:

WARNING: Error while getting SEO stats (domain age): curl_exec: Connection timed out after 10001 milliseconds. Hostname requested was: www.whois.com

How can I debug this? No server errors with php 7.0.16, Piwik 3.0.2

@sgiehl
Copy link
Member

sgiehl commented Mar 17, 2017

Do you have ssh access on the server Piwik is running on? Maybe try to run an curl on the shell to check whether a connection to whois.com can be established or not.

@howdytom
Copy link
Author

yeah. Good point. Indeed it says

curl: (7) Failed to connect to www.whois.com port 80: Connection timed out

I am able to establish a connection to various other domains, except whois.com, though. Any ideas?

@sgiehl
Copy link
Member

sgiehl commented Mar 17, 2017

Is it listed in your hosts file? Don't have any other idea why it shouldn't be reachable otherwise right now...

@howdytom
Copy link
Author

thank you for your quick reply. Which hosts file are you referring to? It's not listed in /etc/hosts file

@mattab mattab closed this as completed Mar 21, 2017
@mattab
Copy link
Member

mattab commented Mar 21, 2017

It looks like some network/connection errors to whois.com which works for us

@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Mar 21, 2017
@benhartwich
Copy link

benhartwich commented Apr 5, 2017

Hi,

I´ve the same problem - is there any solution? When I use
telnet whois.com 80
I get a connection refused, but
telnet whois.com 443
works. I think you should deliver the informations from port 443?

@howdytom
Copy link
Author

howdytom commented Apr 5, 2017

Check your firewall port settings for outgoing httpd connections.

@benhartwich
Copy link

benhartwich commented Apr 5, 2017

No, other websites works.

I think, this problem could be related to open_basedir, which I had activated, but the global setting absolute_chroot_path didn´t work well. Without open_basedir the curl error seems gone.

@howdytom
Copy link
Author

howdytom commented Apr 5, 2017

mephivio shared a solution in the Piwik Forum

To solve it :

1/ edit the file /plugins/SEO/Metric/DomainAge.php
2/ modify lines 77, 97, 117
3) replace http with https

like this
$data = $this->getUrl('https://wayback.archive.org/web/*/' . urlencode($domain));
$data = $this->getUrl('https://www.who.is/whois/' . urlencode($domain));
`$data = $this->getUrl('https://www.whois.com/whois/' . urlencode($domain));``

@benhartwich
Copy link

Solved!

@sgiehl
Copy link
Member

sgiehl commented Apr 6, 2017

Ah that's interesting. So it works with https for you but not with http?
Guess we could implement a fallback, so it tries https if http doesn't work

@sgiehl sgiehl reopened this Apr 6, 2017
@sgiehl sgiehl added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. and removed answered For when a question was asked and we referred to forum or answered it. labels Apr 6, 2017
@sgiehl sgiehl added this to the Backlog (Help wanted) milestone Apr 6, 2017
@RMastop
Copy link
Contributor

RMastop commented Apr 6, 2017

I'd say try HTTPS, if it fails, use http as the fallback.

@mattab
Copy link
Member

mattab commented Jun 21, 2017

this was fixed earlier in #11672

@mattab mattab closed this as completed Jun 21, 2017
@mattab mattab added the duplicate For issues that already existed in our issue tracker and were reported previously. label Jun 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate For issues that already existed in our issue tracker and were reported previously. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

5 participants