Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. (Alexa Adapter) Cannot find module 'https-proxy-agent'

    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

    UNSOLVED (Alexa Adapter) Cannot find module 'https-proxy-agent'

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

      Systemdata Bitte Ausfüllen
      Hardwaresystem: Virtuelle Maschine
      Arbeitsspeicher: 2GB
      Festplattenart: HDD
      Betriebssystem: Debian Linux
      Node-Version: v10.20.1
      Nodejs-Version: v10.20.1
      NPM-Version: 6.14.4
      Installationsart: Skript

      Moin !

      Nach dem Update auf Version 3.2.8 meldet mein Alexa Adapter diesen Fehler:

      host.SHome-IoBroker	2020-07-17 09:58:16.965	error	instance system.adapter.alexa2.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
      host.SHome-IoBroker	2020-07-17 09:58:16.965	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:585:3)
      host.SHome-IoBroker	2020-07-17 09:58:16.965	error	Caught by controller[0]: at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
      host.SHome-IoBroker	2020-07-17 09:58:16.964	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:653:32)
      host.SHome-IoBroker	2020-07-17 09:58:16.964	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
      host.SHome-IoBroker	2020-07-17 09:58:16.964	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:778:30)
      host.SHome-IoBroker	2020-07-17 09:58:16.964	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/virtual-device-sdk/lib/src/VirtualDevice.js:41:23)
      host.SHome-IoBroker	2020-07-17 09:58:16.963	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:25:18)
      host.SHome-IoBroker	2020-07-17 09:58:16.963	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:692:17)
      host.SHome-IoBroker	2020-07-17 09:58:16.963	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:562:25)
      host.SHome-IoBroker	2020-07-17 09:58:16.962	error	Caught by controller[0]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
      host.SHome-IoBroker	2020-07-17 09:58:16.962	error	Caught by controller[0]: Error: Cannot find module 'https-proxy-agent'
      host.SHome-IoBroker	2020-07-17 09:58:16.962	error	Caught by controller[0]: ^
      host.SHome-IoBroker	2020-07-17 09:58:16.962	error	Caught by controller[0]: throw err;
      host.SHome-IoBroker	2020-07-17 09:58:16.961	error	Caught by controller[0]: internal/modules/cjs/loader.js:638
      

      Kann ich das Modul irgendwie nachinstallieren?

      Grüße Dominik

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

        @moelski
        Bist du sicher, dass nodejs sauber installiert ist?

        Ansonsten würde ich den Adapter mal deinstallieren und frisch neuinstallieren. Meldungen im Log beobachten!

        1 Reply Last reply Reply Quote 0
        • moelski
          moelski last edited by

          Ja ist sauber installiert.
          Hat ja bis vor dem Update alles sauber gelaufen.

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

            @moelski
            Das es bislang lief heißt ja nix.
            Bei mir schaut das so aus:

            pi@raspberrypi:~$ cd /opt/iobroker/
            pi@raspberrypi:/opt/iobroker$ npm list http-proxy-agent
            iobroker.inst@2.0.3 /opt/iobroker
            ├─┬ iobroker.alexa2@3.2.8
            │ └─┬ virtual-device-sdk@1.7.3
            │   └── http-proxy-agent@4.0.1
            └─┬ iobroker.nuki-extended@2.2.6
              └─┬ npm@6.14.6
                └─┬ npm-registry-fetch@4.0.5
                  └─┬ make-fetch-happen@5.0.2
                    └── http-proxy-agent@2.1.0
            

            Was liefert denn

            which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
            

            Unabhängig vom Ergebnis würde ich auf node12 updaten.

            1 Reply Last reply Reply Quote 0
            • C
              Chrischo last edited by

              Hallo,
              bei mir erscheinen die gleichen Fehlermeldungen seit dem Update auf 3.2.8.

              host.raspberrypi	2020-07-17 13:46:15.780	error	instance system.adapter.alexa2.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
              host.raspberrypi	2020-07-17 13:46:15.779	error	Caught by controller[0]: }
              host.raspberrypi	2020-07-17 13:46:15.779	error	Caught by controller[0]: ]
              host.raspberrypi	2020-07-17 13:46:15.779	error	Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.alexa2/main.js'
              host.raspberrypi	2020-07-17 13:46:15.778	error	Caught by controller[0]: '/opt/iobroker/node_modules/virtual-device-sdk/lib/src/Index.js',
              host.raspberrypi	2020-07-17 13:46:15.778	error	Caught by controller[0]: '/opt/iobroker/node_modules/virtual-device-sdk/lib/src/VirtualDevice.js',
              host.raspberrypi	2020-07-17 13:46:15.778	error	Caught by controller[0]: requireStack: [
              host.raspberrypi	2020-07-17 13:46:15.778	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
              host.raspberrypi	2020-07-17 13:46:15.778	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:1026:19) {
              host.raspberrypi	2020-07-17 13:46:15.777	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:879:14)
              host.raspberrypi	2020-07-17 13:46:15.777	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:986:32)
              host.raspberrypi	2020-07-17 13:46:15.777	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
              host.raspberrypi	2020-07-17 13:46:15.777	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1138:30)
              host.raspberrypi	2020-07-17 13:46:15.776	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/virtual-device-sdk/lib/src/VirtualDevice.js:41:23)
              host.raspberrypi	2020-07-17 13:46:15.776	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:72:18)
              host.raspberrypi	2020-07-17 13:46:15.776	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:1026:19)
              host.raspberrypi	2020-07-17 13:46:15.776	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:842:27)
              host.raspberrypi	2020-07-17 13:46:15.775	error	Caught by controller[0]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
              host.raspberrypi	2020-07-17 13:46:15.775	error	Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.alexa2/main.js
              host.raspberrypi	2020-07-17 13:46:15.775	error	Caught by controller[0]: - /opt/iobroker/node_modules/virtual-device-sdk/lib/src/Index.js
              host.raspberrypi	2020-07-17 13:46:15.775	error	Caught by controller[0]: - /opt/iobroker/node_modules/virtual-device-sdk/lib/src/VirtualDevice.js
              host.raspberrypi	2020-07-17 13:46:15.774	error	Caught by controller[0]: Require stack:
              host.raspberrypi	2020-07-17 13:46:15.774	error	Caught by controller[0]: Error: Cannot find module 'https-proxy-agent'
              host.raspberrypi	2020-07-17 13:46:15.774	error	Caught by controller[0]: ^
              host.raspberrypi	2020-07-17 13:46:15.773	error	Caught by controller[0]: throw err;
              host.raspberrypi	2020-07-17 13:46:15.773	error	Caught by controller[0]: internal/modules/cjs/loader.js:969
              
              pi@raspberrypi:~ $ cd /opt/iobroker/
              pi@raspberrypi:/opt/iobroker $ npm list http-proxy-agent
              iobroker.inst@2.0.3 /opt/iobroker
              ├─┬ iobroker.alexa2@3.2.8
              │ └─┬ virtual-device-sdk@1.7.3
              │   └── http-proxy-agent@4.0.1
              ├─┬ iobroker.unifi@0.5.5
              │ └─┬ node-unifi@1.3.3
              │   └─┬ snyk@1.346.0
              │     └─┬ proxy-agent@3.1.1
              │       ├── http-proxy-agent@2.1.0
              │       └─┬ pac-proxy-agent@3.0.1
              │         └── http-proxy-agent@2.1.0
              └─┬ iobroker.vis-weather@2.5.2
                └─┬ npm@6.14.5
                  └─┬ npm-registry-fetch@4.0.4
                    └─┬ make-fetch-happen@5.0.2
                      └── http-proxy-agent@2.1.0
              
              /usr/bin/nodejs
              v12.18.2
              /usr/bin/node
              v12.18.2
              /usr/bin/npm
              6.14.5
              nodejs:
                Installed: 12.18.2-1nodesource1
                Candidate: 12.18.2-1nodesource1
                Version table:
               *** 12.18.2-1nodesource1 500
                      500 https://deb.nodesource.com/node_12.x buster/main arm64 Packages
                      100 /var/lib/dpkg/status
                   10.21.0~dfsg-1~deb10u1 500
                      500 http://deb.debian.org/debian-security buster/updates/main arm64 Packages
                   10.19.0~dfsg1-1 500
                      500 http://deb.debian.org/debian buster/main arm64 Packages
              
              

              Der Alexa Adapter lässt sich auch nicht mehr starten.
              Selbst bei einem Downgrade auf die ältere und zuvor funktionierende Version funktioniert nicht mehr und es kommen die gleichen Fehlermeldungen.

              Interessanter Weise hat das Update auf einem zweiten Raspi mit nahezu den gleichen Adaptern problemlos funktioniert. Beide Raspis sind aktuell.

              Vielleicht kann jemand helfen?
              Vielen Dank

              1 Reply Last reply Reply Quote 0
              • B
                Bibo*13 last edited by

                Hallo zusammen,
                ich habe das gleiche Problem, nach Upgarde auf 3.2.8 startet die Instance nicht mehr.
                Gibt es da mittlerweile etwas Neues?

                Alexa2_Start.JPG

                Alexa2_1.JPG

                1 Reply Last reply Reply Quote 0
                • J
                  Jan1 last edited by Jan1

                  bei mir läuft es ohne Probleme, aber meine Ausgabe zu dem angemeckerten Modul sieht so aus:

                  jan@Beelink:/opt/iobroker$ npm list http-proxy-agent
                  iobroker.inst@2.0.3 /opt/iobroker
                  └── (empty)
                  

                  Das ist bei mir gar nicht vorhanden, wobei ich es manuell finden kann:
                  bb94da6a-8c47-4d1c-a4fd-99e05091f9fd-grafik.png

                  1 Reply Last reply Reply Quote 0
                  • moelski
                    moelski last edited by

                    Ok hier die Ausgaben von ...

                    which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                    
                    /usr/bin/nodejs
                    v10.20.1
                    /usr/bin/node
                    v10.20.1
                    /usr/bin/npm
                    6.14.4
                    nodejs:
                      Installed: 10.20.1-1nodesource1
                      Candidate: 10.20.1-1nodesource1
                      Version table:
                     *** 10.20.1-1nodesource1 500
                            500 https://deb.nodesource.com/node_10.x stretch/main amd64 Packages
                            100 /var/lib/dpkg/status
                         4.8.2~dfsg-1 500
                            500 http://ftp.de.debian.org/debian stretch/main amd64 Packages
                    

                    Und hier noch die Ausgabe von dem npm Aufruf:

                    dominik@SHome-IoBroker:~$ cd /opt/iobroker/
                    dominik@SHome-IoBroker:/opt/iobroker$ npm list http-proxy-agent
                    [sudo] password for dominik:
                    iobroker.inst@2.0.3 /opt/iobroker
                    └─┬ iobroker.alexa2@3.2.8
                      └─┬ virtual-device-sdk@1.7.3
                        └── http-proxy-agent@4.0.1
                    

                    Grüße Dominik

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

                      @moelski
                      Wenn beim Aufruf von npm im Verzeichnis /opt/iobroker nach dem sudo Passwort gefragt wird dürfte da irgendwas mit den Rechten für die User nicht stimmen.
                      Jag mal den

                      iobroker fix
                      

                      durch.
                      Und ich würde an deiner Stelle den Absprung von Stretch planen. Je länger du das rauszögerst, umso komplizierter kann das werden.

                      1 Reply Last reply Reply Quote 0
                      • moelski
                        moelski last edited by

                        Moin !

                        fix durchgeführt:

                        ==========================================================================
                            Checking ioBroker user and directory permissions (2/3)
                        ==========================================================================
                        
                        Created /etc/sudoers.d/iobroker
                        Fixing directory permissions...
                        
                        ==========================================================================
                            Checking autostart (3/3)
                        ==========================================================================
                        
                        Enabling autostart...
                        Autostart enabled!
                        
                        ==========================================================================
                        
                            Your installation was fixed successfully
                            Run iobroker start to start ioBroker again!
                        
                        ==========================================================================
                        
                        dominik@SHome-IoBroker:/opt/iobroker$ iobroker start
                        dominik@SHome-IoBroker:/opt/iobroker$ iobroker fix^C
                        dominik@SHome-IoBroker:/opt/iobroker$ npm list http-proxy-agent
                        iobroker.inst@2.0.3 /opt/iobroker
                        └─┬ iobroker.alexa2@3.2.8
                          └─┬ virtual-device-sdk@1.7.3
                            └── http-proxy-agent@4.0.1
                        

                        Aber der Fehler mit dem Alexa bleibt leider immer noch.

                        Stretch Update ... Hmm, ok da müsste ich dann wohl demnächst mal ran ...

                        Grüße

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

                          Bei mir ist es das gleiche.
                          System ist jedoch Ubuntu - nach dem letzten Update bekomme ich die gleichen Fehlermeldungen und stelle fest, dass der Pfad, auf den das Log verweist, gar nicht existiert.
                          Gleichmaßen kann ich den http-proxy-agent aber auch nicht neuinstallieren.

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

                            @mrzee Für Ubuntu gelten die gleichen Anmerkungen zu nodejs wie zu Debian.

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              mrzee @Thomas Braun last edited by mrzee

                              @Thomas-Braun

                              Danke - ich komme mit den ganzen Distris immer durcheinander. Ich habe das Problem aber gefunden:
                              Scheinbar wurde bei einem Update, entweder Adapter oder OS, das Verzeichnis /opt/iobroker/node_modules/https-proxy-agent wie auch immer beschädigt. Eine manuelle Neuinstallation via NPM hat funktioniert und der Adapter läuft wieder.

                              1 Reply Last reply Reply Quote 0
                              • B
                                Bibo*13 last edited by

                                Hi wunderbar das das Problem gefunden wurde.
                                Leider bin ich etwas unbedart und weiß nicht wie ich den fehlenden http-proxy-agent fixen soll.
                                Kann mir bitte jemand da auf die Sprünge helfen.

                                1 Reply Last reply Reply Quote 0
                                • C
                                  Chrischo last edited by

                                  Würde mich auch interessieren. Habe den fixer laufen lassen - hat aber nicht geholfen. Habe die Instanz und den kompletten Adapter deinstalliert und anschließend neu installiert - leider auch keine Besserung. Das ist aber wirklich sehr ärgerlich.

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    Chrischo last edited by

                                    alexa.PNG

                                    Dabei bleibt´s dann stehen und der Adapter startet nicht.

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

                                      @Chrischo Und was sagt das Log? Und ist nodejs sauber?

                                      C 1 Reply Last reply Reply Quote 0
                                      • C
                                        Chrischo @Thomas Braun last edited by

                                        @Thomas-Braun
                                        nicht viel Neues 😞

                                        host.raspberrypi	2020-07-19 14:20:20.839	error	instance system.adapter.alexa2.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
                                        host.raspberrypi	2020-07-19 14:20:20.839	error	Caught by controller[0]: }
                                        host.raspberrypi	2020-07-19 14:20:20.838	error	Caught by controller[0]: ]
                                        host.raspberrypi	2020-07-19 14:20:20.838	error	Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.alexa2/main.js'
                                        host.raspberrypi	2020-07-19 14:20:20.838	error	Caught by controller[0]: '/opt/iobroker/node_modules/virtual-device-sdk/lib/src/Index.js',
                                        host.raspberrypi	2020-07-19 14:20:20.838	error	Caught by controller[0]: '/opt/iobroker/node_modules/virtual-device-sdk/lib/src/VirtualDevice.js',
                                        host.raspberrypi	2020-07-19 14:20:20.838	error	Caught by controller[0]: requireStack: [
                                        host.raspberrypi	2020-07-19 14:20:20.838	error	Caught by controller[0]: code: 'MODULE_NOT_FOUND',
                                        host.raspberrypi	2020-07-19 14:20:20.837	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:1026:19) {
                                        host.raspberrypi	2020-07-19 14:20:20.837	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:879:14)
                                        host.raspberrypi	2020-07-19 14:20:20.837	error	Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:986:32)
                                        host.raspberrypi	2020-07-19 14:20:20.837	error	Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
                                        host.raspberrypi	2020-07-19 14:20:20.837	error	Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1138:30)
                                        host.raspberrypi	2020-07-19 14:20:20.836	error	Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/virtual-device-sdk/lib/src/VirtualDevice.js:41:23)
                                        host.raspberrypi	2020-07-19 14:20:20.836	error	Caught by controller[0]: at require (internal/modules/cjs/helpers.js:72:18)
                                        host.raspberrypi	2020-07-19 14:20:20.836	error	Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:1026:19)
                                        host.raspberrypi	2020-07-19 14:20:20.836	error	Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:842:27)
                                        host.raspberrypi	2020-07-19 14:20:20.836	error	Caught by controller[0]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
                                        host.raspberrypi	2020-07-19 14:20:20.835	error	Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.alexa2/main.js
                                        host.raspberrypi	2020-07-19 14:20:20.835	error	Caught by controller[0]: - /opt/iobroker/node_modules/virtual-device-sdk/lib/src/Index.js
                                        host.raspberrypi	2020-07-19 14:20:20.835	error	Caught by controller[0]: - /opt/iobroker/node_modules/virtual-device-sdk/lib/src/VirtualDevice.js
                                        host.raspberrypi	2020-07-19 14:20:20.835	error	Caught by controller[0]: Require stack:
                                        host.raspberrypi	2020-07-19 14:20:20.835	error	Caught by controller[0]: Error: Cannot find module 'https-proxy-agent'
                                        host.raspberrypi	2020-07-19 14:20:20.835	error	Caught by controller[0]: ^
                                        host.raspberrypi	2020-07-19 14:20:20.834	error	Caught by controller[0]: throw err;
                                        host.raspberrypi	2020-07-19 14:20:20.834	error	Caught by controller[0]: internal/modules/cjs/loader.js:969
                                        
                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @Chrischo last edited by

                                          @Chrischo nodejs sauber?

                                          C 1 Reply Last reply Reply Quote 0
                                          • C
                                            Chrischo @Thomas Braun last edited by

                                            @Thomas-Braun wie überprüfe ich die "Sauberkeit"?
                                            Augenscheinlich macht es keine Probleme.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            582
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            alexa error https-proxy-agent
                                            7
                                            31
                                            2536
                                            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