R
R
Rustem Vorozheikin2015-05-28 13:48:12
MongoDB
Rustem Vorozheikin, 2015-05-28 13:48:12

Why did db.copyDatabase() stop working after removing mongodb version 2.4.9 and installing version 3.0.3?

Hello.
Already on the second vps I encounter such a problem.
It costs mongodb version 2.4.9 on both machines. Copying back and forth (from one to the other) works well. It was necessary to install version 3.0 instead of mongo 2.4. after removal and installation, an error occurs with locales LC_ALL=* and mongo does not start. After restarting the system "sudo reboot" everything works, mongo starts and the error disappears. But now copying the database from the server where mongo 3.0 is installed does not work. I can copy data from other vps there, but I cannot copy from it db.copyDatabase('d','d','52.74.199.131')to any other. An error occurs

{ "ok" : 0, "errmsg" : "couldn't connect to server 52.74.199.131:27017" }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fedor Kolov, 2015-05-28
@d_f

1) Maybe I shouldn't have duplicated the question.
2) I haven't worked with it, but judging by the version descriptions:
docs.mongodb.org/v2.4/reference/method/db.copyDatabase
docs.mongodb.org/manual/reference/method/db.copyDa...
Changed input parameters. Can you pay attention to them?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question