Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. (gelöst) linux-control lxc host klappt nicht

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    (gelöst) linux-control lxc host klappt nicht

    This topic has been deleted. Only users with topic management privileges can see it.
    • crunchip
      crunchip Forum Testing Most Active @HAL last edited by

      @hal sagte in linux-control lxc host klappt nicht:

      Im iobroker Container melde ich mich von der Console mittel ssh am pve Host

      welche Console? Standard hat man kein root Zugriff per ssh
      oder redest du innerhalb von Proxmox auf der Gui?

      HAL 1 Reply Last reply Reply Quote 0
      • HAL
        HAL @crunchip last edited by HAL

        @crunchip ich bin im iobroker Container (lxc) auf der shell (terminal) eingelogt. Starte ssh und melde mich mit dem root User auf der IP des Host ( pve ) an. Dann kann ich wie im Terminal im Host (pve) alle Befehle aufrufen. Wenn ich die gleichen Anmelde Daten ( ip, port, root,pw ) im Adapter linux-control eingeben, kommt u.A. im log:
        "linux-control.0 (85690) [getConnection] Host 'pve' (192.168.178.44:22) seems not to be online"

        Vieleicht sollte ich einen anderen Weg probieren. 🤷‍♂️

        ps. Influxdb und grafana laufen in einem eigenen container. Auch hier kommt die gleiche Fehlermeldung im log
        "linux-control.0 (85690) [getConnection] Host 'grafana' (192.168.178.55:22) seems not to be online"

        Das gleiche passiert auch, wenn ich versuche auf die ip des iobroker in dem der linux-control Adapter läuft, zuzugreifen. 🤦‍♂️

        crunchip Wal 2 Replies Last reply Reply Quote 0
        • crunchip
          crunchip Forum Testing Most Active @HAL last edited by

          @hal sagte in linux-control lxc host klappt nicht:

          ich bin im iobroker Container (lxc) auf der shell (terminal) eingelogt

          Also auf deiner Proxmox Oberfläche und nicht extern über z. B Putty

          @hal sagte in linux-control lxc host klappt nicht:

          Vieleicht sollte ich einen anderen Weg probieren

          Ja wie bereits vorgeschlagen, mit einem User, der auch die Berechtigung hat

          1 Reply Last reply Reply Quote 0
          • Wal
            Wal Developer @HAL last edited by Wal

            @hal ,
            installiere dir auch mal die Version 1.1.6 von Github, bei der 1.1.5 hatte ich unter Proxmox ab und zu auch Login Probleme.
            Kann auch sein das die Probleme weg waren als ich in Proxmox auf feste IP umgestellt hatte, ich weis es nicht mehr.

            HAL 1 Reply Last reply Reply Quote 0
            • HAL
              HAL @Wal last edited by

              @wal die 1.1.6 hatte ich schon
              Screenshot 2024-03-26 172900.png

              @crunchip auch mit einem user mit allen Berechtigungen, keine Veränderung. Der Adapter sagt immer die ip ist nicht zu erreichen...

              crunchip 1 Reply Last reply Reply Quote 0
              • crunchip
                crunchip Forum Testing Most Active @HAL last edited by crunchip

                @hal da fehlt der Haken bei sudo

                Edit
                ich hatte auch paar Abfragen an Proxmox Konfiguriert und das ein oder andere wurde nicht mehr ausgeführt, daher ist das bei mir schon längere Zeit deaktiviert.
                Ist mir gerade so eingefallen, müsst ich heut abend mal nachsehen ob die Verbindung noch klappt.

                HAL 1 Reply Last reply Reply Quote 0
                • HAL
                  HAL @crunchip last edited by HAL

                  @crunchip ich habe jetzt im Adapter eine physische andere ip von einem Raspberry eingetragen und das klappt NICHT. Es liegt also irgendwie in der Thematik proxmox und linux container.

                  [getConnection] Host 'ccu' (192.168.178.20:22) seems not to be online

                  Egal ob der sudo markiert ist oder nicht.

                  crunchip 1 Reply Last reply Reply Quote 0
                  • crunchip
                    crunchip Forum Testing Most Active @HAL last edited by

                    @hal ist dies korrekt?

                    if its not possible to get connection to your linux client, check if iputils-ping is correct installed on client
                    
                    HAL 1 Reply Last reply Reply Quote 0
                    • HAL
                      HAL @crunchip last edited by

                      @crunchip

                      root@iobroker:~# ping 192.168.178.44
                      PING 192.168.178.44 (192.168.178.44) 56(84) bytes of data.
                      64 bytes from 192.168.178.44: icmp_seq=1 ttl=64 time=0.044 ms
                      64 bytes from 192.168.178.44: icmp_seq=2 ttl=64 time=0.036 ms
                      64 bytes from 192.168.178.44: icmp_seq=3 ttl=64 time=0.058 ms
                      64 bytes from 192.168.178.44: icmp_seq=4 ttl=64 time=0.048 ms
                      ^C
                      --- 192.168.178.44 ping statistics ---
                      4 packets transmitted, 4 received, 0% packet loss, time 3074ms
                      rtt min/avg/max/mdev = 0.036/0.046/0.058/0.007 ms
                      
                      Codierknecht 1 Reply Last reply Reply Quote 0
                      • Codierknecht
                        Codierknecht Developer Most Active @HAL last edited by

                        @hal
                        Da wurschtelt man immer noch nicht als rootrum.

                        HAL 1 Reply Last reply Reply Quote 1
                        • HAL
                          HAL @Codierknecht last edited by

                          @codierknecht was hat das mit dem Adapter zu tun ?

                          Codierknecht 1 Reply Last reply Reply Quote 0
                          • Codierknecht
                            Codierknecht Developer Most Active @HAL last edited by

                            @hal
                            Die Ausgabe zeigt lediglich, dass ein ping als root funktioniert.
                            Der Adapter läuft aber nicht als root.

                            HAL 1 Reply Last reply Reply Quote 0
                            • HAL
                              HAL @Codierknecht last edited by HAL

                              @codierknecht

                              uwe@iobroker:~$ sudo ping 192.168.178.44
                              [sudo] password for uwe: 
                              PING 192.168.178.44 (192.168.178.44) 56(84) bytes of data.
                              64 bytes from 192.168.178.44: icmp_seq=1 ttl=64 time=0.047 ms
                              64 bytes from 192.168.178.44: icmp_seq=2 ttl=64 time=0.037 ms
                              64 bytes from 192.168.178.44: icmp_seq=3 ttl=64 time=0.044 ms
                              64 bytes from 192.168.178.44: icmp_seq=4 ttl=64 time=0.043 ms
                              ^C
                              --- 192.168.178.44 ping statistics ---
                              4 packets transmitted, 4 received, 0% packet loss, time 3068ms
                              rtt min/avg/max/mdev = 0.037/0.042/0.047/0.003 ms
                              

                              a0f2cb76-2a00-46aa-ba1b-ecc26a91f3a1-image.png

                              
                              linux-control.0
                              2024-03-26 23:00:44.869	info	[getConnection] Host 'pve' (192.168.178.44:22) seems not to be online
                              
                              linux-control.0
                              2024-03-26 23:00:44.851	info	getting data from pve (192.168.178.44:22, Adapter start)
                              
                              linux-control.0
                              2024-03-26 23:00:44.799	info	starting. Version 1.1.6 (non-npm: Scrounger/ioBroker.linux-control) in /opt/iobroker/node_modules/iobroker.linux-control, node: v18.18.2, js-controller: 5.0.19
                              
                              Codierknecht crunchip Thomas Braun 3 Replies Last reply Reply Quote 0
                              • Codierknecht
                                Codierknecht Developer Most Active @HAL last edited by

                                @hal
                                Also ich kann meinen LXC Container problemlos erreichen.
                                Ein grundsätzliches Problem beim Adapter würde ich demnach ausschließen.
                                Hätte vermutlich auch längst Geschrei gegeben.

                                IMG_0013.jpeg

                                crunchip 1 Reply Last reply Reply Quote 0
                                • crunchip
                                  crunchip Forum Testing Most Active @Codierknecht last edited by

                                  @codierknecht habs bei mir ebenfalls gerade getestet, vom iobroker docker (anderer Server) zum Proxmox-Host, funktioniert ohne Probleme

                                  1 Reply Last reply Reply Quote 0
                                  • crunchip
                                    crunchip Forum Testing Most Active @HAL last edited by crunchip

                                    @hal sagte in linux-control lxc host klappt nicht:

                                    node: v18.18.2

                                    ist aber auch nicht der aktuelle Stand

                                    auch schon mal Proxmox neu gestartet?

                                    es gab Hier ein issue, hat sich aber scheinbar in Luft aufgelöst

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

                                      @hal

                                      apt policy iputils-ping ping
                                      ping 192.168.178.44
                                      sudo -H -u iobroker ping 192.168.178.44
                                      

                                      sagt? Natürlich NICHT als root sondern als user ausgeführt.
                                      Eigentlich logisch, da man sich ohnehin nie als root anmeldet.

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

                                        @thomas-braun ich bin am iobroker mit dem user Uwe angemeldet

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

                                          @hal

                                          Mag ja sein. Mittels sudo setzt du da aber weiterhin auf root-Rechte. Bringt dir aber keine Erkenntnisse, weil Ping z.B. unter Umständen von Usern nicht ausgeführt werden darf. Deswegen halt als User agieren, weil man immer als user eingeloggt ist und nie als root.

                                          Die Kommandos liefern nun was zurück?

                                          1 Reply Last reply Reply Quote 0
                                          • HAL
                                            HAL @crunchip last edited by

                                            @crunchip mach ich heute abend, bin jetzt unterwegs

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

                                            Support us

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

                                            747
                                            Online

                                            32.0k
                                            Users

                                            80.3k
                                            Topics

                                            1.3m
                                            Posts

                                            8
                                            37
                                            1222
                                            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