Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Umstellung auf iobroker nicht als root

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Umstellung auf iobroker nicht als root

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

      @sissiwup

      			v.2023-10-10
      
      
       Static hostname: zotac
             Icon name: computer-desktop
               Chassis: desktop 🖥️
      Operating System: Debian GNU/Linux 12 (bookworm)
                Kernel: Linux 6.1.0-13-amd64
          Architecture: x86-64
       Hardware Vendor: ASRock
        Hardware Model: H81M-DGS
      Firmware Version: P2.00
      
      Installation: 		native
      Kernel: 		x86_64
      Userland: 		amd64
      Timezone: 		Europe/Berlin (CEST, +0200)
      User-ID: 		1000
      X-Server: 		true
      Boot Target: 		graphical.target
      
      Pending OS-Updates: 	0
      Pending iob updates: 	8
      
      Nodejs-Installation: 	/usr/bin/nodejs 	v18.18.2
      			/usr/bin/node 		v18.18.2
      			/usr/bin/npm 		9.8.1
      			/usr/bin/npx 		9.8.1
      			/usr/bin/corepack 	0.19.0
      
      Recommended versions are nodejs  and npm
      Your nodejs installation is correct
      
      MEMORY:
                     total        used        free      shared  buff/cache   available
      Mem:             16G         11G        423M        137M        4.9G        4.8G
      Swap:            34G        3.2G         31G
      Total:           50G         14G         31G
      
      Active iob-Instances: 	20
      Active repo(s): live-stable
      
      ioBroker Core: 		js-controller 		5.0.12
      			admin 			6.10.2
      
      ioBroker Status: 	iobroker is running on this host.
      
      
      Objects type: jsonl
      States  type: jsonl
      
      Status admin and web instance:
        system.adapter.admin.0                  : admin                 : zotac                                    -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
      + system.adapter.web.0                    : web                   : zotac                                    -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
      
      Objects: 		12656
      States: 		10563
      
      Size of iob-Database:
      
      21M	/opt/iobroker/iobroker-data/objects.jsonl
      18M	/opt/iobroker/iobroker-data/objects.json.migrated
      18M	/opt/iobroker/iobroker-data/objects.json.bak.migrated
      18M	/opt/iobroker/iobroker-data/objects.json.bak
      18M	/opt/iobroker/iobroker-data/objects.json
      3.4M	/opt/iobroker/iobroker-data/states.jsonl
      2.9M	/opt/iobroker/iobroker-data/states.json.migrated
      2.9M	/opt/iobroker/iobroker-data/states.json.bak.migrated
      2.9M	/opt/iobroker/iobroker-data/states.json.bak
      2.9M	/opt/iobroker/iobroker-data/states.json
      
      
      
      =================== END OF SUMMARY ====================
      

      === Mark text until here for copying ===
      iob diag 28,29s user 5,45s system 19% cpu 2:51,91 total

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

        @sissiwup

        Wassen das für'n komischer Prompt? Hab ich noch nie gesehen:

        wh@zotac /opt/iobroker %
        

        Entweder ist das # für root logins oder $ für einen user. Aber % kenn ich nicht.

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

          @thomas-braun sagte in Umstellung auf iobroker nicht als root:

          @sissiwup

          Wassen das für'n komischer Prompt? Hab ich noch nie gesehen:

          wh@zotac /opt/iobroker %
          

          Entweder ist das # für root logins oder $ für einen user. Aber % kenn ich nicht.

          Habe das in zsh so eingestellt. Ist aber der User wh. Kein root.

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

            @sissiwup

            .k zsh kenn ich nicht genau. Ein bash prompt kann man zwar auch umstellen, ist aber eher ungewöhnlich.

            Noch als Hinweis: iob_diag verwendet bash, keine Ahnung ob es unter der zsh da zu Komplikationen kommt.

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

              @thomas-braun
              bash ist natürlich auch da.

              2023-10-14 21:16:55.685  - error: host.zotac instance system.adapter.admin.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
              2023-10-14 21:16:55.685  - info: host.zotac Restart adapter system.adapter.admin.0 because enabled
              2023-10-14 21:17:25.720  - info: host.zotac instance system.adapter.admin.0 started with pid 488395
              2023-10-14 21:17:25.975  - error: host.zotac Caught by controller[0]: /opt/iobroker/node_modules/iobroker.admin/main.js:21
              2023-10-14 21:17:25.975  - error: host.zotac Caught by controller[0]:     at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.admin/main.js:21:44)
              2023-10-14 21:17:25.975  - error: host.zotac instance system.adapter.admin.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
              2023-10-14 21:17:25.975  - info: host.zotac Restart adapter system.adapter.admin.0 because enabled
              
              sissiwup 1 Reply Last reply Reply Quote 0
              • sissiwup
                sissiwup @sissiwup last edited by

                @sissiwup
                Kann ich das neu installieren und meine Einstellungen übernehmen?

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

                  @sissiwup

                  iob start admin
                  

                  sagt?

                  sissiwup 2 Replies Last reply Reply Quote 0
                  • sissiwup
                    sissiwup @Thomas Braun last edited by

                    @thomas-braun
                    Nix, also keinen Fehler.

                    wh@zotac:/opt/iobroker$ iob start admin
                    wh@zotac:/opt/iobroker$
                    
                    023-10-14 21:46:08.216  - info: host.zotac instance system.adapter.admin.0 started with pid 610506
                    2023-10-14 21:46:08.542  - error: host.zotac Caught by controller[0]: /opt/iobroker/node_modules/iobroker.admin/main.js:21
                    2023-10-14 21:46:08.544  - error: host.zotac Caught by controller[0]:     at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.admin/main.js:21:44)
                    2023-10-14 21:46:08.546  - error: host.zotac instance system.adapter.admin.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
                    2023-10-14 21:46:08.546  - info: host.zotac Restart adapter system.adapter.admin.0 because enabled
                    2023-10-14 21:46:38.578  - info: host.zotac instance system.adapter.admin.0 started with pid 611113
                    2023-10-14 21:46:38.897  - error: host.zotac Caught by controller[0]: /opt/iobroker/node_modules/iobroker.admin/main.js:21
                    2023-10-14 21:46:38.898  - error: host.zotac Caught by controller[0]:     at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.admin/main.js:21:44)
                    2023-10-14 21:46:38.899  - error: host.zotac instance system.adapter.admin.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
                    2023-10-14 21:46:38.899  - info: host.zotac Restart adapter system.adapter.admin.0 because enabled
                    
                    1 Reply Last reply Reply Quote 0
                    • sissiwup
                      sissiwup @Thomas Braun last edited by

                      @thomas-braun
                      Kann das mit den vielen Fehlern aus diag zu tun haben?

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

                        @sissiwup sagte in Umstellung auf iobroker nicht als root:

                        Kann das mit den vielen Fehlern aus diag zu tun haben?

                        Welche? Gib mal die Langfassung.
                        Bei den Repos solltest du ran, die sind mittlerweile alle auf die neue Nomenklatur umgestellt.

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

                          @thomas-braun

                          diag.txt

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

                            @sissiwup

                            Bitte den Text aus der Konsole hier rein.

                            sissiwup Glasfaser 2 Replies Last reply Reply Quote 0
                            • sissiwup
                              sissiwup @Thomas Braun last edited by

                              @thomas-braun diag.txt

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

                                @thomas-braun sagte in Umstellung auf iobroker nicht als root:

                                @sissiwup

                                Bitte den Text aus der Konsole hier rein.

                                seine Ausgabe ist zu groß dafür !

                                Bitte schreibe einen kürzeren Beitrag. Beiträge können nicht länger als 100000 Zeichen sein.

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

                                  @sissiwup

                                  Keine Ahnung wo anfangen...

                                  sissiwup 1 Reply Last reply Reply Quote 0
                                  • sissiwup
                                    sissiwup @Glasfaser last edited by

                                    @glasfaser sagte in Umstellung auf iobroker nicht als root:

                                    @thomas-braun sagte in Umstellung auf iobroker nicht als root:

                                    @sissiwup

                                    Bitte den Text aus der Konsole hier rein.

                                    seine Ausgabe ist zu groß dafür !

                                    Bitte schreibe einen kürzeren Beitrag. Beiträge können nicht länger als 100000 Zeichen sein.

                                    Yep, habe deshalb die Datei hochgeladen. Die 1. ist mit Pipe, die 2. ist vom Bildschirm kopiert.

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

                                      @thomas-braun sagte in Umstellung auf iobroker nicht als root:

                                      @sissiwup

                                      Keine Ahnung wo anfangen...

                                      Bis heute Mittag lief noch alles 😞
                                      Dann habe ich gedacht, versuch doch mal nicht als root es zum laufen zu bekommen.
                                      Die Installation ist sehr alt ...

                                      sissiwup 1 Reply Last reply Reply Quote 0
                                      • sissiwup
                                        sissiwup @sissiwup last edited by

                                        @sissiwup

                                        iobroker debug admin
                                        Debugger listening on ws://127.0.0.1:9229/7d01f783-1cea-4812-bd8c-47e6dcf47180
                                        For help, see: https://nodejs.org/en/docs/inspector
                                        /opt/iobroker/node_modules/iobroker.admin/main.js:21
                                        const getInstalledInfo = utils.commonTools.getInstalledInfo;
                                                                                   ^
                                        
                                        TypeError: Cannot read properties of undefined (reading 'getInstalledInfo')
                                            at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.admin/main.js:21:44)
                                            at Module._compile (node:internal/modules/cjs/loader:1256:14)
                                            at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
                                            at Module.load (node:internal/modules/cjs/loader:1119:32)
                                            at Module._load (node:internal/modules/cjs/loader:960:12)
                                            at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:86:12)
                                            at node:internal/main/run_main_module:23:47
                                        
                                        Node.js v18.18.2```
                                        sissiwup 1 Reply Last reply Reply Quote 0
                                        • sissiwup
                                          sissiwup @sissiwup last edited by

                                          @sissiwup
                                          Hab jetzt mal neu installiert. Dann ging leider vis nicht.
                                          Hier habe ich gesehen nur vis 1.4.0 geht. Das habe ich dann installiert. (vis@1.4.0)
                                          Danach geht das update auf vis 1.4.16 auch wieder.

                                          Lasse das backup jetzt mal einspielen. Mal sehen was morgen früh so läuft.
                                          node-red fehlten nodes, das war aber kein Problem.

                                          Immerhin läuft es jetzt wohl nicht mehr als root gestartet.

                                          haselchen 1 Reply Last reply Reply Quote 0
                                          • haselchen
                                            haselchen Most Active @sissiwup last edited by

                                            @sissiwup

                                            Willkommen in meinem Leben 🙂
                                            Exakt die gleichen Probleme hatte ich heute.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            698
                                            Online

                                            32.0k
                                            Users

                                            80.4k
                                            Topics

                                            1.3m
                                            Posts

                                            installlation
                                            7
                                            36
                                            2132
                                            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