-
Notifications
You must be signed in to change notification settings - Fork 153
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
Unable to connect to MongoDB: Unknown option username | ConfigurationError: Unknown option username #370
Comments
Hmm you are right to suspect the mongo auth commit as likely being responsible. Let me try to work out what's going on. |
I know it's oaf but I tested with MongoDB version 2.6.10 as well, was getting same issue |
Please let me know if you have made any progress on this issue - I haven't heard of any others having this problem, nor have I seen it myself. I plan to close this issue soon as doesn't seem to be widespread. |
Our team faced this issue yesterday. We had to do perform several steps to solve it, but keep in mind that they could be unrelated as we could not isolate the main issue. 1.- Make sure that your mongodb folders (located in subdirectories of /data and /var) have the proper ownership and permissions (i.e. sudo chown -R mongodb:mongodb /data/sandbox/mongodb/). 2.- Make sure that the mongodb service is disabled and stopped, as it conflicts with the newer mongod service (i.e.sudo systemctl stop mongodb && sudo systemctl disable mongodb). This is due to a recent mongo update and is a pretty obscure piece of information that is hard to come around. 3.- Make sure (via netstat) that if you stop the mongod service there is no other process listening on port 27017. 4.- If everything else fails, test your luck installing flask-pymongo via pip, as some of it dependencies may help you (but this could be a real lucky shot). Hope it helps. |
@Godlance thanks for info, i have updated the install script https://github.com/doomedraven/Tools/blob/master/Cuckoo/cuckoo.sh#L375 |
Looks like this issue has been taken care of - thanks all |
Issues:
From cuckoo startup:
From running webserver:
What I've tried so far:
I'm running MongoDB server version: 3.4.21
I've setup a user and tested connection via the following command
mongo --host <Ip_address>:27017 -u -p password --authenticationDatabase cuckoo
It successfully connects and shows the following message
I've entered the username and password into CAPE/conf/reporting.conf
I've tested with and without username and password and same result is happening.
Is anyone else having issues with the MongoDB authentication?
It appears MongoDB authentication was added in the following commit.
a483cf9#diff-b4ef698db8ca845e5845c4618278f29a
Any help, much obliged.
The text was updated successfully, but these errors were encountered: