Error forwarding data to influxdb


  • MOD

    Hi!,

    Since some time i am forwarding data info influx, now i see a lot of these errors:

    2017-12-22 07:19:39,919 ERROR [Thread-243985] [org.mycontroller.standalone.externalserver.ExternalServerEngine:75] Exception when sending data to server: ExternalServerInfluxdb(url=http://192.168.178.108:8086, trustHostType=ANY, database=mysensors, username=, tags=), 
    java.lang.NullPointerException: null
    	at java.util.regex.Matcher.appendReplacement(Matcher.java:804)
    	at java.util.regex.Matcher.replaceAll(Matcher.java:955)
    	at java.lang.String.replaceAll(String.java:2223)
    	at org.mycontroller.standalone.exernalserver.model.ExternalServer.getVariableKey(ExternalServer.java:118)
    	at org.mycontroller.standalone.exernalserver.model.ExternalServerInfluxdb.send(ExternalServerInfluxdb.java:111)
    	at org.mycontroller.standalone.externalserver.ExternalServerEngine.executeSendPayload(ExternalServerEngine.java:72)
    	at org.mycontroller.standalone.externalserver.ExternalServerEngine.selectServers(ExternalServerEngine.java:46)
    	at org.mycontroller.standalone.externalserver.ExternalServerEngine.run(ExternalServerEngine.java:86)
    	at java.lang.Thread.run(Thread.java:748)
    

    Which line in logback.xml should i change to see the debug info?

    Thx!


  • ADMIN

    @tag looks like when we do not have sensorName this issue raises. I have fixed this issue on https://github.com/mycontroller-org/mycontroller/commit/371354c352e2c80c43bcd9b40a1132ecd457ad8a

    Could you please check it in SNAPSHOT version and update me? Thank you!


  • MOD

    @jkandasa
    👍 Seems fixed!!!, still get errors, but these are readable!! need to fix these.

    2017-12-22 22:31:28,753 ERROR [Thread-535] [org.mycontroller.standalone.exernalserver.model.ExternalServerInfluxdb:115] Failed to send data to remote server! Status Code:400, Is Success:false, Error Message:-, Raw Entity:{"error":"partial write: field type conflict: input field \"value\" on measurement \"OPI-dummy-node/99/OPI-Memory/1/Variable_1\" is type string, already exists as type float dropped=1"}\n, Entity:[null], Remote server:ExternalServerInfluxdb(url=http://xxx.xxx.xxx.xxx:8086, trustHostType=ANY, database=mysensors, username=, tags=), http://xxx.xxx.xxx.xxx:8086
    2017-12-22 22:31:33,244 ERROR [Thread-547] [org.mycontroller.standalone.exernalserver.model.ExternalServerInfluxdb:115] Failed to send data to remote server! Status Code:400, Is Success:false, Error Message:-, Raw Entity:{"error":"partial write: field type conflict: input field \"value\" on measurement \"Energy_Gas/3/Mstand_2/3/Variable_1\" is type string, already exists as type float dropped=1"}\n, Entity:[null], Remote server:ExternalServerInfluxdb(url=http://xxx.xxx.xxx.xxx:8086, trustHostType=ANY, database=mysensors, username=, tags=), http://xxx.xxx.xxx.xxx:8086
    2017-12-22 22:31:33,353 ERROR [Thread-548] [org.mycontroller.standalone.exernalserver.model.ExternalServerInfluxdb:115] Failed to send data to remote server! Status Code:400, Is Success:false, Error Message:-, Raw Entity:{"error":"partial write: field type conflict: input field \"value\" on measurement \"Energy_Gas/3/Tarief/4/Variable_2\" is type string, already exists as type float dropped=1"}\n, Entity:[null], Remote server:ExternalServerInfluxdb(url=http://xxx.xxx.xxx.xxx:8086, trustHostType=ANY, database=mysensors, username=, tags=), http://xxx.xxx.xxx.xxx:8086
    

    Thank you for the support!!


  • ADMIN


  • MOD

    @jkandasa

    I changed the settings to lower case, need to change the the string that is send to influx, need to plan that one since it will most probably add new tables in influx.

    Will keep you posted!! 🙂 Thx!! 👍


 

Suggested Topics

3
Online

375
Users

354
Topics

2.1k
Posts