sentilo / sentilo

Sentilo platform
Other
158 stars 67 forks source link

Suddenly unable to publish sensors data #71

Open fanihdez7 opened 2 years ago

fanihdez7 commented 2 years ago

Sentilo version: 1.9.0

Our platform-server returns the following error:

image

Every single data our providers are trying to publish, they all return the following error:

Observation % has been rejected because sensor [XXXXXX] belonging to provider [yyyyy] doen't exist on Sentilo.

However, in mongodb everything is fine:

image

And the user mongodb is using -> "platform-user" is active:

image

Considerations to note:

1) Everything was working until we restarted the contexts to change the catalog-web leaflet map layer. 2) Once restarted, suddenly the providers that up to a moment ago were publishing without problems, suddenly started to be unable to publish data in our sentilo 3) We have more or less 20 sensors operating but not publishing data at the moment, which means we are losing a bunch of data every minute.

fanihdez7 commented 2 years ago

Finally found a way to make it work again executing:

db.sensor.update({},{$unset:{synchronized:""}},{multi:true});

On mongodb.