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

GridFS issue on Mongo DB 2.6.3 #61

Closed
trupheenix opened this issue Jul 26, 2014 · 3 comments
Closed

GridFS issue on Mongo DB 2.6.3 #61

trupheenix opened this issue Jul 26, 2014 · 3 comments

Comments

@trupheenix
Copy link
Contributor

When I try to connect to GridFS on 2.6.3, I get an error while creating index on the "fs" collection.

The error is something like this:

pymongo.errors.OperationFailure: not authorized to create index on dbname.fs.chunks

Then I looked up the init.py file for the GridFS object and I found the offending line:
self.__chunks.create_index(filter.sort(ASCENDING("files_id") + ASCENDING("n")),
unique=True)
However it's not clear to me why this happens because finally it's an insert operation that takes place when we create_index. So does this mean that the authentication protocol I pushed earlier is now failing for 2.6.3? This driver works perfectly on 2.4.10

Any responses would be appreciated for those who might have observed similar behavior.

@fiorix
Copy link
Collaborator

fiorix commented Jul 26, 2014

I haven't used any of the latest versions so can't comment.

On Jul 26, 2014, at 8:28 AM, Tru Pheenix notifications@github.com wrote:

When I try to connect to GridFS on 2.6.3, I get an error while creating index on the "fs" collection.

The error is something like this:

pymongo.errors.OperationFailure: not authorized to create index on dbname.fs.chunks

Then I looked up the init.py file for the GridFS object and I found the offending line:
self.__chunks.create_index(filter.sort(ASCENDING("files_id") + ASCENDING("n")),
unique=True)
However it's not clear to me why this happens because finally it's an insert operation that takes place when we create_index. So does this mean that the authentication protocol I pushed earlier is now failing for 2.6.3? This driver works perfectly on 2.4.10

Any responses would be appreciated for those who might have observed similar behavior.


Reply to this email directly or view it on GitHub.

@trupheenix
Copy link
Contributor Author

Seems to be working now. :-| No clue why it wasn't working earlier. I think the upgrade caused an unwanted issue. When I tried running on a fresh installation it worked.

@fiorix
Copy link
Collaborator

fiorix commented Jul 26, 2014

Thanks for updating

On Jul 26, 2014, at 1:25 PM, Tru Pheenix notifications@github.com wrote:

Seems to be working now. :-| No clue why it wasn't working earlier. I think the upgrade caused an unwanted issue. When I tried running on a fresh installation it worked.


Reply to this email directly or view it on GitHub.

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

No branches or pull requests

2 participants