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

Appmetrics Module Initialization error while running the lambda node Js function in console #26

Open
diviniya opened this issue Mar 3, 2017 · 1 comment

Comments

@diviniya
Copy link

diviniya commented Mar 3, 2017

Added the following lines in the index.js file,
var config = {
host: 'http://localhost:9200'
}
var appmetrics = require('appmetrics-elk').monitor(config);

When trying to test the lambda function it says module initialization error, please find the stack trace for the error

{
"errorMessage": "/var/task/node_modules/appmetrics-elk/node_modules/appmetrics/appmetrics.node: invalid ELF header",
"errorType": "Error",
"stackTrace": [
"Object.Module._extensions..node (module.js:434:18)",
"Module.load (module.js:343:32)",
"Function.Module._load (module.js:300:12)",
"Module.require (module.js:353:17)",
"require (internal/module.js:12:17)",
"Object. (/var/task/node_modules/appmetrics-elk/node_modules/appmetrics/index.js:27:13)",
"Module._compile (module.js:409:26)",
"Object.Module._extensions..js (module.js:416:10)",
"Module.load (module.js:343:32)"
]
}

Any help is appreciated. Thanks.

@sjanuary
Copy link

sjanuary commented May 2, 2017

Looks like a problem either loading the native addon for appmetrics or earlier at the install or compile stage. Did npm install succeed? Can you post the output? What platform are you running on, what version of appmetrics?

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

No branches or pull requests

2 participants