-
Notifications
You must be signed in to change notification settings - Fork 104
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
Cygnus LD Subscription stop sending data to postgres (Batch accumulation time reached) #2401
Comments
Maybe the author of Cygnus-LD (CC: @anmunoz ) or some FIWARE Foundation expert (CC: @jason-fox ) could provide support on this. |
Here is another error i found when i run this command
This is the part of the response: {"id":"urn:ngsi-ld:subscription:335fffc4-6084-11ef-9578-0242ac13000c","type":"Subscription","description":"Notify me of all changes","entities":[{"type":"https://uri.fiware.org/ns/dataModels#Device"}],"watchedAttributes":["https://w3id.org/saref#humidity","https://w3id.org/saref#temperature"],"status":"paused","isActive":false,"notification":{"attributes":["https://w3id.org/saref#humidity","https://w3id.org/saref#temperature"],"format":"keyValues","endpoint":{"uri":"http://cygnus-ngsi-ld:5050/notify","accept":"application/json","receiverInfo":[{"key":"fiware-service","value":"openiot"}]},"status":"failed","timesSent":3,"lastNotification":"2024-08-22T12:44:00.387Z","lastFailure":"2024-08-22T12:44:00.387Z","consecutiveErrors":3,"lastErrorReason":"Content-Length not found but the status code is not a 204"},"origin":"cache","jsonldContext":"http://172b20d8e896:1026/ngsi-ld/v1/jsonldContexts/335ff920-6084-11ef-9578-0242ac13000c"}] |
Just to be sure is not related with batches you can try to reduce size and timeout about batches in sink configuration, ie: @fadelcg Which version of cygnus are you using? |
I edited the .conf file. The batch size is already 1 and batch timeout was 30 and I changed to 10. It still have the same problem. I used before the version from: https://hub.docker.com/r/fiware/cygnus-ld Both version has the same issue: batch accumulation timed out. The Postgres I am using is Postgres 13. |
Last pushed 2 years ago by jasonmhfox |
Hello, I am trying to persist the IoT data that I have by applying Cygnus LD and connect it to postgres.
I ran the following command for the subscription:
The subscription is successfull and it saves the IoT data to Postgres. But it only works usually for 3 or 4 Changes / Input Data. After that, Cygnus will stop saving the data in Postgres with following logs:
When I run the subscription again, Cygnus will save the data again to postgres for a moment. After that it stops again sending the data and the above logs will show up again.
Could you please help me solving the problem that Cygnus can continuosly save the data to postgres?
Thank you.
The text was updated successfully, but these errors were encountered: