• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Error forwarding data to influxdb

    Scheduled Pinned Locked Moved Developers Zone
    5 Posts 2 Posters 1.4k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      Tag MOD
      last edited by

      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!

      jkandasaJ 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @Tag
        last edited by

        @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!

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          Tag MOD @jkandasa
          last edited by

          @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!!

          jkandasaJ 1 Reply Last reply Reply Quote 0
          • jkandasaJ Offline
            jkandasa @Tag
            last edited by

            @tag Can you follow these steps? https://github.com/mycontroller-org/mycontroller/issues/421#issuecomment-352738768

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              Tag MOD @jkandasa
              last edited by

              @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!! 👍

              1 Reply Last reply Reply Quote 1
              • First post
                Last post

              0

              Online

              587

              Users

              529

              Topics

              3.4k

              Posts
              Copyright © 2015-2025 MyController.org | Contributors | Localization