Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Blockly läuf mal / mal nicht

    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

    Blockly läuf mal / mal nicht

    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Ralf @Cinimod last edited by

      @cinimod Hallo,
      an einem Tag schalten sie richtig ein und am nächsten Tag wieder gar nicht. Nodejs und NPM sind doch aktuell, oder ? Ich weiß nicht, warum es mal geht und mal nicht.

      1 Reply Last reply Reply Quote 0
      • R
        Ralf last edited by

        @cinimod
        Bekomme folgende Meldung beim Updaten :

        user ralf is not allowed to execute

        wenn ich mich mit su root anmelde und dann das Update starte, kommt die Meldung : Bitte als Standard User anmelden :

        Kannst du da helfen ?

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

          @ralf sagte in Blockly läuf mal / mal nicht:

          wenn ich mich mit su root anmelde

          Macht man nie.
          Was willst du da denn genau updaten?

          iob diag 
          

          sagt?

          R 1 Reply Last reply Reply Quote 0
          • R
            Ralf @Thomas Braun last edited by

            @thomas-braun
            Sorry, komme erst jetzt wieder an den Rechner. Hier das Ergebnis :```
            Copy text starting here:

            ======================= SUMMARY =======================
                                    v.2024-05-22
            
            
             Static hostname: debian12
                   Icon name: computer-laptop
                     Chassis: laptop 💻
            Operating System: Debian GNU/Linux 12 (bookworm)
                      Kernel: Linux 6.1.0-25-amd64
                Architecture: x86-64
             Hardware Vendor: AZW
              Hardware Model: BT3 PRO
            Firmware Version: 5.11
            
            Installation:           native
            Kernel:                 x86_64
            Userland:               64 bit
            Timezone:               Europe/Berlin (CEST, +0200)
            igured to read the RTC time in the local time zone.
            nges and daylight saving time adjustments. The RTC
            User-ID:                0
            Display-Server:         true
            Boot Target:            graphical.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            9.2.0
            /usr/bin/npx            9.2.0
            corepack:       N/A
            
            Recommended versions are nodejs 20.17.0 and npm 10.8.2
            *** nodejs is NOT correctly installed ***
            Wrong installation path detected. This needs to be fixed
            
            Please execute
            iobroker nodejs-update
            to fix these errors.
            
            MEMORY:
                           total        used        free      shared  buff/cache   available
            Mem:            4.0G        3.2G        503M         56M        654M        837M
            Swap:           1.0G        896M        126M
            Total:          5.1G        4.1G        629M
            
            Active iob-Instances:   27
            Upgrade policy: none
            
            ioBroker Core:          js-controller           6.0.11
                                    admin                   7.0.23
            
            ioBroker Status:        iobroker is running on this host.
            
            
            Objects type: jsonl
            States  type: jsonl
            
            Status admin and web instance:
            + system.adapter.admin.0                  : admin                 : debian12                                 -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
            + system.adapter.web.0                    : web                   : debian12                                 -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
            
            Objects:                19171
            States:                 14604
            
            Size of iob-Database:
            
            27M     /opt/iobroker/iobroker-data/objects.jsonl
            3.4M    /opt/iobroker/iobroker-data/states.jsonl
            
            
            
            =================== END OF SUMMARY ====================
            

            === Mark text until here for copying ===
            root@debian12:/home/ralf#

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

              @ralf

              Die Langfassung. Uns immer die gleiche Leier...

              NICHT ALS ROOT!!!!!!!!!!!!!!111!!!!!!!!111111111
              UND SERVER OHNE GUI!!!!!111!!!!!1!!!!!!!!1111

              R 1 Reply Last reply Reply Quote 0
              • Asgothian
                Asgothian Developer @Ralf last edited by

                @ralf sagte in Blockly läuf mal / mal nicht:

                Re: "Blockly for dummies" ... Starthilfe und Tipps

                Hallo zusammen,
                ich habe zwei Blocklys, die mal funktionieren und mal wieder nicht. Bin kein Fachmann und finde daher den Fehler nicht.
                Vielleicht kann jemand helfen ?
                Die Blockly´s sollen einen LED Stripe und eine Lichterkette von Govee schalten :
                1ca42451-8c8b-462a-a303-d65e1292d633-image.png
                e5b479a6-ea90-4dbd-b70c-71a5dfc4fbc6-image.png
                e704924d-9132-417c-a237-8af17b977a2a-image.png

                Danke im Voraus

                Bevor Du dich in die Tiefen des "ziehen wir das gesamte System auf links" begibst, würde ich zunächst einmal prüfen ob er denn überhaupt ansteuern soll, sprich überall da wo du einen Kommentar drin stehen hast den gleichen Text in eine Debug-Nachricht setzen:
                Screenshot 2024-09-17 at 16.13.35.png

                An stelle des "test" muss da natürlich Dein Text stehen. Das der als "Warnung" herausgegeben wird dient dazu die Meldungen schneller zu sehen.

                Dann weisst du zumindest das Dein Skript an Sich funktioniert, sprich der Stripe wird angesteuert.

                A.

                1 Reply Last reply Reply Quote 0
                • R
                  Ralf @Thomas Braun last edited by

                  @thomas-braun Guten Morgen,
                  in der DIAG steht ja, das nodejs nicht korrekt installiert ist. Versuche ich aber : "su iobroker nodejs-update", bekomme ich folgende Meldung :
                  ralf@debian12:~$ su iobroker nodejs-update
                  Passwort:
                  su: Fehler bei Authentifizierung
                  ... obwohl ich sicher bin, dass ich das richtige Passwort eingebe.
                  Könntest du da helfen ?

                  Thomas Braun 3 Replies Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @Ralf last edited by

                    @ralf Lass bitte jeglichen Versuch den iobroker mit root-Rechten zu starten bleiben!
                    Du meldest dich einfach nie als root an und du verwendest auch kein sudo oder su vor ioBroker-Kommandos.

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

                      @ralf

                      iob diag
                      

                      als User Ralf ausgeführt sagt in der Langfassung?

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

                        @ralf sagte in Blockly läuf mal / mal nicht:

                        su: Fehler bei Authentifizierung
                        ... obwohl ich sicher bin, dass ich das richtige Passwort eingebe.

                        Da kannst du gar kein richtiges Passwort eingeben, weil der User 'iobroker' gar kein Passwort hat.

                        R 1 Reply Last reply Reply Quote 0
                        • R
                          Ralf @Thomas Braun last edited by Ralf

                          @thomas-braun ????????????? aber ich melde mich doch gar nicht als User IOBroker an. Wo kommt dieser User her ?

                          ralf@debian12:~$ iob diag
                          [sudo] Passwort für ralf:
                          Sorry, user ralf is not allowed to execute '/usr/bin/curl -sLf https://iobroker.net/diag.sh --output /home/iobroker/.diag.sh' as iobroker on debian12.
                          ralf@debian12:~$

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

                            @ralf

                            su iobroker
                            

                            ist der Versuch sich als User 'iobroker' anzumelden. Das kann aber nicht funktionieren. Ganz offensichtlich hast du dir durch das herumgegurke mit den Rechten jetzt alles mögliche verbogen.

                            groups
                            

                            als Ralf ausgeführt sagt?

                            R 1 Reply Last reply Reply Quote 0
                            • R
                              Ralf @Thomas Braun last edited by Ralf

                              @thomas-braun
                              ralf@debian12:~$ iob diag
                              [sudo] Passwort für ralf:
                              Das hat nicht funktioniert, bitte nochmal probieren.
                              [sudo] Passwort für ralf:
                              Sorry, user ralf is not allowed to execute '/usr/bin/curl -sLf https://iobroker.net/diag.sh --output /home/iobroker/.diag.sh' as iobroker on debian12.
                              ralf@debian12:~$

                              Ich wüßte nicht, wie ich etwas verbogen haben sollte. Habe lediglich versucht mich mit su root anzumelden, was ja auch funktioniert. Ich habe allerdings für User Ralf und Root das gleiche Passwort. Kann es daran liegen ?

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

                                @ralf sagte in Blockly läuf mal / mal nicht:

                                Ich wüßte nicht, wie ich etwas verbogen haben sollte. Habe lediglich versucht mich mit su root anzumelden,

                                Und das ist schon verbogen...

                                groups
                                

                                sagt?

                                R 1 Reply Last reply Reply Quote 0
                                • R
                                  Ralf @Thomas Braun last edited by

                                  @thomas-braun sagte in Blockly läuf mal / mal nicht:

                                  groups

                                  ralf@debian12:~$ groups
                                  ralf cdrom floppy audio dip video plugdev users netdev bluetooth lpadmin scanner
                                  ralf@debian12:~$

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

                                    @ralf

                                    Als root (zum letzten Mal!):

                                    apt update 
                                    apt full-upgrade 
                                    apt install sudo
                                    usermod -aG adm,sudo,iobroker ralf
                                    exit
                                    

                                    Dann den ralf abmelden und NIE MEHR als root herumhampeln.

                                    R 1 Reply Last reply Reply Quote 0
                                    • R
                                      Ralf @Thomas Braun last edited by Ralf

                                      @thomas-braun sagte in Blockly läuf mal / mal nicht:

                                      apt full-upgrade

                                      sorry, bin da nicht so fit und für jede Hilfe dankbar !
                                      Wie meldet man Ralf ab ?

                                      root@debian12:/home/ralf# usermod -aG adm,sudo,iobroker ralf
                                      bash: usermod: Kommando nicht gefunden.
                                      root@debian12:/home/ralf#

                                      Punkt 4 funktioniert nicht : usermod -aG adm,sudo,iobroker ralf : bash: usermod: Kommando nicht gefunden.

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

                                        @ralf

                                        apt policy passwd 
                                        
                                        R 1 Reply Last reply Reply Quote 0
                                        • R
                                          Ralf @Thomas Braun last edited by

                                          @thomas-braun
                                          root@debian12:/home/ralf# apt policy passwd
                                          passwd:
                                          Installiert: 1:4.13+dfsg1-1+b1
                                          Installationskandidat: 1:4.13+dfsg1-1+b1
                                          Versionstabelle:
                                          *** 1:4.13+dfsg1-1+b1 500
                                          500 http://deb.debian.org/debian bookworm/main amd64 Packages
                                          100 /var/lib/dpkg/status
                                          root@debian12:/home/ralf#

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

                                            @ralf

                                            Dann muss es auch usermod geben.
                                            Keine Ahnung was da wie installiert wurde, aber das sieht krumm und schief aus.
                                            Installier es neu und diesmal vergibst du KEIN Passwort für den root.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            910
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            28
                                            1235
                                            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