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

Importer chokes on nonexistent macrocounty entry #174

Closed
cag opened this issue Dec 2, 2016 · 8 comments
Closed

Importer chokes on nonexistent macrocounty entry #174

cag opened this issue Dec 2, 2016 · 8 comments

Comments

@cag
Copy link

cag commented Dec 2, 2016

Basically, the latest wof data has this issue:

whosonfirst-data/whosonfirst-data#543

and it causes the importer to complain:

2016-12-02T22:00:44.373Z - info: [whosonfirst] Loading county records from /home/dev/pelias-data/whosonfirst/meta/wof-county-latest.csv
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, open '/home/dev/pelias-data/whosonfirst/data/110/849/885/6/1108498856.geojson'
@missinglink
Copy link
Member

looks like this is due to the new id format, previously they were max 9 numbers, that one is 10 digits long.

@orangejulius
Copy link
Member

I have some code somewhere to handle the new ID format, I'll submit the PR today.

@orangejulius
Copy link
Member

Update: it appears that this is actually caused by an error in the WOF bundles. The whosonfirst importer uses the path from the meta files correctly. Here's a script that demonstrates the current issue:

#!/bin/bash -x

missing_id=1108498856

wget https://whosonfirst.mapzen.com/bundles/wof-macrocounty-latest.csv
grep $missing_id wof-macrocounty-latest.csv
wget https://whosonfirst.mapzen.com/bundles/wof-macrocounty-latest-bundle.tar.bz2
tar xf wof-macrocounty-latest-bundle.tar.bz2

find . -name "${missing_id}*"

@tylux
Copy link

tylux commented Dec 6, 2016

@orangejulius is there a workaround to start importing the WOF bundles? Or just sit tight until the issue is resolved? Thanks!

@orangejulius
Copy link
Member

Hey @tylux,
I'd recommend sitting for a bit, hopefully it will be fixed soon. If you really care about getting an import done more than data integrity, you can remove the line with that id in the wof-macrocounty-latest.csv file.

@orangejulius
Copy link
Member

Hey @tylux and @cag,
The WOF bundle has been fixed, if you get a chance try the importer again, everything should work.

@tylux
Copy link

tylux commented Dec 8, 2016

Hello @orangejulius seems to be fixed so far on the import.

EDIT: Now running into this error about 10 minutes into a full import with venues on a machine with 16GB mem and 8vcpus "FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory" Not sure if related

@orangejulius
Copy link
Member

Great, glad it's fixed. The WOF importer intentionally fails loudly on any issue reading files (we just made it even stricter in #178), so I'm closing this issue now. The memory leak is tracked in #180 and hopefully we can fix that soon.

@ghost ghost removed the outreach label Dec 9, 2016
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

4 participants