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

Failing to connect to database / Invalid schemes #1

Open
korgull opened this issue Sep 13, 2019 · 2 comments
Open

Failing to connect to database / Invalid schemes #1

korgull opened this issue Sep 13, 2019 · 2 comments

Comments

@korgull
Copy link

korgull commented Sep 13, 2019

Similar to your screenshots, I am unable to connect to the mongo database with this tool. Upon run, I get the following errors:

[info] trying to connect to: /stix
[info] trying to connect to: /cyberstix
[info] mongodb fail to connect, error: reactivemongo.api.MongoConnection$URIParsingException: Invalid scheme: /cyberstix
[info] mongodb fail to connect, error: reactivemongo.api.MongoConnection$URIParsingException: Invalid scheme: /stix

I'm not an expert at mongo, but I think I have the databases for cyberstix and stix defined by following the instructions in the "how-to-mongo.txt" file:

use cyberstix
db.createCollection("bundles")
db.createCollection("userLog")

use stix
db.createCollection("bundles")
db.createCollection("userLog")

I can verify that these databases exist. It doesn't appear like there is anything in the settings.conf file for me to modify that would fix this problem. What am I missing or doing incorrectly?

thanks

@workingDog
Copy link
Owner

I will investigate. Note that I am no expert (not even a beginner) in mongodb.
In the mean time could you try this:

in the build.sbt file change to the following:
"org.reactivemongo" %% "reactivemongo" % "0.18.6",
"org.reactivemongo" %% "reactivemongo-play-json" % "0.18.6-play27",

then in a terminal, re-compile: sbt compile
then run: sbt run

@workingDog
Copy link
Owner

workingDog commented Sep 14, 2019

try also to comment/remove these lines in "settings.conf"

mongodb.uri = ${?MONGOHQ_URL}${?mongodb.name}
mongodbStix.uri = ${?MONGOHQ_URL}${?mongodbStix.name}

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