Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme

    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

    ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme

    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Gismoh @crunchip last edited by

      @crunchip

      build_file_contents = open(build_file_path, encoding='utf-8').read()
      
      [ Das ist das einzige Auftreten ]
      build_file_contents = open(
      
      1 Reply Last reply Reply Quote 0
      • G
        Gismoh @DJMarc75 last edited by

        @djmarc75
        Das Sze­na­rio mit dem deinstallierten ble hatten wir ja auch bereits durch, meine sicherlich 2 mal.

        Homoran 1 Reply Last reply Reply Quote 0
        • Meister Mopper
          Meister Mopper @DJMarc75 last edited by Meister Mopper

          @djmarc75 sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:

          Sag mal ... was kapierst Du denn eigentlich nicht ?
          In Deinem alten, vergammeltem System DEINSTALLIERST Du bitte den BLE.
          Dann mach ein Backup per BACKITUP davon.
          Danach erstellst Du eine neue VM mit Debain.
          Dort dann iobroker installieren OHNE irgendwelchen Mist.
          DANN bitte das BackitUp vom "alten vergammelten System" welches ja dann OHNE BLE ist, zurückspielen.

          Ruhig Brauner, kann es sein, dass dies, trotz "bitte" , eine nicht gewaltfreie Kommunikation ist? 😉

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

            @gismoh sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:

            @djmarc75
            Das Sze­na­rio mit dem deinstallierten ble hatten wir ja auch bereits durch, meine sicherlich 2 mal.

            Wobei ich nicht sicher bin ob du wirklich alles vom BLE entfernt hattest, oder nur die Instanz.

            Jetzt bleiben wir aber bei dem momentanen Szenario, damit es nicht wieder kreuz und quer geht.

            G 1 Reply Last reply Reply Quote 0
            • G
              Gismoh @Homoran last edited by Gismoh

              @homoran habe nun bereits die vm wieder gelöscht, um es erneut ohne ble einzuspielen.
              Edit, hatte Instanz und Adapter gelöscvht.

              crunchip 1 Reply Last reply Reply Quote 0
              • crunchip
                crunchip Forum Testing Most Active @Gismoh last edited by

                @gismoh sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:

                um es erneut ohne ble einzuspielen

                dann aber vor dem ble einspielen

                sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin
                
                G 1 Reply Last reply Reply Quote 0
                • G
                  Gismoh @crunchip last edited by

                  @crunchip
                  okay.
                  Nebenbei, auf der alten Maschine konnte ich nach dem deinstallieren von ble, diesen adapter wieder ohne Probleme installieren - läuft dort.

                  1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators last edited by

                    @crunchip wo ist denn der Unterschied?
                    ich verstehe den Fehler im log als Fehler/Problem vom npm.

                    Alt: arm v7 mit node v18, npm v9
                    Neu: amd64(??) node18, npm9

                    @Gismoh bitte bestätigen oder korrigieren

                    crunchip G 2 Replies Last reply Reply Quote 1
                    • crunchip
                      crunchip Forum Testing Most Active @Homoran last edited by crunchip

                      @homoran sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:

                      ich verstehe den Fehler im log als Fehler/Problem vom npm.

                      ja, aber es kommt die Meldung beim Versuch ble zu installieren

                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 239, in LoadOneBuildFile
                      npm ERR!     build_file_contents = open(build_file_path, "rU").read()
                      npm ERR!                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                      npm ERR! ValueError: invalid mode: 'rU' while trying to load binding.gyp
                      npm ERR! gyp ERR! configure error 
                      

                      diese es aber auf dem neuen System gar nicht mehr gibt.
                      bzw war das bisher die Meldung
                      den jetzigen code 25 müsste man sich ja nochmal mit --debug ansehen, ob es immer noch die selbe Meldung ist oder jetzt was anderes, da er ja die Datei auf dem alten(U entfernen) vor dem backup bearbeitet hat

                      1 Reply Last reply Reply Quote 0
                      • Homoran
                        Homoran Global Moderator Administrators last edited by Homoran

                        aber irgendwoher kennt npm doch diesen part.
                        nutzt ein npm cache clean hier etwas?

                        im nagelneuen System wurde/konnte doch ble installiert (werden).

                        dann muss der Mist doch irgendwo im Backup sein.
                        Da ist aber nix von node und npm drin.

                        crunchip 1 Reply Last reply Reply Quote 0
                        • crunchip
                          crunchip Forum Testing Most Active @Homoran last edited by

                          @homoran sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:

                          im nagelneuen System wurde/konnte doch ble installiert (werden).

                          eben, aber nicht mit dem backup, das ist ja das seltsame

                          Homoran 1 Reply Last reply Reply Quote 0
                          • G
                            Gismoh @Homoran last edited by

                            @homoran
                            Alt: ARMv7 Processor rev 3 (v7l), Node.js v18.18.2, NPM 9.8.1
                            Neu: Mist - habe noch keine Info Seite installiert 😉
                            aber x64 (i5-7500T)

                            Muss auch ersteinmal nen paar Stunden off - nicht nur mein Kopf qualmt 😉

                            Homoran 1 Reply Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @crunchip last edited by

                              @crunchip sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:

                              @homoran sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:

                              im nagelneuen System wurde/konnte doch ble installiert (werden).

                              eben, aber nicht mit dem backup, das ist ja das seltsame

                              siehe edit

                              1 Reply Last reply Reply Quote 0
                              • Homoran
                                Homoran Global Moderator Administrators @Gismoh last edited by

                                @gismoh sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:

                                aber x64 (i5-7500T)

                                und das richtige Debian (AMD64 und nicht x86)?

                                G 1 Reply Last reply Reply Quote 1
                                • G
                                  Gismoh @Homoran last edited by

                                  @homoran
                                  ja, amd64 (ble lief ja auch bereits auf einer neuinstallation - ohne Backup)

                                  Alt: ARMv7 Processor rev 3 (v7l), Node.js v18.18.2, NPM 9.8.1
                                  Neu: Architektur x64, Node.js v18.18.2, NPM 9.8.1

                                  Backup ist auf Neuinstallation wieder eingespielt - aber noch nichts weiter gemacht.

                                  crunchip 1 Reply Last reply Reply Quote 0
                                  • crunchip
                                    crunchip Forum Testing Most Active @Gismoh last edited by

                                    @gismoh dann nun die Ausgabe von

                                    iob add ble --debug
                                    
                                    G 2 Replies Last reply Reply Quote 1
                                    • G
                                      Gismoh @crunchip last edited by Gismoh

                                      @crunchip
                                      Sorry, erst nun, haben noch Besuch 😉

                                      idash@ioBrokerVM:~$ iob add ble --debug
                                      NPM version: 9.8.1
                                      Installing iobroker.ble@0.13.4... (System call)
                                      npm ERR! code 1
                                      npm ERR! path /opt/iobroker/node_modules/@abandonware/noble
                                      npm ERR! command failed
                                      npm ERR! command sh -c node-gyp-build
                                      npm ERR! gyp info it worked if it ends with ok
                                      npm ERR! gyp info using node-gyp@7.1.2
                                      npm ERR! gyp info using node@18.18.2 | linux | x64
                                      npm ERR! gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
                                      npm ERR! (node:5847) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
                                      npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
                                      npm ERR! gyp info spawn /usr/bin/python3
                                      npm ERR! gyp info spawn args [
                                      npm ERR! gyp info spawn args   '/opt/iobroker/node_modules/node-gyp/gyp/gyp_main.py',
                                      npm ERR! gyp info spawn args   'binding.gyp',
                                      npm ERR! gyp info spawn args   '-f',
                                      npm ERR! gyp info spawn args   'make',
                                      npm ERR! gyp info spawn args   '-I',
                                      npm ERR! gyp info spawn args   '/opt/iobroker/node_modules/@abandonware/noble/build/config.gypi',
                                      npm ERR! gyp info spawn args   '-I',
                                      npm ERR! gyp info spawn args   '/opt/iobroker/node_modules/node-gyp/addon.gypi',
                                      npm ERR! gyp info spawn args   '-I',
                                      npm ERR! gyp info spawn args   '/home/iobroker/.cache/node-gyp/18.18.2/include/node/common.gypi',
                                      npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
                                      npm ERR! gyp info spawn args   '-Dvisibility=default',
                                      npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/18.18.2',
                                      npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/opt/iobroker/node_modules/node-gyp',
                                      npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/18.18.2/<(target_arch)/node.lib',
                                      npm ERR! gyp info spawn args   '-Dmodule_root_dir=/opt/iobroker/node_modules/@abandonware/noble',
                                      npm ERR! gyp info spawn args   '-Dnode_engine=v8',
                                      npm ERR! gyp info spawn args   '--depth=.',
                                      npm ERR! gyp info spawn args   '--no-parallel',
                                      npm ERR! gyp info spawn args   '--generator-output',
                                      npm ERR! gyp info spawn args   'build',
                                      npm ERR! gyp info spawn args   '-Goutput_dir=.'
                                      npm ERR! gyp info spawn args ]
                                      npm ERR! Traceback (most recent call last):
                                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/gyp_main.py", line 51, in <module>
                                      npm ERR!     sys.exit(gyp.script_main())
                                      npm ERR!              ^^^^^^^^^^^^^^^^^
                                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 670, in script_main
                                      npm ERR!     return main(sys.argv[1:])
                                      npm ERR!            ^^^^^^^^^^^^^^^^^^
                                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 662, in main
                                      npm ERR!     return gyp_main(args)
                                      npm ERR!            ^^^^^^^^^^^^^^
                                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 629, in gyp_main
                                      npm ERR!     [generator, flat_list, targets, data] = Load(
                                      npm ERR!                                             ^^^^^
                                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 150, in Load
                                      npm ERR!     result = gyp.input.Load(
                                      npm ERR!              ^^^^^^^^^^^^^^^
                                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 3021, in Load
                                      npm ERR!     LoadTargetBuildFile(
                                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 411, in LoadTargetBuildFile
                                      npm ERR!     build_file_data = LoadOneBuildFile(
                                      npm ERR!                       ^^^^^^^^^^^^^^^^^
                                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 239, in LoadOneBuildFile
                                      npm ERR!     build_file_contents = open(build_file_path, "rU").read()
                                      npm ERR!                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                      npm ERR! ValueError: invalid mode: 'rU' while trying to load binding.gyp
                                      npm ERR! gyp ERR! configure error 
                                      npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
                                      npm ERR! gyp ERR! stack     at ChildProcess.onCpExit (/opt/iobroker/node_modules/node-gyp/lib/configure.js:351:16)
                                      npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:517:28)
                                      npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:292:12)
                                      npm ERR! gyp ERR! System Linux 6.1.0-13-amd64
                                      npm ERR! gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                      npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/@abandonware/noble
                                      npm ERR! gyp ERR! node -v v18.18.2
                                      npm ERR! gyp ERR! node-gyp -v v7.1.2
                                      npm ERR! gyp ERR! not ok
                                      
                                      npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2023-11-11T22_12_49_072Z-debug-0.log
                                      npm ERR! code 1
                                      npm ERR! path /opt/iobroker/node_modules/@abandonware/noble
                                      npm ERR! command failed
                                      npm ERR! command sh -c node-gyp-build
                                      npm ERR! gyp info it worked if it ends with ok
                                      npm ERR! gyp info using node-gyp@7.1.2
                                      npm ERR! gyp info using node@18.18.2 | linux | x64
                                      npm ERR! gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"
                                      npm ERR! (node:5847) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
                                      npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
                                      npm ERR! gyp info spawn /usr/bin/python3
                                      npm ERR! gyp info spawn args [
                                      npm ERR! gyp info spawn args   '/opt/iobroker/node_modules/node-gyp/gyp/gyp_main.py',
                                      npm ERR! gyp info spawn args   'binding.gyp',
                                      npm ERR! gyp info spawn args   '-f',
                                      npm ERR! gyp info spawn args   'make',
                                      npm ERR! gyp info spawn args   '-I',
                                      npm ERR! gyp info spawn args   '/opt/iobroker/node_modules/@abandonware/noble/build/config.gypi',
                                      npm ERR! gyp info spawn args   '-I',
                                      npm ERR! gyp info spawn args   '/opt/iobroker/node_modules/node-gyp/addon.gypi',
                                      npm ERR! gyp info spawn args   '-I',
                                      npm ERR! gyp info spawn args   '/home/iobroker/.cache/node-gyp/18.18.2/include/node/common.gypi',
                                      npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
                                      npm ERR! gyp info spawn args   '-Dvisibility=default',
                                      npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/18.18.2',
                                      npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/opt/iobroker/node_modules/node-gyp',
                                      npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/18.18.2/<(target_arch)/node.lib',
                                      npm ERR! gyp info spawn args   '-Dmodule_root_dir=/opt/iobroker/node_modules/@abandonware/noble',
                                      npm ERR! gyp info spawn args   '-Dnode_engine=v8',
                                      npm ERR! gyp info spawn args   '--depth=.',
                                      npm ERR! gyp info spawn args   '--no-parallel',
                                      npm ERR! gyp info spawn args   '--generator-output',
                                      npm ERR! gyp info spawn args   'build',
                                      npm ERR! gyp info spawn args   '-Goutput_dir=.'
                                      npm ERR! gyp info spawn args ]
                                      npm ERR! Traceback (most recent call last):
                                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/gyp_main.py", line 51, in <module>
                                      npm ERR!     sys.exit(gyp.script_main())
                                      npm ERR!              ^^^^^^^^^^^^^^^^^
                                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 670, in script_main
                                      npm ERR!     return main(sys.argv[1:])
                                      npm ERR!            ^^^^^^^^^^^^^^^^^^
                                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 662, in main
                                      npm ERR!     return gyp_main(args)
                                      npm ERR!            ^^^^^^^^^^^^^^
                                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 629, in gyp_main
                                      npm ERR!     [generator, flat_list, targets, data] = Load(
                                      npm ERR!                                             ^^^^^
                                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 150, in Load
                                      npm ERR!     result = gyp.input.Load(
                                      npm ERR!              ^^^^^^^^^^^^^^^
                                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 3021, in Load
                                      npm ERR!     LoadTargetBuildFile(
                                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 411, in LoadTargetBuildFile
                                      npm ERR!     build_file_data = LoadOneBuildFile(
                                      npm ERR!                       ^^^^^^^^^^^^^^^^^
                                      npm ERR!   File "/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 239, in LoadOneBuildFile
                                      npm ERR!     build_file_contents = open(build_file_path, "rU").read()
                                      npm ERR!                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                      npm ERR! ValueError: invalid mode: 'rU' while trying to load binding.gyp
                                      npm ERR! gyp ERR! configure error 
                                      npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
                                      npm ERR! gyp ERR! stack     at ChildProcess.onCpExit (/opt/iobroker/node_modules/node-gyp/lib/configure.js:351:16)
                                      npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:517:28)
                                      npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:292:12)
                                      npm ERR! gyp ERR! System Linux 6.1.0-13-amd64
                                      npm ERR! gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                      npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/@abandonware/noble
                                      npm ERR! gyp ERR! node -v v18.18.2
                                      npm ERR! gyp ERR! node-gyp -v v7.1.2
                                      npm ERR! gyp ERR! not ok
                                      
                                      npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2023-11-11T22_12_49_072Z-debug-0.log
                                      host.ioBrokerVM Cannot install iobroker.ble@0.13.4: 1
                                      

                                      Sieht irgendwie bekannt aus ;(

                                      1 Reply Last reply Reply Quote 0
                                      • G
                                        Gismoh @crunchip last edited by

                                        @crunchip
                                        Auch hier:

                                        idash@ioBrokerVM:~$ sudo nano /opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp/input.py
                                        
                                        Verzeichnis „/opt/iobroker/node_modules/node-gyp/gyp/pylib/gyp“ existiert nicht
                                        

                                        in

                                        /usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py
                                        

                                        gibt es auch nun die entsprechende Zeile nicht.

                                        crunchip 1 Reply Last reply Reply Quote 0
                                        • crunchip
                                          crunchip Forum Testing Most Active @Gismoh last edited by

                                          @gismoh ich hab keine Ahnung was da bei dir falsch ist bzw aus deinem backup mitgeschleift wird.

                                          letzte Idee wäre, auf deiner neuen Installation, so wie sie jetzt ist, nodejs de/installieren und anschließend wenn der iobroker nach dem Start fertig gebaut ist, es nochmal mit dem ble Adapter probieren
                                          https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian?_=1699766871988

                                          G 1 Reply Last reply Reply Quote 0
                                          • G
                                            Gismoh @crunchip last edited by

                                            @crunchip
                                            Okay, aber besten Dank für deine Unterstützung.
                                            Werde dies dann noch ausprobieren.

                                            Ansonsten werde ich noch versuchen die alten "Daten" irgendwie manuell zu übertragen.
                                            Eine andere Möglichkeit eines Backups außer mit "BackItUp" scheint es ja leider nicht zu geben.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            935
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            8
                                            267
                                            23704
                                            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