Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst] iobroker lässt sich nicht richtig installieren

    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] iobroker lässt sich nicht richtig installieren

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

      Hallo,

      ich komme bei einer Installation auf einem Raspberry 3B+ nicht weiter und hoffe auf Eure Hilfe:

      System auf dem Raspi:

      NAME="Ubuntu"
      VERSION="20.04.6 LTS (Focal Fossa)"
      ID=ubuntu
      ID_LIKE=debian
      PRETTY_NAME="Ubuntu 20.04.6 LTS"
      VERSION_ID="20.04"
      HOME_URL="https://www.ubuntu.com/"
      SUPPORT_URL="https://help.ubuntu.com/"
      BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
      PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
      VERSION_CODENAME=focal
      UBUNTU_CODENAME=focal
      

      System ist mit apt-get update und apt-upgrade aktualisiert.

      Auf dem Raspi läuft noch ein anderes Programm, so dass der Port 8081 bereits belegt ist.

      Bei meiner ersten iobroker-Installation lief diese problemlos durch. Im Log hatte ich gelesen, dass der Port 8081 belegt ist und daher 8083 genommen wird. Darüber ließ sich die Startseite problemlos aufrufen. Ich habe dann die Ersteinrichtung vorgenommen und die ersten Adapter installiert. Erst danach habe ich gesehen, dass im Adapter admin noch der Port 8081 eingetragen war. Das habe ich dann auf 8083 geändert. Damit fingen die Probleme an:

      Der bereits installierte Adapter RPI lief nicht mehr. Die anderen Adapter funktionierten jedoch weiterhin. Ok dachte ich, mache ich eine Neuinstallation des Adapters - funktionierte nicht, also dann Neuinstallation iobroker. Zunächst habe ich jedoch alles deinstalliert:

      sudo systemctl disable iobroker.service
      sudo rm /usr/bin/iobroker
      sudo rm -fR /opt/iobroker
      sudo apt remove --purge nodejs
      sudo rm -R /etc/sudoers.d/iobroker
      sudo rm -R /home/iobroker
      

      Danach habe ich (nun schon dreimal) neu installiert mit:

      curl -sLf https://iobroker.net/install.sh | bash -
      library: loaded
      Library version=2024-05-24
      
      ==========================================================================
      
          Welcome to the ioBroker installer!
          Installer version: 2024-01-04
          
          You might need to enter your password a couple of times.
      
      ==========================================================================
      
      
      ==========================================================================
          Installing prerequisites (1/4)
      ==========================================================================
      
      Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
      Hit:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
      Hit:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease    
      Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease     
      Hit:5 https://deb.nodesource.com/node_20.x nodistro InRelease
      Reading package lists... Done
      
      ==========================================================================
      
          Node.js not found. Installing...
      
      ==========================================================================
      
      deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main
      Package: nodejs
      Pin: origin deb.nodesource.com
      Pin-Priority: 1001
       Processing triggers for man-db (2.9.1-1) ...source1_arm64.deb ...lled.)
      Installed nodejs
      Node.js Installed successfully!
      
      ==========================================================================
          Creating ioBroker user and directory (2/4)
      ==========================================================================
      
      Created /etc/sudoers.d/iobroker
      Directory /opt/iobroker created
      
      ==========================================================================
          Installing ioBroker (3/4)
      ==========================================================================
      
      ⠧bash: line 994:  4769 Killed                  npm i --production --loglevel error --unsafe-perm > /dev/null
      
      ==========================================================================
          Finalizing installation (4/4)
      ==========================================================================
      
      Enabling autostart...
      Created symlink /etc/systemd/system/multi-user.target.wants/iobroker.service → /lib/systemd/system/iobroker.service.
      Autostart enabled!
      Fixing directory permissions...
      
      ==========================================================================
      
          ioBroker was installed successfully
          Open http://10.56.78.100:8081 in a browser and start configuring!
      
      ==========================================================================
      
      
      You need to re-login before doing anything else on the console!
      
      

      Bei Schritt 3 scheint es ein Problem zu geben, dass ich nicht lösen kann. Iobroker kann ich nun gar nicht mehr aufrufen - weder über den Port 8081 noch über 8082 oder 8083.

      Der Dienst läuft jedoch:

      systemctl status iobroker
      ● iobroker.service - ioBroker Server
           Loaded: loaded (/lib/systemd/system/iobroker.service; enabled; vendor preset: enabled)
           Active: active (running) since Mon 2024-07-01 19:27:41 CEST; 3min 8s ago
             Docs: http://iobroker.net
         Main PID: 5240 (iobroker.js-con)
            Tasks: 11 (limit: 970)
           CGroup: /system.slice/iobroker.service
                   └─5240 iobroker.js-controller
      
      Jul 01 19:27:41 ubuntu systemd[1]: Started ioBroker Server.
      Jul 01 19:27:49 ubuntu sudo[5284]: iobroker : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/setcap cap_net_admin,cap_net_bind_service,cap_net_raw+epi /usr/bin/node
      Jul 01 19:27:49 ubuntu sudo[5284]: pam_unix(sudo:session): session opened for user root by (uid=0)
      Jul 01 19:27:49 ubuntu sudo[5284]: pam_unix(sudo:session): session closed for user root
      Jul 01 19:27:50 ubuntu bash[5240]: object system.meta.uuid created: 67b55ea4-7e7d-e632-81e0-66bd95578b60
      Jul 01 19:27:50 ubuntu bash[5240]: object system.user.admin created
      
      

      Hier noch das Log-File:

      more iobroker.2024-07-01.log
      2024-07-01 19:27:48.803  - info: host.ubuntu iobroker.js-controller version 5.0.19 js-controller starting
      2024-07-01 19:27:48.817  - info: host.ubuntu Copyright (c) 2014-2023 bluefox, 2014 hobbyquaker
      2024-07-01 19:27:48.820  - info: host.ubuntu hostname: ubuntu, node: v20.15.0
      2024-07-01 19:27:48.822  - info: host.ubuntu ip addresses: 10.56.78.100
      2024-07-01 19:27:49.080  - info: host.ubuntu Objects protocol version has changed, disconnecting!
      2024-07-01 19:27:49.154  - error: host.ubuntu Cannot read system.config: null (OK when migrating or restoring)
      2024-07-01 19:27:49.225  - error: host.ubuntu Cannot find view "system" for search "host"
      2024-07-01 19:27:49.371  - info: host.ubuntu connected to Objects and States
      2024-07-01 19:27:49.454  - info: host.ubuntu Node.js version has changed from unknown to 20.15.0
      2024-07-01 19:27:49.542  - info: host.ubuntu added notifications configuration of host
      2024-07-01 19:27:49.547  - info: host.ubuntu Successfully updated capabilities "cap_net_admin, cap_net_bind_service, cap_net_raw" for /usr/bin/node
      2024-07-01 19:27:49.614  - error: host.ubuntu Cannot find view "system" for search "instance"
      2024-07-01 19:27:49.617  - error: host.ubuntu Could not add notifications config of this host: Could not get notifications setup from instances: Cannot find view "system"
      2024-07-01 19:27:49.697  - info: host.ubuntu Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system
      2024-07-01 19:27:49.716  - error: host.ubuntu Cannot find view "system" for search "host"
      2024-07-01 19:27:49.737  - error: host.ubuntu Cannot find view "system" for search "state"
      2024-07-01 19:27:49.739  - error: host.ubuntu Cannot find view "system" for search "instance"
      2024-07-01 19:27:49.741  - error: host.ubuntu Could not collect system.host.ubuntu states to check for obsolete states: Cannot find view "system"
      2024-07-01 19:27:49.743  - error: host.ubuntu  _design/system missing - call node iobroker.js setup
      2024-07-01 19:27:49.744  - info: host.ubuntu  no instances found
      2024-07-01 19:27:49.745  - info: host.ubuntu no instances found
      2024-07-01 19:27:50.339  - info: host.ubuntu Created UUID: 67b55ea4-7e7d-e632-81e0-66bd95578b60
      

      Hat jemand einen Lösungsansatz?

      DJMarc75 1 Reply Last reply Reply Quote 0
      • DJMarc75
        DJMarc75 @MiPl last edited by

        @mipl sagte in iobroker lässt sich nicht richtig installieren:

        Hat jemand einen Lösungsansatz?

        So fängt es schon mal an:

        • RPI3 mit 1GB (könnte unterdimensioniert sein)
        • Ubuntu (warum kein normales Debian?)

        Hast Du eine komplette Neuinstallation gemacht oder iob irgendwie drübergebügelt?

        Bitte die Langfassung von

        iob diag
        

        in Codetags zeigen.

        M 1 Reply Last reply Reply Quote 0
        • M
          MiPl @DJMarc75 last edited by MiPl

          @djmarc75

          Hmm, Größe könnte ein Problem sein/werden.
          Ubuntu: War mir bisher nicht bewusst, dass hier Debian eventuell vorzuziehen sei. Warum wäre das System besser?

          Ähm und iob diag gibt nichts aus:

          Last login: Mon Jul  1 19:13:12 2024 from 10.56.78.99
          pi@ubuntu:~$ iob diag
          [sudo] password for pi: 
          pi@ubuntu:~$ 
          
          

          Habe iobroker auf ein laufendes System "hinzuinstalliert".

          DJMarc75 Homoran 2 Replies Last reply Reply Quote 0
          • DJMarc75
            DJMarc75 @MiPl last edited by

            @mipl sagte in iobroker lässt sich nicht richtig installieren:

            Ähm und iob diag gibt nichts aus

            mööööp.... dann mach mal

            iob fix
            

            scheinst ja nicht gerade aktuell zu sein dünkt es mir 😉

            M 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @MiPl last edited by

              @mipl sagte in iobroker lässt sich nicht richtig installieren:

              iob diag gibt nichts aus:

              iob stop
              iob fix
              iob start
              
              .....warten
              
              
              iob diag 
              
              1 Reply Last reply Reply Quote 0
              • M
                MiPl @DJMarc75 last edited by

                @djmarc75

                da kommt:

                pi@ubuntu:~$ iob fix
                library: loaded
                Library version=2024-05-24
                
                ==========================================================================
                
                    Welcome to the ioBroker installation fixer!
                    Script version: 2024-01-04
                    
                    You might need to enter your password a couple of times.
                
                ==========================================================================
                
                
                ==========================================================================
                    Installing prerequisites (1/5)
                ==========================================================================
                
                Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
                Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [128 kB]
                Hit:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease               
                Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease
                Hit:5 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
                Fetched 128 kB in 3s (42.9 kB/s)
                Reading package lists... Done
                
                ==========================================================================
                    Checking ioBroker user and directory permissions (2/5)
                ==========================================================================
                
                Created /etc/sudoers.d/iobroker
                Fixing directory permissions...
                
                ==========================================================================
                    Check and cleanup npm temporary directories (3/5)
                ==========================================================================
                
                Done.
                
                ==========================================================================
                    Database maintenance (4/5)
                ==========================================================================
                
                Checking for uncompressed JSONL databases... This might take a while!
                
                npm error code EACCES
                npm error syscall mkdir
                npm error path /home/iobroker
                npm error errno EACCES
                npm error FetchError: Invalid response body while trying to fetch https://registry.npmjs.org/@iobroker%2fjsonltool: EACCES: permission denied, mkdir '/home/iobroker'
                npm error     at /usr/lib/node_modules/npm/node_modules/minipass-fetch/lib/body.js:170:15
                npm error     at async Response.json (/usr/lib/node_modules/npm/node_modules/minipass-fetch/lib/body.js:75:17)
                npm error     at async RegistryFetcher.packument (/usr/lib/node_modules/npm/node_modules/pacote/lib/registry.js:98:25)
                npm error     at async RegistryFetcher.manifest (/usr/lib/node_modules/npm/node_modules/pacote/lib/registry.js:129:23)
                npm error     at async getManifest (/usr/lib/node_modules/npm/node_modules/libnpmexec/lib/index.js:27:22)
                npm error     at async missingFromTree (/usr/lib/node_modules/npm/node_modules/libnpmexec/lib/index.js:61:22)
                npm error     at async /usr/lib/node_modules/npm/node_modules/libnpmexec/lib/index.js:163:32
                npm error     at async Promise.all (index 0)
                npm error     at async exec (/usr/lib/node_modules/npm/node_modules/libnpmexec/lib/index.js:161:3)
                npm error     at async module.exports (/usr/lib/node_modules/npm/lib/cli/entry.js:74:5) {
                npm error   code: 'EACCES',
                npm error   errno: 'EACCES',
                npm error   syscall: 'mkdir',
                npm error   path: '/home/iobroker',
                npm error   type: 'system'
                npm error }
                npm error
                npm error The operation was rejected by your operating system.
                npm error It is likely you do not have the permissions to access this file as the current user
                npm error
                npm error If you believe this might be a permissions issue, please double-check the
                npm error permissions of the file and its containing directories, or try running
                npm error the command again as root/Administrator.
                
                npm error Log files were not written due to an error writing to the directory: /home/iobroker/.npm/_logs
                npm error You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
                
                ==========================================================================
                    Checking autostart (5/5)
                ==========================================================================
                
                Enabling autostart...
                Autostart enabled!
                
                ==========================================================================
                
                    Your installation was fixed successfully
                    Run iobroker start to start ioBroker again!
                
                ==========================================================================
                
                
                Homoran DJMarc75 2 Replies Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @MiPl last edited by

                  @mipl sagte in iobroker lässt sich nicht richtig installieren:

                  EACCES: permission denied,

                  ohh, oooooh!

                  @mipl sagte in iobroker lässt sich nicht richtig installieren:

                  Habe iobroker auf ein laufendes System "hinzuinstalliert".

                  wie genau hast du das gemacht?

                  klappt iob diag jetzt trotzdem?

                  M 1 Reply Last reply Reply Quote 0
                  • DJMarc75
                    DJMarc75 @MiPl last edited by

                    @mipl mach es so wie @Homoran geschrieben hat.

                    1 Reply Last reply Reply Quote 0
                    • M
                      MiPl @Homoran last edited by

                      @homoran
                      Installation via ssh mit dem Befehl:

                      curl -sLf https://iobroker.net/install.sh | bash -

                      iob diag geht weiterhin nicht.

                      Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @MiPl last edited by Thomas Braun

                        @mipl

                        Dann ruf iob diag wie in meiner Signatur zu sehen auf.

                        Also per

                        curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh
                        
                        M 1 Reply Last reply Reply Quote 1
                        • Homoran
                          Homoran Global Moderator Administrators @MiPl last edited by

                          @mipl sagte in iobroker lässt sich nicht richtig installieren:

                          Installation via ssh mit dem Befehl:

                          als root??

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

                            @thomas-braun

                            Keine Ausgabe mit curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

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

                              @homoran

                              Nein, nicht als root

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

                                @mipl

                                curl -L -o diag.sh https://iobroker.net/diag.sh && bash diag.sh
                                
                                M 1 Reply Last reply Reply Quote 1
                                • M
                                  MiPl @Thomas Braun last edited by MiPl

                                  @thomas-braun
                                  liefert

                                  pi@ubuntu:/$ curl -L -o diag.sh https://iobroker.net/diag.sh && bash diag.sh
                                    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                                   Dload  Upload   Total   Spent    Left  Speed
                                  100   169  100   169    0     0    800      0 --:--:-- --:--:-- --:--:--   800
                                  Warning: Failed to create the file diag.sh: Permission denied
                                   69 23302   69 16126    0     0  37502      0 --:--:-- --:--:-- --:--:-- 37502
                                  curl: (23) Failed writing body (0 != 16126)
                                  
                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @MiPl last edited by

                                    @mipl

                                    Bitte immer die vollständigen Ein- wie Ausgaben inkl. LoginPrompt posten.

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

                                      @mipl sagte in iobroker lässt sich nicht richtig installieren:

                                      nicht als root

                                      wieso dann

                                      @mipl sagte in iobroker lässt sich nicht richtig installieren:

                                      System ist mit apt-get update und apt-upgrade aktualisiert.

                                      ohne sudo?

                                      M 1 Reply Last reply Reply Quote 0
                                      • M
                                        MiPl @Homoran last edited by

                                        @homoran
                                        update und upgrade wurde mit sudo ausgeführt.

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

                                          @mipl Danke!
                                          hmm, wo klemmt's denn dann mit den Rechten?

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

                                            @mipl

                                            Stell dich in das home-Verzeichnis vom pi. Der darf (zum Glück) nicht in / schreiben.

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

                                            Support us

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

                                            677
                                            Online

                                            31.9k
                                            Users

                                            80.3k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            27
                                            1162
                                            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