Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. iobroker: command not found

    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

    iobroker: command not found

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

      Hi Leute,
      ich habe vor ein paar Tagen das erst mal iobroker installiert.
      Hat nach der installation auch alles funktioniert. Bis ich am nächsten Tag wieder rein schauen wollte. Aber so wie es aussah lief iobroker nicht mehr.
      Hab dann versucht mit iobroker start das Teil neu zu starten. Hat leider nicht funktioniert. Das einzige was funktioniert hat war node node_modules/iobroker.js-controller/controller.js --logs. Dann lief es wieder. Aber am nächste Tag war es wieder aus.

      Wenn ich iobroker isrun im Terminal eingebe bekomme ich nur node: command not found

      Habt ihr eine Idee was mein Problem sein könnte?

      Ps.: node und npm versionen die ich verwende
      node -v
      v16.16.0
      npm -v
      8.11.0

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

        @mib16

        type iobroker iob
        systemctl status iobroker
        
        M 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @mib16 last edited by

          @mib16 sagte in iobroker: command not found:

          ich habe vor ein paar Tagen das erst mal iobroker installiert.

          Was und wie und auf welchem System?

          1 Reply Last reply Reply Quote 0
          • M
            mib16 @Thomas Braun last edited by mib16

            @thomas-braun
            Ich habe die zwei Commands auprobiert:

            type iobroker iob
            iobroker is hashed (/usr/bin/iobroker)
            iob is /usr/bin/iob
            
            stefan@stefanserver1:~$ 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 Sun 2022-07-31 21:27:32 UTC; 2s ago
                 Docs: http://iobroker.net
              Process: 1236 ExecStart=/bin/bash -c ${NODE} /opt/iobroker/node_modules/iobroker.js-controller/controller.js (code=exited, status=126)
             Main PID: 1236 (code=exited, status=126)
            

            Ich hab einen kleinen Linux Server mit Ubuntu laufen.

            Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-189-generic x86_64)
            
            Thomas Braun 2 Replies Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @mib16 last edited by

              @mib16

              hash -r
              sudo hash -r
              
              1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @mib16 last edited by

                @mib16

                sudo ln -s /usr/bin/node /usr/bin/nodejs
                uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                
                M 1 Reply Last reply Reply Quote 0
                • M
                  mib16 @Thomas Braun last edited by

                  @thomas-braun

                  sudo hash -r
                  sudo: hash: command not found
                  

                  hat nicht funktioniert 😒

                  Das ist der zweite Befehl:

                  uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                  x86_64
                  /home/stefan/.nvm/versions/node/v16.16.0/bin/node
                  /home/stefan/.nvm/versions/node/v16.16.0/bin/npm
                  
                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @mib16 last edited by Thomas Braun

                    @mib16

                    Man macht da auch nix mit nvm.
                    Wo hast du die Anleitung dazu her?

                    Richtig installiert man nodejs inkl. npm so:
                    https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      mib16 @Thomas Braun last edited by

                      @thomas-braun
                      ich habe node über nvm installiert damit ich die richtige version von npm und node installieren kann.

                      Aber so wie es aussieht ist jetzt iobroker ganz verschwunden. Weil über node node_modules/iobroker.js-controller/controller.jskann ich es jetzt auch nicht mehr starten.

                      und die node module sind auch alle weg:

                      npm -g list
                      npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
                      /home/stefan/.nvm/versions/node/v16.16.0/lib
                      ├── corepack@0.10.0
                      └── npm@8.11.0
                      

                      Werde heute Abend versuchen node und iobroker komplett neu zu installieren.
                      Welche Version von npm und nodejs wird von iobroker unterstützt?
                      Latest node version ist 18.7.0
                      Latest npm version ist 8.15.1
                      Kann ich die verwenden?

                      Ich bilde mir ein irgendwo mal gelesen zu haben das iobroker nur node version 16 unterstützt.

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

                        @mib16 sagte in iobroker: command not found:

                        ich habe node über nvm installiert damit ich die richtige version von npm und node installieren kann.

                        Das ist falsch, man installiert nodejs (OHNE npm) über das nodesource-Repository. Dann passt das auch alles. Die empfohlene Version ist Stand heute nodeJS16.

                        Alles was du da jetzt irgendwohin geballert hast muss weg.

                        1 Reply Last reply Reply Quote 0
                        • M
                          mib16 last edited by

                          @thomas-braun
                          Ich hab node jetzt neu installiert ohne nvm und nach der Neuinstallation von iobroker scheint jetzt alles zu funktionieren

                          stefan@stefanserver1:~$ which node
                          /usr/bin/node
                          stefan@stefanserver1:~$ which nodejs
                          /usr/bin/nodejs
                          stefan@stefanserver1:~$ which npm
                          /usr/bin/npm
                          stefan@stefanserver1:~$ node -v
                          v16.16.0
                          stefan@stefanserver1:~$ npm -v
                          8.11.0
                          

                          auch die Befehle iobroker start, iobroker isrun gehen jetzt.

                          Danke für deine Hilfe!

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

                            @mib16

                            sudo ln -s /usr/bin/node /usr/bin/nodejs
                            uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                            

                            sagt jetzt?

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              mib16 @Thomas Braun last edited by

                              @thomas-braun said in iobroker: command not found:

                              sudo ln -s /usr/bin/node /usr/bin/nodejs

                              sudo ln -s /usr/bin/node /usr/bin/nodejs
                              ln: failed to create symbolic link '/usr/bin/nodejs': File exists
                              
                              stefan@stefanserver1:~$ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                              x86_64
                              /usr/bin/nodejs
                              /usr/bin/node
                              /usr/bin/npm
                              v16.16.0
                              v16.16.0
                              8.11.0
                              stefan
                              /home/stefan
                              Hit:1 https://deb.nodesource.com/node_16.x bionic InRelease
                              Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
                              Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
                              Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
                              Get:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
                              Fetched 252 kB in 1s (225 kB/s)
                              Reading package lists... Done
                              Building dependency tree
                              Reading state information... Done
                              All packages are up to date.
                              nodejs:
                                Installed: 16.16.0-1nodesource1
                                Candidate: 16.16.0-1nodesource1
                                Version table:
                               *** 16.16.0-1nodesource1 500
                                      500 https://deb.nodesource.com/node_16.x bionic/main amd64 Packages
                                      100 /var/lib/dpkg/status
                                   8.10.0~dfsg-2ubuntu0.4 500
                                      500 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
                                   8.10.0~dfsg-2ubuntu0.2 500
                                      500 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
                                   8.10.0~dfsg-2 500
                                      500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
                              
                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @mib16 last edited by

                                @mib16

                                Ja, passt jetzt. An der Stelle noch der Hinweis auf das sich langsam abzeichnende Ende des Supports für Bionic. Schau dir da in den nächsten Wochen, spätestens im Herbst an wie da der Absprung gelingt.

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

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                761
                                Online

                                31.9k
                                Users

                                80.3k
                                Topics

                                1.3m
                                Posts

                                2
                                14
                                937
                                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