when I try to go to API docs and try the mongo api I am getting the following error
{
"error": [
{
"context": null,
"message": "Failed to launch service "mongohq": Unexpected MongoDb Service Exception:\nSSL can only be 'true' or 'false'",
"code": 500
}
]
}
I am not checking the SSL checkbox while creating the mongo service. Am I missing something here ?
You are correct @pineapple_man, like I said this is a problem in the new admin UI. We did not fix it over the weekend, but keep an eye on the repo because I expect weāll commit the fix this week. In the meantime you could use the old admin UI if your need to connect to a MongoDB is urgent.
Any update on whether this has been fixed? This as its a bit of an urgent need for us. Weāre migrating over some standalone tools to our DSP and they need Mongo as the backend. A bit of a bottleneck for us that needs to be resolved asap.
Whatās the procedure to rollback the Admin UI if we need this asap? Weāre running off the Git codebase and on a manual Ubuntu installation with the NGINX config.
@asafp I have moved your post to the existing thread on this issue. Please read this thread for details on this known problem as well as the workaround. This thread will be updated once the fix is committed, as well.
We have tested several MongoDB connections without error. Could you provide the exact steps to reproduce the error on the old Admin Console and the error(s) from the logs?
I have used MongoLab and set up my own MongoDB 3.0.1 on AWS and get the same error.
{
"error": [
{
"context": null,
"message": "Failed to launch service "mongolab": Unexpected MongoDb Service Exception:\nSSL can only be 'true' or 'false'",
"code": 500
}
]
}
I tried switching to the old admin interface
{host}:{port}/launchpad/index.html
And still the same issue.
I have switched the connection strings around
I just set up a new MongoLab DB and connected to it without issue. I recommend you try again, and if this does not work please post your service config for this DB service.
To connect using the shell:
mongo ds053688.mongolab.com:53688/enron_1 -u <dbuser> -p <dbpassword>
To connect using a driver via the standard URI (what's this?):
mongodb://<dbuser>:<dbpassword>@ds053688.mongolab.com:53688/enron_1
Here is my connecting from the shell;
[~/Development]$ /data/bin/mongo ds053688.mongolab.com:53688/enron_1 -u dsp -p password
MongoDB shell version: 2.4.9
connecting to: ds053688.mongolab.com:53688/enron_1
Error while trying to show server startup warnings: not authorized on admin to execute command { getLog: "startupWarnings" }
> use enron_1
switched to db enron_1
> show collections
messages
system.indexes
>
Here is my Bitnami DSP service config;
Service Type : NoSQL DB
API Name : MongoLab
Name : MongoLab
Description : Mongo Enron Dataset
Active : Check
NoSQL Vendor : MongoDB
Connection String : mongodb://dsp:password@ds053688.mongolab.com:53688
Database Name : enron_1
Username : dsp
Password : password
Connect with SSL (PHP driver and MongoDB server must support SSL) (Not Checked)
Are there any recomendations like connection string format, or mongo settings that need to be done?
Since the DSP is providing your credentials, you may be forcing them into the connection twice by also explicitly specifying them in the connection string. My working MongoLab connection string looks like this:
mongodb://ds027183.mongolab.com:27183
Let the DSP store and provide your credentials rather than specifying them manually in your connection string, and let me know how that works for you.