-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
avoid direct pipe of curl|tar to prevent download problems #433
Conversation
Hey @jeremy-rutman, Over in #417 we discovered that Node.js has issues with buffers filling on long downloads if the |
Asked for some help on SO |
I have seen the occasional glitch with WOF download which killed the whole process, requiring redownload of everutjomg frp, scratch which can be a bit annoying. However is this an issue with the sqlite? The download process with sqlite is simpler, and can also be done manually if needed. |
as i mentioned at stackoverflow, I tried the same command from shell instead of as a javascript exec, and curl|tar fails the same way at command line.
if there is some alternate way to dl using sqlite that'd be great |
There is now a way to download the sqlite files. set It sounds like some possible causes of this are:
@jeremy-rutman can you try the sqlite download and also check if possible causes 3 or 4 might be the culprit here? Some info on your network speed, time of download, and CPU and disk speed could be helpful here. If it is that last one, the SQLite download would probably be significantly more reliable, since it extracts to only a single file and therefore doesn't seem to have the same impact on disk usage that extracting millions of individual geojson files does with the bundles. |
With the imports.whosonfirst.sqlite set to true , the downloads all completed and rather faster to boot. Machine stats for both failed curl|tar and successful sqlite :
|
I did hit a fail on curl when imports.whosonfirst.sqlite is true on a different machine
althought the curl command runs at the command line without problem. |
@jeremy-rutman
|
@jdomag I'd try setting imports.whosonfirst.sqlite to true in the config file and see if that takes care of it . |
@jeremy-rutman |
did you try the wget->tar commands at the command line ? That might work if all else fails , and if it doesnt work it may point to why its failing |
this version works for me where the curl|tar version doesn't, hitting err below - see 189