Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Problem mit Adapter updates

    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

    Problem mit Adapter updates

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

      @mickym

      Dann siehst du aber nicht die üblichen doppel- oder gar dreifach Installationen.

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

        @thomas-braun sagte in Problem mit Adapter updates:

        @mickym

        Dann siehst du aber nicht die üblichen doppel- oder gar dreifach Installationen.

        Bei mir kommt

        nodejs
        -bash: nodejs: Kommando nicht gefunden.
        
        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @mickym last edited by

          @mickym

          Dann ist das nicht gelinkt:

          sudo ln -s /usr/bin/node /usr/bin/nodejs
          
          mickym 1 Reply Last reply Reply Quote 0
          • mickym
            mickym Most Active @Thomas Braun last edited by

            @thomas-braun ok - danke für Aufklärung 🙂

            1 Reply Last reply Reply Quote 0
            • Marcus Hamburg
              Marcus Hamburg @Thomas Braun last edited by

              @thomas-braun

              pi@raspberrypi:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
              armv7l
              /usr/bin/nodejs
              /usr/bin/node
              /usr/bin/npm
              v14.20.0
              v14.20.0
              6.14.17
              pi
              /home/pi
              OK:1 http://archive.raspberrypi.org/debian buster InRelease
              OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease            
              OK:3 https://deb.nodesource.com/node_14.x buster InRelease                
              Paketlisten werden gelesen... Fertig              
              Abhängigkeitsbaum wird aufgebaut.       
              Statusinformationen werden eingelesen.... Fertig
              Aktualisierung für 110 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
              nodejs:
                Installiert:           14.20.0-deb-1nodesource1
                Installationskandidat: 14.20.0-deb-1nodesource1
                Versionstabelle:
               *** 14.20.0-deb-1nodesource1 500
                      500 https://deb.nodesource.com/node_14.x buster/main armhf Packages
                      100 /var/lib/dpkg/status
                   10.24.0~dfsg-1~deb10u1 500
                      500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Marcus Hamburg last edited by Thomas Braun

                @marcus-hamburg sagte in Problem mit Adapter updates:

                Aktualisierung für 110 Pakete verfügbar.

                Halt dein System aktuell! Bei 110 Paketen ist das ewig nicht mehr (bzw. noch nie) gemacht worden.

                iobroker stop
                sudo apt update
                sudo apt full-upgrade
                sudo reboot
                

                Künftig regelmäßig machen!

                Und ein Upgrade auf die empfohlene nodejs@16 würde ich auch anraten.

                Marcus Hamburg 1 Reply Last reply Reply Quote 0
                • Marcus Hamburg
                  Marcus Hamburg @Thomas Braun last edited by

                  @thomas-braun nodejs@16 installiert, Paket installiert, nur die Adapter lassen sich nicht updaten. Ich verzweifle schon wieder an mir.

                  Linux raspberrypi 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l
                  
                  The programs included with the Debian GNU/Linux system are free software;
                  the exact distribution terms for each program are described in the
                  individual files in /usr/share/doc/*/copyright.
                  
                  Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
                  permitted by applicable law.
                  Last login: Wed Aug 10 20:08:59 2022
                  pi@raspberrypi:~ $ iob stop
                  pi@raspberrypi:~ $ iob fix
                  library: loaded
                  Library version=2022-06-15
                  
                  ==========================================================================
                  
                      Welcome to the ioBroker installation fixer!
                      Script version: 2022-06-03
                      
                      You might need to enter your password a couple of times.
                  
                  ==========================================================================
                  
                  
                  ==========================================================================
                      Installing prerequisites (1/3)
                  ==========================================================================
                  
                  OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
                  OK:2 http://archive.raspberrypi.org/debian buster InRelease                
                  OK:3 https://deb.nodesource.com/node_16.x buster InRelease                 
                  Paketlisten werden gelesen... Fertig               
                  Installed gcc-c++
                  
                  ==========================================================================
                      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!
                  
                  ==========================================================================
                  
                  pi@raspberrypi:~ $ iob update
                  Used repository: stable
                  Adapter    "admin"        : 5.3.8    , installed 5.3.8
                  Adapter    "alexa2"       : 3.11.2   , installed 3.11.2
                  Adapter    "backitup"     : 2.4.10   , installed 2.3.3  [Updatable]
                  Adapter    "daswetter"    : 3.1.2    , installed 3.1.2
                  Adapter    "discovery"    : 3.0.5    , installed 3.0.3  [Updatable]
                  Adapter    "habpanel"     : 0.5.0    , installed 0.5.0
                  Adapter    "hmip"         : 1.18.0   , installed 1.15.4 [Updatable]
                  Adapter    "hue"          : 3.7.0    , installed 3.6.5  [Updatable]
                  Adapter    "ical"         : 1.13.1   , installed 1.11.4 [Updatable]
                  Adapter    "info"         : 1.9.19   , installed 1.9.8  [Updatable]
                  Adapter    "javascript"   : 5.7.0    , installed 5.2.13 [Updatable]
                  Controller "js-controller": 4.0.23   , installed 4.0.23
                  Adapter    "mihome"       : 1.4.0    , installed 1.4.0
                  Adapter    "openweathermap": 0.2.5   , installed 0.2.5
                  Adapter    "renault"      : 0.0.13   , installed 0.0.13
                  Adapter    "ring"         : 3.0.4    , installed 3.0.4
                  Adapter    "simple-api"   : 2.7.0    , installed 2.7.0
                  Adapter    "socketio"     : 4.2.0    , installed 4.2.0
                  Adapter    "tankerkoenig" : 2.1.1    , installed 2.1.1
                  Adapter    "tr-064"       : 4.2.16   , installed 4.2.16
                  Adapter    "trashschedule": 2.0.2    , installed 1.4.1  [Updatable]
                  Adapter    "web"          : 4.3.0    , installed 4.3.0
                  Adapter    "ws"           : 1.3.0    , installed 1.3.0
                  pi@raspberrypi:~ $ iob upgrade
                  
                  This upgrade of "javascript" will at least introduce the following changes:
                  ==========================================================================
                  -> 5.7.0:
                  Allow sending of messages to scripts also from adapters and CLI by sending "toScript" message (see [onMessage Documentation](https://github.com/ioBroker/ioBroker.javascript/blob/master/docs/en/javascript.md#onmessage))
                  Lists returned by $-selector are now unified and do not contain double entries 
                  Fix subscribe multiple object ID lists in blockly
                  
                  -> 5.6.1:
                  Allow to subscribe multiple object ID lists in blockly
                  
                  -> 5.6.0:
                  Make state properties c(omment) and user available to scripts too
                  make sure values of new or changed alias objects are initialized properly
                  Enhance scheduler logic and astro events offered by wizard
                  Respect expected value changes when determining if a value is changed
                  Fix remembering intermediate state values when state values are subscribed
                  fix setState logic when states are not subscribed
                  
                  -> 5.5.4:
                  Tried to solve problem with the font
                  
                  -> 5.5.3:
                  Fixed getObjectAsync function if object does not exist
                  
                  -> 5.5.2:
                  Added new rules action block: sum two states (or minus)
                  
                  -> 5.5.1:
                  Added new rules action block: sum two states (or minus)
                  ==========================================================================
                  
                  Would you like to upgrade javascript from @5.2.13 to @5.7.0 now? [(y)es, (n)o]: n
                  No upgrade of "javascript" desired.
                  
                  This upgrade of "info" will at least introduce the following changes:
                  ==========================================================================
                  -> 1.9.19:
                  Fix audio, USB, bluetooth and printer view
                  
                  -> 1.9.18:
                  Fix invalid object definition to prevent errors in js-controller 4
                  
                  -> 1.9.17:
                  Design fix
                  Update dependencies
                  
                  -> 1.9.16:
                  Update dependencies
                  Fix translations
                  
                  -> 1.9.15:
                  Design fix for react-dark theme
                  
                  -> 1.9.10:
                  Adjust some actions to prevent js-controller 3.3 warnings
                  
                  -> 1.9.9:
                  update library to prevent some errors
                  Adjust some actions to prevent js-controller 3.3 warnings
                  ==========================================================================
                  
                  Would you like to upgrade info from @1.9.8 to @1.9.19 now? [(y)es, (n)o]: y
                  Update info from @1.9.8 to @1.9.19
                  NPM version: 8.11.0
                  Installing iobroker.info@1.9.19... (System call)
                  host.raspberrypi Cannot install iobroker.info@1.9.19: 217
                  pi@raspberrypi:~ $ 
                  
                  Homoran 1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @Marcus Hamburg last edited by

                    @marcus-hamburg mach mal ein einzelupgrade nit debug

                    iobroker upgrade javascript --debug

                    und wieder alles posten

                    Marcus Hamburg 1 Reply Last reply Reply Quote 0
                    • Marcus Hamburg
                      Marcus Hamburg @Homoran last edited by

                      @homoran

                      pi@raspberrypi:~ $ iobroker upgrade javascript --debug
                      
                      This upgrade of "javascript" will at least introduce the following changes:
                      ==========================================================================
                      -> 5.7.0:
                      Allow sending of messages to scripts also from adapters and CLI by sending "toScript" message (see [onMessage Documentation](https://github.com/ioBroker/ioBroker.javascript/blob/master/docs/en/javascript.md#onmessage))
                      Lists returned by $-selector are now unified and do not contain double entries 
                      Fix subscribe multiple object ID lists in blockly
                      
                      -> 5.6.1:
                      Allow to subscribe multiple object ID lists in blockly
                      
                      -> 5.6.0:
                      Make state properties c(omment) and user available to scripts too
                      make sure values of new or changed alias objects are initialized properly
                      Enhance scheduler logic and astro events offered by wizard
                      Respect expected value changes when determining if a value is changed
                      Fix remembering intermediate state values when state values are subscribed
                      fix setState logic when states are not subscribed
                      
                      -> 5.5.4:
                      Tried to solve problem with the font
                      
                      -> 5.5.3:
                      Fixed getObjectAsync function if object does not exist
                      
                      -> 5.5.2:
                      Added new rules action block: sum two states (or minus)
                      
                      -> 5.5.1:
                      Added new rules action block: sum two states (or minus)
                      ==========================================================================
                      
                      Would you like to upgrade javascript from @5.2.13 to @5.7.0 now? [(y)es, (n)o]: y
                      Update javascript from @5.2.13 to @5.7.0
                      NPM version: 8.11.0
                      Installing iobroker.javascript@5.7.0... (System call)
                      npm ERR! code ENOTEMPTY
                      npm ERR! syscall rename
                      npm ERR! path /opt/iobroker/node_modules/iobroker.javascript
                      npm ERR! dest /opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn
                      npm ERR! errno -39
                      npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.javascript' -> '/opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn'
                      
                      npm ERR! A complete log of this run can be found in:
                      npm ERR!     /home/iobroker/.npm/_logs/2022-08-10T18_29_21_627Z-debug-0.log
                      host.raspberrypi Cannot install iobroker.javascript@5.7.0: 217
                      pi@raspberrypi:~ $ 
                      
                      
                      Glasfaser Homoran 2 Replies Last reply Reply Quote 0
                      • Glasfaser
                        Glasfaser @Marcus Hamburg last edited by

                        @marcus-hamburg sagte in Problem mit Adapter updates:

                        npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.javascript' -> '/opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn'

                        Du kannst das hier nutzen
                        https://forum.iobroker.net/topic/35090/howto-nodejs-installation-und-upgrades-unter-debian/2

                        cd /opt/iobroker/node_modules
                        for i in $(ls -d .[^.]*-*/); do rm -rf ${i%%/}; done
                        

                        Zitat aus dem Thread :

                        WICHTIG .

                        (Bitte Befehl KOPIEREN, nicht eintippen, ein Vertipper kann und wird da 'tödlich' sein).

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

                          @marcus-hamburg sagte in Problem mit Adapter updates:

                          ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.javascript' -> '/opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn'

                          oha, dazu gibt es einige Threads

                          lösung hier suchen
                          https://forum.iobroker.net/post/460759

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          887
                          Online

                          31.9k
                          Users

                          80.2k
                          Topics

                          1.3m
                          Posts

                          7
                          22
                          1079
                          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