Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. (gelöst) ble Adapter crashed nach Update auf node.js V12

    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

    (gelöst) ble Adapter crashed nach Update auf node.js V12

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

      Das Update auf node.js V12 hat im Großen und Ganz geklappt. Nur der BLE- Adapter will nicht.

      ble.0	2020-05-03 22:24:56.307	error	the module (for instance, using `npm rebuild` or `npm install`).
      ble.0	2020-05-03 22:24:56.307	error	NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
      ble.0	2020-05-03 22:24:56.307	error	NODE_MODULE_VERSION 64. This version of Node.js requires
      ble.0	2020-05-03 22:24:56.307	error	was compiled against a different Node.js version using
      ble.0	2020-05-03 22:24:56.307	error	(5352) unhandled promise rejection: Error: The module '/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/binding.node'
      ble.0	2020-05-03 22:24:56.300	error	at Function.Module._load (internal/modules/cjs/loader.js:877:14)
      ble.0	2020-05-03 22:24:56.300	error	at Module.load (internal/modules/cjs/loader.js:977:32)
      ble.0	2020-05-03 22:24:56.300	error	at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
      ble.0	2020-05-03 22:24:56.300	error	at Module._compile (internal/modules/cjs/loader.js:1133:30)
      ble.0	2020-05-03 22:24:56.300	error	at Object.<anonymous> (/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/lib/native.js:6:15)
      ble.0	2020-05-03 22:24:56.300	error	at require (internal/modules/cjs/helpers.js:77:18)
      ble.0	2020-05-03 22:24:56.300	error	at Module.require (internal/modules/cjs/loader.js:1019:19)
      ble.0	2020-05-03 22:24:56.300	error	at Function.Module._load (internal/modules/cjs/loader.js:877:14)
      ble.0	2020-05-03 22:24:56.300	error	at Module.load (internal/modules/cjs/loader.js:977:32)
      ble.0	2020-05-03 22:24:56.300	error	at Object.Module._extensions..node (internal/modules/cjs/loader.js:1183:18)
      ble.0	2020-05-03 22:24:56.300	error	the module (for instance, using `npm rebuild` or `npm install`).
      ble.0	2020-05-03 22:24:56.300	error	NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
      ble.0	2020-05-03 22:24:56.300	error	NODE_MODULE_VERSION 64. This version of Node.js requires
      ble.0	2020-05-03 22:24:56.300	error	was compiled against a different Node.js version using
      ble.0	2020-05-03 22:24:56.300	error	(5352) Error: The module '/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/binding.node'
      ble.0	2020-05-03 22:24:56.291	error	the module (for instance, using `npm rebuild` or `npm install`).
      ble.0	2020-05-03 22:24:56.291	error	NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
      ble.0	2020-05-03 22:24:56.291	error	NODE_MODULE_VERSION 64. This version of Node.js requires
      ble.0	2020-05-03 22:24:56.291	error	was compiled against a different Node.js version using
      ble.0	2020-05-03 22:24:56.291	error	(5352) uncaught exception: The module '/opt/iobroker/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/binding.node'
      

      Gibt es hier schon eine Lösung?

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

        @Marty56

        iobroker rebuild ble --install
        
        1 Reply Last reply Reply Quote 0
        • M
          Marty56 last edited by

          @Thomas-Braun sagte in ble Adapter crashed nach Update auf node.js V12:

          iobroker rebuild ble --install

          Das ging schnell. Danke.
          Muss ich dazu ins iobroker Verzeichnis wechseln?

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

            @Marty56
            Ja, mach dich mal auf zu /opt/iobroker
            Und bitte auch daran denken, die setcapabilities zu aktualisieren:

            sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
            

            Muss ich jedenfalls immer machen, wenn die node-Version sich ändert.

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

              @Thomas-Braun sagte in ble Adapter crashed nach Update auf node.js V12:

              iobroker

              Hat geklappt! Vielen Dank!!
              Das mit den capabilities war bei mir nicht notwendig.

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

              Support us

              ioBroker
              Community Adapters
              Donate

              900
              Online

              31.9k
              Users

              80.1k
              Topics

              1.3m
              Posts

              ble adapter
              2
              5
              371
              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