-
Notifications
You must be signed in to change notification settings - Fork 26
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
Compatibility with version 3.0 of MongoDB #77
Comments
please, provide more details and reproducible example. |
If you install a MongoDB 3.0 with authentication mechanism.
Authentication failed. (Result)
If you use the mongo.create it will work and then using the mongo.authenticate function will give the same result. |
thx for reporting. I will check this, but it can be problematic to fix this, because rmongodb is based on old mongo-c-driver-legacy. |
If you can help, pull request is very welcome. |
I know maybe the other ticket which was for upgrading to the new mongo-c-driver will resolve this issue as well. But for now I'm stock :( |
as I know, new mongo-c-driver has totally diffrent API, so the easiest way to upgrade rmongodb to latest mongo-c-driver is to rewrite it from scratch with Rcpp or Rcpp11. |
It is true that rmongodb failed to connect mongoDB 3.0. Could be a bit frustrating for novice users, who are new to both rmongodb and mongoDB.
|
|
Hi ..anybody still working on this issue..or any pull request regarding this |
I will review and merge pull, if someone will develop it. |
Ok i wlll give it a try within next 3 weeks |
Also check mongolite project, @jeroenooms did a lot of work porting latest mongo c driver, so I believe it will be more simple to port some functionality of rmongodb to mongolite. |
@dselivanov thanks! Mongolite certainly supports authentication, you just need to put your credentials in the mongodb url. Here are some examples: https://gist.github.com/jeroenooms/f9694a48750491c55cbf |
The new version of # Connect to mongolabs
con <- mongo("mtcars", url = "mongodb://readwrite:[email protected]:43942/jeroen_test")
if(con$count() > 0) con$drop()
con$insert(mtcars)
stopifnot(con$count() == nrow(mtcars))
# Query data
mydata <- con$find()
stopifnot(all.equal(mydata, mtcars))
con$drop()
# Automatically disconnect when connection is removed
rm(con)
gc() |
what about access to gridfs .. mongolite donot seem to support that yet |
There is gridfs support now in mongolite. |
The driver is not compatible with the version 3.0 of MongoDB and it always give the error of Authentication Failed, this is because the default mechanism of authentication have been change in MongoDB 3.0
Please resolve this problem.
The text was updated successfully, but these errors were encountered: