Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Fehler bei der Installation

    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

    SOLVED Fehler bei der Installation

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

      Habe Debian 10.3.0 neu installiert und dann laut Anleitung iobroker.
      Leider kommen während der Installation unter Schritt 3 einige Meldungen mit denen ich nichts anfangen kann.
      Ist das alles korrekt so?

      root@iobroker:/# node -v
      v10.19.0
      root@iobroker:/# nodejs -v
      v10.19.0
      root@iobroker:/# npm -v
      6.13.4
      root@iobroker:/# curl -sL https://iobroker.net/install.sh | bash -
      library: loaded
      Library version=2020-01-30
      
      ==========================================================================
      
          Welcome to the ioBroker installer!
          Installer version: 2020-01-25
      
      ==========================================================================
      
      
      ==========================================================================
          Installing prerequisites (1/4)
      ==========================================================================
      
      OK:1 http://deb.debian.org/debian buster InRelease
      OK:2 http://security.debian.org/debian-security buster/updates InRelease
      OK:3 http://deb.debian.org/debian buster-updates InRelease
      OK:4 https://deb.nodesource.com/node_10.x buster InRelease
      Paketlisten werden gelesen... Fertig
      Changing npm registry to https://registry.npmjs.org
      Installed gcc-c++
      
      ==========================================================================
          Creating ioBroker user and directory (2/4)
      ==========================================================================
      
      Created /etc/sudoers.d/iobroker
      Directory /opt/iobroker created
      
      ==========================================================================
          Installing ioBroker (3/4)
      ==========================================================================
      
      In file included from ../src/main.cpp:3:
      ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
      ../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
           , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                    ^
      In file included from ../../nan/nan.h:54,
                       from ../src/main.cpp:3:
      ../src/main.cpp: At global scope:
      /root/.cache/node-gyp/10.19.0/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
             (node::addon_register_func) (regfunc),                          \
                                                 ^
      /root/.cache/node-gyp/10.19.0/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
         NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
         ^~~~~~~~~~~~~
      ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
       NODE_MODULE(diskusage, Init)
       ^~~~~~~~~~~
      In file included from /root/.cache/node-gyp/10.19.0/include/node/node.h:63,
                       from ../../nan/nan.h:54,
                       from ../src/main.cpp:3:
      /root/.cache/node-gyp/10.19.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
      /root/.cache/node-gyp/10.19.0/include/node/node_object_wrap.h:84:78:   required from here
      /root/.cache/node-gyp/10.19.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                      reinterpret_cast<Callback>(callback), type);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /root/.cache/node-gyp/10.19.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
      ../../nan/nan_object_wrap.h:65:61:   required from here
      /root/.cache/node-gyp/10.19.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
      In file included from ../src/unix_dgram.cc:5:
      ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
      ../../nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
           , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                    ^
      In file included from ../../nan/nan.h:54,
                       from ../src/unix_dgram.cc:5:
      ../src/unix_dgram.cc: At global scope:
      /root/.cache/node-gyp/10.19.0/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
             (node::addon_register_func) (regfunc),                          \
                                                 ^
      /root/.cache/node-gyp/10.19.0/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
         NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
         ^~~~~~~~~~~~~
      ../src/unix_dgram.cc:404:1: note: in expansion of macro ‘NODE_MODULE’
       NODE_MODULE(unix_dgram, Initialize)
       ^~~~~~~~~~~
      In file included from /root/.cache/node-gyp/10.19.0/include/node/node.h:63,
                       from ../../nan/nan.h:54,
                       from ../src/unix_dgram.cc:5:
      /root/.cache/node-gyp/10.19.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
      /root/.cache/node-gyp/10.19.0/include/node/node_object_wrap.h:84:78:   required from here
      /root/.cache/node-gyp/10.19.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                      reinterpret_cast<Callback>(callback), type);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /root/.cache/node-gyp/10.19.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
      ../../nan/nan_object_wrap.h:65:61:   required from here
      /root/.cache/node-gyp/10.19.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
      Some packets could not be installed. Please install them manually
      Some packets could not be installed. Please install them manually
      Some packets could not be installed. Please install them manually
      
      ==========================================================================
          Finalizing installation (4/4)
      ==========================================================================
      
      Enabling autostart...
      Autostart enabled!
      Fixing directory permissions...
      
      ==========================================================================
      
          ioBroker was installed successfully
          Open http://192.168.177.44:8081 in a browser and start configuring!
      
      ==========================================================================
      
      
      You need to re-login before doing anything else on the console!
      
      root@iobroker:/#
      
      
      FredF 1 Reply Last reply Reply Quote 0
      • FredF
        FredF Most Active Forum Testing @martin last edited by

        @martin sagte in Fehler bei der Installation:

        Ist das alles korrekt so?

        Diese Meldungen hatte ich auch. System läuft.
        Sind ja keine Fehlermeldungen und es wird gemeldet

        ioBroker was installed successfully
        
        1 Reply Last reply Reply Quote 0
        • M
          martin last edited by

          Danke.
          Habe jetzt versucht das letzte Backup einzuspielen.

          Hier aber jetzt Probleme mit denen ich nicht klar komme.

          root@iobroker:/# iobroker stop
          root@iobroker:/# iobroker restore 0
          host.iobroker Using backup file total_2019_11_25-02_00_10_backupiobroker.tar.gz
          host.iobroker Cannot find extracted file from file "/opt/iobroker/node_modules/iobroker.js-controller/tmp/backup/backup.json"
          iobroker controller daemon is not running
          host.iobroker OK.
          (node:4959) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.js-controller/tmp/backup/backup.json'
              at Object.openSync (fs.js:443:3)
              at Object.readFileSync (fs.js:343:35)
              at BackupRestore.restoreAfterStop (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:566:23)
              at Daemon.daemon.on (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:846:22)
              at Daemon.emit (events.js:203:15)
              at Daemon._kill (/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:246:14)
              at Daemon.stop (/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:185:17)
              at tar.extract.err (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:848:20)
          (node:4959) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
          (node:4959) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
          root@iobroker:/#
          
          
          FredF 1 Reply Last reply Reply Quote 0
          • FredF
            FredF Most Active Forum Testing @martin last edited by

            @martin
            Ich bin mir nicht sicher, aber muß ioBroker vorher gestoppt werden?

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

              Wenn er läuft kommt die Meldung, dass man ihn stoppen soll.

              FredF 1 Reply Last reply Reply Quote 0
              • FredF
                FredF Most Active Forum Testing @martin last edited by

                @martin
                Das gemacht

                You need to re-login before doing anything else on the console!
                
                1 Reply Last reply Reply Quote 0
                • M
                  martin last edited by martin

                  Ja, ich mache nach jedem Schritt ein Reboot.

                  root@iobroker:~# iobroker upgrade self
                  Host    "iobroker"       is up to date.
                  
                  
                  FredF 1 Reply Last reply Reply Quote 0
                  • FredF
                    FredF Most Active Forum Testing @martin last edited by

                    @martin Dann probier doch mal das fixer script drüber laufen zu lassen.

                    curl -sL https://iobroker.net/fix.sh | bash -
                    
                    1 Reply Last reply Reply Quote 1
                    • M
                      martin last edited by

                      Habe jetzt alles (Debian + Iobroker) neu aufgesetzt.

                      root@iobroker:~# iobroker restore 0
                      host.iobroker Using backup file total_2019_11_25-02_00_10_backupiobroker.tar.gz
                      host.iobroker Cannot find extracted file from file "/opt/iobroker/node_modules/iobroker.js-controller/tmp/backup/backup.json"
                      iobroker controller daemon is not running
                      
                      

                      Dann das Fixer-Script laufen lassen (erfolgreich) und nochmal restore.

                      root@iobroker:~# iobroker restore 0
                      host.iobroker Using backup file total_2019_11_25-02_00_10_backupiobroker.tar.gz
                      host.iobroker Cannot find extracted file from file "/opt/iobroker/node_modules/iobroker.js-controller/tmp/backup/backup.json"
                      iobroker controller daemon is not running
                      host.iobroker OK.
                      root@iobroker:~#
                      
                      

                      Ich habe von der gecrashten Festplatte den /opt/iobroker Ordner kopieren können.
                      Kann ich den einfach per FTP drüber bügeln?

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

                        Habe es jetzt mal mit "backitup" versucht.

                        ======================
                        Log Backitup Restore:
                        ======================
                        
                        [DEBUG] [iobroker] Start ioBroker Restore ...
                        [ERROR] [iobroker] host.iobroker Cannot find extracted file from file "/opt/iobroker/node_modules/iobroker.js-controller/tmp/backup/backup.json"
                        [DEBUG] [iobroker] iobroker controller daemon is not running
                        [DEBUG] [iobroker] host.iobroker OK.
                        [DEBUG] [iobroker] ioBroker Restore completed successfully
                        [EXIT] 9 **** Restore completed successfully!! ****
                        
                        The log can be closed ...
                        
                        
                        1 Reply Last reply Reply Quote 0
                        • M
                          martin last edited by

                          Und nach iobroker upgrade self das hier:

                          root@iobroker:/opt/iobroker# iobroker restore 0
                          host.iobroker Using backup file iobroker_2020_02_18-19_14_04_backupiobroker.tar.gz
                          host.iobroker Cannot find extracted file from file "/opt/iobroker/node_modules/iobroker.js-controller/tmp/backup/backup.json"
                          iobroker controller daemon is not running
                          host.iobroker OK.
                          (node:1151) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.js-controller/tmp/backup/backup.json'
                              at Object.openSync (fs.js:439:3)
                              at Object.readFileSync (fs.js:344:35)
                              at BackupRestore.restoreAfterStop (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:566:23)
                              at Daemon.daemon.on (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:846:22)
                              at Daemon.emit (events.js:194:15)
                              at Daemon._kill (/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:246:14)
                              at Daemon.stop (/opt/iobroker/node_modules/daemonize2/lib/daemonize.js:185:17)
                              at tar.extract.err (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupBackup.js:848:20)
                          (node:1151) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
                          (node:1151) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
                          root@iobroker:/opt/iobroker#
                          
                          
                          1 Reply Last reply Reply Quote 0
                          • M
                            martin last edited by

                            Lösung:

                            du legst dein Backup in den Ordner /opt/iobroker und führst folgenden Befehl in diesem Ordner aus:

                            iobroker stop
                            cd /opt/iobroker
                            sudo tar -xzvf Backupname.tar.gz -C /opt/iobroker
                            iobroker start
                            

                            Jetzt läuft alles zumindest mal wieder und meine Daten sind da.
                            Werde die nächsten Tage mal ein Standard-Backup erstellen das ich dann hoffentlich in eine saubere Neuinstallation per "Restore" einspielen kann.

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            919
                            Online

                            31.9k
                            Users

                            80.1k
                            Topics

                            1.3m
                            Posts

                            iobroker installation
                            2
                            12
                            952
                            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