Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. InfluxDB
    5. influxdb.0 2022-08-15 ECONNREFUSED 127.0.0.1:8086 (gelöst)

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    influxdb.0 2022-08-15 ECONNREFUSED 127.0.0.1:8086 (gelöst)

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @maximinus last edited by

      @maximinus

      Du hast aber auch ein Problem mit zu wenig RAM.
      Laufender Desktop z. B.?

      M 1 Reply Last reply Reply Quote 0
      • M
        maximinus @Thomas Braun last edited by

        @thomas-braun
        Nachdem das "Problem" gelöst war habe ich hier nicht mehr hineingeschaut und den Hinweis nicht gesehen. Es läuft tatsächlich die Desktop version.
        Leider ist es heute wieder aufgetreten ohne etwas zu ändern war der Zugriff auf die Datenbank weg.
        Ich habe dann ein update upgrade gemacht und plötzlich war sie wieder da aber nur für kurze Zeit. Jetzt ist sie wieder weg. In der Instanzen Übersicht ist der Adapter gelb, wechselt aber sporadisch für kurze Zeit nach grün. Da sieht offenbar so aus:

        pi@raspberrypi:~ $ influx
        Connected to http://localhost:8086 version 1.8.10
        InfluxDB shell version: 1.8.10
        > show databases
        ERR: Post http://localhost:8086/query?chunked=true&db=&epoch=ns&q=show+databases: dial tcp [::1]:8086: connect: connection refused
        > use database iobroker1
        ERR: Post http://localhost:8086/query?db=&epoch=ns&q=SHOW+DATABASES: dial tcp [::1]:8086: connect: connection refused
        DB does not exist!
        > show databases
        ERR: Post http://localhost:8086/query?chunked=true&db=&epoch=ns&q=show+databases: dial tcp [::1]:8086: connect: connection refused
        > exit
        pi@raspberrypi:~ $ influx
        Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: connect: connection refused
        Please check your connection settings and ensure 'influxd' is running.
        pi@raspberrypi:~ $
        

        Ich habe eine 2. Instanz installiert die ist und bleibt grün !?!
        Ich wollte syslog ansehen das ist aber mit 2,7MB zu groß.
        Was mach ich nur?

        Thomas Braun 2 Replies Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @maximinus last edited by Thomas Braun

          @maximinus sagte in influxdb.0 2022-08-15 ECONNREFUSED 127.0.0.1:8086 (gelöst):

          Was mach ich nur?

          Den Desktop natürlich aus?

          1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @maximinus last edited by

            @maximinus

            sudo apt update
            apt policy influxdb*
            

            sagt?

            M 1 Reply Last reply Reply Quote 0
            • M
              maximinus @Thomas Braun last edited by

              @thomas-braun

              Danke dass Du dich meies Problems annimmst

              Also Desktop ist jetzt aus und

              das ist die Antwort:

              login as: pi
              pi@192.168.178.28's password:
              Linux raspberrypi 5.15.56-v7l+ #1575 SMP Fri Jul 22 20:29:46 BST 2022 armv7l
              
              The programs included with the Debian GNU/Linux system are free software;
              the exact distribution terms for each program are described in the
              individual files in /usr/share/doc/*/copyright.
              
              Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
              permitted by applicable law.
              Last login: Thu Sep  1 11:47:57 2022 from 192.168.178.74
              pi@raspberrypi:~ $ sudo apt update
              Get:1 http://archive.raspberrypi.org/debian bullseye InRelease [23.7 kB]
              Get:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
              Hit:3 https://packages.grafana.com/oss/deb stable InRelease
              Hit:4 https://repos.influxdata.com/debian bullseye InRelease
              Hit:5 https://deb.nodesource.com/node_16.x bullseye InRelease
              Get:6 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages [13.2 MB]
              Get:7 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [297 kB]
              Fetched 13.6 MB in 9s (1,503 kB/s)
              Reading package lists... Done
              Building dependency tree... Done
              Reading state information... Done
              All packages are up to date.
              pi@raspberrypi:~ $ apt policy influxdb*
              influxdb-client:
                Installed: (none)
                Candidate: 1.6.7~rc0-1
                Version table:
                   1.6.7~rc0-1 500
                      500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
              influxdb-dev:
                Installed: (none)
                Candidate: (none)
                Version table:
              influxdb:
                Installed: 1.8.10-1
                Candidate: 1.8.10-1
                Version table:
               *** 1.8.10-1 500
                      500 https://repos.influxdata.com/debian bullseye/stable armhf Packages
                      100 /var/lib/dpkg/status
                   1.6.7~rc0-1 500
                      500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
              pi@raspberrypi:~ $
              

              Installed:none
              Das dürfte ein Fehler sein, oder? Was habe ich da falsch gemacht?
              Was mich allerdings wundert , ist dass es einige Tage zu funktionieren schien.

              Wie behebe ich das jetzt?

              Herzlichen Dank
              Gerhard

              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @maximinus last edited by

                @maximinus sagte in influxdb.0 2022-08-15 ECONNREFUSED 127.0.0.1:8086 (gelöst):

                Das dürfte ein Fehler sein, oder? Was habe ich da falsch gemacht?

                Nein, kein Fehler, die Installation ist so wie sie sein soll.

                Bei influx hab ich weiter keine Aktien drin. Muss sich wer anders anschauen.

                M 1 Reply Last reply Reply Quote 0
                • M
                  maximinus @Thomas Braun last edited by

                  @thomas-braun

                  Danke,

                  das kann ich noch anbieten, mir sagt das leider nichts:

                  pi@raspberrypi:~ $ influx
                  Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: connect: connection refused
                  Please check your connection settings and ensure 'influxd' is running.
                  pi@raspberrypi:~ $ influxd
                  
                   8888888           .d888 888                   8888888b.  888888b.
                     888            d88P"  888                   888  "Y88b 888  "88b
                     888            888    888                   888    888 888  .88P
                     888   88888b.  888888 888 888  888 888  888 888    888 8888888K.
                     888   888 "88b 888    888 888  888  Y8bd8P' 888    888 888  "Y88b
                     888   888  888 888    888 888  888   X88K   888    888 888    888
                     888   888  888 888    888 Y88b 888 .d8""8b. 888  .d88P 888   d88P
                   8888888 888  888 888    888  "Y88888 888  888 8888888P"  8888888P"
                  
                  2022-09-02T17:25:23.217735Z     info    InfluxDB starting       {"log_id": "0cgoc4_G000", "version": "1.8.10", "branch": "1.8", "commit": "688e697c51fd"}
                  2022-09-02T17:25:23.217810Z     info    Go runtime      {"log_id": "0cgoc4_G000", "version": "go1.13.8", "maxprocs": 4}
                  run: open server: listen: listen tcp 127.0.0.1:8088: bind: address already in use
                  pi@raspberrypi:~ $
                  

                  Gerhard

                  Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @maximinus last edited by

                    kenne ich damit auch nicht aus. Aber hast du das gemacht, was da steht?

                    @maximinus sagte in influxdb.0 2022-08-15 ECONNREFUSED 127.0.0.1:8086 (gelöst):

                    Please check your connection settings and ensure 'influxd' is running.

                    1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @maximinus last edited by

                      @maximinus sagte in influxdb.0 2022-08-15 ECONNREFUSED 127.0.0.1:8086 (gelöst):

                      run: open server: listen: listen tcp 127.0.0.1:8088: bind: address already in use

                      Da lebt schon was auf dem Port.

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        maximinus @Thomas Braun last edited by

                        @thomas-braun

                        Da lebt schon was auf dem Port

                        Das hat jetzt etwas länger gedauert ich musste alles erst zusammensuchen

                        Was da zu leben scheint ist dass influx auf 8088 lauscht, woher das kommt ist mir ein Rätsel

                        pi@raspberrypi:~ $ influxd config
                        Merging with configuration at: /etc/influxdb/influxdb.conf
                        reporting-disabled = false
                        bind-address = "127.0.0.1:8088"
                        
                        [meta]
                          dir = "/var/lib/influxdb/meta"
                          retention-autocreate = true
                          logging-enabled = true
                        
                        [data]
                          dir = "/var/lib/influxdb/data"
                          index-version = "inmem"
                          wal-dir = "/var/lib/influxdb/wal"
                          wal-fsync-delay = "0s"
                          validate-keys = false
                          strict-error-handling = false
                          query-log-enabled = true
                          cache-max-memory-size = 1073741824
                          cache-snapshot-memory-size = 26214400
                          cache-snapshot-write-cold-duration = "10m0s"
                          compact-full-write-cold-duration = "4h0m0s"
                          compact-throughput = 50331648
                          compact-throughput-burst = 50331648
                          max-series-per-database = 1000000
                          max-values-per-tag = 100000
                          max-concurrent-compactions = 0
                          max-index-log-file-size = 1048576
                          series-id-set-cache-size = 100
                          series-file-max-concurrent-snapshot-compactions = 0
                          trace-logging-enabled = false
                          tsm-use-madv-willneed = false
                        
                        [coordinator]
                          write-timeout = "10s"
                          max-concurrent-queries = 0
                          query-timeout = "0s"
                          log-queries-after = "0s"
                          max-select-point = 0
                          max-select-series = 0
                          max-select-buckets = 0
                        
                        [retention]
                          enabled = true
                          check-interval = "30m0s"
                        
                        [shard-precreation]
                          enabled = true
                          check-interval = "10m0s"
                          advance-period = "30m0s"
                        
                        [monitor]
                          store-enabled = true
                          store-database = "_internal"
                          store-interval = "10s"
                        
                        [subscriber]
                          enabled = true
                          http-timeout = "30s"
                          insecure-skip-verify = false
                          ca-certs = ""
                          write-concurrency = 40
                          write-buffer-size = 1000
                        
                        [http]
                          enabled = true
                          bind-address = ":8086"
                          auth-enabled = false
                          log-enabled = true
                          suppress-write-log = false
                          write-tracing = false
                          flux-enabled = false
                          flux-log-enabled = false
                          pprof-enabled = false
                          pprof-auth-enabled = false
                          debug-pprof-enabled = false
                          ping-auth-enabled = false
                          prom-read-auth-enabled = false
                          https-enabled = false
                          https-certificate = "/etc/ssl/influxdb.pem"
                          https-private-key = ""
                          max-row-limit = 0
                          max-connection-limit = 0
                          shared-secret = ""
                          realm = "InfluxDB"
                          unix-socket-enabled = false
                          unix-socket-permissions = "0777"
                          bind-socket = "/var/run/influxdb.sock"
                          max-body-size = 25000000
                          access-log-path = ""
                          max-concurrent-write-limit = 0
                          max-enqueued-write-limit = 0
                          enqueued-write-timeout = 30000000000
                        
                        [logging]
                          format = "auto"
                          level = "info"
                          suppress-logo = false
                        
                        [[graphite]]
                          enabled = false
                          bind-address = ":2003"
                          database = "graphite"
                          retention-policy = ""
                          protocol = "tcp"
                          batch-size = 5000
                          batch-pending = 10
                          batch-timeout = "1s"
                          consistency-level = "one"
                          separator = "."
                          udp-read-buffer = 0
                        
                        [[collectd]]
                          enabled = false
                          bind-address = ":25826"
                          database = "collectd"
                          retention-policy = ""
                          batch-size = 5000
                          batch-pending = 10
                          batch-timeout = "10s"
                          read-buffer = 0
                          typesdb = "/usr/share/collectd/types.db"
                          security-level = "none"
                          auth-file = "/etc/collectd/auth_file"
                          parse-multivalue-plugin = "split"
                        
                        [[opentsdb]]
                          enabled = false
                          bind-address = ":4242"
                          database = "opentsdb"
                          retention-policy = ""
                          consistency-level = "one"
                          tls-enabled = false
                          certificate = "/etc/ssl/influxdb.pem"
                          batch-size = 1000
                          batch-pending = 5
                          batch-timeout = "1s"
                          log-point-errors = true
                        
                        [[udp]]
                          enabled = false
                          bind-address = ":8089"
                          database = "udp"
                          retention-policy = ""
                          batch-size = 5000
                          batch-pending = 10
                          read-buffer = 0
                          batch-timeout = "1s"
                          precision = ""
                        
                        [continuous_queries]
                          log-enabled = true
                          enabled = true
                          query-stats-enabled = false
                          run-interval = "1s"
                        
                        [tls]
                          min-version = ""
                          max-version = ""
                        
                        pi@raspberrypi:~ $
                        

                        Wenn ich in die /etc/influxd/influxd.conf schaue ist die 8088 mit einer Raute versehen:

                        # The values in this file override the default values used by the system if
                        # a config option is not specified. The commented out lines are the configurati>
                        # field and the default value used. Uncommenting a line and changing the value
                        # will change the value used at runtime when the process is restarted.
                        
                        # Once every 24 hours InfluxDB will report usage data to usage.influxdata.com
                        # The data includes a random ID, os, arch, version, the number of series and ot>
                        # usage data. No data from user databases is ever transmitted.
                        # Change this option to true to disable reporting.
                        # reporting-disabled = false
                        
                        # Bind address to use for the RPC service for backup and restore.
                        # bind-address = "127.0.0.1:8088"
                        

                        und weiter unten im http-Teil korrekt mit 8086 definiert

                        [http]
                          # Determines whether HTTP endpoint is enabled.
                        enabled = true
                        
                          # Determines whether the Flux query endpoint is enabled.
                          # flux-enabled = false
                        
                          # Determines whether the Flux query logging is enabled.
                          # flux-log-enabled = false
                        
                          # The bind address used by the HTTP service.
                        bind-address = ":8086"
                        
                        pi@raspberrypi:~ $ sudo netstat -tulpn | grep LISTEN |grep influx
                        tcp        0      0 127.0.0.1:8088          0.0.0.0:*               LISTEN      13217/influxd
                        pi@raspberrypi:~ $
                        

                        @Homoran

                        Ich denke Influxd läuft, es meldet bind address already in use und erreichbar sollte es auch sein:

                        pi@raspberrypi:~ $ ping -4 localhost
                        PING  (127.0.0.1) 56(84) bytes of data.
                        64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.058 ms
                        64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.078 ms
                        64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.099 ms
                        64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.054 ms
                        64 bytes from localhost (127.0.0.1): icmp_seq=5 ttl=64 time=0.059 ms
                        64 bytes from localhost (127.0.0.1): icmp_seq=6 ttl=64 time=0.054 ms
                        ^C
                        ---  ping statistics ---
                        6 packets transmitted, 6 received, 0% packet loss, time 5229ms
                        rtt min/avg/max/mdev = 0.054/0.067/0.099/0.016 ms
                        

                        Nirgendwo ist Port 8086 zu sehen

                        pi@raspberrypi:/usr/lib/influxdb $ sudo netstat -tulpen
                        Active Internet connections (only servers)
                        Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name
                        tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      1001       17420      1069/iobroker.js-co
                        tcp        0      0 0.0.0.0:1886            0.0.0.0:*               LISTEN      1001       16738      1263/io.mqtt.0
                        tcp        0      0 0.0.0.0:1887            0.0.0.0:*               LISTEN      1001       16739      1263/io.mqtt.0
                        tcp        0      0 0.0.0.0:1500            0.0.0.0:*               LISTEN      1001       16038      1341/io.sonoff.0
                        tcp        0      0 127.0.0.1:8088          0.0.0.0:*               LISTEN      999        115698     17948/influxd
                        tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      0          14526      516/cupsd
                        tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          13713      558/sshd: /usr/sbin
                        tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      115        11867      529/redis-server 12
                        tcp6       0      0 ::1:6379                :::*                    LISTEN      115        11868      529/redis-server 12
                        tcp6       0      0 :::3000                 :::*                    LISTEN      116        12175      522/grafana-server
                        tcp6       0      0 ::1:631                 :::*                    LISTEN      0          14525      516/cupsd
                        tcp6       0      0 :::8081                 :::*                    LISTEN      1001       15761      1135/io.admin.0
                        tcp6       0      0 :::22                   :::*                    LISTEN      0          13723      558/sshd: /usr/sbin
                        udp        0      0 0.0.0.0:68              0.0.0.0:*                           0          14569      492/dhcpcd
                        udp        0      0 0.0.0.0:631             0.0.0.0:*                           0          13738      587/cups-browsed
                        udp        0      0 0.0.0.0:47757           0.0.0.0:*                           108        14449      398/avahi-daemon: r
                        udp        0      0 0.0.0.0:5353            0.0.0.0:*                           108        14447      398/avahi-daemon: r
                        udp6       0      0 :::41076                :::*                                108        14450      398/avahi-daemon: r
                        udp6       0      0 :::5353                 :::*                                108        14448      398/avahi-daemon: r
                        pi@raspberrypi:/usr/lib/influxdb $
                        
                        LG Gerhard
                        M 1 Reply Last reply Reply Quote 0
                        • M
                          maximinus @maximinus last edited by

                          @maximinus
                          ich schon wieder.
                          Ich habe jetzt aus Interesse nochmals influx aufgerufen, das meldet sich aber zeigt nichts an und scheint aber auf eine Eingabe zu warten

                          pi@raspberrypi:/etc/influxdb $ influx
                          Connected to http://localhost:8086 version 1.8.10
                          InfluxDB shell version: 1.8.10
                          > show databases
                          ERR: Post http://localhost:8086/query?chunked=true&db=&epoch=ns&q=show+databases: dial tcp [::1]:8086: connect: connection refused
                          >
                          
                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          467
                          Online

                          31.7k
                          Users

                          79.7k
                          Topics

                          1.3m
                          Posts

                          3
                          17
                          5471
                          Loading More Posts
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes
                          Reply
                          • Reply as topic
                          Log in to reply
                          Community
                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                          The ioBroker Community 2014-2023
                          logo