Comments (5)
Hey @KentJacobs,
I haven't seen this error before, but it looks like it might be related to an issue in the elasticsearch NPM module. Could you dig in and find a couple versions for me? First the version of Elasticsearch itself (can be found at http://localhost:9200/), then the git revision of our osm importer (/home/vagrant/openstreetmap
), and finally the elasticsearch NPM module (can be found at /home/vagrant/openstreetmap/node_modules/pelias-dbclient/node_modules/elasticsearch
).
I also wasn't able to reproduce this issue locally myself but if you can manage to try a newer version of the elasticsearch NPM module, that might help. Let me know how it goes, and hopefully we can figure it out based on that info.
from openstreetmap.
vagrant@pelias:~/openstreetmap$ curl http://localhost:9200/
{
"status" : 200,
"name" : "pelias",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "1.7.0",
"build_hash" : "929b9739cae115e73c346cb5f9a6f24ba735a743",
"build_timestamp" : "2015-07-16T14:31:07Z",
"build_snapshot" : false,
"lucene_version" : "4.10.4"
},
"tagline" : "You Know, for Search"
}
/home/vagrant/openstreetmap
File: package.json
{
"name": "pelias-openstreetmap",
"author": "mapzen",
"version": "3.1.1"....
/home/vagrant/openstreetmap/node_modules/pelias-dbclient/node_modules/elasticsearch
File: package.json
{
....
"_npmVersion": "1.4.14"
...
}
Hopefully this helps!
from openstreetmap.
Hmm, other than reminding me to upgrade the vagrant image's Elasticsearch version to 1.7.3, unfortunately not really. I just spun up a vagrant image but can't reproduce. How old is your Vagrant image? Things change frequently, especially with NPM modules.
Two more things to try though:
- delete the node_modules directory for openstreetmap:
rm -rf ~/openstreetmap/node_modules
. It fixes way more problems than it should unfortunately - Send along your entire ~/pelias.json. Presumably it looks something like the one in the docs, which I just tested and works fine (after changing the datapath to
/opt/pelias/data/osm
to match where the vagrant image stores data). It's possible there's some combination of config settings our code doesn't like.
from openstreetmap.
Running an import seems to work now. I ran node index.js
and it finished without error in 2-3 minutes. I can curl and specify osm as a source now.
I deleted node_modules
in openstreetmap, then I created a new ~/pelias.json
file in case and re-installed node_modules
with npm install
in openstreetmap. This seemed to fix the issue. 👍
Thank you for your help!
from openstreetmap.
Deleting node_modules
is the NPM equivalent of rebooting a computer: it fixes many problems but no one knows why. Enjoy :)
from openstreetmap.
Related Issues (20)
- Cannot import filtered dataset HOT 2
- duplicate terms in name affecting scoring HOT 3
- An in-range update of pelias-config is breaking the build 🚨 HOT 2
- An in-range update of pelias-config is breaking the build 🚨 HOT 1
- importVenues option do not work HOT 6
- An in-range update of pelias-wof-admin-lookup is breaking the build 🚨 HOT 3
- An in-range update of pelias-wof-admin-lookup is breaking the build 🚨 HOT 2
- Remove broadcast antennas and other TV towers? HOT 2
- New venue_tags + additional names HOT 3
- "PeliasModelError: invalid regex test" during OSM extract import HOT 2
- Allow configuring whether disused/abandoned venues are removed HOT 1
- unable to locate sqlite folder HOT 2
- Support elasticsearch username / password HOT 5
- NPM install failing with Error: Missing required argument #1 HOT 2
- OSM records with 'constructor' tag result in invalid Pelias documents HOT 2
- Consider importing Brand alt names
- "Invalid regex" error about source=https://... tag HOT 2
- Category does not get mapped as defined in category_map.js HOT 9
- issue while executing npm start cmd HOT 1
- I run npm start in the import folder but it doesn't recognize my pelias.json file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openstreetmap.