Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Ertrag (Tag, Monat, Jahr) berechnen und in Datei speichern

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    Ertrag (Tag, Monat, Jahr) berechnen und in Datei speichern

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

      @Thomas-Braun

      bitte:

      ======================= SUMMARY =======================
                              v.2023-10-10
      
      
         Static hostname: raspberrypi
               Icon name: computer
        Operating System: Debian GNU/Linux 11 (bullseye)
                  Kernel: Linux 6.1.21-v8+
            Architecture: arm64
      
      Installation:           native
      Kernel:                 aarch64
      Userland:               arm64
      Timezone:               Europe/Berlin (CET, +0100)
      User-ID:                1000
      X-Server:               false
      Boot Target:            multi-user.target
      
      Pending OS-Updates:     0
      Pending iob updates:    0
      
      Nodejs-Installation:    /usr/bin/nodejs         v18.19.0
                              /usr/bin/node           v18.19.0
                              /usr/bin/npm            10.2.3
                              /usr/bin/npx            10.2.3
                              /usr/bin/corepack       0.22.0
      
      Recommended versions are nodejs 18.19.0 and npm 10.2.3
      Your nodejs installation is correct
      
      MEMORY:
                     total        used        free      shared  buff/cache   available
      Mem:            7.8G        1.6G        4.9G        1.0M        1.3G        6.1G
      Swap:            99M          0B         99M
      Total:          7.9G        1.6G        5.0G
      
      Active iob-Instances:   14
      Active repo(s): stable
      
      ioBroker Core:          js-controller           5.0.17
                              admin                   6.12.0
      
      ioBroker Status:        iobroker is running on this host.
      
      
      Objects type: jsonl
      States  type: jsonl
      
      Status admin and web instance:
      + system.adapter.admin.0                  : admin                 : raspberrypi                              -  enabled, port: 8081, bind: 0.0.0.0 (SSL), run as: admin
      
      Objects:                3856
      States:                 3341
      
      Size of iob-Database:
      
      21M     /opt/iobroker/iobroker-data/objects.jsonl
      6.9M    /opt/iobroker/iobroker-data/states.jsonl
      
      
      
      =================== END OF SUMMARY ====================
      

      === Mark text until here for copying ===
      pi@raspberrypi:~ $

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

        @bitwicht

        Das System ist jetzt grundsätzlich richtig.
        Bei den Fehlern aus dem Log kann dir vermutlich @Marc-Berg weiterhelfen. Von influxdb hab ich nämlich keine Ahnung.

        1 Reply Last reply Reply Quote 0
        • B
          bitwicht last edited by bitwicht

          Vielen Danke.
          Das heißt ich kann jetzt immer über den Paketmanager gehen?

          @Marc-Berg @Thomas-Braun

          Der Influx Adapter läuft jetzt nicht mehr:

          
          influxdb.0
          2024-01-08 18:38:49.775	error	HttpError: unauthorized access
          influxdb.0
          2024-01-08 18:38:49.769	info	Influx DB Version used: 2.x
          influxdb.0
          2024-01-08 18:38:49.769	info	Connecting http://localhost:8086/ ...
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @bitwicht last edited by

            @bitwicht sagte in Ertrag (Tag, Monat, Jahr) berechnen und in Datei speichern:

            Das heißt ich kann jetzt immer über den Paketmanager gehen?

            Ja, das schwimmt jetzt alles beim Paketmanager mit.
            Per

            sudo apt update
            sudo apt full-upgrade
            

            regelmäßig dabei bleiben.

            1 Reply Last reply Reply Quote 0
            • B
              bitwicht last edited by

              @Thomas-Braun @Marc-Berg

              jetzt habe ich aber ein Problem.
              Wenn ich auf die Weboberfläche der Influx gehe, kommt "Get Started"

              Sind jetzt alle meine Daten weg ?

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

                @bitwicht sagte in Ertrag (Tag, Monat, Jahr) berechnen und in Datei speichern:

                Sind jetzt alle meine Daten weg ?

                Das musst du @Marc-Berg fragen. Wie gesagt, ich verwende influxdb nicht. Da müssen irgendwie irgendwo irgendwelche Tokens (Die hast du noch?) hinterlegt werden, wenn ich das richtig weiß.

                1 Reply Last reply Reply Quote 0
                • B
                  bitwicht last edited by

                  @Thomas Braun

                  Ich warte mal auf @Marc-Berg

                  Ich habe die Token noch aber es sieht so aus als ob die Influx komplett neu ist.

                  Auf der Weboberfläche kommt "Get Started" und ich soll den Admin User neu vergeben, etc.

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

                    @bitwicht

                    Dann müsste man wohl die alten Datenbanken reinholen können.

                    1 Reply Last reply Reply Quote 0
                    • B
                      bitwicht last edited by

                      @Thomas-Braun

                      ok ich warte mal ab bis Marc online ist und hoffe das er es fixen kann.
                      Habe etwas Panik das meine Daten weg sind

                      Marc Berg 1 Reply Last reply Reply Quote 0
                      • Marc Berg
                        Marc Berg Most Active @bitwicht last edited by

                        @bitwicht sagte in Ertrag (Tag, Monat, Jahr) berechnen und in Datei speichern:

                        Habe etwas Panik das meine Daten weg sind

                        Panik müsstest du nur haben, wenn du kein Backup hast, oder?

                        Zeig mal das Ergebnis von

                        sudo find / \( -path /proc -o -path /dev -o -path /sys -o -path /lost+found -o -path /mnt \) -prune -false -o -name *.bolt
                        
                        1 Reply Last reply Reply Quote 0
                        • B
                          bitwicht last edited by bitwicht

                          @Marc-Berg

                          ich bin mir auch nicht sicher ob ich eins habe. ich habe den backitup aktiviert, aber was der macht oder auch nicht habe ich noch nicht geprüft.

                          hier:

                          pi@raspberrypi:~ $ sudo find / \( -path /proc -o -path /dev -o -path /sys -o -path /lost+found -o -path /mnt \) -prune -false -o -name *.bolt
                          /var/lib/influxdb/influxd.bolt
                          /var/lib/influxdb/.influxdbv2/influxd.bolt
                          pi@raspberrypi:~ $
                          

                          Es kommt das initale Setup.
                          IO-B20.JPG

                          Marc Berg 1 Reply Last reply Reply Quote 0
                          • Marc Berg
                            Marc Berg Most Active @bitwicht last edited by

                            @bitwicht sagte in Ertrag (Tag, Monat, Jahr) berechnen und in Datei speichern:

                            /var/lib/influxdb/influxd.bolt

                            ls -lah /var/lib/influxdb
                            ls -lah /var/lib/influxdb/.influxdbv2
                            ls -la /opt/iobroker/backups/influx*
                            
                            1 Reply Last reply Reply Quote 0
                            • B
                              bitwicht last edited by

                              @Marc-Berg

                              pi@raspberrypi:~ $ ls -lah /var/lib/influxdb
                              ls: cannot open directory '/var/lib/influxdb': Permission denied
                              

                              muss ich die influx erst stoppen oder per sudo ?

                              Marc Berg 1 Reply Last reply Reply Quote 0
                              • Marc Berg
                                Marc Berg Most Active @bitwicht last edited by

                                @bitwicht sagte in Ertrag (Tag, Monat, Jahr) berechnen und in Datei speichern:

                                er per sudo ?

                                sorry, sudo vergessen

                                1 Reply Last reply Reply Quote 0
                                • B
                                  bitwicht last edited by bitwicht

                                  @Marc-Berg

                                  pi@raspberrypi:~ $ sudo ls -lah /var/lib/influxdb
                                  total 200K
                                  drwxr-x---  8 influxdb influxdb 4.0K Jan  8 17:47 .
                                  drwxr-xr-x 31 root     root     4.0K Jan  6 07:46 ..
                                  drwxr-xr-x  3 influxdb influxdb 4.0K Nov 14  2022 .cache
                                  drwxr-xr-x  3 influxdb influxdb 4.0K Nov 14  2022 data
                                  drwxr-x---  4 influxdb influxdb 4.0K Jan  8 17:47 engine
                                  -rw-------  1 influxdb influxdb  64K Jan  8 17:47 influxd.bolt
                                  drwx------  3 influxdb influxdb 4.0K Nov 14  2022 .influxdbv2
                                  -rw-r-----  1 influxdb influxdb    4 Jan  8 17:47 influxd.pid
                                  -rw-r-----  1 influxdb influxdb 120K Jan  8 17:47 influxd.sqlite
                                  drwxr-xr-x  2 influxdb influxdb 4.0K Nov 14  2022 meta
                                  drwx------  3 influxdb influxdb 4.0K Nov 14  2022 wal
                                  pi@raspberrypi:~ $ sudo ls -lah /var/lib/influxdb/.influxdbv2
                                  total 220K
                                  drwx------ 3 influxdb influxdb 4.0K Nov 14  2022 .
                                  drwxr-x--- 8 influxdb influxdb 4.0K Jan  8 17:47 ..
                                  drwxr-xr-x 5 influxdb influxdb 4.0K Nov 14  2022 engine
                                  -rw------- 1 influxdb influxdb 128K Jan  8 17:44 influxd.bolt
                                  -rw-r--r-- 1 influxdb influxdb 108K Nov 14  2022 influxd.sqlite
                                  pi@raspberrypi:~ $ sudo ls -la /opt/iobroker/backups/influx*
                                  ls: cannot access '/opt/iobroker/backups/influx*': No such file or directory
                                  pi@raspberrypi:~ $
                                  
                                  

                                  cannot access '/opt/iobroker/backups/influx*': No such file or directory

                                  Marc Berg 1 Reply Last reply Reply Quote 0
                                  • Marc Berg
                                    Marc Berg Most Active @bitwicht last edited by

                                    @bitwicht

                                    sudo service influxdb status
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      bitwicht last edited by

                                      @marc-berg said in Ertrag (Tag, Monat, Jahr) berechnen und in Datei speichern:

                                      sudo service influxdb status

                                      pi@raspberrypi:~ $ sudo service influxdb status
                                      ● influxdb.service - InfluxDB is an open-source, distributed, time series database
                                           Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
                                           Active: active (running) since Mon 2024-01-08 17:47:10 CET; 3h 5min ago
                                             Docs: https://docs.influxdata.com/influxdb/
                                         Main PID: 768 (influxd)
                                            Tasks: 10 (limit: 8754)
                                              CPU: 12.489s
                                           CGroup: /system.slice/influxdb.service
                                                   └─768 /usr/bin/influxd
                                      
                                      Jan 08 20:06:54 raspberrypi influxd-systemd-start.sh[768]: ts=2024-01-08T19:06:54.556226Z lvl=info msg=Unauthorized log_id=0mbVNo2G000 error="authorization not found"
                                      Jan 08 20:07:04 raspberrypi influxd-systemd-start.sh[768]: ts=2024-01-08T19:07:04.565325Z lvl=info msg=Unauthorized log_id=0mbVNo2G000 error="authorization not found"
                                      Jan 08 20:07:14 raspberrypi influxd-systemd-start.sh[768]: ts=2024-01-08T19:07:14.572711Z lvl=info msg=Unauthorized log_id=0mbVNo2G000 error="authorization not found"
                                      Jan 08 20:07:24 raspberrypi influxd-systemd-start.sh[768]: ts=2024-01-08T19:07:24.584166Z lvl=info msg=Unauthorized log_id=0mbVNo2G000 error="authorization not found"
                                      Jan 08 20:07:34 raspberrypi influxd-systemd-start.sh[768]: ts=2024-01-08T19:07:34.593064Z lvl=info msg=Unauthorized log_id=0mbVNo2G000 error="authorization not found"
                                      Jan 08 20:07:44 raspberrypi influxd-systemd-start.sh[768]: ts=2024-01-08T19:07:44.600902Z lvl=info msg=Unauthorized log_id=0mbVNo2G000 error="authorization not found"
                                      Jan 08 20:17:23 raspberrypi influxd-systemd-start.sh[768]: ts=2024-01-08T19:17:23.618886Z lvl=info msg="Retention policy deletion check (start)" log_id=0mbVNo2G000 service=retention op_name=retention_delete_check op_event=start
                                      Jan 08 20:17:23 raspberrypi influxd-systemd-start.sh[768]: ts=2024-01-08T19:17:23.618960Z lvl=info msg="Retention policy deletion check (end)" log_id=0mbVNo2G000 service=retention op_name=retention_delete_check op_event=end op_elapsed=0>
                                      Jan 08 20:47:23 raspberrypi influxd-systemd-start.sh[768]: ts=2024-01-08T19:47:23.618284Z lvl=info msg="Retention policy deletion check (start)" log_id=0mbVNo2G000 service=retention op_name=retention_delete_check op_event=start
                                      Jan 08 20:47:23 raspberrypi influxd-systemd-start.sh[768]: ts=2024-01-08T19:47:23.618352Z lvl=info msg="Retention policy deletion check (end)" log_id=0mbVNo2G000 service=retention op_name=retention_delete_check op_event=end op_elapsed=0>
                                      lines 1-20/20 (END)
                                      
                                      
                                      Marc Berg 1 Reply Last reply Reply Quote 0
                                      • Marc Berg
                                        Marc Berg Most Active @bitwicht last edited by

                                        @bitwicht
                                        Okay.

                                        Schlecht: kein Backup vorhanden
                                        Wahrscheinlich gut: die alten Daten wurden nicht gelöscht.

                                        Habe erstmal familäre Pflichten zu erfüllen, bin gleich wieder da.

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          bitwicht last edited by bitwicht

                                          @Marc-Berg

                                          OK. Was mir eingefallen ist. Der Backitup schreibt das Backup auf ein NAS.

                                          IO-B21.JPG

                                          Das Backup wäre aber von heute Nacht. Vielleicht findest du die Dateien noch auf dem PI, falls sie nicht überschrieben wurden

                                          Marc Berg 1 Reply Last reply Reply Quote 0
                                          • Marc Berg
                                            Marc Berg Most Active @bitwicht last edited by

                                            @bitwicht sagte in Ertrag (Tag, Monat, Jahr) berechnen und in Datei speichern:

                                            Das Backup wäre aber von heute Nacht. Vielleicht findest du die Dateien noch auf dem PI, falls sie nicht überschrieben wurden

                                            Okay, dann haben wir eine Rückfalloption, falls das hier schief geht:

                                            sudo service influxdb stop
                                            sudo cp -pR /var/lib/influxdb/.influxdbv2/ /tmp
                                            sudo cp -pR /tmp/.influxdbv2/* /var/lib/influxdb/
                                            sudo service influxdb start
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            509
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            190
                                            12842
                                            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