Heroku解析服务器 - MongoError:无法连接到服务器

时间:2016-11-26 04:38:59

标签: mongodb heroku parse-platform

当我访问Parse仪表板时,我无法在“浏览器”选项卡下看到“用户”选项。此外,在错误日志下,它表示无法连接到服务器。有谁可以帮助我?

这是堆栈跟踪:

Error generating response. { MongoError: failed to connect to server [localhost:27017] on first connect
    at Pool.<anonymous> (/app/node_modules/mongodb-core/lib/topologies/server.js:313:35)
    at emitOne (events.js:96:13)
    at Pool.emit (events.js:188:7)
    at Connection.<anonymous> (/app/node_modules/mongodb-core/lib/connection/pool.js:260:12)
    at Connection.g (events.js:291:16)
    at emitTwo (events.js:106:13)
    at Connection.emit (events.js:191:7)
    at Socket.<anonymous> (/app/node_modules/mongodb-core/lib/connection/connection.js:162:49)
    at Socket.g (events.js:291:16)
    at emitOne (events.js:96:13)   name: 'MongoError',   message: 'failed to connect to server [localhost:27017] on first connect' }

1 个答案:

答案 0 :(得分:0)

尝试

“sudo service mongodb start”

然后检查..