Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Fehler beim Update verschiedenster Adapter

    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

    UNSOLVED Fehler beim Update verschiedenster Adapter

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

      Hey,
      hast Recht, steht nirgendwo.
      Der "fix" läuft ohne Fehler etc durch.
      Wie gesagt dachte ich, dass ich statt immer sudo zu schreiben auch gleich als root arbeiten kann (bei der Installation). Das ist mein Fehler.
      Edit: also nicht falsch verstehen. Ich bin mir bewusst, dass ich was falsch gemacht habe. Ich habe nur gehofft ihr könnt mir helfen es gerade zu rücken. Warum es schief gelaufen ist weiß ich ja jetzt schon mal 😞
      Edit 2: es läuft ja auch alles, aber die Fehlermeldungen haben mir bewusst gemacht, dass das evtl nicht so bleibt. Updates 'klappen' mit Fehler Meldung und es werden auch wirklich die neuen Versionen installiert.

      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @M-A-X last edited by

        @M-A-X
        Das 'geraderücken' ist nur verdammt schwer, ohne zu wissen was du da seit wann in der root-Shell veranstaltet hast.

        Stell dich mal als user in /opt/iobroker und dann versuchst du das nochmal:

        npm install iobroker.simple-api@2.4.3 --loglevel error --prefix "/opt/iobroker"
        
        1 Reply Last reply Reply Quote 0
        • M
          M-A-X last edited by M-A-X

          Hey,
          vielen Dank, dass du trotzdem hilfst.
          da kommt:

          max@debian:/opt/iobroker$ npm install iobroker.simple-api@2.4.3 --loglevel error                                                                 --prefix "/opt/iobroker"
          
          > authenticate-pam@1.0.2 install /opt/iobroker/node_modules/authenticate-pam
          > node-gyp rebuild
          
          make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird betreten
            CXX(target) Release/obj.target/authenticate_pam/authenticate_pam.o
          In file included from ../authenticate_pam.cc:23:
          ../../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)
                                                                        ^
          ../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]
             Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args);
                                                                                                 ^
          In file included from ../authenticate_pam.cc:23:
          ../../nan/nan.h:1024:46: note: declared here
             NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                                                        ^~~~~~~~~~~~
          ../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]
             Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args);
                                                                                                 ^
          In file included from ../authenticate_pam.cc:23:
          ../../nan/nan.h:1024:46: note: declared here
             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: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
             Local<Value> res = options->Get(Nan::New<String>("serviceName").ToLocalChecked());
                                                                                             ^
          In file included from /home/max/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14,
                           from /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                           from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67,
                           from ../../nan/nan.h:54,
                           from ../authenticate_pam.cc:23:
          /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here
             V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                             ^~~
          /home/max/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
             declarator __attribute__((deprecated(message)))
             ^~~~~~~~~~
          ../authenticate_pam.cc:150:69: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’
              serviceName->WriteUtf8(m->serviceName, sizeof(m->serviceName) - 1);
                                                                               ^
          In file included from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67,
                           from ../../nan/nan.h:54,
                           from ../authenticate_pam.cc:23:
          /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
             int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                 ^~~~~~~~~
          /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
          ../authenticate_pam.cc:152:69: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
             res = options->Get(Nan::New<String>("remoteHost").ToLocalChecked());
                                                                               ^
          In file included from /home/max/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14,
                           from /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                           from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67,
                           from ../../nan/nan.h:54,
                           from ../authenticate_pam.cc:23:
          /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here
             V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                             ^~~
          /home/max/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
             declarator __attribute__((deprecated(message)))
             ^~~~~~~~~~
          ../authenticate_pam.cc:155:66: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’
              remoteHost->WriteUtf8(m->remoteHost, sizeof(m->remoteHost) - 1);
                                                                            ^
          In file included from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67,
                           from ../../nan/nan.h:54,
                           from ../authenticate_pam.cc:23:
          /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
             int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                 ^~~~~~~~~
          /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
          ../authenticate_pam.cc:160:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’
            username->WriteUtf8(m->username, sizeof(m->username) - 1);
                                                                    ^
          In file included from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67,
                           from ../../nan/nan.h:54,
                           from ../authenticate_pam.cc:23:
          /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
             int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                 ^~~~~~~~~
          /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
          ../authenticate_pam.cc:161:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’
            password->WriteUtf8(m->password, sizeof(m->password) - 1);
                                                                    ^
          In file included from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67,
                           from ../../nan/nan.h:54,
                           from ../authenticate_pam.cc:23:
          /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
             int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                 ^~~~~~~~~
          /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
          ../authenticate_pam.cc: At global scope:
          ../authenticate_pam.cc:170:11: error: variable or field ‘init’ declared void
           void init(Handle<Object> exports) {
                     ^~~~~~
          ../authenticate_pam.cc:170:11: error: ‘Handle’ was not declared in this scope
          ../authenticate_pam.cc:170:11: note: suggested alternative: ‘rand_r’
           void init(Handle<Object> exports) {
                     ^~~~~~
                     rand_r
          ../authenticate_pam.cc:170:24: error: expected primary-expression before ‘>’ token
           void init(Handle<Object> exports) {
                                  ^
          ../authenticate_pam.cc:170:26: error: ‘exports’ was not declared in this scope
           void init(Handle<Object> exports) {
                                    ^~~~~~~
          In file included from ../../nan/nan.h:54,
                           from ../authenticate_pam.cc:23:
          ../authenticate_pam.cc:175:31: error: ‘init’ was not declared in this scope
           NODE_MODULE(authenticate_pam, init);
                                         ^~~~
          /home/max/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                 (node::addon_register_func) (regfunc),                          \
                                              ^~~~~~~
          ../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’
           NODE_MODULE(authenticate_pam, init);
           ^~~~~~~~~~~
          ../authenticate_pam.cc:175:31: note: suggested alternative: ‘int’
           NODE_MODULE(authenticate_pam, init);
                                         ^~~~
          /home/max/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                 (node::addon_register_func) (regfunc),                          \
                                              ^~~~~~~
          ../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’
           NODE_MODULE(authenticate_pam, init);
           ^~~~~~~~~~~
          make: *** [authenticate_pam.target.mk:111: Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1
          make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird verlassen
          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:310:20)
          gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
          gyp ERR! System Linux 4.19.0-8-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 v12.16.3
          gyp ERR! node-gyp -v v5.1.0
          gyp ERR! not ok
          
          > node-bluetooth@1.2.6 install /opt/iobroker/node_modules/node-bluetooth
          > node-gyp configure build
          
          make: Verzeichnis „/opt/iobroker/node_modules/node-bluetooth/build“ wird betreten
            CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o
          In file included from ../src/DeviceINQ.h:17,
                           from ../src/linux/BluetoothSerialPort.cc:13:
          ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
          ../node_modules/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)
                                                                        ^
          ../src/linux/BluetoothSerialPort.cc: At global scope:
          ../src/linux/BluetoothSerialPort.cc:18:14: error: variable or field ‘InitAll’ declared void
           void InitAll(Handle<Object> exports) {
                        ^~~~~~
          ../src/linux/BluetoothSerialPort.cc:18:14: error: ‘Handle’ was not declared in this scope
          ../src/linux/BluetoothSerialPort.cc:18:14: note: suggested alternative: ‘rand_r’
           void InitAll(Handle<Object> exports) {
                        ^~~~~~
                        rand_r
          ../src/linux/BluetoothSerialPort.cc:18:27: error: expected primary-expression before ‘>’ token
           void InitAll(Handle<Object> exports) {
                                     ^
          ../src/linux/BluetoothSerialPort.cc:18:29: error: ‘exports’ was not declared in this scope
           void InitAll(Handle<Object> exports) {
                                       ^~~~~~~
          In file included from ../src/linux/BluetoothSerialPort.cc:12:
          ../src/linux/BluetoothSerialPort.cc:23:34: error: ‘InitAll’ was not declared in this scope
           NODE_MODULE(BluetoothSerialPort, InitAll)
                                            ^~~~~~~
          /home/max/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                 (node::addon_register_func) (regfunc),                          \
                                              ^~~~~~~
          ../src/linux/BluetoothSerialPort.cc:23:1: note: in expansion of macro ‘NODE_MODULE’
           NODE_MODULE(BluetoothSerialPort, InitAll)
           ^~~~~~~~~~~
          make: *** [BluetoothSerialPort.target.mk:117: Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o] Fehler 1
          make: Verzeichnis „/opt/iobroker/node_modules/node-bluetooth/build“ wird verlassen
          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:310:20)
          gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
          gyp ERR! System Linux 4.19.0-8-amd64
          gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
          gyp ERR! cwd /opt/iobroker/node_modules/node-bluetooth
          gyp ERR! node -v v12.16.3
          gyp ERR! node-gyp -v v5.1.0
          gyp ERR! not ok
          + iobroker.simple-api@2.4.3
          removed 8 packages and updated 1 package in 61.464s
          
          47 packages are looking for funding
            run `npm fund` for details
          
          

          EDIT: mir scheint, dass es irgendwie mit Bluetooth Probleme gibt. Obwohl der Adapter doch nichts damit zu tun hat, kommen Meldungen hierzu

          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @M-A-X last edited by

            @M-A-X
            Da werden zwei node-Module gebaut.
            simple-api und node-bluetooth

            simple-api müsste jetzt aber durch sein.

            npm install node-bluetooth@1.2.6 --loglevel error
            

            in /opt/iobroker

            1 Reply Last reply Reply Quote 0
            • M
              M-A-X last edited by

              das ergibt:

              max@debian:/opt/iobroker$ npm install node-bluetooth@1.2.6 --loglevel error
              
              > authenticate-pam@1.0.2 install /opt/iobroker/node_modules/authenticate-pam
              > node-gyp rebuild
              
              make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird betreten
                CXX(target) Release/obj.target/authenticate_pam/authenticate_pam.o
              In file included from ../authenticate_pam.cc:23:
              ../../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)
                                                                            ^
              ../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]
                 Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args);
                                                                                                     ^
              In file included from ../authenticate_pam.cc:23:
              ../../nan/nan.h:1024:46: note: declared here
                 NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                                                            ^~~~~~~~~~~~
              ../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]
                 Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args);
                                                                                                     ^
              In file included from ../authenticate_pam.cc:23:
              ../../nan/nan.h:1024:46: note: declared here
                 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: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                 Local<Value> res = options->Get(Nan::New<String>("serviceName").ToLocalChecked());
                                                                                                 ^
              In file included from /home/max/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14,
                               from /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                               from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67,
                               from ../../nan/nan.h:54,
                               from ../authenticate_pam.cc:23:
              /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here
                 V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                                 ^~~
              /home/max/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                 declarator __attribute__((deprecated(message)))
                 ^~~~~~~~~~
              ../authenticate_pam.cc:150:69: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’
                  serviceName->WriteUtf8(m->serviceName, sizeof(m->serviceName) - 1);
                                                                                   ^
              In file included from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67,
                               from ../../nan/nan.h:54,
                               from ../authenticate_pam.cc:23:
              /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
                 int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                     ^~~~~~~~~
              /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
              ../authenticate_pam.cc:152:69: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                 res = options->Get(Nan::New<String>("remoteHost").ToLocalChecked());
                                                                                   ^
              In file included from /home/max/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14,
                               from /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                               from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67,
                               from ../../nan/nan.h:54,
                               from ../authenticate_pam.cc:23:
              /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here
                 V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                                 ^~~
              /home/max/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                 declarator __attribute__((deprecated(message)))
                 ^~~~~~~~~~
              ../authenticate_pam.cc:155:66: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’
                  remoteHost->WriteUtf8(m->remoteHost, sizeof(m->remoteHost) - 1);
                                                                                ^
              In file included from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67,
                               from ../../nan/nan.h:54,
                               from ../authenticate_pam.cc:23:
              /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
                 int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                     ^~~~~~~~~
              /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
              ../authenticate_pam.cc:160:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’
                username->WriteUtf8(m->username, sizeof(m->username) - 1);
                                                                        ^
              In file included from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67,
                               from ../../nan/nan.h:54,
                               from ../authenticate_pam.cc:23:
              /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
                 int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                     ^~~~~~~~~
              /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
              ../authenticate_pam.cc:161:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’
                password->WriteUtf8(m->password, sizeof(m->password) - 1);
                                                                        ^
              In file included from /home/max/.cache/node-gyp/12.16.3/include/node/node.h:67,
                               from ../../nan/nan.h:54,
                               from ../authenticate_pam.cc:23:
              /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
                 int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                     ^~~~~~~~~
              /home/max/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
              ../authenticate_pam.cc: At global scope:
              ../authenticate_pam.cc:170:11: error: variable or field ‘init’ declared void
               void init(Handle<Object> exports) {
                         ^~~~~~
              ../authenticate_pam.cc:170:11: error: ‘Handle’ was not declared in this scope
              ../authenticate_pam.cc:170:11: note: suggested alternative: ‘rand_r’
               void init(Handle<Object> exports) {
                         ^~~~~~
                         rand_r
              ../authenticate_pam.cc:170:24: error: expected primary-expression before ‘>’ token
               void init(Handle<Object> exports) {
                                      ^
              ../authenticate_pam.cc:170:26: error: ‘exports’ was not declared in this scope
               void init(Handle<Object> exports) {
                                        ^~~~~~~
              In file included from ../../nan/nan.h:54,
                               from ../authenticate_pam.cc:23:
              ../authenticate_pam.cc:175:31: error: ‘init’ was not declared in this scope
               NODE_MODULE(authenticate_pam, init);
                                             ^~~~
              /home/max/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                     (node::addon_register_func) (regfunc),                          \
                                                  ^~~~~~~
              ../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’
               NODE_MODULE(authenticate_pam, init);
               ^~~~~~~~~~~
              ../authenticate_pam.cc:175:31: note: suggested alternative: ‘int’
               NODE_MODULE(authenticate_pam, init);
                                             ^~~~
              /home/max/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                     (node::addon_register_func) (regfunc),                          \
                                                  ^~~~~~~
              ../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’
               NODE_MODULE(authenticate_pam, init);
               ^~~~~~~~~~~
              make: *** [authenticate_pam.target.mk:111: Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1
              make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird verlassen
              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:310:20)
              gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
              gyp ERR! System Linux 4.19.0-8-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 v12.16.3
              gyp ERR! node-gyp -v v5.1.0
              gyp ERR! not ok
              
              > node-bluetooth@1.2.6 install /opt/iobroker/node_modules/node-bluetooth
              > node-gyp configure build
              
              make: Verzeichnis „/opt/iobroker/node_modules/node-bluetooth/build“ wird betreten
                CXX(target) Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o
              In file included from ../src/DeviceINQ.h:17,
                               from ../src/linux/BluetoothSerialPort.cc:13:
              ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
              ../node_modules/nan/nan.h:2294: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)
                                                                            ^
              ../src/linux/BluetoothSerialPort.cc: At global scope:
              ../src/linux/BluetoothSerialPort.cc:18:14: error: variable or field ‘InitAll’ declared void
               void InitAll(Handle<Object> exports) {
                            ^~~~~~
              ../src/linux/BluetoothSerialPort.cc:18:14: error: ‘Handle’ was not declared in this scope
              ../src/linux/BluetoothSerialPort.cc:18:14: note: suggested alternative: ‘rand_r’
               void InitAll(Handle<Object> exports) {
                            ^~~~~~
                            rand_r
              ../src/linux/BluetoothSerialPort.cc:18:27: error: expected primary-expression before ‘>’ token
               void InitAll(Handle<Object> exports) {
                                         ^
              ../src/linux/BluetoothSerialPort.cc:18:29: error: ‘exports’ was not declared in this scope
               void InitAll(Handle<Object> exports) {
                                           ^~~~~~~
              In file included from ../src/linux/BluetoothSerialPort.cc:12:
              ../src/linux/BluetoothSerialPort.cc:23:34: error: ‘InitAll’ was not declared in this scope
               NODE_MODULE(BluetoothSerialPort, InitAll)
                                                ^~~~~~~
              /home/max/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                     (node::addon_register_func) (regfunc),                          \
                                                  ^~~~~~~
              ../src/linux/BluetoothSerialPort.cc:23:1: note: in expansion of macro ‘NODE_MODULE’
               NODE_MODULE(BluetoothSerialPort, InitAll)
               ^~~~~~~~~~~
              make: *** [BluetoothSerialPort.target.mk:117: Release/obj.target/BluetoothSerialPort/src/linux/BluetoothSerialPort.o] Fehler 1
              make: Verzeichnis „/opt/iobroker/node_modules/node-bluetooth/build“ wird verlassen
              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:310:20)
              gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
              gyp ERR! System Linux 4.19.0-8-amd64
              gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
              gyp ERR! cwd /opt/iobroker/node_modules/node-bluetooth
              gyp ERR! node -v v12.16.3
              gyp ERR! node-gyp -v v5.1.0
              gyp ERR! not ok
              npm ERR! code ELIFECYCLE
              npm ERR! errno 1
              npm ERR! node-bluetooth@1.2.6 install: `node-gyp configure build`
              npm ERR! Exit status 1
              npm ERR!
              npm ERR! Failed at the node-bluetooth@1.2.6 install script.
              npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
              
              npm ERR! A complete log of this run can be found in:
              npm ERR!     /home/max/.npm/_logs/2020-05-01T14_22_38_389Z-debug.log
              
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @M-A-X last edited by

                @M-A-X
                Ich bin raus. Keine Idee mehr.
                Ich würde das System neu und dann sauber (ohne root-login!) aufsetzen.

                1 Reply Last reply Reply Quote 0
                • M
                  M-A-X last edited by M-A-X

                  Schade 😞
                  Aber vielen Dank trotzdem und einen schönen Feiertag noch.
                  Ich warte mal ab (da ja alles läuft). Vielleicht hat jemand anderes ja noch ne Idee.

                  EDIT: Achja: Wenn ich das System neu installiere (Debian + iobroker nach anleitung (ohne Root^^) kann ich dann das iobroker backup einfach zurück spielen? oder haue ich mir dann fehler wieder rein? Soweit ich das verstehe sind im Backup doch nur einstellungen und welche Adapter installiert sind - installiert werden die aber neu?!?
                  EDIT2: Kann es sein, dass einer der Adapter, die Bluetooth verwenden, einfach ein Problem mit Node.js 12 haben? also bei meinem System ble oder radar2? oder dass ein Modul, das bluetooth-node braucht noch nicht verfügbar ist in der richtigen Version?

                  ? 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @M-A-X last edited by

                    @M-A-X
                    Zufällig Radar2 installiert?
                    Den Fehler mit dem BluetoothSerialPort habe ich hier auch.
                    Vermute das der Adapter da irgend eine alte Abhängigkeit installieren will, was unter Buster wohl fehlschlägt.
                    Funktioniert aber trotzdem der Adapter.
                    Ist nur Nervig die ständigen Fehlermeldungen.

                    1 Reply Last reply Reply Quote 0
                    • M
                      M-A-X last edited by

                      Oh,
                      jetzt hat sich mein EDIT2 mit dir überschnitten.
                      Genau das war jetzt auch meine Vermutung... BLE oder Radar2 versuchen irgendwas zu installieren, was es (noch) nicht gibt?!?

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

                        Hi!
                        @M-A-X
                        Sorry für's Leichenfleddern, aber hast du jemals herausgefunden was das Problem war?

                        Marcus

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          M-A-X @MaZchen last edited by

                          @mazchen leider nein... Ich hab neu installiert

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          716
                          Online

                          31.9k
                          Users

                          80.1k
                          Topics

                          1.3m
                          Posts

                          adapter update error nodejs 12
                          4
                          21
                          1137
                          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