Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Zigbee iobroker Error while opening serialport

    NEWS

    • ioBroker goes Matter ... Matter Adapter in Stable

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    Zigbee iobroker Error while opening serialport

    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      Katos last edited by

      Systemdata Bitte Ausfüllen
      Hardwaresystem: Raspi3b+
      Arbeitsspeicher: 1GB
      Festplattenart: SD-Karte
      Betriebssystem: iobroker image (debian)
      Node-Version: 10.x.x
      Nodejs-Version: V12.22.6
      NPM-Version: V6.14.15
      Installationsart: Skript/Manuell
      Image genutzt: Ja
      Ort/Name der Imagedatei: Link

      Hallo,
      ich heute ist mein Zigbee USB Stick angekommen.
      Nach installation des Zigbee Adapters bleibt die "Ampel" unter dem Reiter Instanzen leider auf gelb

      • Verbunden mit Host - grün
      • Lebenszeichen - grün
      • Verbunden mit Gerät oder Dienst - rot

      Als Fehlermeldung im Log steht dann folgendes:

      • Starting zigbee-herdsman problem : "Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot
        lock port'"
        -Failed to start Zigbee
      • Error herdsman start

      Beim aufrufen der Adaptereinstellungen werde ich daraufhin mit einem freundlichen "You need save and run adapter before pairing!" begüßt.

      Leider sind meine Linux kenntnisse nur begrenzt und ich bin ziemlicher anfänger.
      Habt ihr nen Tip woran das liegt und wie ich den Adapter erfolgreich einbinden kann?

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

        @katos

        Einstellungen aus dem Adapter?
        Genaue Auszüge aus dem LogFile?

        K 1 Reply Last reply Reply Quote 0
        • Asgothian
          Asgothian Developer @Katos last edited by

          @katos sagte in Zigbee iobroker Error while opening serialport:

          Als Fehlermeldung im Log steht dann folgendes:

          Starting zigbee-herdsman problem : "Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot
          lock port'"
          -Failed to start Zigbee
          Error herdsman start

          Dieses ist wahrscheinlich ein Folgefehler eines vorhergehenden Startversuches. Bitte im Log weiter oben nach Fehlermeldungen mit den Worten "Starting zigbee-herdsman problem :" suchen und diese posten.

          A.

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

            @thomas-braun said in Zigbee iobroker Error while opening serialport:

            instellungen aus dem

            Hallo Thomas,
            ja genau. Sobald ich die Einstellungen des zigbee.0 v1.5.6 aufrufe, kommt gleich "Error: You need save and run adapter before pairing!"

            Im Log steht dann folgendes:
            zigbee.0
            2021-10-02 18:03:45.065 error Error herdsman start

            zigbee.0
            2021-10-02 18:03:45.065 error Failed to start Zigbee

            zigbee.0
            2021-10-02 18:03:45.063 error Starting zigbee-herdsman problem : "Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port'"

            zigbee.0
            2021-10-02 18:03:44.750 info Installed Version: iobroker.zigbee@1.5.6

            zigbee.0
            2021-10-02 18:03:44.726 info Starting Zigbee npm ...

            PS: das einzige was ich daraufhin noch in den Einstellungen verändert hatte: COM Anschlussname -> /dev/ttyAMA0 eingestellt.

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

              @katos sagte in Zigbee iobroker Error while opening serialport:

              COM Anschlussname -> /dev/ttyAMA0 eingestellt.

              Stell den auf den Link aus

              ls -l /dev/serial/by-id
              

              um.

              /dev/ttyAMA0 dürfte das Onboard-Bluetooth sein.

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

                @thomas-braun
                super,... hat funktionier!!!

                vielen vielen Dank. 👍

                1 Reply Last reply Reply Quote 0
                • R
                  rebel85 last edited by rebel85

                  hi, ich habe auch so ein problem
                  proxmox, iobroker auf debian 11,
                  usb durchgereicht alles lief. heute ein proxmox update gemacht und später im iobroker geschaut keine verbindung mehr.
                  zigbee 3.0 stick

                  /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 -> ../../ttyUSB0
                  

                  habe ich auch schon versucht
                  gab es nciht ein befehl wo man usb zugriffsrechte erteilen kann?
                  anbei mein log

                  zigbee.0	2021-11-11 22:09:57.653	error	(26964) Error herdsman start
                  zigbee.0	2021-11-11 22:09:57.652	error	(26964) Failed to start Zigbee
                  zigbee.0	2021-11-11 22:09:57.652	error	(26964) Starting zigbee-herdsman problem : "Error while opening serialport 'Error: Error Resource temporarily unavailable Cannot lock port'"
                  zigbee.0	2021-11-11 22:09:57.546	info	(26964) Installed Version: iobroker.zigbee@1.6.3
                  zigbee.0	2021-11-11 22:09:57.536	info	(26964) Starting Zigbee npm ...
                  zigbee.0	2021-11-11 22:09:57.536	info	(26964) Try to reconnect. 1 attempts left
                  zigbee.0	2021-11-11 22:09:47.534	error	(26964) Error herdsman start
                  zigbee.0	2021-11-11 22:09:47.533	error	(26964) Failed to start Zigbee
                  zigbee.0	2021-11-11 22:09:47.533	error	(26964) Starting zigbee-herdsman problem : "Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)"
                  zigbee.0	2021-11-11 22:09:27.551	info	(26964) Installed Version: iobroker.zigbee@1.6.3
                  zigbee.0	2021-11-11 22:09:27.272	info	(26964) Starting Zigbee npm ...
                  zigbee.0	2021-11-11 22:09:27.212	info	(26964) starting. Version 1.6.3 in /opt/iobroker/node_modules/iobroker.zigbee, node: v12.22.7, js-controller: 3.3.18
                  zigbee.0	2021-11-11 22:09:23.012	info	(24401) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                  zigbee.0	2021-11-11 22:09:23.011	info	(24401) terminating
                  zigbee.0	2021-11-11 22:09:23.011	warn	(24401) Failed to stop zigbee during startup
                  zigbee.0	2021-11-11 22:09:22.929	info	(24401) Zigbee: disabling joining new devices.
                  zigbee.0	2021-11-11 22:09:22.926	info	(24401) cleaned everything up...
                  zigbee.0	2021-11-11 22:09:22.925	info	(24401) Got terminate signal TERMINATE_YOURSELF
                  zigbee.0	2021-11-11 22:08:43.726	error	(24401) getGroups: caught error: TypeError: Cannot read property 'getGroups' of undefined
                  zigbee.0	2021-11-11 22:07:22.068	info	(24401) Installed Version: iobroker.zigbee@1.6.3
                  zigbee.0	2021-11-11 22:07:22.066	error	(24401) Error herdsman start
                  zigbee.0	2021-11-11 22:07:22.065	error	(24401) Failed to start Zigbee
                  zigbee.0	2021-11-11 22:07:22.065	error	(24401) Starting zigbee-herdsman problem : "Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 -> ../../ttyUSB0'"
                  zigbee.0	2021-11-11 22:07:22.061	info	(24401) Starting Zigbee npm ...
                  zigbee.0	2021-11-11 22:07:22.060	info	(24401) Try to reconnect. 1 attempts left
                  zigbee.0	2021-11-11 22:07:12.123	info	(24401) Installed Version: iobroker.zigbee@1.6.3
                  zigbee.0	2021-11-11 22:07:12.059	error	(24401) Error herdsman start
                  zigbee.0	2021-11-11 22:07:12.058	error	(24401) Failed to start Zigbee
                  zigbee.0	2021-11-11 22:07:12.058	error	(24401) Starting zigbee-herdsman problem : "Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 -> ../../ttyUSB0'"
                  zigbee.0	2021-11-11 22:07:11.947	info	(24401) Starting Zigbee npm ...
                  zigbee.0	2021-11-11 22:07:11.893	info	(24401) starting. Version 1.6.3 in /opt/iobroker/node_modules/iobroker.zigbee, node: v12.22.7, js-controller: 3.3.18
                  zigbee.0	2021-11-11 22:07:07.745	info	(17885) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                  zigbee.0	2021-11-11 22:07:07.745	info	(17885) terminating
                  zigbee.0	2021-11-11 22:07:07.744	warn	(17885) Failed to stop zigbee during startup
                  

                  das ist mein node output

                  user@iobroker:~$ apt policy nodejs
                  nodejs:
                    Installiert:           12.22.7-deb-1nodesource1
                    Installationskandidat: 12.22.7-deb-1nodesource1
                    Versionstabelle:
                   *** 12.22.7-deb-1nodesource1 500
                          500 https://deb.nodesource.com/node_12.x bullseye/main amd64 Packages
                          100 /var/lib/dpkg/status
                       12.22.5~dfsg-2~11u1 500
                          500 http://deb.debian.org/debian bullseye/main amd64 Packages
                          500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
                  
                  user@iobroker:~$ which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
                  /usr/bin/nodejs
                  /usr/bin/node
                  /usr/bin/npm
                  v12.22.7
                  v12.22.7
                  8.1.1
                  

                  läuft, im adapter gesehen das sendeleistung sich wohl verstellt hatte.... auf norm gesetz und adapter ist grün

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

                    @rebel85
                    npm@8 ist zu hoch. Geh auf npm@6.
                    Hat mit dem Problem aber nichts zu tun.

                    R 1 Reply Last reply Reply Quote 0
                    • arteck
                      arteck Developer Most Active @rebel85 last edited by

                      @rebel85 https://www.xmodulo.com/change-usb-device-permission-linux.html

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

                        @thomas-braun
                        das wurde normal so mit installiert
                        müsste ich das nach der anleitung deinstallieren und dann in version 6 installieren?

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

                          @rebel85

                          Nein, das wurde bestimmt nicht mitinstalliert, das Paket nodejs von nodesource packt npm@6 dazu.
                          Mach einen --reinstall über apt. Dann sollte es wieder passen.

                          https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#12.22.6

                          deps: upgrade npm to 6.14.15 (Darcy Clarke) #39856

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

                            @thomas-braun sagte in Zigbee iobroker Error while opening serialport:

                            --reinstall über apt

                            verstehe grad nicht was du mir sagen willst

                            reinstall von node js oder nur von npm?
                            npm brauch ich ja dann eine versionsnummer soweit ich weis... währe dann 6.14.15

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

                              @rebel85

                              Das Paket nodejs über deinen Paketmanager reinstallieren. Das bringt dann npm automatisch in passender Version mit.

                              Und die Finger von manuellen globalen Updates von npm lassen. Auch wenn ein entsprechender Hinweis schon mal in der Konsole/im Log auftauchen kann.

                              Deine Umschalttaste ist übrigens defekt. Würde ich auch mal nach schauen.

                              R 2 Replies Last reply Reply Quote 0
                              • R
                                rebel85 @Thomas Braun last edited by rebel85

                                @thomas-braun sagte in Zigbee iobroker Error while opening serialport:

                                @rebel85
                                Deine Umschalttaste ist übrigens defekt. Würde ich auch mal nach schauen.

                                ist nichts defekt, einfach mal andere nicht kritisieren wie wer schreibt oder so 😉

                                Thomas Braun Homoran 2 Replies Last reply Reply Quote -3
                                • Thomas Braun
                                  Thomas Braun Most Active @rebel85 last edited by

                                  @rebel85

                                  Dann willst du keine Hilfe. Okay, hab ich notiert.

                                  R 1 Reply Last reply Reply Quote 1
                                  • Homoran
                                    Homoran Global Moderator Administrators @rebel85 last edited by

                                    @rebel85 sagte in Zigbee iobroker Error while opening serialport:

                                    @thomas-braun sagte in Zigbee iobroker Error while opening serialport:

                                    @rebel85
                                    Deine Umschalttaste ist übrigens defekt. Würde ich auch mal nach schauen.

                                    ist nichts defekt, einfach mal andere nicht kretisieren wie wer schreibt oder so 😉

                                    na immer hin konsistent!

                                    Aber so etwas ist schwer zu lesen, das muss sich ein Helfender nicht antun

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

                                      @thomas-braun
                                      da ist wohl wieder jemand auf stress aus, ist schon das 2. mal das du so zu mir bist.

                                      Thomas Braun Homoran 2 Replies Last reply Reply Quote -3
                                      • Thomas Braun
                                        Thomas Braun Most Active @rebel85 last edited by

                                        @rebel85

                                        Stress? Nö, ich hab nur keine Lust mir mehr Mühe zu machen.

                                        1 Reply Last reply Reply Quote 2
                                        • Homoran
                                          Homoran Global Moderator Administrators @rebel85 last edited by

                                          @rebel85 sagte in Zigbee iobroker Error while opening serialport:

                                          da ist wohl wieder jemand auf stress aus

                                          bitte persönliche Angriffe unterlassen

                                          R 1 Reply Last reply Reply Quote 1
                                          • R
                                            rebel85 @Thomas Braun last edited by rebel85

                                            @thomas-braun sagte in Zigbee iobroker Error while opening serialport:

                                            @rebel85

                                            Das Paket nodejs über deinen Paketmanager reinstallieren. Das bringt dann npm automatisch in passender Version mit.

                                            hat geklappt 6.14.15

                                            info:
                                            im nachgang hats nicht geklappt da beim update heute im aanschluss der js-controller weg ist
                                            kein iobroker fix oder gleichen funktioniert.

                                            Fertig mit Fehler: internal/modules/cjs/loader.js:818 throw err; ^Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15) at Function.Module._load (internal/modules/cjs/loader.js:667:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: []}
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            932
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            28
                                            231
                                            28632
                                            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