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

curl_exec: Operation timed out after 10000 milliseconds #8099

Closed
roddyofchina opened this Issue Jun 12, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@roddyofchina

roddyofchina commented Jun 12, 2015

curl_exec: Operation timed out after 10000 milliseconds with 7193 bytes received. Hostname requested was: plugins.piwik.org

my piwik version's is 2.13.1 .

Nginx error:
1880#0: *114 FastCGI sent in stderr: "PHP message: Error in Piwik: <title>Piwik › Error</title>

An error occurred

curl_exec: Operation timed out after 10000 milliseconds with 43193 bytes received. Hostname requested was: plugins.piwik.org

Go Back | Go to Piwik | Login

  • <a rel="noreferrer" target="_blank" href="" while reading response header from upstream, client: x.x.x.x, server: localhost, request: "GET /index.php?module=CorePluginsAdmin&action=browsePlugins&idSite=18&period=day&date=today&activated=&sort= HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "s", referrer: "

@mattab

This comment has been minimized.

Show comment
Hide comment
@mattab

mattab Jun 16, 2015

Member

Hi @roddyofchina

Thanks for the report. 10000 milliseconds with 7193 bytes means your server downloads from the marketplace at about 1 kb/s. This is very slow internet connection unfortunatley.... your Piwik is trying to download the JSON file of list of plugins that weights 350Kb. it could take 350 seconds. that's very long time to wait. I'm wondering what is our best option?

  • increasing timeout from 10s to 400s does not seem a good idea? (having user wait 400 second is maybe as bad user experience as showing the above error message)
  • maybe we could pre-cache the marketplace response (eg. a scheduled task downloads the JSON file)
  • even if we display the marketplace very fast (eg. with pre-caching) it will be slow or broken to install / update third party plugin (assuming user downloads at 1kb/s)... so i'm not sure what is the best thing we could do.

refs #7280

Member

mattab commented Jun 16, 2015

Hi @roddyofchina

Thanks for the report. 10000 milliseconds with 7193 bytes means your server downloads from the marketplace at about 1 kb/s. This is very slow internet connection unfortunatley.... your Piwik is trying to download the JSON file of list of plugins that weights 350Kb. it could take 350 seconds. that's very long time to wait. I'm wondering what is our best option?

  • increasing timeout from 10s to 400s does not seem a good idea? (having user wait 400 second is maybe as bad user experience as showing the above error message)
  • maybe we could pre-cache the marketplace response (eg. a scheduled task downloads the JSON file)
  • even if we display the marketplace very fast (eg. with pre-caching) it will be slow or broken to install / update third party plugin (assuming user downloads at 1kb/s)... so i'm not sure what is the best thing we could do.

refs #7280

@mattab mattab added the Bug label Jun 16, 2015

@roddyofchina

This comment has been minimized.

Show comment
Hide comment
@roddyofchina

roddyofchina Jun 16, 2015

Thank you very much! Now I use planning task to download plugins.

roddyofchina commented Jun 16, 2015

Thank you very much! Now I use planning task to download plugins.

@mattab

This comment has been minimized.

Show comment
Hide comment
@mattab

mattab Jun 16, 2015

Member

@roddyofchina what do you mean by "Now I use planning task to download plugins." ?

Member

mattab commented Jun 16, 2015

@roddyofchina what do you mean by "Now I use planning task to download plugins." ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment