Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. js-controller 3.3 jetzt im STABLE!

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    js-controller 3.3 jetzt im STABLE!

    This topic has been deleted. Only users with topic management privileges can see it.
    • Negalein
      Negalein Global Moderator last edited by

      Hallo

      Habe heute den JS-Controller auf 3.3.22 upgedatet.
      Lt. Info ist er jetzt auf 3.3.22
      hosts - ioBroker.png

      Aber ich bekam Fehler beim Update.
      Was haben die zu bedeuten?

      nega@ioBroker:~$ iob upgrade self
      Update js-controller from @3.3.19 to @3.3.22
      NPM version: 6.14.13
      npm install iobroker.js-controller@3.3.22 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
      /bin/sh: 1: cmake: not found
      make: *** [config_deps.target.mk:13: /opt/iobroker/node_modules/cpu-features/deps/cpu_features/build/Makefile] Error 127
      gyp ERR! build error
      gyp ERR! stack Error: `make` failed with exit code: 2
      gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
      gyp ERR! stack     at ChildProcess.emit (events.js:375:28)
      gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
      gyp ERR! System Linux 5.11.22-5-pve
      gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
      gyp ERR! cwd /opt/iobroker/node_modules/cpu-features
      gyp ERR! node -v v14.17.1
      gyp ERR! node-gyp -v v5.1.0
      gyp ERR! not ok
      
      
      liv-in-sky Thomas Braun 2 Replies Last reply Reply Quote 0
      • liv-in-sky
        liv-in-sky @Negalein last edited by liv-in-sky

        @negalein
        evtl hilft das

        https://forum.iobroker.net/topic/50461/error-bei-adapter-updates-bin-sh-1-cmake-not-foundmake?_=1640161794760

        oder hier

        https://forum.iobroker.net/topic/47576/adapter-updates-fehler-cmake-not-found?_=1640161794767

        Negalein 1 Reply Last reply Reply Quote 1
        • Negalein
          Negalein Global Moderator @liv-in-sky last edited by

          @liv-in-sky sagte in js-controller 3.3 jetzt im STABLE!:

          evtl hilft das

          Merci

          hab gesucht und nichts gefunden.

          Aber hätt ich nach cmake und nicht nach ckmake gesucht, wäre ich fündig geworden! 😂

          liv-in-sky 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Negalein last edited by

            @negalein

            cmake: not found
            bedeutet, dass das Paket cmake fehlt. Nachinstallieren.

            Negalein apollon77 2 Replies Last reply Reply Quote 2
            • Negalein
              Negalein Global Moderator @Thomas Braun last edited by

              @thomas-braun sagte in js-controller 3.3 jetzt im STABLE!:

              cmake: not found
              bedeutet, dass das Paket cmake fehlt. Nachinstallieren.

              schon erledigt 🙂

              1 Reply Last reply Reply Quote 0
              • liv-in-sky
                liv-in-sky @Negalein last edited by

                @negalein

                hatte das problem auch - @Thomas-Braun hatte damals geholfen - daher wußte ich, dass es threads gibt 🙂

                1 Reply Last reply Reply Quote 0
                • crunchip
                  crunchip Forum Testing Most Active last edited by

                  gerade das update angestoßen, daher nun die Frage, ging da was schief bzw ist das relevant?

                  root@IoBroker:~# iob upgrade self
                  Update js-controller from @3.3.21 to @3.3.22
                  NPM version: 6.14.15
                  npm install iobroker.js-controller@3.3.22 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                  In file included from ../src/binding.cc:1:
                  /home/iobroker/.cache/node-gyp/14.18.2/include/node/node.h:787:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUN                            CTION_ARGS_TYPE)’ {aka ‘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),                          \
                                                             ^
                  /home/iobroker/.cache/node-gyp/14.18.2/include/node/node.h:821:3: note: in expansion of macro ‘NODE_MODULE_X’
                     NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                     ^~~~~~~~~~~~~
                  ../src/binding.cc:153:1: note: in expansion of macro ‘NODE_MODULE’
                   NODE_MODULE(cpufeatures, init)
                   ^~~~~~~~~~~
                  
                  
                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @crunchip last edited by

                    @crunchip

                    Nö, das ist normaler Output beim bauen von nodejs-Modulen.

                    1 Reply Last reply Reply Quote 2
                    • apollon77
                      apollon77 @Thomas Braun last edited by

                      @thomas-braun Wir werden es im Installer hinzufügen

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

                        @apollon77

                        Okay. Hab noch nicht geschaut wer da immer nach cmake ruft. Auf meinem System (Raspberrry 4 / 8 GB) ist es jedenfalls nicht drauf.

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

                          @thomas-braun Ein nerviges Modul node_modules/cpu-features ... https://github.com/mscdex/cpu-features/issues/1#issuecomment-930124519 🙂

                          jasonseminara created this issue in mscdex/cpu-features

                          closed Yarn install error #1

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

                            @apollon77

                            Das kommt direkt aus der nodeJS-Runtime?

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

                              @thomas-braun Nee. ein npm Modul was dann irgend wo drin ist und dann in irgendeinam adapter benötigt wird nutzt cmake um seinen binären Teil zu "Builden" ... aber keiner braucht bisher cmake also ists in keinen build-essentials Paketen und nirgends sonst drin

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

                                @apollon77

                                Ja, cmake ist schon etwas 'exotisch'.

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

                                  @thomas-braun Jupp. Ich glaube es kommt "zu uns" über ein npm modul wie ssh2 oder so was einige User im JavaScript Adapter nutzen 🙂

                                  Der Installer/Fixer wird im Rahmen des Controller 4.0 Releases cmake mit als dep dazu bekommen und so überall installieren.

                                  1 Reply Last reply Reply Quote 0
                                  • H
                                    hegse last edited by hegse

                                    Gerade das Update auf die aktuellste Version gemacht.
                                    Bekomme folgende Meldung angezeigt:

                                    hegse@Iobroker:~$ iobroker upgrade self
                                    Update js-controller from @3.3.21 to @3.3.22
                                    NPM version: 6.14.15
                                    npm install iobroker.js-controller@3.3.22 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                                    In file included from ../authenticate_pam.cc:23:
                                    ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
                                    ../../nan/nan.h:2294:7: 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]
                                     2294 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                          |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                    ../authenticate_pam.cc: In function ‘void after_doing_auth(uv_work_t*, int)’:
                                    ../authenticate_pam.cc:107:87: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
                                      107 |   Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args);
                                          |                                                                                       ^
                                    In file included from ../authenticate_pam.cc:23:
                                    ../../nan/nan.h:1026:46: note: declared here
                                     1026 |   NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                                          |                                              ^~~~~~~~~~~~
                                    ../authenticate_pam.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Authenticate(Nan::NAN_METHOD_ARGS_TYPE)’:
                                    ../authenticate_pam.cc:147:83: error: no matching function for call to ‘v8::Array::Get(v8::Local<v8::String>)’
                                      147 |   Local<Value> res = options->Get(Nan::New<String>("serviceName").ToLocalChecked());
                                          |                                                                                   ^
                                    In file included from /home/iobroker/.cache/node-gyp/14.18.1/include/node/node.h:67,
                                                     from ../../nan/nan.h:56,
                                                     from ../authenticate_pam.cc:23:
                                    /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
                                     3717 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          |                                           ^~~
                                    /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3717:43: note:   candidate expects 2 arguments, 1 provided
                                    /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
                                     3720 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          |                                           ^~~
                                    /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3720:43: note:   candidate expects 2 arguments, 1 provided
                                    ../authenticate_pam.cc:150:30: error: cannot convert ‘char [128]’ to ‘v8::Isolate*’
                                      150 |    serviceName->WriteUtf8(m->serviceName, sizeof(m->serviceName) - 1);
                                          |                           ~~~^~~~~~~~~~~
                                          |                              |
                                          |                              char [128]
                                    In file included from /home/iobroker/.cache/node-gyp/14.18.1/include/node/node.h:67,
                                                     from ../../nan/nan.h:56,
                                                     from ../authenticate_pam.cc:23:
                                    /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3037:26: note:   initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ 3037 |   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                                          |                 ~~~~~~~~~^~~~~~~
                                    ../authenticate_pam.cc:152:69: error: no matching function for call to ‘v8::Array::Get(v8::Local<v8::String>)’
                                      152 |   res = options->Get(Nan::New<String>("remoteHost").ToLocalChecked());
                                          |                                                                     ^
                                    In file included from /home/iobroker/.cache/node-gyp/14.18.1/include/node/node.h:67,
                                                     from ../../nan/nan.h:56,
                                                     from ../authenticate_pam.cc:23:
                                    /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3717:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
                                     3717 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          |                                           ^~~
                                    /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3717:43: note:   candidate expects 2 arguments, 1 provided
                                    /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3720:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
                                     3720 |   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          |                                           ^~~
                                    /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3720:43: note:   candidate expects 2 arguments, 1 provided
                                    ../authenticate_pam.cc:155:29: error: cannot convert ‘char [128]’ to ‘v8::Isolate*’
                                      155 |    remoteHost->WriteUtf8(m->remoteHost, sizeof(m->remoteHost) - 1);
                                          |                          ~~~^~~~~~~~~~
                                          |                             |
                                          |                             char [128]
                                    In file included from /home/iobroker/.cache/node-gyp/14.18.1/include/node/node.h:67,
                                                     from ../../nan/nan.h:56,
                                                     from ../authenticate_pam.cc:23:
                                    /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3037:26: note:   initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ 3037 |   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                                          |                 ~~~~~~~~~^~~~~~~
                                    ../authenticate_pam.cc:160:25: error: cannot convert ‘char [128]’ to ‘v8::Isolate*’
                                      160 |  username->WriteUtf8(m->username, sizeof(m->username) - 1);
                                          |                      ~~~^~~~~~~~
                                          |                         |
                                          |                         char [128]
                                    In file included from /home/iobroker/.cache/node-gyp/14.18.1/include/node/node.h:67,
                                                     from ../../nan/nan.h:56,
                                                     from ../authenticate_pam.cc:23:
                                    /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3037:26: note:   initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ 3037 |   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                                          |                 ~~~~~~~~~^~~~~~~
                                    ../authenticate_pam.cc:161:25: error: cannot convert ‘char [128]’ to ‘v8::Isolate*’
                                      161 |  password->WriteUtf8(m->password, sizeof(m->password) - 1);
                                          |                      ~~~^~~~~~~~
                                          |                         |
                                          |                         char [128]
                                    In file included from /home/iobroker/.cache/node-gyp/14.18.1/include/node/node.h:67,
                                                     from ../../nan/nan.h:56,
                                                     from ../authenticate_pam.cc:23:
                                    /home/iobroker/.cache/node-gyp/14.18.1/include/node/v8.h:3037:26: note:   initializing argument 1 of ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’ 3037 |   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                                          |                 ~~~~~~~~~^~~~~~~
                                    ../authenticate_pam.cc: At global scope:
                                    ../authenticate_pam.cc:170:6: error: variable or field ‘init’ declared void
                                      170 | void init(Handle<Object> exports) {
                                          |      ^~~~
                                    ../authenticate_pam.cc:170:11: error: ‘Handle’ was not declared in this scope
                                      170 | void init(Handle<Object> exports) {
                                          |           ^~~~~~
                                    ../authenticate_pam.cc:170:24: error: expected primary-expression before ‘>’ token
                                      170 | void init(Handle<Object> exports) {
                                          |                        ^
                                    ../authenticate_pam.cc:170:26: error: ‘exports’ was not declared in this scope
                                      170 | void init(Handle<Object> exports) {
                                          |                          ^~~~~~~
                                    In file included from ../../nan/nan.h:56,
                                                     from ../authenticate_pam.cc:23:
                                    ../authenticate_pam.cc:175:31: error: ‘init’ was not declared in this scope; did you mean ‘int’?
                                      175 | NODE_MODULE(authenticate_pam, init);
                                          |                               ^~~~
                                    /home/iobroker/.cache/node-gyp/14.18.1/include/node/node.h:787:36: note: in definition of macro ‘NODE_MODULE_X’
                                      787 |       (node::addon_register_func) (regfunc),                          \
                                          |                                    ^~~~~~~
                                    ../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’
                                      175 | NODE_MODULE(authenticate_pam, init);
                                          | ^~~~~~~~~~~
                                    make: *** [authenticate_pam.target.mk:111: Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1
                                    gyp ERR! build error
                                    gyp ERR! stack Error: `make` failed with exit code: 2
                                    gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
                                    gyp ERR! stack     at ChildProcess.emit (events.js:400:28)
                                    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)
                                    gyp ERR! System Linux 5.10.0-9-amd64
                                    gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                    gyp ERR! cwd /opt/iobroker/node_modules/authenticate-pam
                                    gyp ERR! node -v v14.18.1
                                    gyp ERR! node-gyp -v v5.1.0
                                    gyp ERR! not ok
                                    

                                    Soweit läuft alles nach dem Update.

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

                                      @hegse
                                      Ist da zufällig der Adapter terminal installiert? Dann schmeiß den raus.

                                      H 1 Reply Last reply Reply Quote 0
                                      • H
                                        hegse @Thomas Braun last edited by

                                        @thomas-braun ja der ist installiert.
                                        Alles klar, dann schmeiß ich den mal raus. Besten Dank!

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          BlueEssi last edited by

                                          Hallo zusammen, ist die Liste der inkompatiblen Adapter am Thread-Anfang immer noch aktuell? Ich habe inzwischen leider das Problem, dass 3-4 meiner Adapter auf dieser Liste stehen, aber andere Adapter das Upgrade voraussetzen um auf den aktuellen Stand aufzurüsten.

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

                                            @blueessi Die Aussage geht anders rum: Folgende Adapter müssen aktualisiert werden weil sie in den damals aktuellen Versionen nicht vollständig kompatibel waren.

                                            Das hat mit "eine neue version des Adapters braucht bitte js.cotnroller in Version X" nichts zu tun. Das soll verhindern das Du dir dein System kaputt machst

                                            B 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.0k
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            61
                                            344
                                            61769
                                            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