Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst] Problem mit Javascript-Adapter

    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] Problem mit Javascript-Adapter

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

      Heute ist wohl nicht mein Tag am PC.
      Der Javascript-Adater wurde mir bei den vorhandenen Aktualisierungen angezeigt (7.1.4 -> 7.8.0)
      Also habe ich "Aktualisieren gewählt.
      Das ging leider schief

      2024-02-18 21:50:01.923 - info: host.PIioBroker iobroker Update javascript from @7.1.4 to @7.8.0
      2024-02-18 21:50:02.937 - info: dwd.0 (17409) starting. Version 2.8.5 in /opt/iobroker/node_modules/iobroker.dwd, node: v16.19.1, js-controller: 5.0.17
      2024-02-18 21:50:03.347 - info: host.PIioBroker iobroker NPM version: 8.19.3Installing iobroker.javascript@7.8.0... (System call)
      2024-02-18 21:50:05.632 - info: dwd.0 (17409) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
      2024-02-18 21:50:06.170 - info: host.PIioBroker instance system.adapter.dwd.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
      2024-02-18 21:50:39.028 - info: host.PIioBroker iobroker npm ERR! code ETIMEDOUT
      2024-02-18 21:50:39.032 - info: host.PIioBroker iobroker npm ERR! syscall readnpm ERR! errno -110
      2024-02-18 21:50:39.039 - info: host.PIioBroker iobroker npm ERR! network read ETIMEDOUTnpm ERR! network This is a problem related to network connectivity.npm ERR! network In most cases you are behind a proxy or have bad network settings.npm ERR! network npm ERR! network If you are behind a proxy, please make sure that thenpm ERR! network 'proxy' config is set properly. See: 'npm help config'
      2024-02-18 21:50:39.048 - info: host.PIioBroker iobroker
      2024-02-18 21:50:39.052 - info: host.PIioBroker iobroker npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2024-02-18T20_50_04_520Z-debug-0.log
      2024-02-18 21:50:39.086 - error: host.PIioBroker iobroker npm ERR! code ETIMEDOUTnpm ERR! syscall readnpm ERR! errno -110npm ERR! network read ETIMEDOUTnpm ERR! network This is a problem related to network connectivity.npm ERR! network In most cases you are behind a proxy or have bad network settings.npm ERR! network npm ERR! network If you are behind a proxy, please make sure that thenpm ERR! network 'proxy' config is set properly. See: 'npm help config'npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2024-02-18T20_50_04_520Z-debug-0.log
      2024-02-18 21:50:39.088 - error: host.PIioBroker iobroker host.PIioBroker Cannot install iobroker.javascript@7.8.0: 146
      

      Etwas später habe ich festgestellt, dass keine Skripte mehr laufen 😞
      Da der Adapter noch in der Liste der Instanzen war, habe ich gestoppt und neu gestartet. Dann lief andauernd die (erfolglose) Installation los.
      Also Adapter wieder gestoppt.

      Auf die Kommandozeile gegangen und die installierten Adapter geprüft: Er war nicht in der Liste.

      Also 1. Versuch:

      iob install javascript
      

      Leider wieder erfolglos. Hier wohl die relevante Fehlermeldung, die mir aber nicht weiterhilft.

      2024-02-18 21:50:39.086 - error: host.PIioBroker iobroker npm ERR! code ETIMEDOUTnpm ERR! syscall readnpm ERR! errno -110npm ERR! network read ETIMEDOUTnpm ERR! network This is a problem related to network connectivity.npm ERR! network In most cases you are behind a proxy or have bad network settings.npm ERR! network npm ERR! network If you are behind a proxy, please make sure that thenpm ERR! network 'proxy' config is set properly. See: 'npm help config'npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2024-02-18T20_50_04_520Z-debug-0.log
      2024-02-18 21:50:39.088 - error: host.PIioBroker iobroker host.PIioBroker Cannot install iobroker.javascript@7.8.0: 146
      

      Der Versuch, die alte Version

      iob install javascript@7.1.4
      

      wieder zu installieren, ging ebenfalls schief und bringt eine ähnliche Fehlermeldung

      2024-02-18 22:02:39.168 - error: host.PIioBroker iobroker npm-install: npm ERR! code ENOTEMPTYnpm ERR! syscall renamenpm ERR! path /opt/iobroker/node_modules/@types/caselessnpm ERR! dest /opt/iobroker/node_modules/@types/.caseless-biP5OApGnpm ERR! errno -39npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/@types/caseless' -> '/opt/iobroker/node_modules/@types/.caseless-biP5OApG'npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2024-02-18T21_02_32_356Z-debug-0.log
      2024-02-18 22:02:39.169 - error: host.PIioBroker iobroker npm-install: host.PIioBroker Cannot install iobroker.javascript@7.1.4: 217
      

      Was kann ich jetzt noch machen?

      Thomas Braun arteck Neuschwansteini H 4 Replies Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @hans_999 last edited by Thomas Braun

        @hans_999

        iob stop
        iob fix
        iob nodejs-update
        sudo reboot
        

        Dann weiterschauen.
        Die Ausgabe von 'iob diag' ist auch immer sinnvoll.

        1 Reply Last reply Reply Quote 1
        • arteck
          arteck Developer Most Active @hans_999 last edited by arteck

          @hans_999 sagte in Problem mit Javascript-Adapter:

          /opt/iobroker/node_modules/@types/.caseless-biP5OApG

          da ist ein update abgebrochen...

          for i in $(find /opt/iobroker/node_modules -type d -iname ".*-????????" ! -iname ".local-chromium"); do rm -rf ${i%%/}; done
          

          in der console.. wenn nach dem iob fix trotzdem nicht weiter geht

          mcm1957 1 Reply Last reply Reply Quote 1
          • Neuschwansteini
            Neuschwansteini @hans_999 last edited by

            @hans_999 sagte in Problem mit Javascript-Adapter:

            info: host.PIioBroker iobroker npm ERR! network read ETIMEDOUTnpm ERR! network This is a problem related to network connectivity.npm ERR! network In most cases you are behind a proxy or have bad network settings.npm ERR! network npm ERR! network If you are behind a proxy, please make sure that thenpm ERR! network 'proxy' config is set properly. See: 'npm help config'

            Da ist beim Update dein Netzwerk zusammengebrochen oder kein Internetzugang oder DNS Fehler oder oder oder...

            Also schau am besten, noch bevor du die Commands von @Thomas-Braun eingibst, dass dein Netzwerk im iobroker funktioniert..

            1 Reply Last reply Reply Quote 2
            • mcm1957
              mcm1957 @arteck last edited by mcm1957

              @arteck said in Problem mit Javascript-Adapter:

              @hans_999 sagte in Problem mit Javascript-Adapter:

              /opt/iobroker/node_modules/@types/.caseless-biP5OApG

              da ist ein update abgebrochen...

              Könnte dein gescheiterter Versuch einen nicht im Repo enthaltenen Adapter direkt von Github zu installieren da schuld sein?

              https://forum.iobroker.net/topic/59422/new-adapter-huawei-fusionsolar-api/92?_=1708337684217

              Da klemmt es genau beim selben Modul ....

              Und wie schon dort geschrieben: GITHUB Installatoinen immer auf eigenes Risiko und nicht auf produktiven Systemen (von Ausnahmen in Abstimmung mit dem Developer mal abgesehen)

              arteck 1 Reply Last reply Reply Quote 2
              • arteck
                arteck Developer Most Active @mcm1957 last edited by

                @mcm57

                .caseless-biP5OApG

                diese Ordnerstruktur ist immer dann wenn ein update läuft.. und wird nach dem Update bereinigt..
                bricht das upadate ab.. dann bleiben diese Order bestehen und blokieren alle anderen Updates..

                nur mal zur Info

                1 Reply Last reply Reply Quote 3
                • H
                  hans_999 @hans_999 last edited by hans_999

                  @Thomas-Braun

                  Danke, die Vorgehensweise hat geholfen.
                  Es hat zwar ewig gedauert, bis das Update-Skript durch war. Aber danach konnte ich den aktuellen Javascript-Adapter problemlos (neu) installieren.

                  Danke auch für die anderen Tipps und Hinweise.

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

                    @hans_999

                    Das spricht dafür, dass da diverse Updates in der Pipeline hingen.
                    In einem ansonsten gepflegten System dauert das nämlich nicht besonders lange.

                    Kiste danach auch mal sauber neugestartet?

                    H 1 Reply Last reply Reply Quote 1
                    • H
                      hans_999 @Thomas Braun last edited by

                      @thomas-braun said in [gelöst] Problem mit Javascript-Adapter:

                      Kiste danach auch mal sauber neugestartet?

                      Ja, das war ja der letzte Punkt in deiner Anleitung.

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

                        @hans_999

                        Dann kannst du dir jetzt noch die Ausgabe von

                        iob diag
                        

                        anschauen.

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        859
                        Online

                        31.8k
                        Users

                        80.0k
                        Topics

                        1.3m
                        Posts

                        javascript
                        5
                        10
                        506
                        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