模数部署完美无任何问题,但无法正常工作。我在Meulus上创建了一个名为Modulus的数据库。
http://wikimicroscope-13216.onmodulus.net/
控制台登录模数:
Error: URL must be in the format mongodb://user:pass@host:port/dbname
at Error (<anonymous>)
at exports.parse (/mnt/data/2/node_modules/mongodb/lib/mongodb/connection/url_parser.js:15:11)
at Function.MongoClient.connect (/mnt/data/2/node_modules/mongodb/lib/mongodb/mongo_client.js:164:16)
at Function.Db.connect (/mnt/data/2/node_modules/mongodb/lib/mongodb/db.js:2035:23)
at new MongoConnection (packages/mongo-livedata/mongo_driver.js:151)
at new MongoInternals.RemoteCollectionDriver (packages/mongo-livedata/remote_collection_driver.js:4)
at Object.<anonymous> (packages/mongo-livedata/remote_collection_driver.js:44)
at Object.defaultRemoteCollectionDriver (packages/underscore/underscore.js:750)
at new Meteor.Collection (packages/mongo-livedata/collection.js:72)
at packages/accounts-base/accounts_common.js:122
[2014-05-23T16:02:46.435Z] Application CRASH detected. Exit code 8.
[2014-05-23T16:02:47.472Z] Application restarted.
之前我已设置mongo_url
和root_url
。以下是我的环境变量:
CONNECTION STRINGS
MONGO URI
mongodb://<user>:<pass>@novus.modulusmongo.net:27017/iZ3anope
MONGO CONSOLE
mongo novus.modulusmongo.net:27017/iZ3anope -u <user> -p <pass>
我已经部署了不同的节点版本,如v0.10.25,v0.10.28。它不起作用。
除了浏览器,还有消息:
!Unable to connect to any application instances.!
并在Chrome /本地商店的控制台检查器中找到如下消息:
BiDefender_BLock {"verdict":"TRACKER","hitList":""}
谢谢!
答案 0 :(得分:0)
您需要使用您为数据库设置的用户名和密码填写<user>:<pass>
。
答案 1 :(得分:0)
我有这个错误并通过执行以下方法解决它:
modulus env set MONGO_URL "mongodb://myUser:myPass@proximus.modulusmongo.net:27017/6sd54f5f?autoReconnect=true&connectTimeoutMS=60000"
代替:
modulus env set MONGO_URL "mongodb://myUser:myPass@proximus.modulusmongo.net:27017/6sd54f5f ?autoReconnect=true&connectTimeoutMS=60000"
如果你看到,我在&#39;?&#39;
之前添加了一个额外的空格当我查看登录模数网页界面时,它告诉我数据库名称不能包含字符&#39; &#39; (空间)
答案 2 :(得分:0)
我也遇到了这个问题,并通过重新启动我的应用来修复它