dokku / dokku-mongo

a mongo plugin for dokku
MIT License
174 stars 32 forks source link

dokku nodejs and mongo issue #68

Closed parser22 closed 8 years ago

parser22 commented 8 years ago

my nodejs instance can not connect to the mongo service, failing with

error: Uncaught internal server error. { [MongoError: getaddrinfo ENOTFOUND dokku-mongo-testdb dokku-mongo-testdb:27017]
  name: 'MongoError',
  message: 'getaddrinfo ENOTFOUND dokku-mongo-tapitoodb dokku-mongo-testdb:27017' } Error: getaddrinfo ENOTFOUND dokku-mongo-tapitoodb dokku-mongo-testdb:27017
    at errnoException (dns.js:27:10)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:78:26)
josegonzalez commented 8 years ago

Is this a dokku app that is attempting to connect to your container, and did you link the service to your application?

sheldonbaker commented 8 years ago

@parser22 Did you figure this one out? I'm having the same issue.

josegonzalez commented 8 years ago

@sheldonnbbaker I'm assuming you linked the two services and then performed a ps:rebuild of your application for good measure? If not, I can probably help you out on slack/irc (I am savant on both).