Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst] - js-controller nach update nicht mehr zu starten

    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] - js-controller nach update nicht mehr zu starten

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

      Servus Eric

      bin wieder einen Schritt weiter aber noch nicht am Ziel ;o)

      pi@ioBroker-Pi3:/opt/iobroker $ node -v
      v6.12.3
      pi@ioBroker-Pi3:/opt/iobroker $ sudo npm install iobroker.js-controller --production
      
      > iobroker.js-controller@1.2.3 install /opt/iobroker/node_modules/iobroker.js-controller
      > node iobroker.js setup first
      
      iobroker@1.0.0 /opt/iobroker
      └─┬ iobroker.js-controller@1.2.3
        └─┬ npm@2.15.12
          ├── ansistyles@0.1.3
          └── path-is-inside@1.0.2
      
      npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/package.json'
      npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.node-red/package.json'
      pi@ioBroker-Pi3:/opt/iobroker $
      
      

      Was nun?

      Sorry bin nicht so fit in Linux…

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

        Ich denke, ein

        npm -v
        

        bringt 2.15.x - zumindest laut dem Log-Auszug.

        Du solltest auch npm updaten (v3 oder 4).

        npm install -g npm@4
        

        Gruß,

        Eric

        Von unterwegs getippert

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

          Servus

          Jetzt startet ioBroker zwar (ganz neue optik?)

          Aber alle Adapter außer Admin bleiben rot

          Help please ;o)

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

            Das ist der Admin 3.

            Stehen Updates an?

            Gruß,

            Eric

            Von unterwegs getippert

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

              Servus Eric

              Kam erst jetzt zum weitermachen.

              Bisher kannte ich nur den Admin 3

              Hab ein "sudo iobroker update" probiert.

              Erster Eintrag dann direkt "Adapter "admin" : 2.0.9 , installed 3.1.7"

              Er nutzt also anscheinend den 2.0.9 obwohl der 3.1.7 installier ist.

              Im ioBroker selber steht rechts oben sogar das er 2.0.7 nutzt

              Sehr verwirrend

              Aber das könnte das Probelm mit den Adaptern erklären die nicht wie bisher normal funktoieren.

              Wie kann ich ioBroker denn davon überzeugen, das er die neue und schon installierten 3.1.7 nutzen soll?

              So, jetzt wird es noch schlimmer

              Ich hab versucht im über den Github ein Upgrade zu machen.

              Nach der Meldung "Erfolgreich" ging gar nix mehr.

              Jetzt steht da nur noch "cannot GET /"

              Hat noch jemand eine hilfreiche Idee?

              Gruß Peer

              Nachtrag:

              Das sind jetzt die aktuellen Versionen:

              pi@ioBroker-Pi3:/opt/iobroker $ iobroker admin -v

              3.1.10

              pi@ioBroker-Pi3:/opt/iobroker $ npm -v

              4.6.1

              pi@ioBroker-Pi3:/opt/iobroker $ node -v

              v6.12.3

              pi@ioBroker-Pi3:/opt/iobroker $

              Hier noch die Ausgabe von "sudo iobroker update"

              ! pi@ioBroker-Pi3:/opt/iobroker $ sudo iobroker update
              ! Used repository: default
              ! update done
              ! Adapter "admin" : 2.0.9 , installed 3.1.10
              ! Adapter "amazon-dash" : 0.2.7
              ! Adapter "artnet" : 0.1.6
              ! Adapter "b-control-em" : 0.2.1
              ! Adapter "benq" : 0.2.0
              ! Adapter "ble" : 0.3.4
              ! Adapter "bmw" : 1.3.1
              ! Adapter "botvac" : 1.0.0
              ! Adapter "broadlink2" : 1.8.0
              ! Adapter "chromecast" : 1.3.5
              ! Adapter "cloud" : 2.4.4 , installed 2.4.4
              ! Adapter "cul" : 0.2.2
              ! Adapter "daikin" : 0.2.3
              ! Adapter "daswetter" : 1.0.1
              ! Adapter "deconz" : 0.1.1
              ! Adapter "discovery" : 1.0.1
              ! Adapter "dwd" : 2.2.1 , installed 2.2.1
              ! Adapter "egigeozone" : 0.1.2
              ! Adapter "email" : 1.0.2
              ! Adapter "epson_stylus_px830": 0.0.2
              ! Adapter "fakeroku" : 0.2.1
              ! Adapter "feiertage" : 1.0.0
              ! Adapter "fhem" : 0.4.1
              ! Adapter "find-my-iphone": 0.2.15
              ! Adapter "firetv" : 0.0.27
              ! Adapter "flot" : 1.7.5 , installed 1.7.5
              ! Adapter "foobar2000" : 1.0.0
              ! Adapter "fritzbox" : 0.2.1
              ! Adapter "fritzdect" : 0.0.10
              ! Adapter "fronius" : 1.0.2
              ! Adapter "fullcalendar" : 0.2.4
              ! Adapter "g-homa" : 0.2.0
              ! Adapter "geofency" : 0.2.0
              ! Adapter "haier" : 1.0.0
              ! Adapter "harmony" : 0.9.0
              ! Adapter "hid" : 0.1.16
              ! Adapter "history" : 1.6.3 , installed 1.7.1
              ! Adapter "hm-rega" : 1.6.6 , installed 1.7.0
              ! Adapter "hm-rpc" : 1.4.14 , installed 1.5.1
              ! Adapter "hmm" : 1.0.1
              ! Adapter "homepilot" : 0.3.1
              ! Adapter "hue" : 0.6.9
              ! Adapter "ical" : 1.4.0 , installed 1.4.0
              ! Adapter "icons-addictive-flavour-png": 0.1.0
              ! Adapter "icons-fatcow-hosting": 0.1.0
              ! Adapter "icons-icons8" : 0.0.1
              ! Adapter "icons-material-png": 0.1.0
              ! Adapter "icons-material-svg": 0.1.0
              ! Adapter "icons-mfd-png" : 1.0.2
              ! Adapter "icons-mfd-svg" : 1.0.2
              ! Adapter "icons-open-icon-library-png": 0.1.3
              ! Adapter "icons-ultimate-png": 1.0.1
              ! Adapter "influxdb" : 1.4.5
              ! Adapter "innogy-smarthome": 0.1.17
              ! Adapter "javascript" : 3.5.1 , installed 3.6.3
              ! Controller "js-controller" : 1.2.3 , installed 1.2.3
              ! Adapter "js2fs" : 0.1.3
              ! Adapter "km200" : 1.1.6
              ! Adapter "knx" : 0.8.6
              ! Adapter "kodi" : 1.0.0
              ! Adapter "landroid" : 1.0.0
              ! Adapter "lgtv" : 1.0.2
              ! Adapter "lgtv-rs" : 0.0.4
              ! Adapter "lifx" : 0.0.4
              ! Adapter "lightify" : 0.2.16
              ! Adapter "loxone" : 0.4.0
              ! Adapter "maxcul" : 0.3.0
              ! Adapter "megad" : 1.2.1
              ! Adapter "megadd" : 0.2.0
              ! Adapter "megaesp" : 0.1.0 , installed 0.1.0
              ! Adapter "miele" : 0.1.5
              ! Adapter "mihome" : 1.0.4
              ! Adapter "mihome-plug" : 0.1.1
              ! Adapter "mihome-vacuum" : 0.6.0
              ! Adapter "mikrotik" : 1.0.0
              ! Adapter "milight" : 0.3.3 , installed 0.3.3
              ! Adapter "milight-smart-light": 0.0.5
              ! Adapter "mobile" : 0.4.11 , installed 0.4.11
              ! Adapter "modbus" : 1.0.3
              ! Adapter "mpd" : 1.0.0
              ! Adapter "mqtt" : 1.4.1 , installed 1.4.2
              ! Adapter "mqtt-client" : 1.0.1
              ! Adapter "mysensors" : 1.0.10
              ! Adapter "netatmo" : 1.3.0
              ! Adapter "node-red" : 1.4.1
              ! Adapter "noolite" : 0.0.1
              ! Adapter "nut" : 1.1.1
              ! Adapter "onkyo" : 0.2.1
              ! Adapter "openhab" : 0.2.1
              ! Adapter "opi" : 0.1.1
              ! Adapter "owfs" : 0.4.1
              ! Adapter "owntracks" : 0.2.0
              ! Adapter "panasonic-viera": 0.1.0
              ! Adapter "parser" : 1.0.1
              ! Adapter "paw" : 0.0.7 , installed 0.0.7
              ! Adapter "phantomjs" : 0.1.2
              ! Adapter "piface" : 1.0.0
              ! Adapter "pimatic" : 0.1.5
              ! Adapter "ping" : 1.3.2
              ! Adapter "proxy" : 0.2.0
              ! Adapter "pushbullet" : 0.0.11
              ! Adapter "pushover" : 1.0.4
              ! Adapter "pushsafer" : 0.1.7
              ! Adapter "radar" : 1.1.3
              ! Adapter "rflink" : 1.1.6
              ! Adapter "rickshaw" : 0.4.5
              ! Adapter "rpi2" : 0.3.2 , installed 0.3.2
              ! Adapter "rwe-smarthome" : 0.1.11
              ! Adapter "s7" : 1.1.3
              ! Adapter "samsung" : 0.2.9
              ! Adapter "sayit" : 1.6.6 , installed 1.6.6
              ! Adapter "sbfspot" : 2.0.1
              ! Adapter "scenes" : 1.0.2
              ! Adapter "simple-api" : 1.6.2 , installed 1.6.2
              ! Adapter "smartmeter" : 1.0.0
              ! Adapter "socketio" : 1.8.6 , installed 1.8.6
              ! Adapter "solarwetter" : 1.0.0
              ! Adapter "sonoff" : 1.0.0
              ! Adapter "sonos" : 1.6.2
              ! Adapter "sony-bravia" : 0.1.0
              ! Adapter "sql" : 1.5.6
              ! Adapter "squeezebox" : 0.2.1
              ! Adapter "starline" : 1.0.0
              ! Adapter "tankerkoenig" : 1.0.4 , installed 1.0.4
              ! Adapter "telegram" : 1.0.9 , installed 1.1.0
              ! Adapter "terminal" : 0.1.2
              ! Adapter "text2command" : 1.1.6
              ! Adapter "tr-064" : 0.4.14 , installed 0.4.17
              ! Adapter "tradfri" : 1.0.6
              ! Adapter "tvspielfilm" : 1.0.4
              ! Adapter "unifi" : 0.3.1
              ! Adapter "upnp" : 0.3.6 , installed 0.3.6
              ! Adapter "vcard" : 0.0.9
              ! Adapter "viessmann" : 0.2.6 , installed 0.4.0
              ! Adapter "vis" : 1.1.1 , installed 1.1.1
              ! Adapter "vis-bars" : 0.1.4
              ! Adapter "vis-canvas-gauges": 0.1.5 , installed 0.1.5
              ! Adapter "vis-colorpicker": 1.1.1 , installed 1.1.1
              ! Adapter "vis-fancyswitch": 1.1.0
              ! Adapter "vis-google-fonts": 0.1.0
              ! Adapter "vis-history" : 0.2.7 , installed 0.2.7
              ! Adapter "vis-hqwidgets" : 1.1.1 , installed 1.1.1
              ! Adapter "vis-jqui-mfd" : 1.0.9
              ! Adapter "vis-justgage" : 1.0.0
              ! Adapter "vis-keyboard" : 0.0.2
              ! Adapter "vis-lcars" : 1.0.4
              ! Adapter "vis-map" : 1.0.1
              ! Adapter "vis-metro" : 1.1.2
              ! Adapter "vis-players" : 0.1.5
              ! Adapter "vis-plumb" : 1.0.1 , installed 1.0.1
              ! Adapter "vis-rgraph" : 0.0.2
              ! Adapter "vis-timeandweather": 1.1.7 , installed 1.1.7
              ! Adapter "vis-weather" : 1.1.2
              ! Adapter "weatherunderground": 1.1.1
              ! Adapter "web" : 2.1.9 , installed 2.1.9
              ! Adapter "wetty" : 0.1.1
              ! Adapter "wifilight" : 0.2.0
              ! Adapter "wm-bus" : 0.1.12
              ! Adapter "wolf" : 0.9.2
              ! Adapter "xs1" : 1.0.2
              ! Adapter "yahka" : 0.5.5
              ! Adapter "yamaha" : 0.3.18
              ! Adapter "yr" : 1.0.6
              ! Adapter "zwave" : 1.0.0
              ! pi@ioBroker-Pi3:/opt/iobroker $

              Nachtrag 2:

              Komischerweise funktioniert die VIS und ich kann auch die eine MiLight Lampe die aktuell in der VIS ist schalten.

              Nur http://iobroker:8081 bringt den Fehler…

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

                Hi

                immerhin läuft jetzt eine Admin Instanz wieder

                Was mich total verwirrt ist die Angabe der Version von Admin.

                Installiert 3.1.11 Verfügbar 2.0.9 und rechts oben dann ioBroker.admin 2.0.7

                Hier ein Screenshot:
                3443_admin-adapter.jpg
                Ist das die Alte oder neue Optik von ioBroker?

                Ich kannte bisher nur die andere ohne großes Logo links oben.

                Unter Instanzen bleiben so gut wie alle Instanzen rot.
                3443_admin-instanzen.jpg
                Ich hoffe mir kann jemand helfen.

                Gruß Peer

                1 Reply Last reply Reply Quote 0
                • A
                  Arnulf last edited by

                  leider scheint diese Lösung wohl nicht mehr zu funktionieren.

                  Eine andere Lösung

                  cd /opt/iobroker
                  sudo rm -rf node_modules
                  curl -sL https://raw.githubusercontent.com/ioBroker/ioBroker/stable-installer/installer.sh | bash -
                  
                  

                  Bring mir leider nur den Fehler, dass iobroker nicht über iobroker installiert werden kann.

                  Obwohl ich der Meinung bin, dass mit den ersten Befehlen alles (bis auf die Daten) gelöscht werden würde

                  😞

                  Hat jemand ein erbarmen mit mir?

                  stephan1827 1 Reply Last reply Reply Quote 0
                  • stephan1827
                    stephan1827 @Arnulf last edited by

                    pi@raspberrypi:/opt/iobroker/node_modules $ sudo npm install iobroker.js-controller --production
                    npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                    npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                    npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
                    
                    > iobroker.js-controller@4.0.21 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                    > node lib/preinstallCheck.js
                    
                    NPM version: 6.14.16
                    
                    > iobroker.js-controller@4.0.21 install /opt/iobroker/node_modules/iobroker.js-controller
                    > node iobroker.js setup first
                    
                    Cannot delete file. Not critical: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../_service_iobroker.bat'
                    Cannot delete file. Not critical: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../iobroker.bat'
                    Cannot delete file. Not critical: EACCES: permission denied, unlink '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../iob.bat'
                    Uncaught Rejection: Error: EACCES: permission denied, mkdir '/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/../../tmp'
                        at Object.mkdirSync (fs.js:921:3)
                        at Setup.setup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupSetup.js:1054:16)
                        at processCommand (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:571:23)
                        at Object.module.exports.execute (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:3314:5)
                        at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js:1:24)
                        at Module._compile (internal/modules/cjs/loader.js:999:30)
                        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
                        at Module.load (internal/modules/cjs/loader.js:863:32)
                        at Function.Module._load (internal/modules/cjs/loader.js:708:14)
                        at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
                    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/zigbee-herdsman-converters/node_modules/fsevents):
                    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/zigbee-herdsman/node_modules/fsevents):
                    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/zigbee-herdsman-converters/node_modules/zigbee-herdsman/node_modules/fsevents):
                    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                    
                    npm ERR! code ELIFECYCLE
                    npm ERR! errno 6
                    npm ERR! iobroker.js-controller@4.0.21 install: `node iobroker.js setup first`
                    npm ERR! Exit status 6
                    npm ERR! 
                    npm ERR! Failed at the iobroker.js-controller@4.0.21 install script.
                    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /root/.npm/_logs/2022-04-29T04_58_56_926Z-debug.log
                    

                    Bei mir startet iobroker ebenfalls nicht mehr. Ich habe versucht js neu zu installieren aber bekomme eine Fehlermeldung. Der Ordner /opt/iobroker/node_modules/iobroker.js-controller existiert nicht. Hat jemand noch eine Idee?

                    Stephan

                    mikeal created this issue in request/request

                    open Request’s Past, Present and Future #3142

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

                      @stephan1827

                      Wo kommt der Murks immer her?

                      NICHT npm mit sudo anfassen!

                      iobroker fix
                      

                      Wenn das nicht funktioniert:

                      cd /opt/iobroker
                      sudo -H -u iobroker npm install iobroker.js-controller
                      
                      1 Reply Last reply Reply Quote 0
                      • stephan1827
                        stephan1827 last edited by

                        @thomas-braun sagte in [gelöst] - js-controller nach update nicht mehr zu starten:

                        @stephan1827

                        Wo kommt der Murks immer her?

                        NICHT npm mit sudo anfassen!

                        iobroker fix
                        

                        Wenn das nicht funktioniert:

                        cd /opt/iobroker
                        sudo -H -u iobroker npm install iobroker.js-controller
                        

                        Das kommt aus dem 3. Post in diesem Thread. Ohne sudo hat es jetzt geklappt 👍

                        Thomas Braun Homoran 2 Replies Last reply Reply Quote 1
                        • Thomas Braun
                          Thomas Braun Most Active @stephan1827 last edited by

                          @stephan1827 sagte in [gelöst] - js-controller nach update nicht mehr zu starten:

                          Das kommt aus dem 3. Post in diesem Thread.

                          Der 6 Jahre alt ist...
                          In der Zeit hat sich einiges geändert.

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

                            @stephan1827 sagte in [gelöst] - js-controller nach update nicht mehr zu starten:

                            Das kommt aus dem 3. Post in diesem Thread.

                            Schlimm genug, dass du einen Thread von 2016 nochmal aufwärmst.
                            Aber dann noch ungefiltert vollkommen veraltete Anleitungen abarbeiten willst, obwohl du gemerkt hast, dass heute nicht einmal die Datenstruktur stimmt, setzt dem Ganzen noch die Krone auf.

                            Es gibt aktuelle Anleitungen, und ein eigener Thread mit spezifischen Fragen hätte dir mehr geholfen.

                            Fichtendickicht 1 Reply Last reply Reply Quote 1
                            • Fichtendickicht
                              Fichtendickicht @Homoran last edited by

                              @homoran
                              "der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -"
                              hat mir den Tag gerettet. Danke
                              (iobroker auf Synology 6.2 Docker)

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

                                @fichtendickicht sagte in [gelöst] - js-controller nach update nicht mehr zu starten:

                                "der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -"

                                heute ist der Fixer in ioBroker eingebaut und es reicht iob fix

                                A 1 Reply Last reply Reply Quote 1
                                • A
                                  adarof @Homoran last edited by adarof

                                  Hallo
                                  ich bin in einem ganz ähnlichen Fehler gelandet:

                                  iob status
                                  node:internal/modules/cjs/loader:1143
                                    throw err;
                                    ^
                                  
                                  Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                                      at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
                                      at Module._load (node:internal/modules/cjs/loader:981:27)
                                      at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
                                      at node:internal/main/run_main_module:28:49 {
                                    code: 'MODULE_NOT_FOUND',
                                    requireStack: []
                                  }
                                  
                                  

                                  Als letztes habe ich (per Weboberfläche direkt von Github ) einen (vermutlich defekten...) Adapter installiert.

                                  "iob fix" (genau wie curl -fsL https://iobroker.net/fix.sh | bash -) sagt, dass alles gefixed wäre, aber es gibt immernoch den gleichen Fehler:

                                  
                                  ==========================================================================
                                  
                                      Your installation was fixed successfully
                                      Run iobroker start to start ioBroker again!
                                  
                                  ==========================================================================
                                  
                                  ~$ iob status
                                  node:internal/modules/cjs/loader:1143
                                    throw err;
                                    ^
                                  
                                  Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                                      at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
                                      at Module._load (node:internal/modules/cjs/loader:981:27)
                                      at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
                                      at node:internal/main/run_main_module:28:49 {
                                    code: 'MODULE_NOT_FOUND',
                                    requireStack: []
                                  }
                                  
                                  Node.js v18.20.2
                                  
                                  

                                  Die Datei iobroker.js ist wirklich nicht in dem angegebenen Verzeichnis vorhanden.
                                  Kann ich den Js-controller per npm neu installieren? "cd /opt/iobroker && sudo npm ..." oder wie?

                                  Mein iobroker backup enthält anscheinend keine Kopie des /opt/iobroker-Ordners selber, sodass ich daher nicht einfach wiederherstellen kann.

                                  Danke + Gruss - Henning

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

                                    @adarof

                                    cd /opt/iobroker
                                    sudo -H -u iobroker npm install iobroker.js-controller
                                    

                                    Und woher bitte nimmst du sowas wie sudo npm???? Bitte NIE, NIE, NIE npm und/oder iobroker-Kommandos mit sudo (ohne -u Option) einleiten.

                                    A 1 Reply Last reply Reply Quote 0
                                    • A
                                      adarof @Thomas Braun last edited by

                                      @thomas-braun Ähhhh -- schieben wir es auf "Panikmode weil die Heimautomatisierung nicht mehr aufstartet" ? 😉
                                      Danke wieder was gelernt - und vor allem: Gut gefragt zu haben 🙂

                                      ... und am wichtigsten DANKE, er startet wieder!

                                      A 1 Reply Last reply Reply Quote 0
                                      • A
                                        adarof @adarof last edited by adarof

                                        Hi
                                        Ich hab das gleiche(?) Problem wieder - diesmal kann ich zwar

                                        cd /opt/iobroker
                                        sudo -H -u iobroker npm install iobroker.js-controller
                                        

                                        durchlaufen lassen:

                                        npm warn skipping integrity check for git dependency ssh://git@github.com/eifel-tech/ioBroker.syrconnect.git
                                        npm warn skipping integrity check for git dependency ssh://git@github.com/nbuenger/ioBroker.govee.git
                                        npm warn deprecated dgram@1.0.1: npm is holding this package for security reasons. As it's a core Node module, we will not transfer it over to other users. You may safely remove the package from your dependencies.
                                        npm warn deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
                                        npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
                                        npm warn deprecated npmlog@6.0.2: This package is no longer supported.
                                        npm warn deprecated har-validator@5.1.5: this library is no longer supported
                                        npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
                                        npm warn deprecated are-we-there-yet@3.0.1: This package is no longer supported.
                                        npm warn deprecated q@1.1.2: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
                                        npm warn deprecated
                                        npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
                                        npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
                                        npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
                                        npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
                                        npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
                                        npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
                                        npm warn deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
                                        npm warn deprecated node-inspect@2.0.0: This module is part of Node.js core and does not need to be installed separately. It is now unmaintained.
                                        npm warn deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
                                        npm warn deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
                                        npm warn deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
                                        npm warn deprecated gauge@4.0.4: This package is no longer supported.
                                        npm warn deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
                                        npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                                        npm warn deprecated sinon@15.2.0: 16.1.1
                                        
                                        

                                        ...ein "iob start" startet zwar auch, da ein "iob status" sagt

                                        iobroker is running on this host.
                                        
                                        
                                        Objects type: jsonl
                                        States  type: jsonl
                                        
                                        

                                        sogar der admin.0 soll laufen:

                                        @RoofServer:/opt/iobroker$ iob status admin
                                        Instance "admin.0" is running
                                        

                                        ...aber eine Admin Weboberfläche (und auch meine VIS usw) bekomme ich nicht. Der Webserver läuft einfahc nicht
                                        Was könnt ich da wohl noch tun?

                                        Gruss

                                        Qix- created this issue in visionmedia/debug

                                        closed ReDos Vulnerability Regression Visibility Notice #797

                                        Qix- created this issue in visionmedia/debug

                                        closed ReDos Vulnerability Regression Visibility Notice #797

                                        Qix- created this issue in visionmedia/debug

                                        closed ReDos Vulnerability Regression Visibility Notice #797

                                        mikeal created this issue in request/request

                                        open Request’s Past, Present and Future #3142

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

                                          @adarof sagte in [gelöst] - js-controller nach update nicht mehr zu starten:

                                          Was könnt ich da wohl noch tun?

                                          Die Langfassung von

                                          iob diag
                                          

                                          anschauen.

                                          A 1 Reply Last reply Reply Quote 0
                                          • A
                                            adarof @Thomas Braun last edited by

                                            @thomas-braun Danke. Interessant, kannte ich noch nicht. Hat keine Fehler ausgegeben ausser dem hier

                                            2024-08-18 19:00:37.075  - error: sql.0 (3013) Cannot insert INSERT INTO `iobroker`.ts_number (id, ts, val, ack, _from, q) VALUES (245, 1724000437013, 20, 1, 28, 0);: Error: Duplicate entry '245-1724000437013' for key 'ts_number.PRIMARY' (id: modbus.1.holdingRegisters.1078_Grid_Power)
                                            
                                            

                                            Zwischenzeitlich ist der Webserver einfach da - der hat min 15min gebraucht (da hatte ich dann für den Abend erstmal aufgegeben), obwohl eigentlich nichts los ist auf dem System. Merkwürdig - heute morgen tat auf einmal alles. Danke abermals!

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            794
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            14
                                            39
                                            43255
                                            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