我有一个连接到mongohq数据库的流星网络应用程序。它在heroku上正常工作,但我无法在本地主机上工作。它昨天在localhost上工作,但不是今天。
可以肯定的是,我刚刚在一个新文件夹中运行了一个git clone。甚至这个克隆也会在localhost上抛出错误。这是我的终端(仅供参考,我是在运行Ubuntu虚拟机的Windows 8.1机器上;还有,我已从日志中删除了用户名/密码,如下所示):
adam@adam-VirtualBox:~/resSingleTestV2/faze1tables$ export MONGO_URL=mongodb://<username>:<password>@oceanic.mongohq.com:10033/test_db
adam@adam-VirtualBox:~/resSingleTestV2/faze1tables$ meteor
[[[[[ ~/resSingleTestV2/faze1tables ]]]]]
=> Started proxy.
=> Started your app.
=> App running at: http://localhost:3000/
I20140511-12:53:43.438(-4)? Exception in callback of async function: Error: failed to connect to [oceanic.mongohq.com:10033]
I20140511-12:53:43.637(-4)? at null.<anonymous> (/home/adam/.meteor/packages/mongo-livedata/0120179b5c/npm/node_modules/mongodb/lib/mongodb/connection/server.js:536:74)
I20140511-12:53:43.640(-4)? at EventEmitter.emit (events.js:106:17)
I20140511-12:53:43.641(-4)? at null.<anonymous> (/home/adam/.meteor/packages/mongo-livedata/0120179b5c/npm/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:150:15)
I20140511-12:53:43.641(-4)? at EventEmitter.emit (events.js:98:17)
I20140511-12:53:43.643(-4)? at Socket.<anonymous> (/home/adam/.meteor/packages/mongo-livedata/0120179b5c/npm/node_modules/mongodb/lib/mongodb/connection/connection.js:516:10)
I20140511-12:53:43.643(-4)? at Socket.EventEmitter.emit (events.js:95:17)
I20140511-12:53:43.644(-4)? at net.js:440:14
I20140511-12:53:43.644(-4)? at process._tickCallback (node.js:415:13)
任何帮助表示赞赏。感谢。
答案 0 :(得分:0)
我通过学校的无线网络连接。事实证明他们必须做些什么来防止我连接到mongoHQ因为我能够通过其他网络连接。
奇怪的是,它工作了一两天然后停止了。