Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. InfluxDB
    5. [gelöst] InfluxDB 1.8 funktioniert aber zeigt Fehler

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [gelöst] InfluxDB 1.8 funktioniert aber zeigt Fehler

    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Lollo_C last edited by Lollo_C

      Hallo Zusammen,
      ich betreibe seit ca. 3 Jahren ein ioBroker- System mit Master, Slave und zig Geräten und Instanzen. Wie das nun mal so ist, der Appetit kommt mit dem Essen. Ich speichere viele Daten in einer InfluxDB 1.8 und visualisiere in Grafana.

      Vor kurzem ist mir aufgefallen, dass das Backup der InfluxDB fast 1,5 GB groß war. Daraufhin habe ich das Loggen von einigen Datenpunkten abgestellt und die entsprechenden Measurements mit Hilfe von InfluxDB Studio gelöscht. So konnte ich die Datenbank auf 750 MB verkleinern. Aber sie wird wieder wachsen…

      Soviel zur Vorgeschichte. Jetzt mein Problem: Wenn ich in Putty influxdb aufrufe und mir die Datenbanken anzeigen lassen will, kommt eine Fehlermeldung:```
      code_text

      Connected to http://localhost:8086 version 1.8.10
      InfluxDB shell version: 1.8.10
      > show databases
      ERR: unable to parse authentication credentials
      Warning: It is possible this error is due to not setting a database.
      Please set a database with the command "use <database>".
      > use iobroker
      ERR: unable to parse authentication credentials
      DB does not exist!``````
      
      code_text
      

      Laut Fehlermeldung existiert die Datenbank iobroker nicht, obwohl die Daten in Grafana angezeigt und auch im Backitup gesichert werden.

      Leider bin ich im Moment ziemlich ratlos und weiß nicht, warum die Datenbank und auch die Users nicht in Putty angezeigt werden. Kann mir jemand weiterhelfen?
      Hier die Zusammenfassung der iob diag:

      code_text

      
      Operatingsystem:        Raspbian GNU/Linux 10 (buster)
      Kernel:                 5.10.103-v7l+
      Installation:           Native
      Timezone:               Europe/Berlin (CEST, +0200)
      User-ID:                1000
      X-Server:               false
      Boot Target:            graphical.target
      
      Pending OS-Updates:     6
      Pending iob updates:    7
      
      Nodejs-Installation:    /usr/bin/nodejs         v18.17.1
                              /usr/bin/node           v18.17.1
                              /usr/bin/npm            9.6.7
                              /usr/bin/npx            9.6.7
      
      Recommended versions are nodejs 18.x.y and npm 9.x.y
      Your nodejs installation is correct
      
      MEMORY:
                    total        used        free      shared  buff/cache   available
      Mem:           3.8G        2.2G        464M        192M        1.1G        1.4G
      Swap:           99M         99M        0.0K
      Total:         3.9G        2.3G        465M
      
      Active iob-Instances:   32
      Active repo(s): stable
      
      ioBroker Core:          js-controller           4.0.24
                              admin                   6.3.5
      
      ioBroker Status:        iobroker is running on this host.
      
      
      Objects type: jsonl
      States  type: redis
      
      Status admin and web instance:
      + system.adapter.admin.0                  : admin                 : RasPi4                                   -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
        system.adapter.vis-material-webfont.0   : vis-material-webfont  : RasPi4                                   -  enabled
      + system.adapter.web.0                    : web                   : RasPi4                                   -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
      
      Objects:                11821
      States:                 9878
      
      Size of iob-Database:
      
      25M     /opt/iobroker/iobroker-data/objects.jsonl
      13M     /opt/iobroker/iobroker-data/objects.json.migrated
      13M     /opt/iobroker/iobroker-data/objects.json.bak.migrated
      4.0K    /opt/iobroker/iobroker-data/states.json.bak
      4.0K    /opt/iobroker/iobroker-data/states.json
      
      code_text
      

      Vielen Dank im Voraus
      Mfg
      Wilfried

      crunchip 1 Reply Last reply Reply Quote 0
      • crunchip
        crunchip Forum Testing Most Active @Lollo_C last edited by

        @lollo_c sagte in InfluxDB 1.8 funktioniert aber zeigt Fehler:

        show databases ERR: unable to parse authentication credentials

        probier mal deinen user und passwort

        influx -username admin -password ********
        
        L 1 Reply Last reply Reply Quote 0
        • L
          Lollo_C @crunchip last edited by

          @crunchip Danke für die schnelle Antwort. Damit funktioniert es. Kannst Du mir bitte erklären, warum ich mich jetzt mit admin anmelden muss? Auf meinem Testsystem brauche ich das nicht.

          crunchip 1 Reply Last reply Reply Quote 0
          • crunchip
            crunchip Forum Testing Most Active @Lollo_C last edited by

            @lollo_c https://docs.influxdata.com/influxdb/v1.7/administration/authentication_and_authorization/#set-up-authentication

            L 1 Reply Last reply Reply Quote 0
            • L
              Lollo_C @crunchip last edited by

              @crunchip entschuldige bitte, dass es etwas länger gedauert hat. Ich habe noch einmal die influxdb.conf meines Produktiv- und meines Testsystems mit der von Dir verlinkten Doku verglichen.

              In beiden Dateien sind nur die ersten vier Parameter auskommentiert bzw. geändert:

              • [http]
                enabled = true
                bind-address = ":8086"
                auth-enabled = true # ✨
                log-enabled = true

              Ich hatte dies damals so in der Installationsanleitung vom Mathias Kleine so gelesen. Die anderen Parameter sind auskommentiert:

              • write-tracing = false
                pprof-enabled = true
                pprof-auth-enabled = true
                debug-pprof-enabled = false
                ping-auth-enabled = true
                https-enabled = true
                https-certificate = "/etc/ssl/influxdb.pem"

              Auf der Testumgebung klappt es ja komischerweise. Wie dem auch sei: Jetzt weiß ich Bescheid. Vielen Dank.

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

              Support us

              ioBroker
              Community Adapters
              Donate

              559
              Online

              31.7k
              Users

              79.7k
              Topics

              1.3m
              Posts

              influxdb 1.8
              2
              5
              543
              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