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

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    js-controller 3.3 jetzt im STABLE!

    This topic has been deleted. Only users with topic management privileges can see it.
    • 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
                      • B
                        BlueEssi @apollon77 last edited by

                        @apollon77 Das beantwortet leider nicht meine Frage. Wie bekomme ich raus, ob meine benötigten Adapter mit 3.3 kompatibel sind?

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

                          @blueessi
                          Im stable-Repo alles auf Stand bringen.

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

                            @blueessi Wenn Du so rum fragst ist die obige Liste und Infos in diesem Thread (falls wir welche vergessen haben zu adden) aktuell und exakt wie @Thomas-Braun sagt: Wenn alles in Stable aktuell ist - oder du die adapter die du wegen "Zu altem js-controller" nicht updaten kannst gemerkt sind und gleich als erstes nach dem update aktualisiert werden ... dann sollte das nach grobem Wissen passen

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

                              @apollon77 OK, danke. Es sieht so aus, dass ich mich wohl noch eine Weile gedulden muss um auf 3.3 hochrüsten zu können. Ich hoffe, die "alten" Adapter werden irgendwann überhaupt nachgezogen.

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

                                @blueessi

                                Wie schaut denn das überhaupt aus bei dir?

                                iobroker update -i
                                
                                1 Reply Last reply Reply Quote 0
                                • apollon77
                                  apollon77 @BlueEssi last edited by

                                  @blueessi naja wenn Du genau liesst ist das einzige was die alten Adapter ggf tun ist "Info" logging zu machen das was nicht stimmt ... ehrlich ... Loglevel hochsetzen in der Wartezeit und gut ... ich denke nicht das das vom Update abhalten sollte

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

                                    @apollon77 Ok, das war mir nicht bewusst. Vielleicht könntest du den Hinweis in der Inkompatibilitäts-Auflistung oben ergänzen. Ich werde es testen. Danke.

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      sandro_gera last edited by

                                      Hallo an alle,

                                      ich hab folgende Fehlermeldung bekommen

                                      pi@RaspBerry4BioBroker:~ $ 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 --prefi                       x "/opt/iobroker" (System call)
                                      Server Cannot move /opt/iobroker/iobroker-data/objects.json.new to /opt/iobroker                       /iobroker-data/objects.json: ENOENT: no such file or directory, stat '/opt/iobro                       ker/iobroker-data/objects.json.new'. Try direct write as fallback
                                      
                                      

                                      Das update scheint aber funktioniert zu haben.

                                      Muß ich jetzt irgend etwas unternehmen?

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

                                        @sandro_gera Ne, das ist am Ende nur ne Info meldung. Wenn sonst kein Fehler ds ist ist oder kam alles ok

                                        1 Reply Last reply Reply Quote 1
                                        • NWH
                                          NWH last edited by

                                          Hallo
                                          Wollte wie immer das update per Konsole machen, aber diesmal kommt diese Meldung.
                                          Wer kann mir sagen warum ich nicht auf die Version 3.3.22 komme.

                                          557ffd69-c0fb-48e9-b3b8-a7294109e5a2-image.png

                                          Iobrocker läuft auf eine Synology im docker.

                                          Neu gestartet habe ich auch schon.

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

                                            @nwh

                                            Keine Screenshots aus der Konsole. Text als Text in CodeTags posten.

                                            Und auch keine Phantasie-Kommandos verwenden.

                                            apt upgrade
                                            

                                            für das System,

                                            iobroker upgrade self
                                            

                                            für den js-controller.

                                            NWH 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

                                            941
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

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