Navigation

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

    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 4.0 jetzt im BETA/LATEST!

    This topic has been deleted. Only users with topic management privileges can see it.
    • ice987
      ice987 @apollon77 last edited by

      @apollon77

      der Restart vom Container ergibt nun:

      --------------------------------------------------------------------------------
      -------------------------     2022-02-06 15:04:25      -------------------------
      --------------------------------------------------------------------------------
       
      --------------------------------------------------------------------------------
      -----                 Welcome to your ioBroker-container!                  -----
      -----                    Startupscript is now running.                     -----
      -----                          Please be patient!                          -----
      --------------------------------------------------------------------------------
       
      --------------------------------------------------------------------------------
      -----                        Debugging information                         -----
      -----                                                                      -----
      -----                                System                                -----
      -----                    arch:                x86_64                       -----
      -----                                                                      -----
      -----                             Docker-Image                             -----
      -----                    image:               v6.0.0                       -----
      -----                    build:               2021-12-17T03:48:21+00:00    -----
      -----                                                                      -----
      -----                               Versions                               -----
      -----                    /opt/scripts/iobroker_startup.sh: line 48: /usr/bin/node: Operation not permitted
      node:                                             -----
      -----                    /usr/bin/env: ‘node’: Operation not permitted
      npm:                                              -----
      -----                                                                      -----
      -----                                 ENV                                  -----
      -----                    SETGID:              1000                         -----
      -----                    SETUID:              1000                         -----
      --------------------------------------------------------------------------------
       
      --------------------------------------------------------------------------------
      -----                  Step 1 of 5: Preparing container                   -----
      --------------------------------------------------------------------------------
       
      Nothing to do here.
       
      --------------------------------------------------------------------------------
      -----             Step 2 of 5: Detecting ioBroker installation             -----
      --------------------------------------------------------------------------------
       
      Existing installation of ioBroker detected in /opt/iobroker.
       
      --------------------------------------------------------------------------------
      -----             Step 3 of 5: Checking ioBroker installation              -----
      --------------------------------------------------------------------------------
       
      (Re)Setting folder permissions (This might take a while! Please be patient!)...
      Done.
       
      Fixing "sudo-bug" by replacing sudo in iobroker with gosu...
      Done.
       
      error: exec failed: operation not permitted
      /opt/scripts/iobroker_startup.sh: line 199: [: !=: unary operator expected
      --------------------------------------------------------------------------------
      -----                Step 4 of 5: Applying special settings                -----
      --------------------------------------------------------------------------------
       
      Some adapters have special requirements/ settings which can be activated by the use of environment variables.
      For more information take a look at readme.md on Github!
       
      --------------------------------------------------------------------------------
      -----                    Step 5 of 5: ioBroker startup                     -----
      --------------------------------------------------------------------------------
       
      Starting ioBroker...
       
      error: exec failed: operation not permitted
      
      1 Reply Last reply Reply Quote 0
      • apollon77
        apollon77 @Chaot last edited by

        @chaot was ist denn de ubuntu Adapter? Und was gefällt ihm nicht?

        Chaot 1 Reply Last reply Reply Quote 0
        • ste_glei
          ste_glei @ice987 last edited by

          @ice987
          Ich hatte den gleichen log

          iobroker fix
          

          hat geholfen

          ice987 1 Reply Last reply Reply Quote 0
          • E
            e-i-k-e @apollon77 last edited by

            @apollon77
            Hallo,
            anbei wie gewünscht die komplette log.
            b04d2521-d6ec-46a9-ab5a-18d5ad80331e-iobroker.2022-02-06.log

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

              @ste_glei
              kann ich bestätigen:

              iobroker fix
              

              hilft und ioBroker läuft nun

              apollon77 E 2 Replies Last reply Reply Quote 0
              • Chaot
                Chaot @apollon77 last edited by

                @apollon77 Das ist ne uralte Leiche die mitgelaufen ist.
                https://github.com/Standarduser/ioBroker.ubuntu
                Ist mir nie aufgefallen dass das noch aktiv ist.
                Meinerseits bereits entsorgt, da überflüssig.
                Ausgegebener Fehler:

                
                ubuntu.0
                2022-02-06 12:57:13.847	error	Cannot read property 'getObjectList' of undefined
                ubuntu.0
                2022-02-06 12:57:13.846	error	TypeError: Cannot read property 'getObjectList' of undefined at Object.ready (/opt/iobroker/node_modules/iobroker.ubuntu/main.js:35:25) at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:8225:68
                ubuntu.0
                2022-02-06 12:57:13.842	error	unhandled promise rejection: Cannot read property 'getObjectList' of undefined
                ubuntu.0
                2022-02-06 12:57:13.837	error	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().
                
                amg_666 apollon77 2 Replies Last reply Reply Quote 1
                • amg_666
                  amg_666 @Chaot last edited by

                  Eben den latest/Beta runtergeladen, einmal Raspi Slave, ohne Probleme und danach auf Proxmox/Debian, biedes ohne irgendwelche Probleme.

                  1 Reply Last reply Reply Quote 1
                  • apollon77
                    apollon77 @Chaot last edited by

                    @chaot Naja,d er Hätte mit controller 3.x schon Fehler wegen "adapter.objects.getObjectList" loggen müssen und muss angepasst werden. Leg doch mal ein issue an

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

                      @ice987 Verstehe ich nicht weil der Container macht eigentlich genauein Fix beim startup soweit ich weiss ... also das wäre interessant das sich das Andre mal anschaut

                      ice987 F 3 Replies Last reply Reply Quote 0
                      • apollon77
                        apollon77 @e-i-k-e last edited by

                        @e-i-k-e Ahhh der RPI2 Adapter ist "zu nett" und fängt den Fehler so ab das der Rebuild Mechanismus vom Controller nicht greifen kann. Willste mal was versuchen?

                        Editiere mal /opt/iobroker/node_modules/iobroker.rp2/main.js und füge bei Zeile 648 das hinzu https://github.com/iobroker-community-adapters/ioBroker.rpi2/blob/master/main.js#L648

                        Danach bitte adapter neu starten ... Dann schauen wir mal was das System so macht. Hätte dann gern das log. Also er sollte - wenn er sich dann wegen dem Folgefehler beendet - der Controller sagen das er rebuild machen will ... bis zu 3x !!

                        frankthegreat E 2 Replies Last reply Reply Quote 1
                        • Chaot
                          Chaot @apollon77 last edited by

                          @apollon77 sagte in js-controller 4.0 jetzt im BETA/LATEST!:

                          .... Leg doch mal ein issue an

                          Beim Adapter? Der wird scheinbar seit 3 Jahren nicht mehr gepflegt bzw. ist nie über die eine Version hinausentwickelt worden. Letzte Aktivität 20.01.2019
                          Ist eher sinnlos. Löschen und nicht darüber nachdenken.

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

                            @chaot Jo ... aber dann sehen es andere das es bekannt ist 🙂

                            1 Reply Last reply Reply Quote 1
                            • frankthegreat
                              frankthegreat @apollon77 last edited by

                              @apollon77
                              Update auf 4.0.4 auf meinem Testsystem sauber durchgelaufen. 👍

                              Was mir auf die Schnelle aufgefallen ist:
                              Die "Clean" Befehle zicken rum. Weis aber nicht, ob es damit zusammenhängt. Mit der 3.0.3 ging das denk ich.

                              pi@raspberrypi:~ $ iob stop
                              pi@raspberrypi:~ $ Sudo apt-get clean
                              -bash: Sudo: Kommando nicht gefunden.
                              pi@raspberrypi:~ $ Sudo apt-get autoclean
                              -bash: Sudo: Kommando nicht gefunden.
                              
                              
                              apollon77 1 Reply Last reply Reply Quote 0
                              • apollon77
                                apollon77 @frankthegreat last edited by

                                @frankthegreat Also jetzt langsam ....

                                1.) "apt" ist ein Linux kommando und hat mit ioBroker NICHTS zu tun
                                2.) Steht genau da was das issue is ... "Sudo" gibts nicht ... weil heisst "sudo"

                                frankthegreat 1 Reply Last reply Reply Quote 0
                                • E
                                  e-i-k-e @apollon77 last edited by e-i-k-e

                                  @apollon77 sagte in js-controller 4.0 jetzt im BETA/LATEST!:

                                  l ... bis zu 3x !!

                                  Ja gerne! Allerdings endet meine Datei bei Zeile 525. 😕
                                  cb4f762f-0e18-47f5-8016-a54e92ccd659-main.js

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

                                    @apollon77 sagte in js-controller 4.0 jetzt im BETA/LATEST!:

                                    @frankthegreat Also jetzt langsam ....

                                    "Sudo" gibts nicht ... weil heisst "sudo"

                                    Ahh, sorry, sch... Rechtschreibkorrektur in Word 😉

                                    Läuft jetzt.

                                    1 Reply Last reply Reply Quote 0
                                    • apollon77
                                      apollon77 @e-i-k-e last edited by

                                      @e-i-k-e Dann hast du ne ältere verison. Dann suche im FIle nach "Cannot initialize GPIO" und mach zusätzlich zu dem adapter.log.error noch eine zeile mit console.error dahinter oder davor

                                      E 1 Reply Last reply Reply Quote 0
                                      • E
                                        e-i-k-e @apollon77 last edited by

                                        @apollon77 sagte in js-controller 4.0 jetzt im BETA/LATEST!:

                                        console.error

                                        Den Eintrag gibt es schon, oder noch einen zusätzlichen ?

                                            if (anyEnabled) {
                                                try {
                                                    gpio = require('rpi-gpio');
                                                } catch (e) {
                                                    gpio = null;
                                                    adapter.log.error('Cannot initialize GPIO: ' + e);
                                                    console.error('Cannot initialize GPIO: ' + e);
                                                }
                                                try {
                                                    gpio.setMode(gpio.MODE_BCM);
                                                } catch (e) {
                                                    gpio = null;
                                                    adapter.log.error('cannot use GPIO: ' + e);
                                                }
                                            }
                                        
                                        apollon77 1 Reply Last reply Reply Quote 0
                                        • apollon77
                                          apollon77 @e-i-k-e last edited by

                                          @e-i-k-e Ok, dann liegt es vllt daran das es geloggt wird aber der adapter sich nicht beendet und deswegen der controller nix tut. Also stoppe mal den adapter ... was sagt das log dann?

                                          E 1 Reply Last reply Reply Quote 1
                                          • E
                                            e-i-k-e @apollon77 last edited by e-i-k-e

                                            @apollon77

                                            Anbei die log-Datei nach dem stoppen des Adapters.
                                            0acd144b-a428-4cfd-9611-468c28fbd74e-iobroker.2022-02-06.log

                                            Und der log nach einem erneuten Start.

                                            2022-02-06 16:13:39.438  - info: host.raspberrypi-display5 "system.adapter.rpi2.5" enabled
                                            2022-02-06 16:13:40.446  - info: host.raspberrypi-display5 instance system.adapter.rpi2.5 started with pid 2165
                                            2022-02-06 16:13:44.001  - info: rpi2.5 (2165) Sets unsupported
                                            2022-02-06 16:13:44.019  - info: rpi2.5 (2165) Sets unsupported
                                            2022-02-06 16:13:44.022  - info: rpi2.5 (2165) Sets unsupported
                                            2022-02-06 16:13:44.982  - info: rpi2.5 (2165) starting. Version 1.2.0 in /opt/iobroker/node_modules/iobroker.rpi2, node: v14.18.2, js-controller: 4.0.4
                                            2022-02-06 16:13:47.055  - error: rpi2.5 (2165) Cannot initialize GPIO: Error: The module '/opt/iobroker/node_modules/epoll/build/Release/epoll.node'
                                            was compiled against a different Node.js version using
                                            NODE_MODULE_VERSION 72. This version of Node.js requires
                                            NODE_MODULE_VERSION 83. Please try re-compiling or re-installing
                                            the module (for instance, using `npm rebuild` or `npm install`).
                                            2022-02-06 16:13:47.061  - error: rpi2.5 (2165) cannot use GPIO: TypeError: Cannot read property 'setMode' of null
                                            
                                            
                                            apollon77 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

                                            780
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            70
                                            747
                                            169776
                                            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