Skip to content

Instantly share code, notes, and snippets.

@peterbrowse
Last active December 19, 2015 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterbrowse/5867047 to your computer and use it in GitHub Desktop.
Save peterbrowse/5867047 to your computer and use it in GitHub Desktop.
Error being returned from Mongohq on attempting to initiate a connection to db instance. The link to the db instance from nodejitsu is: mongodb://nodejitsu:9fba9d1b7e6535879cc01e67610e1b1d@linus.mongohq.com:10083/nodejitsudb9381640
[06/26 13:32:42 GMT+0100] VERBOSE pool mongodb - createResource() - creating obj - count=1 min=0 max=40
[06/26 13:32:42 GMT+0100] INFO pool mongodb - dispense() clients=1 available=0
[06/26 13:32:43 GMT+0100] Error: connection closed - on line 25 of server.js
@peterbrowse
Copy link
Author

Please see heading intro

@julianduque
Copy link

Hello @peterbrowse, this was the reply from MongoHQ Support

Ian Hansen (MongoHQ)
Jul 10 05:15 pm (CDT)

Hey Julian,

I spend my days in NodeJS. I'd be very interested to see what version of the node driver they are using. I've been fighting driver issues specifically with connection pooling for a while, but the latest release (since 1.3.7) seems to be working well.

I haven't used common-pool, but I've used https://github.com/coopernurse/node-pool (which seems to be a more up-to-date version of the common-pool that I found).

I've been able to step away completely from common-pool and use the pooling built into the driver now.

Best regards,

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