Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

fig up - node container cannot connect to mongo container #237

Closed
duro opened this issue Oct 28, 2014 · 1 comment
Closed

fig up - node container cannot connect to mongo container #237

duro opened this issue Oct 28, 2014 · 1 comment

Comments

@duro
Copy link

duro commented Oct 28, 2014

I am using Docker version 1.3.0, build c78088f and Boot2Docker-cli version: v1.3.0 on my OS X dev machine.

I ran a simple fig up and I get the following logs:

db_1  | mongod --help for help and startup options
db_1  | 2014-10-27T15:53:14.509+0000 [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=0a183bd9b608
db_1  | 2014-10-27T15:53:14.509+0000 [initandlisten] db version v2.6.5
db_1  | 2014-10-27T15:53:14.509+0000 [initandlisten] git version: e99d4fcb4279c0279796f237aa92fe3b64560bf6
db_1  | 2014-10-27T15:53:14.509+0000 [initandlisten] build info: Linux build8.nj1.10gen.cc 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
db_1  | 2014-10-27T15:53:14.509+0000 [initandlisten] allocator: tcmalloc
db_1  | 2014-10-27T15:53:14.509+0000 [initandlisten] options: {}
db_1  | 2014-10-27T15:53:14.511+0000 [initandlisten] journal dir=/data/db/journal
db_1  | 2014-10-27T15:53:14.511+0000 [initandlisten] recover : no journal files present, no recovery needed
db_1  | 2014-10-27T15:53:14.677+0000 [initandlisten] allocating new ns file /data/db/local.ns, filling with zeroes...
db_1  | 2014-10-27T15:53:14.720+0000 [FileAllocator] allocating new datafile /data/db/local.0, filling with zeroes...
db_1  | 2014-10-27T15:53:14.720+0000 [FileAllocator] creating directory /data/db/_tmp
db_1  | 2014-10-27T15:53:14.726+0000 [FileAllocator] done allocating datafile /data/db/local.0, size: 64MB,  took 0.001 secs
db_1  | 2014-10-27T15:53:14.727+0000 [initandlisten] build index on: local.startup_log properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "local.startup_log" }
db_1  | 2014-10-27T15:53:14.727+0000 [initandlisten]     added index to empty collection
db_1  | 2014-10-27T15:53:14.727+0000 [initandlisten] waiting for connections on port 27017
db_1  | 2014-10-27T15:54:14.678+0000 [clientcursormon] mem (MB) res:48 virt:341
db_1  | 2014-10-27T15:54:14.678+0000 [clientcursormon]  mapped (incl journal view):160
db_1  | 2014-10-27T15:54:14.678+0000 [clientcursormon]  connections:0
web_1 | Running "jshint:all" (jshint) task
web_1 | >> 54 files lint free.
web_1 | 
web_1 | Running "csslint:all" (csslint) task
web_1 | >> 2 files lint free.
web_1 | 
web_1 | Running "concurrent:default" (concurrent) task
web_1 | Running "watch" task
web_1 | Waiting...
web_1 | Running "nodemon:dev" (nodemon) task
web_1 | [nodemon] v1.2.1
web_1 | [nodemon] to restart at any time, enter `rs`
web_1 | [nodemon] watching: app/views/**/*.* gruntfile.js server.js config/**/*.js app/**/*.js
web_1 | [nodemon] starting `node --debug server.js`
web_1 | debugger listening on port 5858
web_1 | Application loaded using the "development" environment configuration
web_1 | MEAN.JS application started on port 3000
web_1 | Could not connect to MongoDB!
web_1 | Error: failed to connect to [localhost:27017]
db_1  | 2014-10-27T15:59:14.749+0000 [clientcursormon] mem (MB) res:42 virt:341
db_1  | 2014-10-27T15:59:14.749+0000 [clientcursormon]  mapped (incl journal view):160
db_1  | 2014-10-27T15:59:14.749+0000 [clientcursormon]  connections:0

I have made no other modifications to the boilerplate, and followed the README.

@AnneTheAgile
Copy link

@duro , did you get it working? It seems to me without seeing your docker/fig config info we can't help you.

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

No branches or pull requests

4 participants