Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [ Geklärt ] Problem bei Influx Installation

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    [ Geklärt ] Problem bei Influx Installation

    This topic has been deleted. Only users with topic management privileges can see it.
    • wendy2702
      wendy2702 @Altersrentner last edited by

      @altersrentner Hatt ich zwar schon geschrieben kannst aber auch gerne nochmal hier schauen

      cat /etc/hosts
      
      A 3 Replies Last reply Reply Quote 0
      • A
        Altersrentner @crunchip last edited by

        @crunchip
        Danke!
        Jetz mache ich noch ein Backup
        mal sehen was dann ist

        1 Reply Last reply Reply Quote 0
        • A
          Altersrentner @wendy2702 last edited by

          @wendy2702 super Danke😊 👍

          1 Reply Last reply Reply Quote 0
          • A
            Altersrentner @wendy2702 last edited by

            @wendy2702
            Es erscheint wieder ein Error bei Grafana

            DEBUG] [grafana] - Start Grafana Backup ...
            [DEBUG] [grafana] - Created grafana_tmp directory
            [DEBUG] [grafana] - Created dashboard directory
            [DEBUG] [grafana] - Created dashboards_manually_restore directory
            [DEBUG] [grafana] - Created datasource directory
            [DEBUG] [grafana] - start Grafana request ...
            [DEBUG] [grafana] - Grafana is available ... Status: 200
            [DEBUG] [grafana] - Error on Grafana Dashoard Request: Error: Request failed with status code 401
            [DEBUG] [grafana] - start Grafana backup compress ...
            [DEBUG] [grafana] - Try deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp"
            [DEBUG] [grafana] - Grafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted
            [DEBUG] [grafana] - cannot found Grafana Backup files
            [DEBUG] [grafana] - done
            [DEBUG] [cifs] - done
            [DEBUG] [googledrive] - Google Drive: Copy iobroker_2021_03_07-19_08_53_influx grafana_backupiobroker.tar.gz...
            
            crunchip 1 Reply Last reply Reply Quote 0
            • crunchip
              crunchip Forum Testing Most Active @Altersrentner last edited by

              @altersrentner sagte in [ Geklärt ] Problem bei Influx Installation:

              Error on Grafana Dashoard Request: Error: Request failed with status code 401

              Falschen Benutzerdaten oder Api-Key falsch
              Grafana ist erreichbar (siehe Status 200)

              A 2 Replies Last reply Reply Quote 0
              • A
                Altersrentner @crunchip last edited by

                @crunchip
                Danke, habe jetzt beim Host die IP eingestellt
                und ein neuer Versuch

                1 Reply Last reply Reply Quote 0
                • A
                  Altersrentner @crunchip last edited by

                  @crunchip

                  Started iobroker ...
                  [DEBUG] [mount] - first mount attempt with smb option failed. try next mount attempt without smb option ...
                  [ERROR] [mount] - [undefined Error: Command failed: sudo mount -t cifs -o username=Backup,password=****,rw,file_mode=0777,dir_mode=0777 //192.168.178.35/homes/Backup/iobroker/minimalPi4 /opt/iobroker/backups
                  Unable to find suitable address.
                  
                  [ERROR] [mount] - [IGNORED] Error: Command failed: sudo mount -t cifs -o username=Backup,password=****,rw,file_mode=0777,dir_mode=0777 //192.168.178.35/homes/Backup/iobroker/minimalPi4 /opt/iobroker/backups
                  Unable to find suitable address.
                  
                  [DEBUG] [iobroker] - host.raspberrypi 14084 states saved
                  
                  [DEBUG] [iobroker] - host.raspberrypi 16331 objects saved
                  
                  [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2021_03_07-19_34_18_influx grafana2_backupiobroker.tar.gz
                  
                  [DEBUG] [iobroker] - done
                  [DEBUG] [influxDB] - Start InfluxDB Backup ...
                  [DEBUG] [influxDB] - InfluxDB Backup tmp directory created 
                  [DEBUG] [influxDB] - Packed 15MB so far...
                  [DEBUG] [influxDB] - Packed 47MB so far...
                  [DEBUG] [influxDB] - Packed 79MB so far...
                  [DEBUG] [influxDB] - Packed 149MB so far...
                  [DEBUG] [influxDB] - Packed 235MB so far...
                  [DEBUG] [influxDB] - Packed 313MB so far...
                  [DEBUG] [influxDB] - Packed 405MB so far...
                  [DEBUG] [influxDB] - Packed 481MB so far...
                  [DEBUG] [influxDB] - Packed 562MB so far...
                  [DEBUG] [influxDB] - Packed 646MB so far...
                  [DEBUG] [influxDB] - Packed 727MB so far...
                  [DEBUG] [influxDB] - Packed 817MB so far...
                  [DEBUG] [influxDB] - Backup created: /opt/iobroker/backups/influxDB_2021_03_07-19_34_51_influx grafana2_backupiobroker.tar.gz
                  [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory
                  [DEBUG] [influxDB] - InfluxDB tmp directory was successfully deleted
                  [DEBUG] [influxDB] - done
                  [DEBUG] [grafana] - Start Grafana Backup ...
                  [DEBUG] [grafana] - Created grafana_tmp directory
                  [DEBUG] [grafana] - Created dashboard directory
                  [DEBUG] [grafana] - Created dashboards_manually_restore directory
                  [DEBUG] [grafana] - Created datasource directory
                  [DEBUG] [grafana] - start Grafana request ...
                  [DEBUG] [grafana] - Grafana is available ... Status: 200
                  [DEBUG] [grafana] - found Dashboard: n1-aussen-wz
                  [DEBUG] [grafana] - start Grafana backup compress ...
                  [DEBUG] [grafana] - Backup created: /opt/iobroker/backups/grafana_2021_03_07-19_42_25_backupiobroker.tar.gz
                  [DEBUG] [grafana] - Try deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp"
                  [DEBUG] [grafana] - Grafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted
                  [DEBUG] [grafana] - done
                  [DEBUG] [cifs] - done
                  [DEBUG] [googledrive] - Google Drive: Copy iobroker_2021_03_07-19_34_18_influx grafana2_backupiobroker.tar.gz...
                  [DEBUG] [googledrive] - Google Drive: Copy influxDB_2021_03_07-19_34_51_influx grafana2_backupiobroker.tar.gz...
                  

                  Ich glaube jetzt hat es geklappt👍 oder👎

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

                    @altersrentner sieht so aus, grafana und influx, dein cifs hast aber noch aktiv(was du ja nicht nutzt), also Haken noch raus bei Nas.
                    aber deine Backups sind gemacht
                    musst nur dran denken, das du bei deiner SSD Influx und Grafana installiert haben musst um das backup ein zu spielen

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      Altersrentner @crunchip last edited by

                      @crunchip OK

                      
                      wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
                      source /etc/os-release
                      echo "deb https://repos.influxdata.com/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
                       
                      sudo apt update
                      sudo apt install -y influxdb
                      sudo systemctl unmask influxdb.service
                      sudo systemctl start influxdb.service
                      sudo systemctl enable influxdb.service
                      

                      Damit installiere ich Influx.
                      Kannst Du mir bitte noch den Code für Grafana mitteilen?
                      Danke
                      Mit freundlichen Grüßen
                      Michael

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

                        @altersrentner
                        apt-Schlüssel zufügen

                        wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
                        

                        grafana repository hinzufügen

                        echo "deb https://packages.grafana.com/oss/deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
                        

                        installieren

                        sudo apt-get update
                        sudo apt-get install -y grafana
                        

                        aktivieren und starten

                        sudo /bin/systemctl enable grafana-server
                        sudo /bin/systemctl start grafana-server
                        

                        aufrufen dann über http://<ip address>:3000
                        Name und Kennwort ist standard
                        admin
                        admin

                        A 2 Replies Last reply Reply Quote 0
                        • A
                          Altersrentner @crunchip last edited by

                          @crunchip D A N K E !
                          Mit freundlichen Grüßen
                          Michael

                          1 Reply Last reply Reply Quote 0
                          • A
                            Altersrentner @crunchip last edited by

                            @crunchip Hallo,
                            Die neue SSD ist angeschlossen.
                            ioBroker läuft,
                            InfluxDB ist wieder hergestellt,
                            Influx Adapter ist grün,
                            Grafana ist wieder hergestellt,
                            API Key ist eingegeben
                            In vis kommt bei den Graphen die Meldung:
                            IP hat Verbindung abgelehnt.
                            Wenn ich Grafana öffne erscheinen meine angelegten
                            Dashboards nicht.
                            Gibt es eine Möglichkeit sie zu finden?
                            Graf2.png
                            Ist das Protokoll so ok?
                            Mit freundlichen Grüßen
                            Michael

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

                              @altersrentner sagte in [ Geklärt ] Problem bei Influx Installation:

                              In vis kommt bei den Graphen die Meldung:
                              IP hat Verbindung abgelehnt.

                              du meinst bei der Einbindung eines Dashboards in vis? dein Rechner hat ja nun ne neue Ip oder? Dann stimmt ja der Pfad nicht mehr(IP).
                              in deinem Screen, sofern ichs richtig entziffern kann, steht dein api key, bez. Nutzername/Passwort falsch

                              @altersrentner sagte in [ Geklärt ] Problem bei Influx Installation:

                              IP hat Verbindung abgelehnt.

                              du musst auch wieder die Grafana.ini bearbeiten

                              sudo nano /etc/grafana/grafana.ini
                              

                              dort musst du folgende Einträge anppassen(ebenfalls das ; vor jeder dieser Zeilen entfernen, damit dies aktiv werden
                              orgName musst du natürlich mit deinem ersetzen

                              [security]
                              allow_embedding = true
                               
                              [auth.anonymous]
                              enabled = true 
                              org_name = Main Org.
                              org_role = Viewer
                               
                              [users]
                              allow_sign_up = false
                              

                              anschliesssend grafana-server neustarten

                              sudo service grafana-server restart
                              
                              A 3 Replies Last reply Reply Quote 0
                              • A
                                Altersrentner @crunchip last edited by

                                @crunchip sagte in [ Geklärt ] Problem bei Influx Installation:

                                dein Rechner hat ja nun ne neue Ip oder? Dann stimmt ja der Pfad nicht mehr(IP).
                                Hallo,
                                Neindie IP ist geblieben. Benutzer und Passwort solten auch richtig sein..
                                Ich stecke nochmal die alte FP an. Mal sehen ob ich was finde
                                MfG Michael

                                1 Reply Last reply Reply Quote 0
                                • A
                                  Altersrentner @crunchip last edited by

                                  @crunchip
                                  Bei mir steht ei Semikolon vor.
                                  Bleibt das stehen?

                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    Altersrentner @crunchip last edited by

                                    @crunchip
                                    Die ini ist bearbeitet

                                    DEBUG] [grafana] - Start Grafana Restore ...
                                    [DEBUG] [grafana] - filename for restore: /opt/iobroker/backups/grafana_2021_03_08-02_18_32_backupiobroker.tar.gz
                                    [DEBUG] [grafana] - Grafana tmp directory created: /opt/iobroker/backups/grafana_tmp
                                    [DEBUG] [grafana] - start decompress
                                    [DEBUG] [grafana] - Grafana request started
                                    [DEBUG] [grafana] - Grafana is available ... Status: 200
                                    [DEBUG] [grafana] - Try to Restore: /opt/iobroker/backups/grafana_tmp/datasource/InfluxDB-1.json
                                    [DEBUG] [grafana] - Try to Restore: /opt/iobroker/backups/grafana_tmp/datasource/InfluxDB.json
                                    [DEBUG] [grafana] - datasoure restore "InfluxDB-1" finish: {"datasource":{"id":2,"uid":"s1r54cgRz","orgId":1,"name":"InfluxDB-1","type":"influxdb","typeLogoUrl":"","access":"proxy","url":"http://192.168.178.41:8086","password":"","user":"admin","database":"iobroker","basicAuth":false,"basicAuthUser":"","basicAuthPassword":"","withCredentials":false,"isDefault":false,"jsonData":{"httpMode":"GET"},"secureJsonFields":{},"version":1,"readOnly":false},"id":2,"message":"Datasource added","name":"InfluxDB-1"}
                                    [DEBUG] [grafana] - cannot restore datasource "InfluxDB": "data source with the same name already exists"
                                    [DEBUG] [grafana] - Try to Restore: /opt/iobroker/backups/grafana_tmp/dashboards/n1-aussen-wz.json
                                    [DEBUG] [grafana] - cannot restore dashboard "n1-aussen-wz": {"message":"invalid API key"}
                                    [DEBUG] [grafana] - Grafana request ended
                                    [DEBUG] [grafana] - Try deleting the Grafana tmp directory
                                    [DEBUG] [grafana] - Grafana tmp directory was successfully deleted
                                    [DEBUG] [grafana] - Grafana Restore completed successfully
                                    [EXIT] Grafana restore done
                                    

                                    Da stehen die Daten:

                                    /opt/iobroker/backups/grafana_tmp/dashboards/n1-aussen-wz.json
                                    [DEBUG] [grafana] - cannot restore dashboard "n1-aussen-wz": 
                                    

                                    irgend etwas stimmt noch nicht

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

                                      @altersrentner laut deinem log

                                      • hast du ne InfluxDB.json und eine InfluxDB.json1, InfluxDB.json existiert aber scheinbar schon
                                      • für n1-aussen-wz.json stimmt scheinbar dein api key nicht

                                      ich bin da nicht so fit drin, da ich diese backup Funktion via backitup nicht verwende

                                      du hast doch ein backup von Grafana erstellt grafana_2021_03_07-19_42_25_backupiobroker.tar.gz und dieses muss zurückgespielt werden.
                                      was beinhaltet dieses backup?

                                      A 1 Reply Last reply Reply Quote 0
                                      • A
                                        Altersrentner @crunchip last edited by

                                        @crunchip
                                        Das Backup habe ich schon mehrmals zurückgespielt.
                                        Es ist von der alten Platte .
                                        Habe mir jetzt das Skript aus Grafana der alten Platte geladen

                                        {
                                          "datasource": "InfluxDB-1",
                                          "aliasColors": {
                                            "Temperatur Wohnzimmer": "rgb(221, 176, 63)"
                                          },
                                          "bars": false,
                                          "dashLength": 10,
                                          "dashes": false,
                                          "decimals": 1,
                                          "fill": 1,
                                          "fillGradient": 0,
                                          "gridPos": {
                                            "h": 9,
                                            "w": 12,
                                            "x": 12,
                                            "y": 0
                                          },
                                          "hiddenSeries": false,
                                          "id": 4,
                                          "legend": {
                                            "avg": false,
                                            "current": true,
                                            "max": true,
                                            "min": true,
                                            "show": true,
                                            "total": false,
                                            "values": true
                                          },
                                          "lines": true,
                                          "linewidth": 1,
                                          "nullPointMode": "null",
                                          "options": {
                                            "dataLinks": [
                                              {
                                                "title": "",
                                                "url": ""
                                              }
                                            ]
                                          },
                                          "percentage": false,
                                          "pointradius": 2,
                                          "points": false,
                                          "renderer": "flot",
                                          "seriesOverrides": [
                                            {
                                              "alias": "Außentemperatur",
                                              "fill": 3,
                                              "fillGradient": 0,
                                              "yaxis": 1
                                            },
                                            {
                                              "alias": "Temperatur Wohnzimmer",
                                              "yaxis": 1
                                            },
                                            {
                                              "alias": "Power",
                                              "yaxis": 2
                                            }
                                          ],
                                          "spaceLength": 10,
                                          "stack": false,
                                          "steppedLine": false,
                                          "targets": [
                                            {
                                              "alias": "Außentemperatur",
                                              "groupBy": [
                                                {
                                                  "params": [
                                                    "$__interval"
                                                  ],
                                                  "type": "time"
                                                },
                                                {
                                                  "params": [
                                                    "previous"
                                                  ],
                                                  "type": "fill"
                                                }
                                              ],
                                              "measurement": "mihome.0.devices.weather_v1_158d00023213f6.temperature",
                                              "orderByTime": "ASC",
                                              "policy": "default",
                                              "refId": "A",
                                              "resultFormat": "time_series",
                                              "select": [
                                                [
                                                  {
                                                    "params": [
                                                      "value"
                                                    ],
                                                    "type": "field"
                                                  },
                                                  {
                                                    "params": [],
                                                    "type": "max"
                                                  }
                                                ]
                                              ],
                                              "tags": []
                                            },
                                            {
                                              "alias": "Temperatur Heizkessel",
                                              "groupBy": [
                                                {
                                                  "params": [
                                                    "$__interval"
                                                  ],
                                                  "type": "time"
                                                },
                                                {
                                                  "params": [
                                                    "previous"
                                                  ],
                                                  "type": "fill"
                                                }
                                              ],
                                              "measurement": "fhem.0.Temp_Heizkessel.temperature",
                                              "orderByTime": "ASC",
                                              "policy": "default",
                                              "refId": "B",
                                              "resultFormat": "time_series",
                                              "select": [
                                                [
                                                  {
                                                    "params": [
                                                      "value"
                                                    ],
                                                    "type": "field"
                                                  },
                                                  {
                                                    "params": [],
                                                    "type": "max"
                                                  }
                                                ]
                                              ],
                                              "tags": []
                                            },
                                            {
                                              "alias": "Temperatur Puffer",
                                              "groupBy": [
                                                {
                                                  "params": [
                                                    "$__interval"
                                                  ],
                                                  "type": "time"
                                                },
                                                {
                                                  "params": [
                                                    "previous"
                                                  ],
                                                  "type": "fill"
                                                }
                                              ],
                                              "measurement": "hm-rpc.0.OEQ0673599.2.TEMPERATURE",
                                              "orderByTime": "ASC",
                                              "policy": "default",
                                              "refId": "C",
                                              "resultFormat": "time_series",
                                              "select": [
                                                [
                                                  {
                                                    "params": [
                                                      "value"
                                                    ],
                                                    "type": "field"
                                                  },
                                                  {
                                                    "params": [],
                                                    "type": "max"
                                                  }
                                                ]
                                              ],
                                              "tags": []
                                            },
                                            {
                                              "alias": "Power",
                                              "groupBy": [
                                                {
                                                  "params": [
                                                    "$__interval"
                                                  ],
                                                  "type": "time"
                                                },
                                                {
                                                  "params": [
                                                    "previous"
                                                  ],
                                                  "type": "fill"
                                                }
                                              ],
                                              "measurement": "shelly.0.SHSW-PM#8CAAB542C16C#1.Relay0.Power",
                                              "orderByTime": "ASC",
                                              "policy": "default",
                                              "refId": "E",
                                              "resultFormat": "time_series",
                                              "select": [
                                                [
                                                  {
                                                    "params": [
                                                      "value"
                                                    ],
                                                    "type": "field"
                                                  },
                                                  {
                                                    "params": [],
                                                    "type": "max"
                                                  }
                                                ]
                                              ],
                                              "tags": []
                                            }
                                          ],
                                          "thresholds": [],
                                          "timeFrom": null,
                                          "timeRegions": [],
                                          "timeShift": null,
                                          "title": "Temperatur Außen  / Temperatur Kessel /Temperatur Puffer9 / KesselStatus",
                                          "tooltip": {
                                            "shared": true,
                                            "sort": 0,
                                            "value_type": "individual"
                                          },
                                          "type": "graph",
                                          "xaxis": {
                                            "buckets": null,
                                            "mode": "time",
                                            "name": null,
                                            "show": true,
                                            "values": []
                                          },
                                          "yaxes": [
                                            {
                                              "decimals": 1,
                                              "format": "celsius",
                                              "label": null,
                                              "logBase": 1,
                                              "max": null,
                                              "min": null,
                                              "show": true
                                            },
                                            {
                                              "decimals": 1,
                                              "format": "watt",
                                              "label": null,
                                              "logBase": 1,
                                              "max": null,
                                              "min": null,
                                              "show": true
                                            }
                                          ],
                                          "yaxis": {
                                            "align": false,
                                            "alignLevel": null
                                          }
                                        }
                                        

                                        Kann man das einbinden?
                                        MfG Michael

                                        crunchip 2 Replies Last reply Reply Quote 0
                                        • crunchip
                                          crunchip Forum Testing Most Active @Altersrentner last edited by

                                          @altersrentner ist das dein einziges Dashboard? Ja das kann man einfügen.
                                          Auf deiner Grafana Seite, links auf das +,dann Import
                                          unterhalb von Import via panel json, kannst du es einfügen.

                                          @altersrentner sagte in [ Geklärt ] Problem bei Influx Installation:

                                          Das Backup habe ich schon mehrmals zurückgespielt.

                                          dann ist es ja scheinbar schon vorhanden. Schau doch mal unter folgendem Pfad was du so findest

                                          var/lib/grafana
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • crunchip
                                            crunchip Forum Testing Most Active @Altersrentner last edited by

                                            @altersrentner ansonsten, wenn es speziell um's Backup geht, könntest du dort mal nachfragen

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            900
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            influxdb
                                            12
                                            178
                                            26424
                                            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