-
Notifications
You must be signed in to change notification settings - Fork 404
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
Error: socket hang up and Error: read ECONNRESET #123
Comments
So you're right that |
I am also getting a socket hang up error after my app has been running for a few minutes:
I was trying to add New Relic to an existing app, but get the same thing when using the getting started example from the Hapi repo: require('newrelic');
var Hapi = require('hapi');
// Create a server with a host and port
var server = Hapi.createServer('localhost', 8000);
// Add the route
server.route({
method: 'GET',
path: '/hello',
handler: function (request, reply) {
reply('hello world');
}
});
// Start the server
server.start(); Am I missing something? |
@bausmeier I'm pretty sure you're seeing a different issue. Is your app crashing in addition to New Relic for Node not being able to start up? If not, this is something getting in the way of your app being able to establish an HTTPS connection to New Relic's servers. Does this happen every time? If you can't troubleshoot what's up given that clue, set the log level of the app to |
It's not crashing the app, but it does happen every time. I thought it might be something getting in the way of HTTPS, just can't figure out what. I will dig some more and send a mail if I don't get it sorted. Thanks. |
I think I'm getting this also |
Just to update everyone, we've been looking into this issue and haven't been able to reproduce it reliably in our own tests. We haven't even figured out if the issue is with our code or with something in New Relic's infrastructure yet. ;) As soon as we figure out what's going on with this, we'll be able to move forward, so if you've come up with any additional details you think would help, please let us know! @bausmeier @nikilster @gdi2290 What version of Node are all of you running? |
I'm running the Heroku new relic addon. Not sure exactly what node version it is (do you know how to check?) - my package.json specifies
so I'm assuming I'm running the latest. |
@bausmeier @gdi2290 It seems that @niklister is seeing this problem while running on Heroku -- where are the two of you deploying your apps? |
@othiym23 yup it's on heroku |
@othiym23 Mine was just an HTTPS issue like you said. It's working fine now running on Digital Ocean. |
I'm seeing it on heroku |
Seen on AWS Elastic Beanstalk/node.js just now:
|
Started getting this issue today on Digital Ocean after upgrading to 1.4.0. |
I'm also seeing this on heroku. It is intermittent and has happened about about 20 times over the last 3 days. Here's the full error from the heroku log: Apr 10 06:45:36 android-opentable app/web.1: {"name":"newrelic","hostname":"a8551c09-08c6-4b12-bc80-53aebae54aeb","pid":2,"component":"collector_api","level":50,"err":{"message":"socket hang up","name":"Error","stack":"Error: socket hang up\n at createHangUpError (http.js:1472:15)\n at CleartextStream.socketCloseListener (http.js:1522:23)\n at CleartextStream.EventEmitter.emit (events.js:117:20)\n at tls.js:696:10\n at /app/node_modules/newrelic/node_modules/continuation-local-storage/node_modules/async-listener/glue.js:177:31\n at process._tickCallback (node.js:415:13)","code":"ECONNRESET"},"msg":"Calling metric_data on New Relic failed unexpectedly. Data will be held until it can be submitted:","time":"2014-04-10T13:45:36.183Z","v":0} |
We have released version 1.5.0 of the newrelic module, which should address this issue. We created a new keep-alive agent called It looks like I hope you can give version I will close this issue in a few days if all seems well. |
i still see this error even if we are using latest npm version. |
@morwalz Thanks for letting us know that things are not working for you. Since the original issue has been resolved, please open a new issue so we can track it separately. Thanks! |
…/error-fingerprinting/protobufjs-6.11.4
Release v4.1.1
Release v4.1.1
fix: updated readme to call out that this package is not bundled with agent yet
The error seems to be with the new-relic's use of continuation-local-storage
here is the sentry report for Error: socket hang up
here is the sentry report for Error: read ECONNRESET
new-relic version 1.3.2
The text was updated successfully, but these errors were encountered: