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.
    • Thomas Braun
      Thomas Braun Most Active @Gismoh last edited by

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

      sudo nano

      Du sollst nicht ohne Not jetzt vor jeden Befehl sudo setzen. Das wird nur unter besonderen Umständen benötigt. Für Aktionen in /opt/iobroker werden keine root-Rechte benötigt (in einer gesunden Installation).

      Das Verzeichnis gibt es auf meiner Machine auch nicht.

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

      funktioniert?

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

        @thomas-braun
        ja, dies funktioniert 😉

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

          @gismoh

          Dann schau da mal nach dem Eintrag, den crunchip oben genannt hat.

          Ich vermute aber, der ist da so gar nicht mehr drin.

          In meiner Version steht da nämlich:

              if os.path.exists(build_file_path):
                  build_file_contents = open(build_file_path, encoding='utf-8').read()
              else:
                  raise GypError(f"{build_file_path} not found (cwd: {os.getcwd()})")
          
              build_file_data = None
          
          G crunchip 2 Replies Last reply Reply Quote 1
          • G
            Gismoh @Thomas Braun last edited by

            @thomas-braun
            kann man auch den inhalt der Datei in die Zwischenablage holen, um besser danach suchen zu können?

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

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

              um besser danach suchen zu können?

              Mit Strg-W sucht man in nano

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

                @thomas-braun
                denke, das ist es?

                def LoadOneBuildFile(build_file_path, data, aux_data, includes, is_target, chec>
                    if build_file_path in data:
                        return data[build_file_path]
                
                    if os.path.exists(build_file_path):
                        build_file_contents = open(build_file_path, encoding='utf-8').read()
                    else:
                        raise GypError(f"{build_file_path} not found (cwd: {os.getcwd()})")
                
                    build_file_data = None
                    try:
                        if check:
                            build_file_data = CheckedEval(build_file_contents)
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Gismoh last edited by

                  @gismoh

                  Zeile 228 müsste das sein.

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

                    @thomas-braun
                    Zeilennummern sehe ich nicht, aber ist es nicht das, was ich oben gepostet habe?

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

                      @gismoh

                      Strg-C zeigt die aktuelle Zeile.
                      Aber das passt wohl bei dir dann.

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

                        @thomas-braun
                        Merci - ist dann aber wohl kein gutes Zeichen, weil ich immer noch nicht den ble zum laufen bekomme nach Backitup rückspielung. 😰

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

                          @gismoh

                          iob stop
                          iob fix
                          cd /home/iobroker
                          sudo -u iobroker npm cache clear --force
                          cd
                          iobroker upgrade ble@0.13.4
                          
                          G 1 Reply Last reply Reply Quote 0
                          • crunchip
                            crunchip Forum Testing Most Active @Thomas Braun last edited by

                            @thomas-braun sagte in ioBroker auf neuer Maschine aufgesetzt und Adapter Probleme:

                            In meiner Version steht da nämlich:

                            in der einen ja, ich hab da beide
                            7cebbb7b-504a-469c-873a-c9e26d7638b4-image.png

                            und die Fehlermeldung spuckt ja auch aus

                            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
                            
                            1 Reply Last reply Reply Quote 1
                            • G
                              Gismoh @Thomas Braun last edited by

                              @thomas-braun

                              idash@ioBrokerVM:/home/iobroker$ sudo -u iobroker npm cache clear --force
                              npm WARN using --force Recommended protections disabled.
                              npm ERR! code ENOTEMPTY
                              npm ERR! syscall rmdir
                              npm ERR! path /home/iobroker/.npm/_cacache
                              npm ERR! errno -39
                              npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/iobroker/.npm/_cacache'
                              
                              npm ERR! A complete log of this run can be found in: /home/iobroker/.npm/_logs/2023-11-08T22_45_40_333Z-debug-0.log
                              

                              denke, es sollte anders aussehen?

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

                                @gismoh

                                Ja, das sollte so aussehen:

                                echad@chet:/home/iobroker $ sudo -u iobroker npm cache clear --force
                                npm WARN using --force Recommended protections disabled.
                                echad@chet:/home/iobroker $
                                
                                ls -lah /home/iobroker/.npm/_cacache
                                

                                sagt?

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

                                  @thomas-braun

                                  idash@ioBrokerVM:/home/iobroker$ ls -lah /home/iobroker/.npm/_cacache
                                  insgesamt 12K
                                  drwxr-xr-x 3 iobroker iobroker 4,0K  8. Nov 23:45 .
                                  drwxr-xr-x 7 iobroker iobroker 4,0K  8. Nov 22:10 ..
                                  drwxr-xr-x 2 iobroker iobroker 4,0K  8. Nov 23:45 tmp
                                  
                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Gismoh last edited by

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

                                    rm -rf /home/iobroker/.npm/_cacache/tmp
                                    
                                    G 1 Reply Last reply Reply Quote 0
                                    • G
                                      Gismoh @Thomas Braun last edited by

                                      @thomas-braun

                                      rm: das Entfernen von '/home/iobroker/.npm/_cacache/tmp/d411385f' ist nicht möglich: Keine Berechtigung
                                      
                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @Gismoh last edited by

                                        @gismoh

                                        sudo -u iobroker rm -rf /home/iobroker/.npm/_cacache/tmp
                                        
                                        G 1 Reply Last reply Reply Quote 0
                                        • G
                                          Gismoh @Thomas Braun last edited by

                                          @thomas-braun

                                          idash@ioBrokerVM:/home/iobroker$ sudo -u iobroker npm cache clear --force
                                          npm WARN using --force Recommended protections disabled.
                                          idash@ioBrokerVM:/home/iobroker$ cd
                                          idash@ioBrokerVM:~$ iobroker upgrade ble@0.13.4
                                          Adapter "ble"            is not installed.
                                          
                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Gismoh last edited by

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

                                            iobroker add ble@0.13.4 --debug
                                            
                                            G 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            708
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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