Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Backit-Up Error beim erstellen Grafana, Influx und JS

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Backit-Up Error beim erstellen Grafana, Influx und JS

    This topic has been deleted. Only users with topic management privileges can see it.
    • simatec
      simatec Developer Most Active @Urs last edited by

      @urs sagte in Backit-Up Error beim erstellen Grafana, Influx und JS:

      Bei JS liegt der Spiegel außerhalb von /opt/iobroker ?

      Keine Ahnung . Wie checke ich das?

      Zeige mal die Einstellungen vom Spiegelpfad im JavaScript Adapter und die von Backitup

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

        @simatec sagte in Backit-Up Error beim erstellen Grafana, Influx und JS:

        Für Influx Backups auf einem anderen System musst du in Backitup auf Remote stellen und die IP des Influx Servers eintragen

        Auch wieder was gelernt.

        1 Reply Last reply Reply Quote 0
        • U
          Urs @wendy2702 last edited by

          @wendy2702 sagte in Backit-Up Error beim erstellen Grafana, Influx und JS:

          Aber warum richtest du nicht für den Ibflux/Grafana Container ein automatisches Backup unter Proxmox ein wenn es eh ein eigener Container ist.

          Das ist schon so eingerichtet, aber da ist der Platz begrenzt. Daher kann ich da auch nur maximal 10 Backups vorhalten und wenn der Proxmox verreckt ist alles weg. Wollte ja mal die Backups auf eine externe Platte welche an der Fritzbox hängt auslagern, aber nachdem ich auch nach tagelangem herumgebastel an der Linuxkonsole nicht hinbekommen habe diese unter Proxmox einzubinden hab ich das aufgegeben. Das nächste Problem ist die Dateigrösse. Den ganzen Container zu speichern benötigt 1.7Gb, das geht sicher auch schlanker indem man nur die unersetzlichen Daten speichert.

          @simatec sagte in Backit-Up Error beim erstellen Grafana, Influx und JS:

          @Urs Für Influx Backups auf einem anderen System musst du in Backitup auf Remote stellen und die IP des Influx Servers eintragen

          Das hatte ich gemacht und ich denke das sollte so passen:
          8e426b80-aeda-49b6-a4df-10066a4f5530-image.png

          @simatec sagte in Backit-Up Error beim erstellen Grafana, Influx und JS:

          @urs sagte in Backit-Up Error beim erstellen Grafana, Influx und JS:

          Bei JS liegt der Spiegel außerhalb von /opt/iobroker ?

          Keine Ahnung . Wie checke ich das?

          Zeige mal die Einstellungen vom Spiegelpfad im JavaScript Adapter und die von Backitup

          Meinst Du das?
          21bffd0f-cc15-46a1-b82c-6581dce67514-image.png
          da75a301-c74c-4c99-b6bd-3ddb9f3b258e-image.png

          wendy2702 simatec 2 Replies Last reply Reply Quote 0
          • wendy2702
            wendy2702 @Urs last edited by

            @urs sagte in Backit-Up Error beim erstellen Grafana, Influx und JS:

            Den ganzen Container zu speichern benötigt 1.7Gb, das geht sicher auch schlanker indem man nur die unersetzlichen Daten speichert.

            Ja, geht bestimmt schlanker.

            Wobei mir sich bis heute die Frage nach unersetzlichen Daten in einer Smarthome Datenbank stellt. Aber das ist immer eine persönliche Sache und hat nichts mit deinem Problem zu tun.

            1 Reply Last reply Reply Quote 0
            • simatec
              simatec Developer Most Active @Urs last edited by

              @urs
              Hast du influx auch auf deinem System, auf dem iobroker läuft installiert?
              Des Weiteren muss influx nach Änderungen in der conf neugestartet werden. Also wenn du bind geändert hast, bitte im Anschluss neustarten.

              Der Pfad /opt/iobroker ist zum spiegeln sehr schlecht. Nimm einen eigenen Ordner dafür.
              Bei mir ist das z.B /opt/iobroker /scripts

              U 1 Reply Last reply Reply Quote 0
              • U
                Urs @simatec last edited by

                @simatec sagte in Backit-Up Error beim erstellen Grafana, Influx und JS:

                Hast du influx auch auf deinem System, auf dem iobroker läuft installiert?

                Eigentlich nicht. Müsste ich das?

                @simatec sagte in Backit-Up Error beim erstellen Grafana, Influx und JS:

                Der Pfad /opt/iobroker ist zum spiegeln sehr schlecht. Nimm einen eigenen Ordner dafür.
                Bei mir ist das z.B /opt/iobroker /scripts

                Ich meine da hab ich das genommen was der JS-Adapter vorgeschlagen hat. Und der Backitup-Adapter hat sich dann das von dort gekrallt.
                Also mal auf /opt/iobroker/scripts umgestellt und siehe da, es werden 18MB Skripte gepackt und auch auf dem Netzlaufwerk gespeichert. Super Danke schonmal dafür.

                Allerdings ist immer noch das Problem dass InfluxDB keinen Zugriff gewährt. Ich denke da ist der Port schlicht und einfach noch zu...muss ich nochmal anschauen. Und ja, ich hab da jedes mal als ich was geändert habe die Maschine mit dem Influx/Grafana drauf neu gestartet, leider ohne erfolg.

                Was mir aber im Moment mehr sorgen macht ist dass der Iobroker selber keine Backups schreibt. Hier das aktuelle Log

                backitup.0	2021-04-19 22:11:57.106	debug	(381) system.adapter.admin.0: logging true
                backitup.0	2021-04-19 22:11:34.788	debug	(381) [iobroker] exec: done
                backitup.0	2021-04-19 22:11:34.637	debug	(381) [iobroker/umount] done
                backitup.0	2021-04-19 22:11:34.636	debug	(381) [iobroker/umount] umount successfully completed
                backitup.0	2021-04-19 22:11:29.599	debug	(381) [iobroker/umount] mount activ, umount is started ...
                backitup.0	2021-04-19 22:11:29.440	debug	(381) [iobroker/historyJSON] done
                backitup.0	2021-04-19 22:11:29.440	debug	(381) [iobroker/historyJSON] new history json values created
                backitup.0	2021-04-19 22:11:29.027	debug	(381) [iobroker/historyHTML] done
                backitup.0	2021-04-19 22:11:29.027	debug	(381) [iobroker/historyHTML] new history html values created
                backitup.0	2021-04-19 22:11:28.423	debug	(381) [iobroker/email] done
                backitup.0	2021-04-19 22:11:28.423	debug	(381) sendTo "send" to system.adapter.email.0 from system.adapter.backitup.0
                backitup.0	2021-04-19 22:11:28.269	debug	(381) [iobroker/clean] done
                backitup.0	2021-04-19 22:11:28.269	debug	(381) [iobroker/clean] Backup files not deleted from /opt/iobroker/backups because some errors.
                backitup.0	2021-04-19 22:11:27.667	debug	(381) [iobroker/cifs] done
                backitup.0	2021-04-19 22:11:27.365	debug	(381) [iobroker/javascripts] done
                backitup.0	2021-04-19 22:11:27.362	debug	(381) [iobroker/javascripts] Backup created: /opt/iobroker/backups/javascripts_2021_04_19-22_11_19_backupiobroker.tar.gz
                backitup.0	2021-04-19 22:11:24.764	debug	(381) [iobroker/javascripts] Packed 18MB so far...
                backitup.0	2021-04-19 22:11:19.290	debug	(381) [iobroker/grafana] done
                backitup.0	2021-04-19 22:11:19.290	debug	(381) [iobroker/grafana] cannot found Grafana Backup files
                backitup.0	2021-04-19 22:11:19.290	debug	(381) [iobroker/grafana] Grafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted
                backitup.0	2021-04-19 22:11:16.706	debug	(381) [iobroker/grafana] Try deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp"
                backitup.0	2021-04-19 22:11:14.363	debug	(381) [iobroker/grafana] start Grafana backup compress ...
                backitup.0	2021-04-19 22:11:14.362	debug	(381) [iobroker/grafana] found Dashboard: proxmox-ve-home
                backitup.0	2021-04-19 22:11:14.358	debug	(381) [iobroker/grafana] found Dashboard: proxmox-ve-node
                backitup.0	2021-04-19 22:11:14.357	debug	(381) [iobroker/grafana] found Dashboard: proxmox-vm-overview
                backitup.0	2021-04-19 22:11:14.353	debug	(381) [iobroker/grafana] found Dashboard: proxmox
                backitup.0	2021-04-19 22:11:14.337	debug	(381) [iobroker/grafana] found Dashboard: proxmox-ve-alert
                backitup.0	2021-04-19 22:11:14.309	debug	(381) [iobroker/grafana] found Dashboard: proxmox-ve-kvm
                backitup.0	2021-04-19 22:11:14.295	debug	(381) [iobroker/grafana] found Dashboard: proxmox-ve-network
                backitup.0	2021-04-19 22:11:14.268	debug	(381) [iobroker/grafana] found Dashboard: proxmox-ve-storages
                backitup.0	2021-04-19 22:11:14.240	debug	(381) [iobroker/grafana] found Dashboard: new-dashboard-copy
                backitup.0	2021-04-19 22:11:14.197	debug	(381) [iobroker/grafana] Error on Grafana Datasource Request
                backitup.0	2021-04-19 22:11:14.179	debug	(381) [iobroker/grafana] Grafana is available ... Status: 200
                backitup.0	2021-04-19 22:11:14.158	debug	(381) [iobroker/grafana] start Grafana request ...
                backitup.0	2021-04-19 22:11:14.139	debug	(381) [iobroker/grafana] Created datasource directory
                backitup.0	2021-04-19 22:11:13.605	debug	(381) [iobroker/grafana] Created dashboards_manually_restore directory
                backitup.0	2021-04-19 22:11:13.511	debug	(381) [iobroker/grafana] Created dashboard directory
                backitup.0	2021-04-19 22:11:13.425	debug	(381) [iobroker/grafana] Created grafana_tmp directory: "/opt/iobroker/backups/grafana_tmp"
                backitup.0	2021-04-19 22:11:13.335	debug	(381) [iobroker/grafana] Start Grafana Backup ...
                backitup.0	2021-04-19 22:11:12.431	debug	(381) [iobroker/influxDB] backup: dial tcp 192.168.1.16:8088: connect: connection refused
                backitup.0	2021-04-19 22:11:12.430	debug	(381) [iobroker/influxDB] 2021/04/19 22:08:27 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 2m45.216s and retrying (9)...
                backitup.0	2021-04-19 22:11:12.430	debug	(381) [iobroker/influxDB] 2021/04/19 22:07:43 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 43.477s and retrying (8)...
                backitup.0	2021-04-19 22:11:12.430	debug	(381) [iobroker/influxDB] 2021/04/19 22:07:32 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 11.441s and retrying (7)...
                backitup.0	2021-04-19 22:11:12.430	debug	(381) [iobroker/influxDB] 2021/04/19 22:07:29 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 3.01s and retrying (6)...
                backitup.0	2021-04-19 22:11:12.430	debug	(381) [iobroker/influxDB] 2021/04/19 22:07:27 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 2s and retrying (5)...
                backitup.0	2021-04-19 22:11:12.430	debug	(381) [iobroker/influxDB] 2021/04/19 22:07:25 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 2s and retrying (4)...
                backitup.0	2021-04-19 22:11:12.430	debug	(381) [iobroker/influxDB] 2021/04/19 22:07:23 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 2s and retrying (3)...
                backitup.0	2021-04-19 22:11:12.430	debug	(381) [iobroker/influxDB] 2021/04/19 22:07:21 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 2s and retrying (2)...
                backitup.0	2021-04-19 22:11:12.430	debug	(381) [iobroker/influxDB] 2021/04/19 22:07:19 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 2s and retrying (1)...
                backitup.0	2021-04-19 22:11:12.430	debug	(381) [iobroker/influxDB] 2021/04/19 22:07:17 Download shard 0 failed dial tcp 192.168.1.16:8088: connect: connection refused. Waiting 2s and retrying (0)...
                backitup.0	2021-04-19 22:11:12.430	debug	(381) [iobroker/influxDB] [IGNORED] Error: Command failed: influxd backup -portable -database iobroker -host 192.168.1.16:8088 "/opt/iobroker/backups/influxDB_2021_04_19-22_07_16_backupiobroker"
                backitup.0	2021-04-19 22:11:12.429	debug	(381) [iobroker/influxDB] InfluxDB tmp directory was successfully deleted
                backitup.0	2021-04-19 22:11:12.251	debug	(381) [iobroker/influxDB] Try deleting the InfluxDB tmp directory
                backitup.0	2021-04-19 22:07:16.983	debug	(381) [iobroker/influxDB] InfluxDB Backup tmp directory created
                backitup.0	2021-04-19 22:07:16.863	debug	(381) [iobroker/influxDB] Start InfluxDB Backup ...
                backitup.0	2021-04-19 22:07:16.712	debug	(381) [iobroker/iobroker] done
                backitup.0	2021-04-19 22:07:16.642	debug	(381) [iobroker/iobroker] at processTicksAndRejections (internal/process/task_queues.js:93:5)
                backitup.0	2021-04-19 22:07:16.642	debug	(381) [iobroker/iobroker] at /opt/iobroker/node_modules/standard-as-callback/built/index.js:30:51
                backitup.0	2021-04-19 22:07:16.642	debug	(381) [iobroker/iobroker] at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)
                backitup.0	2021-04-19 22:07:16.642	debug	(381) [iobroker/iobroker] at /opt/iobroker/node_modules/ioredis/built/ScanStream.js:38:22
                backitup.0	2021-04-19 22:07:16.642	debug	(381) [iobroker/iobroker] Emitted 'error' event on ScanStream instance at:
                backitup.0	2021-04-19 22:07:16.642	debug	(381) [iobroker/iobroker] at TCP.<anonymous> (net.js:673:12)
                backitup.0	2021-04-19 22:07:16.642	debug	(381) [iobroker/iobroker] at Socket.emit (events.js:315:20)
                backitup.0	2021-04-19 22:07:16.642	debug	(381) [iobroker/iobroker] at Object.onceWrapper (events.js:422:26)
                backitup.0	2021-04-19 22:07:16.642	debug	(381) [iobroker/iobroker] at Socket.<anonymous> (/opt/iobroker/node_modules/ioredis/built/redis/event_handler.js:146:20)
                backitup.0	2021-04-19 22:07:16.642	debug	(381) [iobroker/iobroker] at close (/opt/iobroker/node_modules/ioredis/built/redis/event_handler.js:179:25)
                backitup.0	2021-04-19 22:07:16.641	debug	(381) [iobroker/iobroker] Error: Connection is closed.
                backitup.0	2021-04-19 22:07:16.641	debug	(381) [iobroker/iobroker] ^
                backitup.0	2021-04-19 22:07:16.641	debug	(381) [iobroker/iobroker] throw e;
                backitup.0	2021-04-19 22:07:16.641	debug	(381) [iobroker/iobroker] /opt/iobroker/node_modules/standard-as-callback/built/index.js:6
                backitup.0	2021-04-19 22:07:16.628	debug	(381) [iobroker/iobroker] at processTicksAndRejections (internal/process/task_queues.js:93:5)
                backitup.0	2021-04-19 22:07:16.628	debug	(381) [iobroker/iobroker] at runMicrotasks (<anonymous>)
                backitup.0	2021-04-19 22:07:16.628	debug	(381) [iobroker/iobroker] at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:384:79
                backitup.0	2021-04-19 22:07:16.628	debug	(381) [iobroker/iobroker] at JSON.stringify (<anonymous>)
                backitup.0	2021-04-19 22:07:16.627	debug	(381) [iobroker/iobroker] Uncaught Rejection: RangeError: Invalid string length
                backitup.0	2021-04-19 22:07:12.717	debug	(381) [iobroker/iobroker] host.Iobroker-Live 51012 objects saved
                backitup.0	2021-04-19 22:07:12.647	debug	(381) [iobroker/iobroker] host.Iobroker-Live 33345 states saved
                backitup.0	2021-04-19 22:07:05.043	debug	(381) [iobroker/mount] done
                backitup.0	2021-04-19 22:07:05.042	debug	(381) [iobroker/mount] mount successfully completed
                backitup.0	2021-04-19 22:06:54.814	debug	(381) Backup has started ...
                backitup.0	2021-04-19 22:06:52.747	debug	(381) system.adapter.admin.0: logging false
                backitup.0	2021-04-19 22:11:57.106	debug	(381) system.adapter.admin.0: logging true
                

                Das was da um Zeile 75 rum läuft macht mir sorgen.

                simatec 1 Reply Last reply Reply Quote 0
                • simatec
                  simatec Developer Most Active @Urs last edited by

                  @urs
                  Schaue mal in die Readme.
                  https://github.com/simatec/ioBroker.backitup/blob/master/docs/de/backitup.md#InfluxDB-Backup

                  U 1 Reply Last reply Reply Quote 0
                  • U
                    Urs @simatec last edited by

                    @simatec Ja, sorry, wer lesen kann ist klar im Vorteil...vielen Dank.

                    Werde ich mich dann morgen dran machen.
                    Da gibt es inzwischen eine v2.x der InfluxDB. Auf der bereits laufenden Maschine habe ich v1.8.x. Läuft Backitup auch mit v2.x und sollte ich dann auch die bereits laufende auf v2.x hoch ziehen oder doch besser erstmal auch auf dem Iobroker-System v1.8.x installieren?

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

                      @urs Ich würde da nur die Version aus dem Paketmanager nehmen. Soweit ich weiß ist das die 1.8
                      Mit V2 gibt es wohl noch ein wenig Kopfweh.

                      U 1 Reply Last reply Reply Quote 0
                      • U
                        Urs @Thomas Braun last edited by

                        @thomas-braun
                        Vielen Dank

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

                          @urs

                          pi@raspberrypi:~ $ apt policy influxdb                         influxdb:
                            Installiert:           (keine)
                            Installationskandidat: 1.8.4-1
                            Versionstabelle:
                               1.8.4-1 500
                                  500 https://repos.influxdata.com/debian buster/stable armhf Packages
                               1.6.4-1+deb10u1 500
                                  500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                          pi@raspberrypi:~ $
                          
                          U 1 Reply Last reply Reply Quote 0
                          • U
                            Urs @Thomas Braun last edited by

                            Die Error so von wegen invalid string length usw von Iobroker aus dem obigen Log hab ich nun auch gelöst. Was die Ursache war weiss ich nicht wirklich. Hab mal eben ein Backup von vor 5 Tagen oder so zurückgespielt und gut ist. Kann nur vermuten dass auch das irgendwie mit Node Red und dem Javascript-Adapter zusammen hängt, denn in den letzten Tagen hab ich mal ein wenig mit node red herumgespielt. Dabei wurde das System extremst träge (trotz NUC mit entsprechend CPU-Leistung und 8GB Ram). Hab dann Node Red wieder runter geschmissen, aber da ist wohl noch sehr viel Datenmüll übrig geblieben, denn das waren noch 51000 Objekte vorhanden, die meisten davon unter Javascript.0 und script.js. Nun nach dem Backup einspielen sind nur noch knapp 20000 Objekte da und das Backup der Javascripts beträgt auch nur noch 17Mb anstatt 64Mb. Also irgendwas ist da massiv schief gelaufen... Aber das nur der Vollständigkeit halber.

                            Influx und Grafana sichern bin ich noch nicht dazu gekommen, aber wie muss ich das Influx auf dem Iobroker-System aufsetzen? Nur so dass es läuft oder muss es 1:1 dem der die Daten speichert entsprechen? Also wenn ich auf dem Produktiv-Influx z.B 3 Datenbanken drauf hab (iobroker, NUC, NAS), muss ich dann genau die Datenbanken auch im Iobroker-System erstellen? Und die gleichen Login-Daten benutzen?

                            Danke

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            421
                            Online

                            31.9k
                            Users

                            80.1k
                            Topics

                            1.3m
                            Posts

                            4
                            20
                            820
                            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