Navigation

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

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Problem mit Admin und so

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

      @thomas-braun

      pi@raspberrypi:~ $ iobroker update -i
      Used repository: stable
      hash changed or no sources cached => force download of new sources
      update done
      Adapter    "admin"         : 5.3.1    , installed 5.2.3 [Updateable]
      Adapter    "alexa2"        : 3.11.2   , installed 3.11.2
      Adapter    "backitup"      : 2.3.3    , installed 2.2.3 [Updateable]
      Adapter    "discovery"     : 2.7.5    , installed 2.7.3 [Updateable]
      Adapter    "habpanel"      : 0.4.3    , installed 0.4.3
      Adapter    "hmip"          : 1.15.4   , installed 1.15.2 [Updateable]
      Adapter    "hue"           : 3.6.5    , installed 3.5.31 [Updateable]
      Adapter    "ical"          : 1.11.4   , installed 1.11.4
      Adapter    "info"          : 1.9.8    , installed 1.9.8
      Controller "js-controller" : 4.0.21   , installed 3.3.22 [Updateable]
      Adapter    "mihome"        : 1.3.7    , installed 1.3.7
      Adapter    "openweathermap": 0.1.0    , installed 0.1.0
      Adapter    "simple-api"    : 2.6.2    , installed 2.6.1 [Updateable]
      Adapter    "socketio"      : 3.1.5    , installed 3.1.5
      Adapter    "tankerkoenig"  : 2.1.1    , installed 2.1.1
      Adapter    "tr-064"        : 4.2.15   , installed 4.2.14 [Updateable]
      Adapter    "trashschedule" : 1.4.1    , installed 1.4.1
      Adapter    "web"           : 3.4.16   , installed 3.4.16
      pi@raspberrypi:~ $ which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
      /usr/bin/nodejs
      /usr/bin/node
      /usr/bin/npm
      v16.14.0
      v16.14.0
      8.3.1
      pi
      /home/pi
      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
      Abhängigkeitsbaum wird aufgebaut.
      Statusinformationen werden eingelesen.... Fertig
      Alle Pakete sind aktuell.
      N: Datei »nodesource.list.save.1« in Verzeichnis »/etc/apt/sources.list.d/« wird ignoriert, da sie eine ungültige Dateinamen-Erweiterung hat.
      nodejs:
        Installiert:           16.14.0-deb-1nodesource1
        Installationskandidat: 16.14.0-deb-1nodesource1
        Versionstabelle:
       *** 16.14.0-deb-1nodesource1 500
              500 https://deb.nodesource.com/node_16.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
      N: Datei »nodesource.list.save.1« in Verzeichnis »/etc/apt/sources.list.d/« wird ignoriert, da sie eine ungültige Dateinamen-Erweiterung hat.
      
      
      Thomas Braun 2 Replies Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Marcus Hamburg last edited by

        @marcus-hamburg sagte in Problem mit Admin und so:

        nodesource.list.save.1

        löschen.

        sudo rm /etc/apt/sources.list.d/nodesource.list.save.1
        
        1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @Marcus Hamburg last edited by

          @marcus-hamburg

          iobroker stop
          iobroker fix
          iobroker update
          iobroker upgrade
          iobroker upgrade self
          iobroker start
          
          Marcus Hamburg 1 Reply Last reply Reply Quote 0
          • Marcus Hamburg
            Marcus Hamburg @Thomas Braun last edited by

            @thomas-braun bei Upgrade kommt erneut ein Fehler

            pi@raspberrypi:~ $ iob upgrade self
            Update js-controller from @3.3.22 to @4.0.21
            NPM version: 8.3.1
            npm install iobroker.js-controller@4.0.21 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
            npm ERR! code ENOTEMPTY
            npm ERR! syscall rename
            npm ERR! path /opt/iobroker/node_modules/typescript
            npm ERR! dest /opt/iobroker/node_modules/.typescript-rKKYB1QG
            npm ERR! errno -39
            npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/typescript' -> '/opt/iobroker/node_modules/.typescript-rKKYB1QG'
            
            npm ERR! A complete log of this run can be found in:
            npm ERR!     /home/iobroker/.npm/_logs/2022-03-16T16_24_42_511Z-debug-0.log
            host.raspberrypi Cannot install iobroker.js-controller@4.0.21: 217
            
            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @Marcus Hamburg last edited by

              @marcus-hamburg

              Siehe oben. Verzeichnis umbenennen.

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

                @thomas-braun Ich verzweifle an mich selbst. 😞 😞 😞

                pi@raspberrypi:~ $ sudo -u iobroker mv /opt/iobroker/node_modules/iobroker.javascript /opt/iobroker/node_modules/.iobroker.javascript-5NZ432mn
                mv: der Aufruf von stat für '/opt/iobroker/node_modules/iobroker.javascript' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Marcus Hamburg last edited by

                  @marcus-hamburg sagte in Problem mit Admin und so:

                  sudo -u iobroker mv /opt/iobroker/node_modules/typescript /opt/iobroker/node_modules/.typescript-rKKYB1QG
                  
                  Marcus Hamburg 1 Reply Last reply Reply Quote 0
                  • Marcus Hamburg
                    Marcus Hamburg @Thomas Braun last edited by

                    @thomas-braun und noch immer

                    pi@raspberrypi:~ $ iob upgrade
                    
                    This upgrade of "tr-064" will introduce the following changes:
                    ==========================================================================
                    -> 4.2.15:
                    fix crash case (Sentry IOBROKER-TR-064-35)
                    ==========================================================================
                    
                    Would you like to upgrade tr-064 from @4.2.14 to @4.2.15 now? [(y)es, (n)o]: n
                    No upgrade of "tr-064" desired.
                    
                    This upgrade of "simple-api" will introduce the following changes:
                    ==========================================================================
                    -> 2.6.2:
                    Support of new flags for `getPlainValue`: `json` and `noStringify`
                    ==========================================================================
                    
                    Would you like to upgrade simple-api from @2.6.1 to @2.6.2 now? [(y)es, (n)o]: y
                    Update simple-api from @2.6.1 to @2.6.2
                    NPM version: 8.3.1
                    npm install iobroker.simple-api@2.6.2 --loglevel error --prefix "/opt/iobroker" (System call)
                    npm ERR! code ENOTEMPTY
                    npm ERR! syscall rename
                    npm ERR! path /opt/iobroker/node_modules/virtual-tsc
                    npm ERR! dest /opt/iobroker/node_modules/.virtual-tsc-7cNzXXUj
                    npm ERR! errno -39
                    npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/virtual-tsc' -> '/opt/iobroker/node_modules/.virtual-tsc-7cNzXXUj'
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /home/iobroker/.npm/_logs/2022-03-16T17_38_14_891Z-debug-0.log
                    host.raspberrypi Cannot install iobroker.simple-api@2.6.2: 217
                    pi@raspberrypi:~ $ 
                    
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Marcus Hamburg last edited by Thomas Braun

                      @marcus-hamburg

                      Die Nummer ist immer gleich...

                      Verzeichnis umbenennen.

                      Die angebotenen Upgrades solltest du aber auch ausführen...

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

                        @thomas-braun Danke bin jetzt wieder weiter, einer der letzten Sachen:

                        
                        Would you like to upgrade javascript from @5.2.13 to @5.2.21 now? [(y)es, (n)o]: y
                        Update javascript from @5.2.13 to @5.2.21
                        NPM version: 8.3.1
                        Installing iobroker.javascript@5.2.21... (System call)
                        host.raspberrypi Cannot install iobroker.javascript@5.2.21: 217
                        
                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Marcus Hamburg last edited by

                          @marcus-hamburg

                          Mehr kommt da nicht?

                          iobroker stop
                          iobroker update -u
                          iobroker upgrade
                          
                          Marcus Hamburg Homoran 2 Replies Last reply Reply Quote 0
                          • Marcus Hamburg
                            Marcus Hamburg @Thomas Braun last edited by

                            @thomas-braun ne nicht wirklich:

                            pi@raspberrypi:~ $ iob stop
                            pi@raspberrypi:~ $ iob update -u
                            Used repository: stable
                            Adapter    "javascript"   : 5.2.21   , installed 5.2.13 [Updatable]
                            pi@raspberrypi:~ $ iob upgrade
                            
                            This upgrade of "javascript" will at least introduce the following changes:
                            ==========================================================================
                            -> 5.2.21:
                            Fixed build process
                            
                            -> 5.2.20:
                            Fixed build process
                            
                            -> 5.2.19:
                            Fix broken dependency
                            
                            -> 5.2.18:
                            Fixed some german translations
                            Fixed astro schedules
                            
                            -> 5.2.17:
                            Fixed some german translations
                            Fixed astro schedules
                            
                            -> 5.2.16:
                            Fixed fonts
                            
                            -> 5.2.15:
                            Added the monitoring of symlinks my mirroring
                            Fix two crash cases reported by Sentry
                            ==========================================================================
                            
                            Would you like to upgrade javascript from @5.2.13 to @5.2.21 now? [(y)es, (n)o]: y
                            Update javascript from @5.2.13 to @5.2.21
                            NPM version: 8.3.1
                            Installing iobroker.javascript@5.2.21... (System call)
                            host.raspberrypi Cannot install iobroker.javascript@5.2.21: 217
                            
                            
                            1 Reply Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @Thomas Braun last edited by

                              @thomas-braun sagte in Problem mit Admin und so:

                              Mehr kommt da nicht?

                              zum Error 217 hab ich nichts gefunden 😞

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

                                @homoran OK. Werde mal für heute Schluss machen, grundsätzlich bin sehr froh über diese tolle schnell Hilfe. Mein System ist wieder Schick und die 217 bekommt bestimmt noch jemand gelöst. Danke Danke Danke.

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

                                  @homoran sagte in Problem mit Admin und so:

                                  zum Error 217 hab ich nichts gefunden

                                  Ich schon...

                                  Hatte damals mit dem nodeJS-Setup zu tun.

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

                                    @thomas-braun sagte in Problem mit Admin und so:

                                    Hatte damals mit dem nodeJS-Setup zu tun.

                                    das einzige was ich fand ging in die Richtung bei node-red
                                    Irgendwas mit User Zuordnung

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

                                      @homoran

                                      https://forum.iobroker.net/topic/49058/installation-javascript-npm-modul-in-js-adapter

                                      Kann natürlich sein, das die Versionen aus 'stable' noch nicht mit aktuellen node/npm-Installationen parat kommen.

                                      @Marcus-Hamburg Geh mal mit nodeJS auf die Version 14 inkl. npm@6 runter.

                                      1 Reply Last reply Reply Quote 0
                                      • H
                                        hearp last edited by hearp

                                        Hallo,

                                        ich hatte das selbe Problem.

                                        Gelöst habe ich es, indem ich den erweiterten Modus eingeschaltet habe. Im Log kam dann immer die Meldung, daß irgendein Verzeichnis nicht leer sei. Das Verzeichnis habe ich dann mittels rm -rf gelöscht. Nach dem dritten Verzeichnis habe ich mittels
                                        find /opt/iobroker/node_modules -name .\*-\* >out
                                        mir alle potentiellen Problemverzeichnisse gesucht. In der Datei sind noch ein paar Verzeichnisse, die nicht gelöscht werden sollten. Das Namensschema ist ungefähr .admin-PkhUgfdt - also .Adapername-Zufallsstring
                                        Alle anderen Verzeichnisse habe ich raus gelöscht und dann mittels
                                        while read a
                                        do
                                        rm -rf ${a}
                                        done <out
                                        die ganzen Verzeichnisse gelöscht.

                                        Das geht sicherlich eleganter mit dem richtigen regulären Ausdruck und dem find exec …

                                        Jedenfalls habe ich mit diesem Ansatz die Installationblockade beseitigen können.

                                        Vielleicht hilft es bei der Fehlersuch.

                                        Hearp

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

                                          @hearp

                                          Eleganter geht es so:

                                          https://forum.iobroker.net/topic/57337/fehler-25-bei-adapter-install-update-mit-npm8

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

                                            Hallo Forum!

                                            ein Jahr später läuft mein iobroker eigentlich ganz, wenn ich nicht doch ein recht schwachen PI und nun hab ich einen neuen bestellt. In diesem Zusammenhang stellte ich fest, dass seit auf den Tag genau kein Automatisches Update durchgeführt wurde. Manuell über das Terminal kam folgende Ausgabe.

                                            pi@raspberrypi:/opt/iobroker $ ./iobroker backup
                                            host.raspberrypi 11971 states saved
                                            host.raspberrypi 17365 objects saved
                                            
                                            <--- Last few GCs --->
                                            
                                            [15135:0x54a8cf0]    43648 ms: Mark-sweep 303.8 (328.3) -> 202.6 (219.8) MB, 405.4 / 0.1 ms  (average mu = 0.914, current mu = 0.905) external memory pressure scavenge might not succeed
                                            [15135:0x54a8cf0]    47162 ms: Mark-sweep (reduce) 305.4 (320.6) -> 305.3 (311.6) MB, 824.0 / 0.1 ms  (+ 75.1 ms in 30 steps since start of marking, biggest step 5.5 ms, walltime since start of marking 1150 ms) (average mu = 0.831, current mu = 0.744) all
                                            
                                            <--- JS stacktrace --->
                                            
                                            FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
                                            ./iobroker: Zeile 10: 15134 Abgebrochen             sudo -H -u iobroker node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@"
                                            
                                            Thomas Braun 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            556
                                            Online

                                            32.0k
                                            Users

                                            80.3k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            71
                                            4533
                                            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