Code Monkey home page Code Monkey logo

Comments (5)

orangejulius avatar orangejulius commented on July 26, 2024

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.

ktjaco avatar ktjaco commented on July 26, 2024
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.

orangejulius avatar orangejulius commented on July 26, 2024

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:

  1. delete the node_modules directory for openstreetmap: rm -rf ~/openstreetmap/node_modules. It fixes way more problems than it should unfortunately
  2. 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.

ktjaco avatar ktjaco commented on July 26, 2024

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.

orangejulius avatar orangejulius commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.