-
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 does not persist data into PostGreSQL #2146
Comments
We have a lot of deployments of Cygnus persisting information in PostgreSQL, so probably is a matter of configuration. Maybe the author of that tutorial (I guess that @jason-fox ) could provide support on this. |
I'm missing the event in your logs, it seems data was not arrived to cygnus. |
Indeed @AlvaroVega Cygnus does not seem to receive any notification from Orion.
Here is what I use to create my Orion subscription:
The document says that attrsFormat=legacy is required since Cygnus currently only accepts notifications in the older NGSI v1 format. Am I missing an extra parameter or something to enable PostGresSink with Cygnus? Regards, |
It's all good now I found the issue. My subscription for Orion uses port 5050 (which is the port exposed if the agent is MySQL) for PostGresSINK the port exposed by the agent is 5055 so I updated the subscription and it works fine now.
Always be careful with copy N paste I just learned it the hard way ^^ Thanks for your time. |
Just a couple of comments:
If you have got that subscription from the tutorial, the tutorial should be updated (CC: @jason-fox ) |
Yes removing makes sens in a "real time" scenario and I also removed the "attrsFormat": "legacy" parameter to use NGSIv2 directly. I should mention that I had to change id format of my entities:
The format above did not work because of the special character (see #1977) So I use the following format to be able to create tables in PostGreSQL
Thanks again for your time @fgalan @AlvaroVega |
Hi,
I am using the following tutorial to persist data in a PostGresQL database via Cygnus.
https://documenter.getpostman.com/view/513743/RWEcR2DC
When using a MySQL database with Cygnus everything works fine as you can see below:
But when using PostGres as backend, the NGSIPostgreSQLSink does not create tables.
Here is my setup on docker:
If I list the schemas with a PostGres client there is no openiot schema:
I also tried to mount the following agent.conf and cygnus_instance.conf files in docker:
docker
agent.conf
cygnus_instance.conf
But to no avail Cygnus is still not persisting data in PostGres.
Here are some logs from the Cygnus service:
Thanks in advance.
The text was updated successfully, but these errors were encountered: