Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. IoB startet nicht mit Fehlermeldung zu JSONL

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    IoB startet nicht mit Fehlermeldung zu JSONL

    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      final @Homoran last edited by

      @homoran

      achso. Hm, tja, das übersteigt meine Kenntnisse.

      hier mal ein zwischenstand vom iob fix - anscheinend habe ich (auch?) ein Speicherplatzproblem?

      @raspberrypi:~ $ iob fix
      library: loaded
      Library version=2024-01-04
      
      ==========================================================================
      
          Welcome to the ioBroker installation fixer!
          Script version: 2024-01-04
      
          You might need to enter your password a couple of times.
      
      ==========================================================================
      
      
      ==========================================================================
          Installing prerequisites (1/5)
      ==========================================================================
      
      Get:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
      Get:2 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]
      Err:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
        Error writing to file - write (28: No space left on device) [IP: 2a00:1098:0:80:1000:75:0:3 80]
      Err:2 http://archive.raspberrypi.org/debian bullseye InRelease
        Error writing to file - write (28: No space left on device) [IP: 2a00:1098:80:56::3:1 80]
      Get:3 https://deb.nodesource.com/node_14.x bullseye InRelease [4,586 B]
      Err:3 https://deb.nodesource.com/node_14.x bullseye InRelease
        Error writing to file - write (28: No space left on device) [IP: 2606:4700:10::6816:51a 443]
      Reading package lists... Done
      W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/bullseye/InRelease  Error writing to file - write (28: No space left on device) [IP: 2a00:1098:0:80:1000:75:0:3 80]
      W: Failed to fetch https://deb.nodesource.com/node_14.x/dists/bullseye/InRelease  Error writing to file - write (28: No space left on device) [IP: 2606:4700:10::6816:51a 443]
      W: Failed to fetch http://archive.raspberrypi.org/debian/dists/bullseye/InRelease  Error writing to file - write (28: No space left on device) [IP: 2a00:1098:80:56::3:1 80]
      W: Some index files failed to download. They have been ignored, or old ones used instead.
      
      ==========================================================================
          Checking ioBroker user and directory permissions (2/5)
      ==========================================================================
      
      main: line 702: echo: write error: No space left on device
      Created /etc/sudoers.d/iobroker
      Fixing directory permissions...
      
      ==========================================================================
          Check and cleanup npm temporary directories (3/5)
      ==========================================================================
      
      Done.
      
      ==========================================================================
          Database maintenance (4/5)
      ==========================================================================
      
      Checking for uncompressed JSONL databases... This might take a while!
      
      Error: ENOSPC: no space left on device, mkdir '/home/iobroker/.npm/_npx/16826'
      command not found: jsonltool
      
      ==========================================================================
          Checking autostart (5/5)
      ==========================================================================
      
      Enabling autostart...
      Autostart enabled!
      
      ==========================================================================
      
          Your installation was fixed successfully
          Run iobroker start to start ioBroker again!
      
      ==========================================================================
      
      1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active last edited by

        @final sagte in IoB startet nicht mit Fehlermeldung zu JSONL:

        : No space left on device

        Das Dateisystem ist rappelvoll.

        df -h
        
        F 1 Reply Last reply Reply Quote 0
        • F
          final @Thomas Braun last edited by

          @thomas-braun

          @raspberrypi:~ $ systemctl status iobroker
          ● iobroker.service - ioBroker Server
               Loaded: loaded (/lib/systemd/system/iobroker.service; enabled; vendor preset: enabled)
               Active: activating (auto-restart) (Result: exit-code) since Tue 2024-02-13 20:17:19 CET; 689ms ago
                 Docs: http://iobroker.net
              Process: 17079 ExecStart=/usr/bin/bash -c ${NODE} /opt/iobroker/node_modules/iobroker.js-controller/controller.js (code=exited, status=1/FAILURE)
             Main PID: 17079 (code=exited, status=1/FAILURE)
                  CPU: 4.952s
          
          Feb 13 20:17:19 raspberrypi systemd[1]: iobroker.service: Consumed 4.952s CPU time.
          Feb 13 20:17:22 raspberrypi systemd[1]: iobroker.service: Scheduled restart job, restart counter is at 8.
          Feb 13 20:17:22 raspberrypi systemd[1]: Stopped ioBroker Server.
          Feb 13 20:17:22 raspberrypi systemd[1]: iobroker.service: Consumed 4.952s CPU time.
          Feb 13 20:17:22 raspberrypi systemd[1]: Started ioBroker Server.
          Feb 13 20:17:26 raspberrypi bash[17093]: ENOSPC: no space left on device, write
          Feb 13 20:17:26 raspberrypi bash[17093]: Error: ENOSPC: no space left on device, write
          Feb 13 20:17:31 raspberrypi systemd[1]: iobroker.service: Main process exited, code=exited, status=1/FAILURE
          Feb 13 20:17:31 raspberrypi systemd[1]: iobroker.service: Failed with result 'exit-code'.
          Feb 13 20:17:31 raspberrypi systemd[1]: iobroker.service: Consumed 4.856s CPU time.
          
          1 Reply Last reply Reply Quote 0
          • F
            final @Thomas Braun last edited by final

            @thomas-braun said in IoB startet nicht mit Fehlermeldung zu JSONL:

            @final sagte in IoB startet nicht mit Fehlermeldung zu JSONL:

            : No space left on device

            Das Dateisystem ist rappelvoll.

            df -h
            

            was macht df -h? EDIT: ok, disk free ... (ich muss die meisten Befehle erstmal googlen...)

            kann die volle SD für den Fehler verantwortlich sein, oder ist das ein 2. Problem?

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

              @final

              df zeigt die Belegung der Partitionen an.

              sudo apt clean
              

              räumt da vielleicht wieder etwas frei.

              F 1 Reply Last reply Reply Quote 0
              • F
                final @Thomas Braun last edited by

                @thomas-braun

                @raspberrypi:~ $ df -h
                Filesystem      Size  Used Avail Use% Mounted on
                /dev/root       7.1G  6.8G     0 100% /
                devtmpfs        355M     0  355M   0% /dev
                tmpfs           483M     0  483M   0% /dev/shm
                tmpfs           194M  984K  193M   1% /run
                tmpfs           5.0M  4.0K  5.0M   1% /run/lock
                /dev/mmcblk0p1  253M   51M  202M  20% /boot
                tmpfs            97M   16K   97M   1% /run/user/1000
                
                Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @final last edited by

                  @final

                  Da biste aber sehr knauserig gewesen. 7,1GB ist zu wenig.

                  1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @final last edited by

                    @final sagte in IoB startet nicht mit Fehlermeldung zu JSONL:

                    /dev/root 7.1G 6.8G 0 100% /

                    rappelvoll!
                    mit 7GB "Plattenplatz" auszukommen war auch ziemlich optimistisch

                    F 1 Reply Last reply Reply Quote 0
                    • F
                      final @Homoran last edited by final

                      ist ne 8GB SD - hätte nicht gedacht dass das zu wenig ist? Läuft jetzt seit knapp einem Jahr. Und dabei logge ich nur meinen Zählerstand und das BKW...
                      Was ist denn eine gute Größe? Hab noch ne 32GB SD liegen ...
                      Oder ist eine IOB EInstellung nicht gut und er generiert zu viele Daten/Backups/Dateien/was weiß ich?
                      Muß ich nur regelmäßig aufräumen/löschen?

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

                        @final sagte in IoB startet nicht mit Fehlermeldung zu JSONL:

                        Oder ist eine IOB EInstellung nicht gut und er generiert zu viele Daten/Backups/Dateien/was weiß ich?

                        Kann natürlich auch sein. Aber hier erstreckt sich mein System mittlerweile auf 16GB:

                        echad@chet:~ $ df -h
                        Filesystem      Size  Used Avail Use% Mounted on
                        /dev/root       110G   16G   89G  16% /
                        
                        F Homoran 2 Replies Last reply Reply Quote 0
                        • F
                          final @Thomas Braun last edited by

                          @thomas-braun

                          hmm. ok.
                          was mache ich nun am besten? SD upgraden?
                          Kann ich die 8er dann auf die 32er klonen?

                          Oder erstmal versuchen, etwas Speicher frei zu bekommen?
                          Kann ich über SSH Dateien runterladen?
                          Greife gerade von einem Windows Rechner über die Powershell über SSH auf den Raspi zu.

                          Thomas Braun 2 Replies Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @final last edited by

                            @final

                            sudo apt clean
                            sudo apt update 
                            sudo apt install ncdu
                            

                            Und dann per

                            sudo ncdu /
                            

                            schauen wo der fette Kram liegt. Ich vermute in /opt/iobroker/iobroker-data

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

                              @final sagte in IoB startet nicht mit Fehlermeldung zu JSONL:

                              Kann ich die 8er dann auf die 32er klonen?

                              Immer diese Clownereien...
                              Ich würde auf der 32er ganz frisch ein aktuelles System installieren, den iobroker drauf und dann dort mein Backup reinziehen.

                              F 1 Reply Last reply Reply Quote 0
                              • F
                                final @Thomas Braun last edited by

                                @thomas-braun said in IoB startet nicht mit Fehlermeldung zu JSONL:

                                Und dann per
                                sudo ncdu /

                                schauen wo der fette Kram liegt. Ich vermute in /opt/iobroker/iobroker-data

                                1,4GB iobroker/iobroker-data
                                1,3GB iobroker/iobroker-data/history
                                0,5 GB iobroker/backups

                                Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                                • Homoran
                                  Homoran Global Moderator Administrators @Thomas Braun last edited by

                                  @thomas-braun sagte in IoB startet nicht mit Fehlermeldung zu JSONL:

                                  hier erstreckt sich mein System mittlerweile auf 16GB:

                                  und alleine meine History ist >50GB groß 😂

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

                                    @final

                                    Da macht eigentlich nur der Umzug in ein größeres Haus Sinn.
                                    Und dann dort vielleicht die Menge der historisierten Daten überdenken.

                                    1 Reply Last reply Reply Quote 0
                                    • F
                                      final @Thomas Braun last edited by final

                                      @thomas-braun said in IoB startet nicht mit Fehlermeldung zu JSONL:

                                      Ich würde auf der 32er ganz frisch ein aktuelles System installieren, den iobroker drauf und dann dort mein Backup reinziehen.

                                      Hm, also ich habe gerade mal geschaut in ncdu:
                                      in /backups
                                      ist komischerweise das letzte Backup der historydb und von iobroker von Ende September - was irgendwie sehr alt ist, und ich weiß gar nicht, warum da nicht automatisch regelmäßig ein backup gemacht wurde danach??
                                      Denn unter iobroker/iobroker-data/backup-objects habe ich dateien vom 03.-05.02.2024??

                                      Verliere ich damit automatisch alles nach Ende September? Oder kann ich auch irgendwie die aktuellen json Daten sichern?
                                      Oder jetzt manuell ein backup machen?

                                      Homoran 1 Reply Last reply Reply Quote 0
                                      • Homoran
                                        Homoran Global Moderator Administrators @final last edited by

                                        @final sagte in IoB startet nicht mit Fehlermeldung zu JSONL:

                                        @thomas-braun said in IoB startet nicht mit Fehlermeldung zu JSONL:

                                        Und dann per
                                        sudo ncdu /

                                        schauen wo der fette Kram liegt. Ich vermute in /opt/iobroker/iobroker-data

                                        1,4GB iobroker/iobroker-data
                                        1,3GB iobroker/iobroker-data/history
                                        0,5 GB iobroker/backups

                                        bitte den output zeigen!

                                        das sind gerade mal <3GB

                                        da fehlen die wirklich dicken

                                        F 1 Reply Last reply Reply Quote 0
                                        • Homoran
                                          Homoran Global Moderator Administrators @final last edited by

                                          @final sagte in IoB startet nicht mit Fehlermeldung zu JSONL:

                                          in /backups

                                          haben Backups gar nichts zu suchen!
                                          die müssen außerhalb der SD extern vom Raspi gesichert werden.

                                          1 Reply Last reply Reply Quote 0
                                          • F
                                            final @Homoran last edited by

                                            @homoran

                                            3.0 GiB [##########] /usr
                                                2.2 GiB [#######   ] /opt                                                                                                                                                           1.0 GiB [###       ] /var
                                              270.1 MiB [          ] /home
                                               50.2 MiB [          ] /boot
                                                5.6 MiB [          ] /etc
                                                1.0 MiB [          ] /run
                                               56.0 KiB [          ] /tmp
                                               52.0 KiB [          ] /root
                                            e  16.0 KiB [          ] /lost+found
                                            e   4.0 KiB [          ] /usb_device
                                            e   4.0 KiB [          ] /srv
                                            e   4.0 KiB [          ] /mnt
                                            e   4.0 KiB [          ] /media
                                                0.0   B [          ] /sys
                                            .   0.0   B [          ] /proc
                                                0.0   B [          ] /dev
                                            @   0.0   B [          ]  sbin
                                            @   0.0   B [          ]  lib
                                            @   0.0   B [          ]  bin
                                            
                                            Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

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

                                            722
                                            Online

                                            32.0k
                                            Users

                                            80.4k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            85
                                            4011
                                            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