Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. "iobroker upgrade self" not working [SOLVED]

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    "iobroker upgrade self" not working [SOLVED]

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

      Systemdata Bitte Ausfüllen
      Hardwaresystem: Pi3
      Arbeitsspeicher: 4GB
      Festplattenart: SD-Karte
      Betriebssystem: Ubuntu
      Node-Version: 12.20.0
      Nodejs-Version: 12.20.0
      NPM-Version: 6.14,.8
      Installationsart: Skript

      System is running without any issues but upgrading it not working. I'm on js-controller 3.2.16 and if I execute iobroker upgrade self I get the following output:

      pi@iobroker-pi4:~ $ iobroker upgrade self
      No connection to databases possible ...
       redis get system.host.iobroker-pi4.alive, error - Connection is closed.
      No repositories defined.
      Cannot get repository under "undefined"
      pi@iobroker-pi4:~ $
      
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @miggedy last edited by Thomas Braun

        @miggedy

        iobroker repo list 
        iobroker update
        

        And please keep your nodeJS installation up-to-date.

        M 1 Reply Last reply Reply Quote 0
        • M
          miggedy @Thomas Braun last edited by

          Thanks @thomas-braun, sadly this didn't help.

          pi@iobroker-pi4:~ $ iobroker repo list
          stable      : http://download.iobroker.net/sources-dist.json
          beta        : http://download.iobroker.net/sources-dist-latest.json
          
          Active repo: beta
          pi@iobroker-pi4:~ $ iobroker update
          ...
          pi@iobroker-pi4:~ $ iobroker upgrade
          ...
          pi@iobroker-pi4:~ $ iobroker stop
          pi@iobroker-pi4:~ $ iobroker upgrade self
          No connection to databases possible ...
           redis get system.host.iobroker-pi4.alive, error - Connection is closed.
          No repositories defined.
          Cannot get repository under "undefined"
          
          
          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @miggedy last edited by

            @miggedy

            Maybe there is still something running in the background?

            ps aux | grep ^io
            
            M 1 Reply Last reply Reply Quote 0
            • M
              miggedy @Thomas Braun last edited by

              No, nothing is running anymore. That command doesn't return anything.
              Maybe also interesting:
              While iobroker is not running, these commands also fail (but work if iobroker is running):

               pi@iobroker-pi4:~ $ iobroker repo list
              No connection to databases possible ...
              Cannot get list: Error: Connection is closed.
              pi@iobroker-pi4:~ $ iobroker upgrade
              No connection to databases possible ...
              No repositories defined.
              /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:982
                                      for (const name of Object.keys(links)) {
                                                                ^
              
              TypeError: Cannot convert undefined or null to object
                  at Function.keys (<anonymous>)
                  at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:982:51
                  at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2615:37)
                  at processImmediate (internal/timers.js:463:21)
              pi@iobroker-pi4:~ $
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @miggedy last edited by Thomas Braun

                @miggedy

                Not sure if this helps but try jumping to the version you want to have:
                3.3.5 is beta-stage:

                Controller "js-controller" : 3.3.5    , installed 3.3.5
                

                Try

                iobroker stop
                cd /opt/iobroker
                npm install iobroker.js-controller@3.3.5
                iobroker start
                iobroker status
                
                M 1 Reply Last reply Reply Quote 0
                • crunchip
                  crunchip Forum Testing Most Active last edited by

                  Test this rep
                  Stable
                  http://iobroker.live/repo/sources-dist.json
                  Latest
                  http://iobroker.live/repo/sources-dist-latest.json

                  1 Reply Last reply Reply Quote 0
                  • M
                    miggedy @Thomas Braun last edited by miggedy

                    I tested the manual installation @thomas-braun mentioned (npm install...) and this worked. I'm now on 3.3.5 and running iobroker upgrade self now doesn't show any errors anymore (just that it's up-to-date).

                    In case this happens again for the next update I will try the different repo @crunchip mentioned.
                    Thank you both for your support.

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

                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    634
                    Online

                    31.7k
                    Users

                    79.7k
                    Topics

                    1.3m
                    Posts

                    3
                    8
                    1860
                    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