Mongorestore “auth fails” at deployed app at meteor.com

此生再无相见时 提交于 2020-02-24 12:31:19

问题


I received the information from my deployed app by using the command

meteor mongo -url bhedir.meteor.com

I then took the response and used the info for my mongorestore -u client -p meteorinfo - h meteorinfo -d bhedir_meteor_com meteordump/meteor

however, I keep getting the following error:

assertion: 18 { code: 18, ok: 0.0, errmsg: "auth fails" }

I should note that I have several meteorite packages included but I don't see how that would affect this.

Also, I've done this before, granted not that many times, but did not run into any issues. Any advice would be greatly appreciated.


回答1:


I assume 'meteorinfo' is a placeholder for the hostname and password you get out?

If so then when you get the auth info with meteor mongo -url bhedir.meteor.com you have to be very quick to do the mongorestore as the auth data you get only lasts 1 minute, then it expires and you have to do the meteor mongo --url bhedir.meteor.com call again




回答2:


You forgot some required parameter as might be the username, password or db



来源:https://stackoverflow.com/questions/18155648/mongorestore-auth-fails-at-deployed-app-at-meteor-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!