Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Issue Admin/WebAdapter - iobroker/webserver/build/index.js

    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

    Issue Admin/WebAdapter - iobroker/webserver/build/index.js

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @cooper19888 last edited by

      @cooper19888
      Prune da mal durch.

      npm prune
      npm ls 
      npm ls @iobroker/webserver
      
      C 1 Reply Last reply Reply Quote 0
      • C
        cooper19888 @Thomas Braun last edited by

        @thomas-braun said in Issue Admin/WebAdapter - iobroker/webserver/build/index.js:

        @cooper19888
        Prune da mal durch.

        npm prune
        npm ls 
        npm ls @iobroker/webserver
        

        gemacht und getan.

        Zum Schluss:

        cooper1988@intelnuc:/opt/iobroker$ npm prune
        removed 250 packages in 2s
        
        cooper1988@intelnuc:/opt/iobroker/node_modules$ npm ls @iobroker/webserver/
        iobroker.inst@3.0.0 /opt/iobroker
        └── (empty)
        

        Errors nach restart Admin Adapter:

        2023-04-11 16:15:38.401  - error: host.intelnuc Caught by controller[0]: Error: Cannot find module '/opt/iobroker/node_modules/@iobroker/webserver/build/index.js'. Please verify that the package.json has a valid "main" entry
        2023-04-11 16:15:38.401  - error: host.intelnuc Caught by controller[0]:     at tryPackage (node:internal/modules/cjs/loader:436:19)
        2023-04-11 16:15:38.401  - error: host.intelnuc Caught by controller[0]:     at Module._findPath (node:internal/modules/cjs/loader:678:18)
        2023-04-11 16:15:38.401  - error: host.intelnuc Caught by controller[0]:     at Module._resolveFilename (node:internal/modules/cjs/loader:1061:27)
        2023-04-11 16:15:38.401  - error: host.intelnuc Caught by controller[0]:     at Module._load (node:internal/modules/cjs/loader:920:27)
        2023-04-11 16:15:38.401  - error: host.intelnuc Caught by controller[0]:     at Module.require (node:internal/modules/cjs/loader:1141:19)
        2023-04-11 16:15:38.401  - error: host.intelnuc Caught by controller[0]:     at require (node:internal/modules/cjs/helpers:110:18)
        2023-04-11 16:15:38.401  - error: host.intelnuc Caught by controller[0]:     at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.admin/lib/web.js:7:22)
        2023-04-11 16:15:38.401  - error: host.intelnuc Caught by controller[0]:     at Module._compile (node:internal/modules/cjs/loader:1254:14)
        2023-04-11 16:15:38.401  - error: host.intelnuc Caught by controller[0]:     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
        2023-04-11 16:15:38.401  - error: host.intelnuc Caught by controller[0]:     at Module.load (node:internal/modules/cjs/loader:1117:32) {
        2023-04-11 16:15:38.401  - error: host.intelnuc Caught by controller[0]:   code: 'MODULE_NOT_FOUND',
        2023-04-11 16:15:38.401  - error: host.intelnuc Caught by controller[0]:   path: '/opt/iobroker/node_modules/@iobroker/webserver/package.json',
        2023-04-11 16:15:38.401  - error: host.intelnuc Caught by controller[0]:   requestPath: '@iobroker/webserver'
        2023-04-11 16:15:38.401  - error: host.intelnuc Caught by controller[0]: }
        
        Thomas Braun 2 Replies Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @cooper19888 last edited by

          @cooper19888
          Bügel den admin@6.4.3 noch mal rein.

          iobroker upgrade admin@6.4.3
          
          1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @cooper19888 last edited by

            @cooper19888 sagte in Issue Admin/WebAdapter - iobroker/webserver/build/index.js:

            npm ls @iobroker/webserver

            Übrigens

            npm ls @iobroker/webserver
            

            NICHT

            npm ls @iobroker/webserver/
            
            C 1 Reply Last reply Reply Quote 0
            • C
              cooper19888 @Thomas Braun last edited by

              @thomas-braun
              Mein Fehler

              cooper1988@intelnuc:/opt/iobroker$ npm ls @iobroker/webserver
              iobroker.inst@3.0.0 /opt/iobroker
              ├─┬ iobroker.acme@0.1.0 (git+ssh://git@github.com/iobroker-community-adapters/ioBroker.acme.git#07333a0c32ead5f656aebdd33e205f74aaa7f923)
              │ └── @iobroker/webserver@0.3.4 (git+ssh://git@github.com/ioBroker/webserver.git#f99d86254380e9cbe6698815e9ea3b444d2624b0)
              ├─┬ iobroker.admin@6.4.3
              │ └── @iobroker/webserver@0.3.4 deduped
              └─┬ iobroker.web@6.0.1 (git+ssh://git@github.com/ioBroker/ioBroker.web.git#b7aaab94b9ea7f039fece2a8c0c1f574c4efc3da)
                └── @iobroker/webserver@0.3.4 deduped
              

              Drüberbügeln mittels iob upgrade bringt nichts, nur wenn ich direkt in das node modul reinspringe und npm i --production mache.

              Thomas Braun 2 Replies Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @cooper19888 last edited by Thomas Braun

                @cooper19888

                --production ist mit npm>7 durch --omit=dev ersetzt worden, wenn ich mich recht entsinne.

                Ich würde iobroker.acme und iobroker.web auch auf die Version aus einem Repo zwingen.

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

                  @cooper19888

                  iob stop
                  find "/opt/iobroker/" -iname "*package-lock*" -exec rm -rf "{}" \;
                  iob fix 
                  iob start
                  

                  bringt auch nix?

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

                    @thomas-braun

                    Danke für die Hilfe bisher.
                    Auch das hatte ich bereits durchgejagt ohne erfolg.

                    Nun habe ich mal admin, web und acm sowie @iobroker/webserver entfernt und dann mal alles neu installiert. Dann nochmal npm i @iobroker/webserver und nun hat der Server einen reboot überlebt.

                    Nicht das ich Idiot sowas wie npm i @iobroker/webserver/ gemacht habe^^

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

                      @cooper19888
                      Eigentich sollte direktes hantieren per npm auch nicht notwendig sein. Viel zu leicht zerlegt man sich da den npm tree.

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

                        @thomas-braun
                        Ja normalerweise nicht, wer weiß was mich geritten hat.
                        Aber jetzt scheint es vorerst zu laufen, hoffentlich passt das jetzt 🙂

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        924
                        Online

                        31.8k
                        Users

                        80.0k
                        Topics

                        1.3m
                        Posts

                        3
                        15
                        438
                        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