• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    Error forwarding data to influxdb

    scheduled pinned locked moved Developers Zone
    5 posts 2 posters 1.7k views 1 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • T offline
      Tag MOD
      global: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 one-reply-to-this-post last-reply-time reply quote 0
      • jkandasaJ offline
        jkandasa @Tag
        global: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 one-reply-to-this-post last-reply-time reply quote 0
        • T offline
          Tag MOD @jkandasa
          global: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 one-reply-to-this-post last-reply-time reply quote 0
          • jkandasaJ offline
            jkandasa @Tag
            global:last-edited-by,

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

            T one-reply-to-this-post last-reply-time reply quote 0
            • T offline
              Tag MOD @jkandasa
              global: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!! 👍

              one-reply-to-this-post last-reply-time reply quote 1
              • first-post
                last-post

              0

              online

              644

              users

              532

              topics

              3.4k

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