-
Notifications
You must be signed in to change notification settings - Fork 105
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
ERROR with postgreSQLSink with Cygnus on Docker #1467
Comments
Yes, this issues could be a particular aspects of the more general #1464 |
OK, but the issue doesn't seem to resume to a Docker build issue. cygnus-ngsi.sources = http-source cygnus-ngsi.sources.http-source.type = org.apache.flume.source.http.HTTPSource cygnus-ngsi.sinks.mysql-sink.type = com.telefonica.iot.cygnus.sinks.NGSIMySQLSink cygnus-ngsi.sinks.mongo-sink.type = com.telefonica.iot.cygnus.sinks.NGSIMongoSink cygnus-ngsi.sinks.sth-sink.type = com.telefonica.iot.cygnus.sinks.NGSISTHSink ============================================# NGSIPostgreSQLSink configuration cygnus-ngsi.channels.mysql-channel.type = com.telefonica.iot.cygnus.channels.CygnusMemoryChannel cygnus-ngsi.channels.mongo-channel.type = com.telefonica.iot.cygnus.channels.CygnusMemoryChannel cygnus-ngsi.channels.sth-channel.type = com.telefonica.iot.cygnus.channels.CygnusMemoryChannel cygnus-ngsi.channels.postgresql-channel.type = com.telefonica.iot.cygnus.channels.CygnusMemoryChannel All the sinks work OK except the postgres one |
Can we close this issue? |
Cygnus is deployed with Docker, mongo sink, sth sink, mysql sink work OK and persist the data
but postgreSQL sink give an error :
time=2018-02-19T13:59:42.355Z | lvl=INFO | corr=0e6caa90-157d-11e8-b9b3-0242ac11000a | trans=83810acc-a2b9-46c6-8b52-c795e30cb645 | srv=testservice | subsrv=/testalain | comp=cygnus-ngsi | op=persistAggregation | msg=com.telefonica.iot.cygnus.sinks.NGSIPostgreSQLSink[490] : [postgresql-sink] Persisting data at NGSIPostgreSQLSink. Schema (testservice), Table (testalain_device_001_thing), Fields ((recvTimeTs,recvTime,fiwareServicePath,entityId,entityType,attrName,attrType,attrValue,attrMd)), Values (('1519048749408','2018-02-19T13:59:09.408Z','/testalain','device_001','thing','temperature','Float','27.3','[{"name":"TimeInstant","type":"ISO8601","value":"2018-02-19T13:59:09.141Z"}]'))
time=2018-02-19T13:59:42.363Z | lvl=ERROR | corr=0e6caa90-157d-11e8-b9b3-0242ac11000a | trans=83810acc-a2b9-46c6-8b52-c795e30cb645 | srv=testservice | subsrv=/testalain | comp=cygnus-ngsi | op=processNewBatches | msg=com.telefonica.iot.cygnus.sinks.NGSISink[569] : CygnusPersistenceError. -, null. Stack trace: [com.telefonica.iot.cygnus.sinks.NGSIPostgreSQLSink.persistAggregation(NGSIPostgreSQLSink.java:504), com.telefonica.iot.cygnus.sinks.NGSIPostgreSQLSink.persistBatch(NGSIPostgreSQLSink.java:231), com.telefonica.iot.cygnus.sinks.NGSISink.processNewBatches(NGSISink.java:558), com.telefonica.iot.cygnus.sinks.NGSISink.process(NGSISink.java:370), org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:68), org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:147), java.lang.Thread.run(Thread.java:748)]
this error occurs even with cygnus-ngsi.sinks.postgresql.backend.enable_cache = true, like proposed as a solution in (#1446)
#1446
also someone report the same issue a few days ago:
https://stackoverflow.com/questions/48787905/cygnus-ngsi-not-able-to-save-data-in-postgresql-using-docker
my configuration uses postgres:latest image and telefonicaiot/fiware-cygnus:latest
this error has been reported several times, but no solution has been provided
thanks in advance for help or issue fixing
The text was updated successfully, but these errors were encountered: