Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Node-red upgrade error

    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

    Node-red upgrade error

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

      hey,

      er gibt mir folgendes aus:

      root@cubietruck:/opt/iobroker# iobroker stop
      Stopping iobroker controller daemon...
      iobroker controller daemon stopped.
      Exit code for "killall.sh": 0
      root@cubietruck:/opt/iobroker# iobroker upgrade node-red
      npm install iobroker.node-red --production --prefix "/opt/iobroker" (System call                                                                                                                                                             )
      npm ERR! Linux 3.4.79
      npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "iobroker.node-red" "--production" "-                                                                                                                                     -prefix" "/opt/iobroker"
      npm ERR! node v0.12.6
      npm ERR! npm  v2.11.2
      npm ERR! path /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/when/dist/                                                                                                                                     browser
      npm ERR! code ENOTEMPTY
      npm ERR! errno -39
      
      npm ERR! ENOTEMPTY, rmdir '/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modul                                                                                                                                     es/when/dist/browser'
      npm ERR!
      npm ERR! If you need help, you may report this error at:
      npm ERR!     <https: github.com/npm/issues="">npm ERR! Please include the following file with any support request:
      npm ERR!     /opt/iobroker/npm-debug.log
      host.cubietruck Cannot install iobroker.node-red: 217
      root@cubietruck:/opt/iobroker#</https:> 
      

      mach ich was falsch?

      1 Reply Last reply Reply Quote 0
      • N
        nobody last edited by

        Hi,

        sieht nach einem Berechtigungsproblem aus. Sie Installationsroutine von iobroker versucht den Adapter und alle abhängigen Module komplet neu mit npm install iobroker.node-red –production zu installieren, was bei einigen bei node-red implizit mitinstallierten Modulen nicht immer richtig funktioniert, weil implizit ein Benutzerwechsel durchgeführt wird. Deswegen soll bei node-red eigentlich die Einspielung von Updates über bestehende Installationen immer mit dem Flag --unsafe-perm erfolgen.

        Versuche mal das update wie folgt zu installieren:

        Anmelden unbedingt als root.

        cd /opt/iobroker
        iobroker stop node-red.0
        npm install --unsafe-perm iobroker.node-red
        
        

        Wenn es bei der Installation keine Probleme gegeben hat:

        iobroker upload node-red
        iobroker start node-red.0
        
        
        1 Reply Last reply Reply Quote 0
        • R
          rascal last edited by

          hey,

          keine Ahnung ob das gut ist oder nicht.. node-red läuft, aber das hier hat er nach den Befehlen ausgegeben:

          root@cubietruck:~# cd /opt/iobroker
          root@cubietruck:/opt/iobroker# iobroker stop node-red.0
          Adapter "node-red.0 stopped.
          root@cubietruck:/opt/iobroker# npm install --unsafe-perm iobroker.node-red
          npm WARN peerDependencies The peer dependency kerberos@~0.0 included from mongodb-core will no
          npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
          npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
          |
          > kerberos@0.0.18 install /opt/iobroker/node_modules/iobroker.node-red/node_modules/mongodb/node_modules/kerberos
          > (node-gyp rebuild) || (exit 0)
          
          gyp ERR! build error
          gyp ERR! stack Error: not found: make
          gyp ERR! stack     at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:72:28)
          gyp ERR! stack     at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:75:29)
          gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/which/which.js:83:16
          gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:95:15)
          gyp ERR! System Linux 3.4.79
          gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
          gyp ERR! cwd /opt/iobroker/node_modules/iobroker.node-red/node_modules/mongodb/node_modules/kerberos
          gyp ERR! node -v v0.12.6
          gyp ERR! node-gyp -v v2.0.1
          gyp ERR! not ok
          /
          > bcrypt@0.8.5 install /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/bcrypt
          > node-gyp rebuild
          
          gyp ERR! build error
          gyp ERR! stack Error: not found: make
          gyp ERR! stack     at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:72:28)
          gyp ERR! stack     at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:75:29)
          gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/which/which.js:83:16
          gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:95:15)
          gyp ERR! System Linux 3.4.79
          gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
          gyp ERR! cwd /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/bcrypt
          gyp ERR! node -v v0.12.6
          gyp ERR! node-gyp -v v2.0.1
          gyp ERR! not ok
          npm WARN optional dep failed, continuing bcrypt@0.8.5
          
          > bufferutil@1.2.1 install /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/ws/node_modules/bufferutil
          > node-gyp rebuild
          
          gyp ERR! build error
          gyp ERR! stack Error: not found: make
          gyp ERR! stack     at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:72:28)
          gyp ERR! stack     at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:75:29)
          gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/which/which.js:83:16
          gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:95:15)
          gyp ERR! System Linux 3.4.79
          command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
          gyp ERR! cwd /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/ws/node_modules/bufferutil
          gyp ERR! node -v v0.12.6
          gyp ERR! node-gyp -v v2.0.1
          gyp ERR! not ok
          
          > utf-8-validate@1.2.1 install /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/ws/node_modules/utf-8-validate
          > node-gyp rebuild
          
          gyp ERR! build error
          gyp ERR! stack Error: not found: make
          gyp ERR! stack     at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:72:28)
          gyp ERR! stack     at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:75:29)
          gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/which/which.js:83:16
          gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:95:15)
          gyp ERR! System Linux 3.4.79
          gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
          gyp ERR! cwd /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/ws/node_modules/utf-8-validate
          gyp ERR! node -v v0.12.6
          gyp ERR! node-gyp -v v2.0.1
          gyp ERR! not ok
          npm WARN optional dep failed, continuing bufferutil@1.2.1
          npm WARN optional dep failed, continuing utf-8-validate@1.2.1
          npm WARN deprecated i18next-client@1.10.3: you can use npm install i18next from version 2.0.0
          |
          > serialport@2.0.6 install /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport
          > node-pre-gyp install --fallback-to-build
          
          gyp ERR! build error
          gyp ERR! stack Error: not found: make
          gyp ERR! stack     at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:72:28)
          gyp ERR! stack     at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:75:29)
          gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/which/which.js:83:16
          gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:95:15)
          gyp ERR! System Linux 3.4.79
          gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/build/Release/node-v14-linux-arm/serialport.node" "--module_name=serialport" "--module_path=/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/build/Release/node-v14-linux-arm"
          gyp ERR! cwd /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport
          gyp ERR! node -v v0.12.6
          gyp ERR! node-gyp -v v2.0.1
          gyp ERR! not ok
          node-pre-gyp ERR! build error
          node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/build/Release/node-v14-linux-arm/serialport.node --module_name=serialport --module_path=/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/build/Release/node-v14-linux-arm' (1)
          node-pre-gyp ERR! stack     at ChildProcess. <anonymous>(/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
          node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
          node-pre-gyp ERR! stack     at maybeClose (child_process.js:1015:16)
          node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
          node-pre-gyp ERR! System Linux 3.4.79
          node-pre-gyp ERR! command "node" "/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
          node-pre-gyp ERR! cwd /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport
          node-pre-gyp ERR! node -v v0.12.6
          node-pre-gyp ERR! node-pre-gyp -v v0.6.18
          node-pre-gyp ERR! not ok
          Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/build/Release/node-v14-linux-arm/serialport.node --module_name=serialport --module_path=/opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/build/Release/node-v14-linux-arm' (1)
          npm WARN optional dep failed, continuing node-red-node-serialport@0.1.0
          iobroker.node-red@0.4.2 node_modules/iobroker.node-red
          ├── fs.notify@0.0.4 (retry@0.6.1, async@0.1.22)
          ├── js2xmlparser@1.0.0
          ├── feedparser@1.1.4 (array-indexofobject@0.0.1, addressparser@0.1.3, readable-stream@1.0.33, sax@0.6.1)
          ├── mongodb@2.1.4 (es6-promise@3.0.2, readable-stream@1.0.31, kerberos@0.0.18, mongodb-core@1.2.32)
          └── node-red@0.12.5 (is-utf8@0.2.1, on-headers@1.0.1, basic-auth@1.0.3, media-typer@0.3.0, node-red-node-rbe@0.1.1, clone@1.0.2, passport-oauth2-client-password@0.1.2, passport-http-bearer@1.0.1, mustache@2.2.1, semver@5.1.0, nopt@3.0.6, passport@0.3.2, cors@2.7.1, follow-redirects@0.0.7, bcryptjs@2.3.0, oauth2orize@1.2.0, sentiment@1.0.4, raw-body@2.1.5, body-parser@1.14.2, express@4.13.3, fs-extra@0.26.4, ws@0.8.1, mqtt@1.6.3, node-red-node-twitter@0.1.4, node-red-node-email@0.1.0, when@3.7.7, node-red-node-feedparser@0.1.3, uglify-js@2.6.1, cheerio@0.19.0, xml2js@0.4.15, i18next@1.10.6, cron@1.1.0)
          root@cubietruck:/opt/iobroker# iobroker upload node-red
          got /opt/iobroker/node_modules/iobroker.node-red/admin
          upload [1] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/node-red.png node-red.png image/png
          upload [0] node-red.admin /opt/iobroker/node_modules/iobroker.node-red/admin/index.html index.html text/html
          Update "system.adapter.node-red.0"
          root@cubietruck:/opt/iobroker# iobroker start node-red.0
          Adapter "node-red.0 started.
          root@cubietruck:/opt/iobroker#</anonymous> 
          
          1 Reply Last reply Reply Quote 0
          • N
            nobody last edited by

            ok, wenn node-red jetzt läuft, kannst du das so lassen.

            Welche node-red-Version ist denn bei dir jetzt installiert?

            Das Problem mit dem Kerberos Dienst ist eine Spezialität der Debian-Distribution Rasberian u.ä., die einfach nicht alles im Standard-Image installiert haben.

            Hier steht beschrieben, wie man das Problem beheben kann.

            http://forum.iobroker.net/viewtopic.php?t=1962

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

            Support us

            ioBroker
            Community Adapters
            Donate

            427
            Online

            31.8k
            Users

            80.0k
            Topics

            1.3m
            Posts

            2
            4
            1556
            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