bitcoinjs/node-bitcoin-explorer — Issue #11: Database connection issue
Author: CoinCave
Created: 2012-02-08 18:03:15+00:00
State: open

Hi, i'vi installed all dependencies, but when i run node app.js it prints

8 Feb 20:57:36 - info: Initializing database
info: Express server listening on port 3000
8 Feb 20:57:36 - error: Could not connect to database: Error: failed to connect to [localhost:27017]
at [object Object]. (/srv/node-bitcoin-explorer/node_modules/bitcoin-p2p/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:297:73)
at [object Object].emit (events.js:67:17)
at [object Object]. (/srv/node-bitcoin-explorer/node_modules/bitcoin-p2p/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:100:15)
at [object Object].emit (events.js:70:17)
at Socket. (/srv/node-bitcoin-explorer/node_modules/bitcoin-p2p/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:407:10)
at Socket.emit (events.js:67:17)
at Array.0 (net.js:319:25)
at EventEmitter._tickCallback (node.js:192:40)
8 Feb 20:57:36 - error: Could not connect to database: Error: failed to connect to [localhost:27017]
at [object Object]. (/srv/node-bitcoin-explorer/node_modules/bitcoin-p2p/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:297:73)
at [object Object].emit (events.js:67:17)
at [object Object]. (/srv/node-bitcoin-explorer/node_modules/bitcoin-p2p/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:100:15)
at [object Object].emit (events.js:70:17)
at Socket. (/srv/node-bitcoin-explorer/node_modules/bitcoin-p2p/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:407:10)
at Socket.emit (events.js:67:17)
at Array.1 (net.js:319:25)
at EventEmitter._tickCallback (node.js:192:40)

If i run netstat -tupan i can see that the server is listening on port 3000, but there isn't any databse

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:3000 0.0.0.0:* LISTEN 18143/node
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -

What can i do?
Thanks in advance