Giter Site home page Giter Site logo

Comments (8)

superhawk610 avatar superhawk610 commented on June 15, 2024

Can you post your .config file? Are you able to connect to your mongo instance from the CLI (eg - mongo)?

from multicast.

somiom avatar somiom commented on June 15, 2024

Thanks for the reply.
If you were thinking of the config file of MangoDB, it is below.
mongodb.pdf

And I can connect to mongo shell.

mongodb shell

from multicast.

superhawk610 avatar superhawk610 commented on June 15, 2024

Before you run MultiCast for the first time, be sure to configure it

multicast config

and fill out the requested values.

from multicast.

somiom avatar somiom commented on June 15, 2024

and fill out the requested values.

I've tried a lot of times, but I could not find out which data should be entered. I did not find anything in the instructions.

multicastconfig

from multicast.

superhawk610 avatar superhawk610 commented on June 15, 2024

Yeah, that looks correct. If you haven't set a username/password for Mongo or changed the authDb, you can use the default values. For Application ID, yes, use your GoogleCast SDK AppID. The final output should look like:

  mongoHost: 'localhost',
  mongoPort: 27017,
  mongoUsername: '',
  mongoPassword: '',
  mongoAuthDB: 'admin',
  appId: 'YOUR_GOOGLECAST_SDK_APP_ID'

Run multicast config with those options and then try multicast start again and let me know if it works.

from multicast.

superhawk610 avatar superhawk610 commented on June 15, 2024

If that doesn't work and you feel comfortable editing JS, you can find your install directory

which multicast

and edit the dbConnect.js lib to output the stacktrace for what's causing the connection error:

// app/lib/dbConnect.js
// line 16
-    .catch(() => console.log('Could not connect to Mongo.'))
+    .catch(e => {
+      console.log('Could not connect to Mongo.'))
+      console.error(e)
+    })

from multicast.

somiom avatar somiom commented on June 15, 2024

Same error: "Could not connect to Mongo.".
I changed dbConnect.js as you described, and now I have this:

multicastdbconnecterrlog

from multicast.

superhawk610 avatar superhawk610 commented on June 15, 2024

Ahh, looks like your Mongo installation is out of date. You'll have upgrade to at least v2.6, though you may as well go ahead and update to the latest version (v4.0 as of time of writing). You can find installation instructions for the latest version here.

from multicast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.