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

Physical module not listening to mqtt connection. system is failing #4

Open
jimishio opened this issue Mar 16, 2016 · 3 comments
Open

Comments

@jimishio
Copy link

Hey Guys,
I have setup this lelylan IoT platform in our server and we want to use it for testing our devices.
Issue is physicals is not listening to port specified in environment file.

@andreareginato
Copy link
Contributor

HI @jimishparekh, thanks for opening the issue. Most probably there are some missing params in the documentation. I'll take some time in a couple of days to check this out. In the mean time, if you check the physical code (it's one file) could be of help to understand where is the missing point.

Get bak to you soon!

@FedeG
Copy link
Member

FedeG commented Mar 9, 2017

@jimishio If your physicals mongo collection isn't capped, physical can't read stream.
Check if your collection is capped.

Check code:

$ mongo
$ > use jobs_development (or your jobs db name)
$ > db.physicals.isCapped()
$ > true or false

If your collection isn't capped please wait this bug #8 (fixed in #9) or configure your collection with this code:

If you don't have events:

$ mongo
$ > use jobs_development (or jobs db name)
$ > db.dropDatabase();
$ > use jobs_development (or jobs db name)
$ > db.createCollection("events", {capped: true, size: 10000000, max:1000});
$ > db.events.find().sort({natural:-1})

If you have events:

$ mongo
$ > use jobs_development (or jobs db name)
$ > db.runCommand({"convertToCapped": "events", size: 10000000, max:1000});
$ > db.events.find().sort({natural:-1})

@andreareginato
Copy link
Contributor

The pull request is under review. Merge coming soon.

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