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

bin/data-mining-monthly.sh stops with response timeout #4

Open
sfendrich opened this issue Oct 17, 2019 · 4 comments
Open

bin/data-mining-monthly.sh stops with response timeout #4

sfendrich opened this issue Oct 17, 2019 · 4 comments

Comments

@sfendrich
Copy link

bin/data-mining-monthly.sh frequently stops during the step osm-vis/osm-tags-word-frequency-wiki with a response timeout. Re-running the script sometimes solves the problem. The full error message is as follows:

Preprocessing executable 'tool' for tool-0.1.0...
Running tool...
tool: HttpExceptionRequest Request {
  host                 = "wiki.openstreetmap.org"
  port                 = 443
  secure               = True
  requestHeaders       = []
  path                 = "/wiki/de:Map_Features"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 ResponseTimeout
@mocnik-science
Copy link
Owner

Could you try whether increasing the number of seconds before timeout for a curl request solves the issue? see http://hackage.haskell.org/package/curl-1.3.8/docs/Network-Curl-Opts.html#t:CurlOption

That is, something like

downloadRaw = fmap snd . flip curlGetString [CurlTimeout 600] . urlWikiRaw . fromMaybe "" . stripPrefix urlWikiPrefix

in line 109 in file https://github.com/mocnik-science/osm-vis/blob/master/data-mining/osm-tags-word-frequency-wiki/tool.hs

@sfendrich
Copy link
Author

Thanks. With a CurlTimeout 600 the manual restart went through now. As it also worked sometimes before, I would like to keep this issue open until the next monthly data mining passed successfully.

@mocnik-science
Copy link
Owner

Great.

@sfendrich
Copy link
Author

Unfortunately this still does not work reliably. Maybe we need to think about a different way of doing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants