mongodb - mongorestore error: "Failed: error connecting to db server: no reachable servers" -


i'm working through book "getting mean," mean stack tutorial. i'm creating sample app , deploying heroku. i'm stuck @ point i'm trying push data local mongo database mlab heroku addon.

i able create mlab database no problem. created mongodump in temp folder. retrieved mlab uri with:

heroku config:get mongolab_uri 

so far good. next step push data temp folder mlab database command (populated real values mongolab uri, of course):

mongorestore -h <db server:port> -d <db name>7 -u <username> -p <password> <path temp folder> 

but when run that, get:

failed: error connecting db server: no reachable servers 

i searched through documentation on mlab , heroku , forum getting mean book itself, , wasn't able find helpful.

thanks in advance!

i had same problem (also while following 'getting mean' , solved taking database name out of host name: when mongodb_uri, after @ host name database name slashed after it. cause of problem in case.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -