Closed lighta closed 9 years ago
Did you run npm install
after checking out v2.0 of the project? It's defined in the dependencies, so I'd be surprised if that process doesn't work.
Also note that v2.0 does not work yet. The generic stuff seems to be fine to test, but the ElasticSearch driver is not ready yet.
Oh and even less so with the file driver, that one is pretty much just copied over from v1.0
with v1 installed I think it will work as well but I didn't try. I just always spawn a new VM for the test. so it's an installation from nothing.
my vagrant provider is basically this :
apt-get -y --force-yes --quiet install nodejs apt-get -y --force-yes --quiet install npm apt-get -y --force-yes --quiet install git cd /opt/asci
git clone https://github.com/mallocator/Elasticsearch-Exporter.git cd Elasticsearch-Exporter/ git checkout v2.0.0 npm install colors npm install through
What was missing after this point was : npm install async npm install util
NB2: Ok my bad it's working, I never tryed 'npm install' alone, but it seem to take all dependancy correctly =)
Test= 1) root@imgramDashboard:/opt/asci/Elasticsearch-Exporter# nodejs exporter.js -t file -sh localhost:9200 -si crashs -st crash -tf $BASE_PATH/repos/dumps/crashs.dump Elasticsearch Exporter - Version 2.0.0 Caught exception in Main process: TypeError: Object #
Details= 1) Ok it's quite easy you just need to do : npm install async But it will be nice to check if we have all the required module really present before trying to do some job, as I'm not sure everyone will solve the issue right away. (Or just Override the error msg to tell how to fix it) Not a big issue but just a suggestion.