telefonicaid / fiware-sth-comet

A component of the FIWARE ecosystem in charge of managing historical and aggregated time series context information
https://fiware-sth-comet.rtfd.io
GNU Affero General Public License v3.0
27 stars 28 forks source link

Deprecated mongodb dependencies #449

Closed AlexMavromatis closed 6 years ago

AlexMavromatis commented 6 years ago

I get this error after running ./bin/sth

the server/replset/mongos options are deprecated, all their options are supported at the top level of the options object

It runs and works properly, but does not create any mongodb database.

sanchit31 commented 6 years ago

Hi Alex,

Databases in MongoDB are created only when when you insert some data in any collection of that database. So, it's absolutely fine that no database has been created.

AlexMavromatis commented 6 years ago

Thanks for your help sanchit : ) The right functionality though is for sth listening and storing the data from the context broker right? So once it is deployed and the context broker is receiving data it should have created a collections with the data.

sanchit31 commented 6 years ago

Yes, if the contextBroker is running and sth-comet listening to it. The database will get created once you run an update query in your contextBroker and it notifies the change to sth comet.

Please check the following: 1) Is your subscription query correct? 2) Whether orion is running on multi-tenancy mode or not? 3) Whether sth-comet and context broker are able to access each other?

Can you share your subscription query, update query, sth and orion logs? If you see this in sth logs - time=2018-09-19T10:43:21.501Z | lvl=INFO | corr=n/a | trans=n/a | op=OPER_STH_SERVER_LOG | from=n/a | srv=n/a | subsrv=n/a | comp=STH | msg=Everything OK, 0 requests attended in the last 60s interval, then it means that no data has been received by sth-comet yet.

fgalan commented 6 years ago

Fixed by PR https://github.com/telefonicaid/fiware-sth-comet/pull/456