Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Neue Installationsroutine (für Linux)

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Neue Installationsroutine (für Linux)

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

      @Homoran falls iobroker stop funktioniert was soll ich denn dann machen

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

        @denjo
        Den Controller wie beschrieben updaten

        D 1 Reply Last reply Reply Quote 0
        • D
          denjo @Homoran last edited by

          @Homoran nicht das ich wieder was falsch verstehe, also so dann

          cd /opt/iobroker
          sudo iobroker stop
          sudo iobroker update
          sudo iobroker upgrade self
          sudo iobroker start

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

            @denjo

            Yepp!

            AlCalzone 1 Reply Last reply Reply Quote 0
            • AlCalzone
              AlCalzone Developer @Homoran last edited by

              @Homoran @denjo
              BITTE. KEIN. sudo! (außer ggf. bei systemctl)
              Nach Ausführen des Fixers ist das nicht nötig und ggf. sogar schädlich.

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

                @AlCalzone sagte in Neue Installationsroutine und neue Anleitungen (für Linux-basierte Systeme):

                ggf. sogar schädlich

                Das wusste ich nicht, das andere schon, wollte aber @denjo nicht noch weiter verunsichern

                1 Reply Last reply Reply Quote 0
                • D
                  denjo last edited by

                  ja cool, so hat geklappt.
                  für alle die so blöd sind wie ich hier:

                  cd /opt/iobroker
                  sudo systemctl stop iobroker
                  curl -sL https://iobroker.net/fix.sh | bash -
                  start iobroker
                  
                  cd /opt/iobroker
                  iobroker stop
                  iobroker update
                  iobroker upgrade self
                  iobroker start
                  
                  AlCalzone 1 Reply Last reply Reply Quote 1
                  • AlCalzone
                    AlCalzone Developer @denjo last edited by AlCalzone

                    @denjo sagte in Neue Installationsroutine und neue Anleitungen (für Linux-basierte Systeme):

                    start iobroker

                    Du meinst doch sicher iobroker start, oder?

                    Außerdem: Wenn du eh planst, upzugraden, ist Start und anschließender Stop nicht nötig. Geht also kürzer:

                    cd /opt/iobroker
                    sudo systemctl stop iobroker
                    curl -sL https://iobroker.net/fix.sh | bash -
                    iobroker update
                    iobroker upgrade self
                    iobroker start
                    

                    Und wenn ich ganz pedantisch sein will:
                    sudo systemctl stop iobroker funktioniert auch nicht auf allen alten Installationen. Der Befehl muss möglicherweise (wenn der Fixer über laufende Instanzen meckert) durch iobroker stop ersetzt werden.

                    1 Reply Last reply Reply Quote 0
                    • X
                      x3l4 last edited by

                      Die Links aus dem ersten Beitrag funktionieren leider nicht mehr...

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

                        @x3l4 sagte in Neue Installationsroutine und neue Anleitungen (für Linux-basierte Systeme):

                        Die Links aus dem ersten Beitrag funktionieren leider nicht mehr...

                        Welche brauchst du denn genau?

                        sind das die Zeilen, die du suchst?
                        https://www.iobroker.net/#de/documentation/install/linux.md

                        X 1 Reply Last reply Reply Quote 0
                        • X
                          x3l4 @Homoran last edited by

                          @Homoran Ich habe alles gefunden, war nur eine Anmerkung.

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

                            Hi,
                            ich habe grade ein frisches System mit iobroker versehen wollen. Hab wieder die Anleitung und das Skript verwendet weil es beim letzten mal so gut geklappt hat.

                            Bin nach der Anleitung hier: https://www.iobroker.net/#de/documentation/install/linux.md vorgegangen und hab jeden Schritt ausgeführt. Installiert habe ich in ein Debian Stretch Lite auf einem Rock64. Node und npm mußte ich erst noch installieren.

                            Das Installationsskript ist erfolgreich durchlaufen worden.

                            
                            ==========================================================================
                                Finalizing installation (4/4)
                            ==========================================================================
                            
                            Enabling autostart...
                            Created symlink /etc/systemd/system/multi-user.target.wants/iobroker.service → /lib/systemd/system/iobroker.service.
                            Autostart enabled!
                            Fixing directory permissions...
                            
                            ==========================================================================
                            
                                ioBroker was installed successfully
                                Open http://192.168.1.190:8081 in a browser and start configuring!
                            
                            ==========================================================================
                            
                            
                            You need to re-login before doing anything else on the console!
                            
                            

                            Habe dann versucht ein Backup meines anderen System einzuspielen und bekomme den Fehler:

                            rock64@rock64:/opt/iobroker/backups$ sudo iobroker stop
                            rock64@rock64:/opt/iobroker/backups$ sudo iobroker restore 0
                            /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:568
                                    if (parseInt(name.trim(), 10).toString() === name.trim().toString()) {
                                                      ^
                            
                            TypeError: name.trim is not a function
                                at BackupRestore.restoreBackup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:568:27)
                                at dbConnect (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:1474:28)
                                at Object.connected (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3087:29)
                                at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInMemServer.js:184:26)
                                at runCallback (timers.js:810:20)
                                at tryOnImmediate (timers.js:768:5)
                                at processImmediate [as _immediateCallback] (timers.js:745:5)
                            rock64@rock64:/opt/iobroker/backups$ sudo iobroker restore
                            Please specify one of the backup names:
                            2019_06_13-20_38_43_backupiobroker.tar.gz or 2019_06_13-20_38_43 or 0
                            rock64@rock64:/opt/iobroker/backups$ sudo iobroker restore 0
                            /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:568
                                    if (parseInt(name.trim(), 10).toString() === name.trim().toString()) {
                                                      ^
                            
                            TypeError: name.trim is not a function
                                at BackupRestore.restoreBackup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:568:27)
                                at dbConnect (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:1474:28)
                                at Object.connected (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3087:29)
                                at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInMemServer.js:184:26)
                                at runCallback (timers.js:810:20)
                                at tryOnImmediate (timers.js:768:5)
                                at processImmediate [as _immediateCallback] (timers.js:745:5)
                            rock64@rock64:/opt/iobroker/backups$ sudo systemctl stop iobroker
                            rock64@rock64:/opt/iobroker/backups$ sudo iobroker restore 0
                            /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:568
                                    if (parseInt(name.trim(), 10).toString() === name.trim().toString()) {
                                                      ^
                            
                            TypeError: name.trim is not a function
                                at BackupRestore.restoreBackup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:568:27)
                                at dbConnect (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:1474:28)
                                at Object.connected (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3087:29)
                                at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInMemServer.js:184:26)
                                at runCallback (timers.js:810:20)
                                at tryOnImmediate (timers.js:768:5)
                                at processImmediate [as _immediateCallback] (timers.js:745:5)
                            
                            

                            Hab mal auf Verdacht das Fix Skript laufen lassen.

                                Script version: 2019-05-14
                            
                                You might need to enter your password a couple of times.
                            
                            ==========================================================================
                            
                            
                            ==========================================================================
                                Installing prerequisites (1/3)
                            ==========================================================================
                            
                            
                            ==========================================================================
                                Checking ioBroker user and directory permissions (2/3)
                            ==========================================================================
                            
                            Created /etc/sudoers.d/iobroker
                            Fixing directory permissions...
                            
                            ==========================================================================
                                Checking autostart (3/3)
                            ==========================================================================
                            
                            bash: line 654: /opt/iobroker/iobroker: Permission denied
                            chmod: cannot access '/opt/iobroker/iobroker': No such file or directory
                            chown: cannot access '/opt/iobroker/iobroker': No such file or directory
                            Enabling autostart...
                            Autostart enabled!
                            
                            ==========================================================================
                            
                                Your installation was fixed successfully
                                Run iobroker start to start ioBroker again!
                            
                            ==========================================================================
                            
                            

                            Komisch fand ich da die Meldung, das auf den Ordner nicht zugegriffen werden darf. BTW: Den Befehl hatte ich einem parallelen Terminalfenster eingegeben, also noch kein Reboot oder so nach der Installation gemacht.

                            PS: Meine mich in der alten Anleitung an einen Teil bezüglich redis zu erinnern. Hab ich jetzt nicht mehr gefunden. Braucht es das nicht mehr ?

                            ciao
                            Martin

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

                              Die Suche bringt mich auf diesen Thread:
                              https://forum.iobroker.net/topic/23036/gelöst-iobroker-restore-typeerror-name-trim-is-not-a-function/1

                              Ich glaube das könnte auch dein Problem sein

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                martinschm @Homoran last edited by martinschm

                                @Homoran erneut vielen Dank, wie schon so oft in diesem Forum. bin gar nicht auf die Idee gekommen nach dem Trim zu suchen sondern war eher da unterwegs das dort irgendwelche Permissions im Fix Skript angemeckert wurden und hab vermutet das irgendwas schief gelaufen ist.

                                Ich probiere es heute abend mal aus. Ich wundere mich nur, hab ioBroker grade frisch installiert, dass da noch ein Fehler im Code drin ist der im August letzten Jahres gefixt wurde.

                                1 Reply Last reply Reply Quote 0
                                • apollon77
                                  apollon77 last edited by

                                  Danke as prüfen wir. Welche js-Controller Version hast finden bekommen?

                                  1 Reply Last reply Reply Quote 0
                                  • 0
                                    0018 last edited by

                                    Hallo zusammen,

                                    bin gerade dabei ein neues Debian9 System nach der neuen Installationsroutine aufzusetzen und anschließend mein altes System umzuziehen, Generell stellen sich mir ein paar Fragen:

                                    Muss ich bei der neuen Installation noch "sudo iobroker start" eingeben oder reicht ein "iobroker start" bzw muss generell immer sudo davor oder nicht wenn ich über die Console arbeite?
                                    Kann ich mich auch als user "iobroker" anmelden oder ist dieser nur im Hintergrund aktiv?

                                    AlCalzone 1 Reply Last reply Reply Quote 0
                                    • ICEMAN
                                      ICEMAN last edited by

                                      Hallo lieber Eric,

                                      die Links zu den Anleitungen verlaufen im Nirvana. Kannst du bitte mal nachsehen??

                                      Vielen Dank im Voraus!!

                                      mfg

                                      Eric

                                      Homoran 1 Reply Last reply Reply Quote 0
                                      • AlCalzone
                                        AlCalzone Developer @0018 last edited by AlCalzone

                                        @0018 bei neuen Installationen oder nach verwenden des fixers ist sudo so gut wie nie nötig oder sogar schädlich

                                        Als iobroker kannst du dich nur über Umwege anmelden und das sollte ebenfalls nur in Ausnahmefällen nötig sein. Zb zum generieren von ssh keys für den User.
                                        Mit den iobroker Kommandos und npm ohne sudo kannst du ganz normal als der Standard user arbeiten

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

                                          @ICEMAN sagte in Neue Installationsroutine und neue Anleitungen (für Linux-basierte Systeme):

                                          die Links zu den Anleitungen verlaufen im Nirvana.

                                          https://www.iobroker.net/#de/documentation/install/linux.md

                                          1 Reply Last reply Reply Quote 0
                                          • CKMartens
                                            CKMartens last edited by

                                            Hallo,

                                            die Links zu den Installationsroutinen führen ins leere. Es kommt die Meldung

                                            Cannot GET /docu/

                                            Homoran 1 Reply 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

                                            1.1k
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            installation
                                            64
                                            415
                                            99292
                                            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