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

      @marc-berg

      pi@raspberrypi:~ $ sudo cp -pR /var/lib/influxdb/.influxdbv2/ /tmp
      pi@raspberrypi:~ $ sudo cp -pR /tmp/.influxdbv2/* /var/lib/influxdb/
      cp: cannot stat '/tmp/.influxdbv2/*': No such file or directory
      pi@raspberrypi:~ $
      
      
      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:

        /tmp/.influxdbv2

        sudo ls -lah /tmp/.influxdbv2
        
        1 Reply Last reply Reply Quote 0
        • B
          bitwicht last edited by

          @marc-berg

          pi@raspberrypi:~ $ sudo ls -lah /tmp/.influxdbv2
          total 220K
          drwx------  3 influxdb influxdb 4.0K Nov 14  2022 .
          drwxrwxrwt 13 root     root     4.0K Jan  8 22:11 ..
          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:~ $
          
          
          Marc Berg 1 Reply Last reply Reply Quote 0
          • Marc Berg
            Marc Berg Most Active @bitwicht last edited by Marc Berg

            @bitwicht

            sudo mv /tmp/.influxdbv2/ /tmp/influxdbv2
            sudo cp -pR /tmp/influxdbv2/* /var/lib/influxdb/
            
            1 Reply Last reply Reply Quote 0
            • B
              bitwicht last edited by bitwicht

              @Marc-Berg

              pi@raspberrypi:/ $ sudo mv /tmp/.influxdbv2/ /tmp/influxdbv2
              pi@raspberrypi:/ $ sudo cp -pR /tmp/influxdbv2/* /var/lib/influxdb/
              cp: cannot stat '/tmp/influxdbv2/*': No such file or directory
              pi@raspberrypi:/ $
              
              

              das geht auch nicht

              pi@raspberrypi:~ $ sudo cp -pR /var/lib/influxdb/.influxdbv2/ /tmp
              pi@raspberrypi:~ $ sudo mv /tmp/.influxdbv2/ /tmp/influxdbv2
              pi@raspberrypi:~ $ sudo cp -pR /tmp/influxdbv2/* /var/lib/influxdb/
              cp: cannot stat '/tmp/influxdbv2/*': No such file or directory
              pi@raspberrypi:~ $
              
              
              Marc Berg 1 Reply Last reply Reply Quote 0
              • Marc Berg
                Marc Berg Most Active @bitwicht last edited by

                @bitwicht

                sudo systemctl stop influxdb
                sudo mv /tmp/influxdb2 /tmp/influxdb
                sudo cp -pR /tmp/influxdb/ /var/lib
                sudo systemctl start influxdb
                
                1 Reply Last reply Reply Quote 0
                • B
                  bitwicht last edited by

                  @marc-berg

                  pi@raspberrypi:~ $ sudo systemctl stop influxdb
                  pi@raspberrypi:~ $ sudo mv /tmp/influxdb2 /tmp/influxdb
                  mv: cannot stat '/tmp/influxdb2': No such file or directory
                  pi@raspberrypi:~ $
                  
                  
                  Marc Berg 1 Reply Last reply Reply Quote 0
                  • Marc Berg
                    Marc Berg Most Active @bitwicht last edited by Marc Berg

                    sudo systemctl stop influxdb
                    sudo mv /tmp/influxdbv2 /tmp/influxdb
                    sudo cp -pR /tmp/influxdb/ /var/lib
                    sudo systemctl start influxdb
                    
                    B 1 Reply Last reply Reply Quote 0
                    • B
                      bitwicht @Marc Berg last edited by

                      @marc-berg

                      Das geht! Danke.
                      Weboberfläche geht auch wieder.

                      Sind die Daten jetzt im richtigen Ordner oder ist das jetzt alles verbogen?
                      Geht es auch noch nach einem Reboot ?

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

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

                        Das geht! Danke.
                        Weboberfläche geht auch wieder.
                        Sind die Daten jetzt im richtigen Ordner oder ist das jetzt alles verbogen?
                        Geht es auch noch nach einem Reboot ?

                        Ja, geht alles. Kannst du gern testen. Wir müssen aber noch aufräumen:

                        sudo rm -r /tmp/influxdb
                        sudo rm -r /var/lib/influxdb/.influxdbv2
                        
                        1 Reply Last reply Reply Quote 0
                        • B
                          bitwicht last edited by

                          @Marc-Berg

                          pi@raspberrypi:~ $ sudo rm -r /tmp/influxdbv2
                          rm: cannot remove '/tmp/influxdbv2': No such file or directory
                          pi@raspberrypi:~ $
                          

                          will er wieder nicht

                          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:

                            will er wieder nicht

                            ja, habe ich oben korrigiert

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

                              @Marc-Berg

                              passt:

                              pi@raspberrypi:~ $ sudo rm -r /tmp/influxdb
                              pi@raspberrypi:~ $ sudo rm -r /var/lib/influxdb/.influxdbv2
                              pi@raspberrypi:~ $
                              
                              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:

                                passt:

                                und jetzt neu starten

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

                                  @Marc-Berg

                                  Schaut auch gut nach dem reboot aus.

                                  InfluxDB v2.7.4

                                  Was aber immer noch nicht geht, die Daten einzutragen 😞

                                  IO-B31.JPG IO-B30.JPG

                                  Das kann doch nicht sein, dass es bei dir geht aber bei mir nicht

                                  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 kann doch nicht sein, dass es bei dir geht aber bei mir nicht

                                    Verrückt. Da fällt mir nur noch der Browser ein. Nimm mal einen anderen, oder lösche zumindest mal den Cache.

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

                                      @Marc-Berg

                                      ich habe jetzt schon Edge & Crome "normal" / Cache löschen / Inkognito versucht.
                                      Immer das gleiche Verhalten.

                                      Das kann doch gar nicht sein

                                      .
                                      Aber ein Verhalten ist bei uns anscheinend unterschiedlich.

                                      PV-SEWeb-Ertrag-Tag value="15.616" 1704376800
                                      

                                      Bei Seconds kommt der Fehler, bei allem anderen geht es. Bei dir ist es umgekehrt hattest du oben geschrieben ?

                                      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:

                                        Bei dir ist es umgekehrt hattest du oben geschrieben ?

                                        Ja, bei mir ist es umgekehrt, und das wäre ja auch logisch. Warum auch immer das bei dir so ist, wenn der Import nur in der Einstellung "Nanosekunden" funtkioniert, dann hänge neun Nullen an den Timestamp dran. Dann passt es wieder.

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

                                          @Marc-Berg

                                          Wenn ich neun Nullen anhänge und auf Nanosekunden stelle, kommt wieder der Fehler:

                                          PV-SEWeb-Ertrag-Tag value="15.616" 1704376800000000000
                                          

                                          Wie könnten wir den Fehler debugen?
                                          Da steht ja einfach nur "unknown error".
                                          Steht in der Shell oder Log mehr?

                                          Marc Berg 2 Replies 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:

                                            Wie könnten wir den Fehler debugen?
                                            Da steht ja einfach nur "unknown error".
                                            Steht in der Shell oder Log mehr?

                                            ja, das ginge. Dazu müsstest du mit einem Editor deiner Wahl die Datei

                                             /etc/influxdb/config.toml
                                            

                                            um den Eintrag

                                            log-level = "debug"
                                            

                                            ergänzen. Danach DB neu starten

                                            sudo systemctl stop influxdb
                                            sudo systemctl start influxdb
                                            

                                            Dann kannst du dir den Output mit

                                            journalctl -u influxdb -n 30
                                            

                                            anschauen.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            935
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

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