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

Error in config.js #87

Open
serloop opened this issue Feb 6, 2017 · 1 comment
Open

Error in config.js #87

serloop opened this issue Feb 6, 2017 · 1 comment

Comments

@serloop
Copy link

serloop commented Feb 6, 2017

I've installed the LWM2M IoT Agent in the CentOS VM provided for the Context Broker. I obtain the following error after executing "bin/lwm2mAgent.js":

msg=No host found for MongoDB driver.

I checked the configuration in config.js file and I removed these lines

deviceRegistry: {
type: 'mongodb',
host: 'localhost'
},

and I replaced them with the following:

deviceRegistry: {
type: 'mongodb',
},
mongodb: {
host: 'localhost',
port: '27017',
db: 'iotlwm2m'
},

With these changes I could run the instance of the Agent. The problem is that the configuration in this file wasn't updated. I got these lines from the file config.js of the UL2.0 Agent.

@fgalan
Copy link
Member

fgalan commented Nov 27, 2017

Fixed by PR #101. @serloop , as original reporter, could you check (using the code now in the master branch) if the problem is solved, please? Thx!

@fgalan fgalan reopened this Nov 27, 2017
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

3 participants