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

SqliteError: no such column: geojson.is_alt #506

Open
orangejulius opened this issue Apr 25, 2020 · 3 comments
Open

SqliteError: no such column: geojson.is_alt #506

orangejulius opened this issue Apr 25, 2020 · 3 comments
Labels

Comments

@orangejulius
Copy link
Member

Since our recent changes to use Who's on First data hosted by Geocode Earth made in #487, people using older WOF dist files from dist.whosonfirst.org will see the following error:

/code/pelias/csv-importer/node_modules/pelias-whosonfirst/src/components/sqliteStream.js:10
    this._iterator = this._db.prepare(sql).iterate();
                              ^
SqliteError: no such column: geojson.is_alt
    at new SQLiteStream (/code/pelias/csv-importer/node_modules/pelias-whosonfirst/src/components/sqliteStream.js:10:31)
    at /code/pelias/csv-importer/node_modules/pelias-wof-admin-lookup/src/pip/readStream.js:26:12
    at CombinedStream._realGetNext (/code/pelias/csv-importer/node_modules/combined-stream/lib/combined_stream.js:104:3)

To anyone seeing this error, the fix is to remove all your Who's on First data and run the downloader again. That will download new data from Geocode Earth.

However, since already several people have reported seeing this, I wonder if it makes sense to add some code to detect this condition and message appropriately.

@petertoner
Copy link

I am setting up a new North America installation this week. All data downloaded from scratch following along with the Docker instructions and still got the same error as this. What steps are necessary after downloading WOF data again? Other considerations? Any help would be appreciated!

@stefanocudini
Copy link

I have same problem!

@orangejulius
Copy link
Member Author

@stefanocudini can you post the output of ls -lh as well as md5sum *.db for all your wof SQLite db files? They should be in $DATA_DIR/whosonfirst

This really shouldn't be a problem these days, so unless you are using very old data (before april of this year), something else might be going on that we aren't aware of.

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

No branches or pull requests

3 participants