Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mongodb driver version #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BobHarper1
Copy link

@BobHarper1 BobHarper1 commented Oct 7, 2016

I found that in attempting to import a MongoDB collection the following error in the CLI where I had run dpd

========================================================================================
=  Please ensure that you set the default safe variable to one of the                  =
=   allowed values of [true | false | {j:true} | {w:n, wtimeout:n} | {fsync:true}]     =
=   the default value is false which means the driver receives does not                =
=   return the information of the success/error of the insert/update/remove            =
=                                                                                      =
=   ex: new Db(new Server('localhost', 27017), {safe:false})                           =
=                                                                                      =
=   http://www.mongodb.org/display/DOCS/getLastError+Command                           =
=                                                                                      =
=  The default of false will change to true in the near future                         =
=                                                                                      =
=  This message will disappear when the default safe is set on the driver Db           =
========================================================================================

I think this is caused by a mismatch between version 2.x.x of the mongodb node package (i.e. the driver) used by deployed and the dependency version of the driver in dpd-importer. Updating the dependency in dpd-importer solved this for me.

I also realise that in order to import a collection from a MongoDB server the deployd instance needs to have the same collection and properties present in the resources, or the import fails. So added this information to readme.

Found that to successfully import a collection from a mongo instance a matching collection needed to be waiting in the deployd instance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant