Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Hardware
    4. CC2531 im Docker Container auf Pi 3

    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

    CC2531 im Docker Container auf Pi 3

    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      anthony.stark last edited by anthony.stark

      Hallo,

      ich habe folgendes Problem. Geraume Zeit hatte ich den ioBroker in einem Docker Container laufen. Dort hatte ich auch schon erfolgreich den zigbee Adapter und eine dazugehörige Instanz konfiguriert. Mit dieser Instanz habe ich diverse aqara Produkte verbunden. Die Konstellation hat also schon wunderbar geklappt. Aktuell bringe ich es nicht mehr zum Laufen, die Instanz bleibt gelb und wird nicht mehr grün. Ich bin sogar soweit gegangen, dass ich den Pi nochmal mit einem sauberen Image versehen habe.

      So bin ich vorgegangen:
      Docker und Portainer installiert
      Einen iobroker Container mit folgenden Parametern erstellt.

      iobroker_docker.png

      Dort habe ich explizit --device=/dev/ttyACM0 verwendet, da der Adapter bei mir so eingebunden wird.

      USB-Devices.png

      Der Container startet und die Weboberfläche ist in Kürze verfügbar.
      Wenn ich jetzt aber prüfe, ob das Geräte auch innerhalb des iobroker Containers verfügbar ist, ist es das leider nicht.

      USB-Devices_iobroker.png

      Sollte ich hier nicht eigentlich auch das Gerät sehen oder täusche ich mich?

      In der Adapter Konfiguration der Instanz habe ich den Adapter wieder mit /dev/ttyACM0 angegeben. Jedes Mal wenn ich aber wieder in die Konfiguration gehe, kommt die Meldung: "You need save and run adapter before pairing!".

      Im Log des ioBrokers sehe ich folgende Meldungen.
      Log.png

      Habt Ihr eine Idee, was ich falsch gemacht habe oder was schief gelaufen sein kann? Mich wundert es einfach, da diese Konstellation über Monate problemlos lief. Kann es eventuell sein, dass der CC2531 kaputt ist?

      Danke für Eure Hilfe.
      Anthony

      Asgothian J 2 Replies Last reply Reply Quote 0
      • Asgothian
        Asgothian Developer @anthony.stark last edited by

        @anthony-stark

        Bitte die log Meldungen vollständig und als Text (in code tags </>) Posten.

        A.

        A 1 Reply Last reply Reply Quote 0
        • J
          Jan1 @anthony.stark last edited by

          @anthony-stark
          Du hast Docker auf nem Pi3 laufen?

          1 Reply Last reply Reply Quote 0
          • A
            anthony.stark @Asgothian last edited by anthony.stark

            @asgothian - Hier das Log im Textformat.
            @Jan1 - Ja, habe ich.

            2021-07-11 00:17:21.863 - info: host.067786e88d0c iobroker.js-controller version 3.2.16 js-controller starting
            2021-07-11 00:17:21.872 - info: host.067786e88d0c Copyright (c) 2014-2021 bluefox, 2014 hobbyquaker
            2021-07-11 00:17:21.873 - info: host.067786e88d0c hostname: 067786e88d0c, node: v12.22.2
            2021-07-11 00:17:21.874 - info: host.067786e88d0c ip addresses: 172.17.0.2
            2021-07-11 00:17:22.388 - info: host.067786e88d0c connected to Objects and States
            2021-07-11 00:17:22.430 - info: host.067786e88d0c added notifications configuration of host
            2021-07-11 00:17:23.044 - info: host.067786e88d0c Delete host system.host.067786e88d0c
            2021-07-11 00:17:23.101 - info: host.067786e88d0c 3 instances found
            2021-07-11 00:17:23.120 - info: host.067786e88d0c starting 3 instances
            2021-07-11 00:17:23.208 - info: host.067786e88d0c instance system.adapter.admin.0 started with pid 162
            2021-07-11 00:17:26.640 - info: admin.0 (162) starting. Version 4.2.1 in /opt/iobroker/node_modules/iobroker.admin, node: v12.22.2, js-controller: 3.2.16
            2021-07-11 00:17:26.726 - info: admin.0 (162) requesting all states
            2021-07-11 00:17:26.728 - info: admin.0 (162) requesting all objects
            2021-07-11 00:17:27.184 - info: host.067786e88d0c instance system.adapter.discovery.0 started with pid 183
            2021-07-11 00:17:27.346 - info: admin.0 (162) received all objects
            2021-07-11 00:17:27.624 - info: admin.0 (162) http server listening on port 8081
            2021-07-11 00:17:27.626 - info: admin.0 (162) Use link "http://localhost:8081" to configure.
            2021-07-11 00:17:30.083 - info: discovery.0 (183) starting. Version 2.6.1 in /opt/iobroker/node_modules/iobroker.discovery, node: v12.22.2, js-controller: 3.2.16
            2021-07-11 00:17:31.168 - info: host.067786e88d0c instance system.adapter.zigbee.0 started with pid 204
            2021-07-11 00:17:35.855 - info: zigbee.0 (204) starting. Version 1.5.6 in /opt/iobroker/node_modules/iobroker.zigbee, node: v12.22.2, js-controller: 3.2.16
            2021-07-11 00:17:35.919 - info: zigbee.0 (204) Starting Zigbee npm ...
            2021-07-11 00:17:36.442 - info: zigbee.0 (204) Installed Version: iobroker.zigbee@1.5.6
            2021-07-11 00:17:55.934 - error: zigbee.0 (204) Starting zigbee-herdsman problem : "Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)"
            2021-07-11 00:17:55.938 - error: zigbee.0 (204) Failed to start Zigbee
            2021-07-11 00:17:55.940 - error: zigbee.0 (204) Error herdsman start
            2021-07-11 00:18:05.943 - info: zigbee.0 (204) Try to reconnect. 1 attempts left
            2021-07-11 00:18:05.961 - info: zigbee.0 (204) Starting Zigbee npm ...
            2021-07-11 00:18:06.009 - info: zigbee.0 (204) Installed Version: iobroker.zigbee@1.5.6
            2021-07-11 00:18:06.110 - error: zigbee.0 (204) Starting zigbee-herdsman problem : "Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port'"
            2021-07-11 00:18:06.111 - error: zigbee.0 (204) Failed to start Zigbee
            2021-07-11 00:18:06.112 - error: zigbee.0 (204) Error herdsman start
            2021-07-11 00:18:13.402 - error: zigbee.0 (204) getGroups: caught error: TypeError: Cannot read property 'getGroups' of undefined
            2021-07-11 00:18:36.926 - info: host.067786e88d0c stopInstance system.adapter.zigbee.0 (force=false, process=true)
            2021-07-11 00:18:36.948 - info: zigbee.0 (204) Got terminate signal TERMINATE_YOURSELF
            2021-07-11 00:18:36.950 - info: host.067786e88d0c stopInstance system.adapter.zigbee.0 send kill signal
            2021-07-11 00:18:36.951 - info: zigbee.0 (204) cleaned everything up...
            2021-07-11 00:18:36.958 - info: zigbee.0 (204) Zigbee: disabling joining new devices.
            2021-07-11 00:18:36.961 - warn: zigbee.0 (204) Failed to stop zigbee during startup
            2021-07-11 00:18:36.962 - info: zigbee.0 (204) terminating
            2021-07-11 00:18:36.965 - info: zigbee.0 (204) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
            2021-07-11 00:18:36.967 - error: zigbee.0 (204) 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().
            2021-07-11 00:18:36.968 - error: zigbee.0 (204) unhandled promise rejection: Cannot read property 'getEntries' of null
            2021-07-11 00:18:36.971 - error: zigbee.0 (204) TypeError: Cannot read property 'getEntries' of null
            at Function.loadFromDatabaseIfNecessary (/opt/iobroker/node_modules/zigbee-herdsman/dist/controller/model/device.js:220:55)
            at Function.all (/opt/iobroker/node_modules/zigbee-herdsman/dist/controller/model/device.js:240:16)
            at Controller.getDevices (/opt/iobroker/node_modules/zigbee-herdsman/dist/controller/controller.js:303:31)
            at ZigbeeController.getClients (/opt/iobroker/node_modules/iobroker.zigbee/lib/zigbeecontroller.js:228:49)
            at DeviceAvailability.stop (/opt/iobroker/node_modules/iobroker.zigbee/lib/zbDeviceAvailability.js:222:43)
            at ZigbeeController.callExtensionMethod (/opt/iobroker/node_modules/iobroker.zigbee/lib/zigbeecontroller.js:214:42)
            at ZigbeeController.stop (/opt/iobroker/node_modules/iobroker.zigbee/lib/zigbeecontroller.js:385:20)
            at Zigbee.onUnload (/opt/iobroker/node_modules/iobroker.zigbee/main.js:696:41)
            at processTicksAndRejections (internal/process/task_queues.js:97:5)
            2021-07-11 00:18:36.972 - error: zigbee.0 (204) Cannot read property 'getEntries' of null
            2021-07-11 00:18:37.558 - info: host.067786e88d0c instance system.adapter.zigbee.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
            2021-07-11 00:18:40.016 - info: host.067786e88d0c instance system.adapter.zigbee.0 started with pid 278
            2021-07-11 00:18:44.722 - info: zigbee.0 (278) starting. Version 1.5.6 in /opt/iobroker/node_modules/iobroker.zigbee, node: v12.22.2, js-controller: 3.2.16
            2021-07-11 00:18:44.792 - info: zigbee.0 (278) Starting Zigbee npm ...
            2021-07-11 00:18:45.324 - info: zigbee.0 (278) Installed Version: iobroker.zigbee@1.5.6
            2021-07-11 00:19:04.812 - error: zigbee.0 (278) Starting zigbee-herdsman problem : "Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)"
            2021-07-11 00:19:04.815 - error: zigbee.0 (278) Failed to start Zigbee
            2021-07-11 00:19:04.817 - error: zigbee.0 (278) Error herdsman start
            2021-07-11 00:19:14.820 - info: zigbee.0 (278) Try to reconnect. 1 attempts left
            2021-07-11 00:19:14.824 - info: zigbee.0 (278) Starting Zigbee npm ...
            2021-07-11 00:19:14.854 - info: zigbee.0 (278) Installed Version: iobroker.zigbee@1.5.6
            2021-07-11 00:19:15.008 - error: zigbee.0 (278) Starting zigbee-herdsman problem : "Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port'"
            2021-07-11 00:19:15.009 - error: zigbee.0 (278) Failed to start Zigbee
            2021-07-11 00:19:15.011 - error: zigbee.0 (278) Error herdsman start
            2021-07-11 08:56:39.210 - info: host.81747fe131a7 iobroker.js-controller version 3.2.16 js-controller starting
            2021-07-11 08:56:39.219 - info: host.81747fe131a7 Copyright (c) 2014-2021 bluefox, 2014 hobbyquaker
            2021-07-11 08:56:39.221 - info: host.81747fe131a7 hostname: 81747fe131a7, node: v12.22.2
            2021-07-11 08:56:39.222 - info: host.81747fe131a7 ip addresses: 172.17.0.2
            2021-07-11 08:56:39.849 - info: host.81747fe131a7 connected to Objects and States
            2021-07-11 08:56:39.891 - info: host.81747fe131a7 added notifications configuration of host
            2021-07-11 08:56:40.475 - info: host.81747fe131a7 Delete host system.host.81747fe131a7
            2021-07-11 08:56:40.525 - info: host.81747fe131a7 3 instances found
            2021-07-11 08:56:40.551 - info: host.81747fe131a7 starting 3 instances
            2021-07-11 08:56:40.635 - info: host.81747fe131a7 instance system.adapter.admin.0 started with pid 163
            2021-07-11 08:56:44.088 - info: admin.0 (163) starting. Version 4.2.1 in /opt/iobroker/node_modules/iobroker.admin, node: v12.22.2, js-controller: 3.2.16
            2021-07-11 08:56:44.168 - info: admin.0 (163) requesting all states
            2021-07-11 08:56:44.170 - info: admin.0 (163) requesting all objects
            2021-07-11 08:56:44.601 - info: host.81747fe131a7 instance system.adapter.discovery.0 started with pid 178
            2021-07-11 08:56:44.669 - info: admin.0 (163) received all objects
            2021-07-11 08:56:44.917 - info: admin.0 (163) http server listening on port 8081
            2021-07-11 08:56:44.919 - info: admin.0 (163) Use link "http://localhost:8081" to configure.
            2021-07-11 08:56:47.674 - info: discovery.0 (178) starting. Version 2.6.1 in /opt/iobroker/node_modules/iobroker.discovery, node: v12.22.2, js-controller: 3.2.16
            2021-07-11 08:56:48.595 - info: host.81747fe131a7 instance system.adapter.zigbee.0 started with pid 205
            2021-07-11 08:56:54.706 - info: zigbee.0 (205) starting. Version 1.5.6 in /opt/iobroker/node_modules/iobroker.zigbee, node: v12.22.2, js-controller: 3.2.16
            2021-07-11 08:56:54.778 - info: zigbee.0 (205) Starting Zigbee npm ...
            2021-07-11 08:56:55.439 - info: zigbee.0 (205) Installed Version: iobroker.zigbee@1.5.6
            2021-07-11 08:57:14.990 - error: zigbee.0 (205) Starting zigbee-herdsman problem : "Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)"
            2021-07-11 08:57:14.994 - error: zigbee.0 (205) Failed to start Zigbee
            2021-07-11 08:57:14.996 - error: zigbee.0 (205) Error herdsman start
            2021-07-11 08:57:24.999 - info: zigbee.0 (205) Try to reconnect. 1 attempts left
            2021-07-11 08:57:25.001 - info: zigbee.0 (205) Starting Zigbee npm ...
            2021-07-11 08:57:25.027 - info: zigbee.0 (205) Installed Version: iobroker.zigbee@1.5.6
            2021-07-11 08:57:25.181 - error: zigbee.0 (205) Starting zigbee-herdsman problem : "Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port'"
            2021-07-11 08:57:25.183 - error: zigbee.0 (205) Failed to start Zigbee
            2021-07-11 08:57:25.184 - error: zigbee.0 (205) Error herdsman start
            2021-07-11 08:58:12.654 - error: zigbee.0 (205) getGroups: caught error: TypeError: Cannot read property 'getGroups' of undefined
            2021-07-11 09:15:52.708 - error: zigbee.0 (205) getGroups: caught error: TypeError: Cannot read property 'getGroups' of undefined
            2021-07-11 09:17:49.529 - error: zigbee.0 (205) getGroups: caught error: TypeError: Cannot read property 'getGroups' of undefined
            
            J 1 Reply Last reply Reply Quote 0
            • J
              Jan1 @anthony.stark last edited by

              @anthony-stark
              und warum machst Du das auf dem Pi3? Docker macht einiges komplizierter was man hier an extern angeschlossen hat beim Durchreichen und der Pi 3 ist mit dem RAM alleine schon mit IOBroker schwer an der Grenze. Docker macht da nur Sinn, wenn noch mehr auf dem Pi läuft und auf dem 3er sollte da eigentlich nichts mehr extra laufen, weil eben der RAM zu klein ist.

              Hilft Dir zwar jetzt nicht direkt weiter, aber die Grundvoraussetzungen sind meiner Meinung nach schon sehr exotisch 😉

              A 1 Reply Last reply Reply Quote 0
              • A
                anthony.stark @Jan1 last edited by anthony.stark

                @jan1 Ja, das hilft mir nicht weiter, da hast du Recht. Ohne groß zu diskutieren und mich rechtfertigen zu müssen. Sehe es als kleines Projekt an, mich mit der Thematik Docker auseinanderzusetzen. Der ioBroker hat derzeit nicht mehr Aufgaben, als ein paar Temperaturfühler abzugreifen. Der Nachfolger Pi4 oder Ähnliches steht schon in den Startlöchern.

                Kannst du noch zum eigentlichen Thema etwas beitragen? Ich muss gestehen, ich verstehe nicht, warum es nicht läuft.
                Danke

                J 1 Reply Last reply Reply Quote 0
                • J
                  Jan1 @anthony.stark last edited by

                  @anthony-stark
                  OK, das reicht doch schon voll als Antwort auf meine Frage und ist so auch OK, wenn das nur zum ran tasten gedacht ist.
                  Leider kann ich Dir bei Deinem eigentlichen Problem nicht weiterhelfen, da ich von Docker nicht viel Plan habe.

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    anthony.stark @Jan1 last edited by

                    Ich wollte noch ergänzen, dass der CC2531 aktuell nur noch rot leuchtet. Wenn ich ihn neu einstecke, leichtet er noch für eine gewisse grün, später dann nur noch rot.
                    Ist das eventuell ein Hinweis auf einen Defekt?

                    J Asgothian 2 Replies Last reply Reply Quote 0
                    • J
                      Jan1 @anthony.stark last edited by

                      @anthony-stark
                      Flash ihn doch einfach mal, wenn es dann geht, war wohl die FW im Eimer.

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        anthony.stark @Jan1 last edited by

                        @jan1 Kann ich leider nicht, da mir die Hardware dafür fehlt. Wenn ich es könnte hätte ich ihn schon wegen der aktuellen Firmware geflasht.

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          Jan1 @anthony.stark last edited by

                          @anthony-stark
                          Hört sich auf alle Fälle nicht normal an und könnte Dein Problem sein.

                          1 Reply Last reply Reply Quote 0
                          • Asgothian
                            Asgothian Developer @anthony.stark last edited by

                            @anthony-stark sagte in CC2531 im Docker Container auf Pi 3:

                            Ich wollte noch ergänzen, dass der CC2531 aktuell nur noch rot leuchtet. Wenn ich ihn neu einstecke, leichtet er noch für eine gewisse grün, später dann nur noch rot.
                            Ist das eventuell ein Hinweis auf einen Defekt?

                            Das Log zeigt das der Stick nicht auf die Kommunikationsversuche vom Adapter reagiert. Ich gehe davon aus das entweder der Stick oder die Firmware defekt ist.

                            A.

                            A 1 Reply Last reply Reply Quote 0
                            • A
                              anthony.stark @Asgothian last edited by anthony.stark

                              @asgothian Um die möglichen Fehler einzugrenzen, habe ich nun Docker aus der Gleichung genommen und den ioBroker direkt auf dem Pi installiert. Auch hier tritt das Problem auf. Da ich den Stick nicht flashen kann, habe ich einen neuen Stick mit Firmware bestellt.
                              Ich bin gespannt und werde euch berichten.

                              Danke für eure Unterstützung.

                              A 1 Reply Last reply Reply Quote 0
                              • A
                                anthony.stark @anthony.stark last edited by

                                Heute kam ein neuer CC2531 Stick, mit diesem hat alles geklappt. Ich werde mir wohl in China einen CC-Debugger bestellen, um die Firmware erneut aufzuspielen. Einen positiven Nebeneffekt hat die Aktion. Die Firmware, die auf meinem CC2531 drauf war, ist etwas in die Jahre gekommen.
                                Danke für eure Hilfe, ich bin mir sicher, wenn ich den ioBroker wieder in einem Container laufen lasse, wird er auch dort funktionieren.

                                Xsev M 2 Replies Last reply Reply Quote 0
                                • Xsev
                                  Xsev @anthony.stark last edited by

                                  @anthony-stark
                                  Der CC2531 ist quasi so wie der Pi3, zum antesten ok aber langfristig brauchst du da auch was potenteres. Ich mein nur bevor du viel Geld in den investierst mit Debugger etc. den du dann bei einem anderen nimmer brauchen kannst. Nur so als Randinfo, nicht falsch verstehen..

                                  1 Reply Last reply Reply Quote 1
                                  • M
                                    MrBean 0 @anthony.stark last edited by MrBean 0

                                    @anthony-stark
                                    zum Flachen brauchst du keinen Debugger. Nehme den Pi fürs flachen

                                    A 1 Reply Last reply Reply Quote 0
                                    • A
                                      anthony.stark @MrBean 0 last edited by anthony.stark

                                      @mrbean-0 Danke für den Hinweis. Ich werde mir die notwendigen Kabel besorgen und erneut flashen.

                                      Was ist das denn für ein Stecker, der im Stick steckt?
                                      8D818836-A291-4115-AA6D-99B0F30DBACC.webp

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        MrBean 0 @anthony.stark last edited by

                                        @anthony-stark
                                        Diesen Stecker kenne ich nicht. Habe einfach dünne Kabel auf die nötigen Pins gelötet

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

                                        Support us

                                        ioBroker
                                        Community Adapters
                                        Donate

                                        759
                                        Online

                                        31.8k
                                        Users

                                        80.0k
                                        Topics

                                        1.3m
                                        Posts

                                        5
                                        18
                                        718
                                        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