Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [Gelöst] -> Benötige Hilfe beim Update js-controller from @1.4.2 to @1.5.7

    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] -> Benötige Hilfe beim Update js-controller from @1.4.2 to @1.5.7

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

      Hallo zusammen,

      ich möchte meinen js-controller aktualisieren.

      Der ioBroker Installation "Fixer" hat alles repariert!!!
      Tommy, Danke für den Hinweis....Problem gelöst

      olli@iobroker-nuc:~$ sudo iobroker upgrade self
      Update js-controller from @1.4.2 to @1.5.7
      NPM version: 6.4.1
      npm install iobroker.js-controller@1.5.7 --unsafe-perm --production --save --prefix "/opt/iobroker" (System call)
      Unhandled rejection Error: EACCES: permission denied, mkdir '/home/olli/.npm/_cacache/tmp'
      npm ERR! cb() never called!
      
      npm ERR! This is an error with npm itself. Please report this error at:
      npm ERR!     <https://npm.community>
      Host "iobroker-nuc" (linux) updated
      Execute: chmod -R 777 /opt/iobroker
      chmod: changing permissions of '/opt/iobroker/backups/2019_02_16-16_51_50_backupiobroker.tar.gz': Operation not permitted
      Chmod finished. Restart controller
      

      Aber selbst unter root erhalte ich Zugriffsfehler. Anscheinend wird eine Verzeichnis benötigt, welches nicht existiert...

      Kann mir jemand helfen?

      Output unter dem root-User:

      root@iobroker-nuc:/opt/iobroker# sudo iobroker stop
      root@iobroker-nuc:/opt/iobroker# iobroker upgrade self
      Update js-controller from @1.4.2 to @1.5.7
      NPM version: 6.4.1
      npm install iobroker.js-controller@1.5.7 --unsafe-perm --production --save --prefix "/opt/iobroker" (System call)
      npm ERR! path /root/.npm/_logs
      npm ERR! code EACCES
      npm ERR! errno -13
      npm ERR! syscall scandir
      npm ERR! Error: EACCES: permission denied, scandir '/root/.npm/_logs'
      npm ERR!  { Error: EACCES: permission denied, scandir '/root/.npm/_logs'
      npm ERR!   stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'',
      npm ERR!   errno: -13,
      npm ERR!   code: 'EACCES',
      npm ERR!   syscall: 'scandir',
      npm ERR!   path: '/root/.npm/_logs' }
      npm ERR! 
      npm ERR! The operation was rejected by your operating system.
      npm ERR! It is likely you do not have the permissions to access this file as the current user
      npm ERR! 
      npm ERR! If you believe this might be a permissions issue, please double-check the
      npm ERR! permissions of the file and its containing directories, or try running
      npm ERR! the command again as root/Administrator (though this is not recommended).
      glob error { Error: EACCES: permission denied, scandir '/root/.npm/_logs'
        stack: 'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'',
        errno: -13,
        code: 'EACCES',
        syscall: 'scandir',
        path: '/root/.npm/_logs' }
      npm ERR! path /root/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e
      npm ERR! code EACCES
      npm ERR! errno -13
      npm ERR! syscall open
      npm ERR! Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e'
      npm ERR!  { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e'
      npm ERR!   cause: 
      npm ERR!    { Error: EACCES: permission denied, open '/root/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e'
      npm ERR!      errno: -13,
      npm ERR!      code: 'EACCES',
      npm ERR!      syscall: 'open',
      npm ERR!      path: '/root/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e' },
      npm ERR!   isOperational: true,
      npm ERR!   stack: 'Error: EACCES: permission denied, open \'/root/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e\'',
      npm ERR!   errno: -13,
      npm ERR!   code: 'EACCES',
      npm ERR!   syscall: 'open',
      npm ERR!   path: '/root/.npm/_cacache/index-v5/1d/a8/f99642a9eccb731a5f4be46c26b08f83c59d3cff19a70c94e745504ac47e' }
      npm ERR! 
      npm ERR! The operation was rejected by your operating system.
      npm ERR! It is likely you do not have the permissions to access this file as the current user
      npm ERR! 
      npm ERR! If you believe this might be a permissions issue, please double-check the
      npm ERR! permissions of the file and its containing directories, or try running
      npm ERR! the command again as root/Administrator (though this is not recommended).
      host.iobroker-nuc Cannot install iobroker.js-controller@1.5.7: 243
      

      Ich habe die im Forum gefundenen Ideen zu dem Thema bereits ausprobiert. Aber keine Besserung

      sudo chown -R $(whoami) ~/.npm
      

      und

      olli@iobroker-nuc:~$ npm rebuild
      iobroker.history@1.8.5 /home/olli/node_modules/iobroker.history
      olli@iobroker-nuc:~$ sudo npm rebuild
      iobroker.history@1.8.5 /home/olli/node_modules/iobroker.history
      
      
         ╭───────────────────────────────────────────────────────────────╮
         │                                                               │
         │       New minor version of npm available! 6.4.1 → 6.9.0       │
         │   Changelog: https://github.com/npm/cli/releases/tag/v6.9.0   │
         │               Run npm install -g npm to update!               │
         │                                                               │
         ╰───────────────────────────────────────────────────────────────╯
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate
      FAQ Cloud / IOT
      HowTo: Node.js-Update
      HowTo: Backup/Restore
      Downloads
      BLOG

      510
      Online

      31.9k
      Users

      80.1k
      Topics

      1.3m
      Posts

      ERROR/PROBLEM js-controller js-controller 1.5.7 update
      1
      1
      354
      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