Eric
Eric

Reputation: 893

Error dumping data from a local db for a meteor server

I want to upload data from a local db to a meteor server. After running mongodump -h 127.0.0.1:3002 -d meteor -o meteor the terminal returns the following error:

2015-05-28T20:47:14.125-0700 warning: Failed to connect to 127.0.0.1:3002, reason: errno:61 Connection refused couldn't connect to [127.0.0.1:3002] couldn't connect to server 127.0.0.1:3002 (127.0.0.1), connection attempt failed

Is there any way to fix the problem? No similar post provides a workaround.

Upvotes: 0

Views: 78

Answers (1)

Tarang
Tarang

Reputation: 75985

The port is no longer port 3002 (port of your meteor app 3000 + 2). Now it is the port + 1. So if you run Meteor on port 3000, you need to connect to port 3001:

mongodump -h 127.0.0.1:3001 -d meteor -o meteor

Upvotes: 1

Related Questions