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

MongoDB::__construct(): invalid name $CLUSTER #89

Closed
kdauzickas opened this issue Mar 24, 2013 · 4 comments
Closed

MongoDB::__construct(): invalid name $CLUSTER #89

kdauzickas opened this issue Mar 24, 2013 · 4 comments
Labels
bug

Comments

@kdauzickas
Copy link

@kdauzickas kdauzickas commented Mar 24, 2013

MongoClient::VERSION === 1.3.4
MongoDB Version: 2.4.1
Error started to appear after I updated the server to 2.4.0
It's triggered when trying to get databases from the server (genghis.php/servers/id%40password/databases).
Not sure if this issue is reproducible by others or is a consequence of (mis)configuration on server side.
{"error":"MongoDB::__construct(): invalid name $CLUSTER","status":500}

Note: I tried to investigate in more depth myself, but I wasn't able to build a develop version of genghis as rake aborts every time with less.Parser error

Edit2: actually the error was caused by a database named "$CLUSTER". Not sure how it got created as sharding isn't enabled on that particular server. Given that database naming restrictions do not allow $ character I guess genghis should ignore and not even list that database

@bobthecow
Copy link
Owner

@bobthecow bobthecow commented Mar 24, 2013

So before you upgraded to 2.4, this same database worked in Genghis? Or didn't show up in the list? Or...

bobthecow added a commit that referenced this issue Mar 25, 2013
@bobthecow
Copy link
Owner

@bobthecow bobthecow commented Mar 25, 2013

^ I just fixed a missing paren in LESS. Apparently an older version of the library was able to deal with it, but I updated to the latest and it started getting a less.Parser error for me as well. Thanks for reporting that.

@kdauzickas
Copy link
Author

@kdauzickas kdauzickas commented Mar 25, 2013

Either the database didn't exist before upgrade or was hidden from genghis/mongo shell/all other clients I tried. I tend to believe the latter as I couldn't find any references to this database except mongodb source.

@bobthecow bobthecow closed this in 73ee152 Mar 25, 2013
@bobthecow
Copy link
Owner

@bobthecow bobthecow commented Mar 25, 2013

Thanks for reporting this. It has been fixed in v2.3.0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.