Closed frodrigo closed 4 years ago
I'm not sure what is the issue here.
empire
and ocean
seam to be not terminated, but also written as loaded.
Please post your pelias.json
file.
I suspect you're using imports.whosonfirst.importPlace
and the place ID doesn't link to any empire
or ocean
records, presumably because it's a city?
I'm on importing planet https://github.com/pelias/docker/tree/master/projects/planet
I build polylines using prepare polylines.
Hmm ok, thanks for the report.
cc/ @Joxit @orangejulius is it possible this is related to the PRs merged last week in the pelias/whosonfirst repo?
@frodrigo in order to reproduce the bug can you please answer some questions to help the team debug it:
planet
configs you linked above?Ok thanks, this is unexpected and likely a bug from what you've said.
You may continue your import with little impact, records will not have empire
or ocean
data associated in the parent
hierarchy.
Thank. But I more concern by the fact that the import does not stop by itself than the data.
One thing which looks unusual to me is that the signal was SIGINT
which is usually sent when the user hits Ctrl+C.
I'm guessing that you didn't Ctrl+C? so if be interested to find out where that's coming from.
I hit Ctrl+C, after a day, but the same log happen after minutes.
I miss this point. The prepare polylines
fails because of fatal error: runtime: out of memory
. It produces a (valid?) 1 byte file extract.0sv
.
Still not explain the number of features loaded on import polylines
.
Hmmm I thought I put a big scary warning in the log with lots of !!!!!
explaining that this might happen?
It sounds like what we need to do here is add some basic sanity checking of the polyline file when the importer starts.
All the messages about admin workers loading records is normal, but for whatever reason due to the invalid nature of the polyline file, the importer hung instead of detecting the problem and quitting.
Agh I see, sounds like an easy fix which would save people time debugging, I was assuming it was a PIP problem but in this case it was a polylines problem.
Also I think I'm going to change that warning into an error, if 125GB is insufficient then we may as well go ahead and say that my pbf streets
command isn't suitable for large PBF files, there is already an alternative approach in the Valhalla script Kevin wrote for us.
I just tested this out and I can confirm that attempting to import an empty file (you can create one with touch
, for example), will hang.
Looks to be something related to stream handling. In https://github.com/pelias/polylines/blob/master/stream/parser.js#L49 we end up calling next()
without ever passing any objects down the stream, and I guess that isn't handled properly.
I can have a look at this tomorrow, I think we usually use the split2
module but here we're using split
, possibly related?
hi @frodrigo, this should now be fixed by https://github.com/pelias/polylines/pull/247
a new docker image has been published as pelias/polylines:latest
, you can pelias compose pull
to update it.
if you're having issues with preparing the polylines file using Valhalla please open another issue to discuss that.
Ok for me. Thank you all.
While trying to import polylines I got this issue. But the import does stop, and does not do nothing after that. I could find why it fails, but my main issue here is that is does not stop it self.