Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [Gelöst] Hostname geändert und jetzt Meldung beim starten

    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] Hostname geändert und jetzt Meldung beim starten

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

      Hi,

      ich habe den Hostnamen an einem PI ändern müssen der auch ein Slave werden soll um nicht doppelte Namen zu haben.

      Habe dazu als erstes über das "raspi-config" tool den Namen geändert und dann das gemacht:

      pi@iobroker_garage_gross:~ $ sudo iobroker host this
      sudo: Hostname iobroker_garage_gross kann nicht aufgelöst werden
      Rename state "system.host.iobroker_garage_gross.mem".
      Rename host "system.host.iobroker_garage_gross" to system.host.iobroker_garage_gross
      Rename state "system.host.iobroker_garage_gross.memHeapUsed".
      Rename state "system.host.iobroker_garage_gross.memHeapTotal".
      Rename state "system.host.iobroker_garage_gross.memRss".
      Rename state "system.host.iobroker_garage_gross.uptime".
      Rename state "system.host.iobroker_garage_gross.load".
      Rename state "system.host.iobroker_garage_gross.alive".
      Rename state "system.host.iobroker_garage_gross.freemem".
      Rename state "system.host.iobroker_garage_gross.inputCount".
      Rename state "system.host.iobroker_garage_gross.outputCount".
      Instance host changed for "system.adapter.admin.0" from "iobroker_garage_gross" to "iobroker_garage_gross".
      Instance host changed for "system.adapter.javascript.0" from "iobroker_garage_gross" to "iobroker_garage_gross".
      Instance host changed for "system.adapter.node-red.0" from "iobroker_garage_gross" to "iobroker_garage_gross".
      Instance host changed for "system.adapter.javascript.1" from "iobroker_garage_gross" to "iobroker_garage_gross".
      Instance host changed for "system.adapter.rpi2.0" from "iobroker_garage_gross" to "iobroker_garage_gross".
      

      Jetzt bekomme ich beim starten diese Meldung:

      sudo: Hostname iobroker_garage_gross kann nicht aufgelöst werden
      

      iobroker startet scheinbar trotzdem.

      Was habe ich denn falsch gemacht und was kann/muss ich machen um diese Meldung weg zu bekommen?

      Danke und Gruß

      PS: Code Tags können ja leider zur Zeit nicht verwendet werden. Ich ändere das sobald es wieder funktioniert.

      1 Reply Last reply Reply Quote 0
      • apollon77
        apollon77 last edited by

        Der lokale DNS (deine fritzbox oder so) muss den Namen auch kennen. An sich wird der nach Änderungen weitergegeben aber scheinbar gibt’s da Probleme bei dir. Also: Host auch im Router so benennen oder den korrekten vollständigen Hostnamen (vllt ist der ja eher wasauchimmer.fritz.box ?!)

        1 Reply Last reply Reply Quote 0
        • wendy2702
          wendy2702 last edited by

          Danke für deine Antwort.

          in der FB stand noch der alte Hostname.

          Nach dem ich den zurückgesetzt habe stimmt er jetzt.

          Aber die Meldung ist immer noch da.

          PI habe ich schon neu gestartet. Hat nichts gebracht.
          999_hostname_fb.jpg

          1 Reply Last reply Reply Quote 0
          • apollon77
            apollon77 last edited by

            Dann Versuch mal lokal an der kommandozeile/ssh den aufzulösen. Kommando wäre „host“. Geht das?

            1 Reply Last reply Reply Quote 0
            • wendy2702
              wendy2702 last edited by

              meintest du das:

              pi@iobroker_garage_gross:~ $ sudo host
              sudo: Hostname iobroker_garage_gross kann nicht aufgelöst werden
              Usage: host [-aCdlriTwv] [-c class] [-N ndots] [-t type] [-W time]
                          [-R number] [-m flag] hostname [server]
                     -a is equivalent to -v -t ANY
                     -c specifies query class for non-IN data
                     -C compares SOA records on authoritative nameservers
                     -d is equivalent to -v
                     -l lists all hosts in a domain, using AXFR
                     -i IP6.INT reverse lookups
                     -N changes the number of dots allowed before root lookup is done
                     -r disables recursive processing
                     -R specifies number of retries for UDP packets
                     -s a SERVFAIL response should stop query
                     -t specifies the query type
                     -T enables TCP/IP mode
                     -v enables verbose output
                     -w specifies to wait forever for a reply
                     -W specifies how long to wait for a reply
                     -4 use IPv4 query transport only
                     -6 use IPv6 query transport only
                     -m set memory debugging flag (trace|record|usage)
              
              1 Reply Last reply Reply Quote 0
              • wendy2702
                wendy2702 last edited by

                Eintrag in der /etc/hosts hinzugefügt –> Meldung weg:

                pi@iobroker_garage_gross:~ $ cat /etc/hosts
                127.0.0.1  Homebridge
                
                127.0.1.1  iobroker_garage_gross
                
                1 Reply Last reply Reply Quote 0
                • apollon77
                  apollon77 last edited by

                  An sich löst „host irgendein-Hostnamen“ diesen per DNS auf und sagt dir seine IP.

                  Der Hack mit der hosts-Datei tut ist aber nicht sauber.

                  Musst rausfinden warum Dein DNS den host nicht kennt.

                  Was sagt der Befehl

                  hostname

                  ?

                  1 Reply Last reply Reply Quote 0
                  • wendy2702
                    wendy2702 last edited by

                    Hack mal wieder entfernt 😉

                    pi@iobroker_garage_gross:/opt/iobroker $ hostname

                    iobroker_garage_gross

                    Kann es sein das etwas mit /etc/hosts/ nicht stimmt:

                    PI (Slave) mit Fehler:

                    pi@iobroker_garage_gross:/opt/iobroker $ cat /etc/hosts
                    127.0.0.1  Homebridge
                    

                    PI (Slave) ohne Fehler:

                    pi@pi-iobroker:~ $ cat /etc/hosts
                    127.0.0.1       localhost
                    ::1             localhost ip6-localhost ip6-loopback
                    ff02::1         ip6-allnodes
                    ff02::2         ip6-allrouters
                    
                    127.0.1.1       pi-iobroker
                    pi@pi-iobroker:~ $
                    

                    Host ohne Fehler:

                    root@openmediavault /opt/iobroker > cat /etc/hosts
                    127.0.0.1       localhost
                    127.0.1.1       openmediavault.fritz.box        openmediavault
                    
                    # The following lines are desirable for IPv6 capable hosts
                    ::1     localhost ip6-localhost ip6-loopback
                    ff02::1 ip6-allnodes
                    ff02::2 ip6-allrouters
                    
                    1 Reply Last reply Reply Quote 0
                    • apollon77
                      apollon77 last edited by

                      Hab keine pi … sorry da bin ich jetzt überfragt

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

                        Slave-Pi:

                        pi@Keller-RasPi2:~ $ cat /etc/hosts

                        127.0.0.1 localhost

                        ::1 localhost ip6-localhost ip6-loopback

                        ff02::1 ip6-allnodes

                        ff02::2 ip6-allrouters

                        127.0.1.1 Keller-RasPi2

                        Tinkerboard:

                        root@linaro-alip:~# cat /etc/hosts

                        127.0.0.1 localhost tinkerboard

                        ::1 localhost tinkerboard ip6-localhost ip6-loopback

                        fe00::0 ip6-localnet

                        ff00::0 ip6-mcastprefix

                        ff02::1 ip6-allnodes

                        ff02::2 ip6-allrouters

                        1 Reply Last reply Reply Quote 0
                        • wendy2702
                          wendy2702 last edited by

                          Rainer,

                          kannst du deinen Pi von einem PC per ping so erreichen:

                          ping Keller-RasPi2

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

                            Ja:

                            C:\Users\meinPC>ping Keller-Raspi2

                            Ping wird ausgeführt für Keller-Raspi2.fritz.box [192.168.xxx.yyy] mit 32 Bytes Daten:

                            Antwort von 192.168.xxx.yyy: Bytes=32 Zeit<1ms TTL=64

                            Antwort von 192.168.xxx.yyy: Bytes=32 Zeit<1ms TTL=64

                            Antwort von 192.168.xxx.yyy: Bytes=32 Zeit<1ms TTL=64

                            Antwort von 192.168.xxx.yyy: Bytes=32 Zeit=1ms TTL=64

                            Ping-Statistik für 192.168.xxx.yyy:

                            Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0

                            (0% Verlust),

                            Ca. Zeitangaben in Millisek.:

                            Minimum = 0ms, Maximum = 1ms, Mittelwert = 0ms

                            1 Reply Last reply Reply Quote 0
                            • wendy2702
                              wendy2702 last edited by

                              Danke.

                              Scheinbar liegt es am Hostnamen.

                              NOK –> iobroker_garage_gross

                              OK --> iobroker-garage-gross

                              Habe das wieder über "raspi-config" geändert allerdings klappt das jetzt nicht mehr:

                              pi@iobroker-garage-gross:/opt/iobroker $ sudo iobroker stop
                              Stopping iobroker controller daemon...
                              iobroker controller daemon stopped.
                              Exit code for "killall.sh": 0
                              pi@iobroker-garage-gross:/opt/iobroker $ sudo iobroker host this
                              Cannot execute changes on running system. Stop iobroker first.
                              

                              Hat dazu noch jemand eine Idee?

                              1 Reply Last reply Reply Quote 0
                              • apollon77
                                apollon77 last edited by

                                Laufen wirklich keine ioBroker bzw Node Prozesse mehr?

                                1 Reply Last reply Reply Quote 0
                                • wendy2702
                                  wendy2702 last edited by

                                  Hm,

                                  wenn ich nichts übersehen habe…

                                  ! ````
                                  pi@iobroker-garage-gross:/opt/iobroker $ ps -ef |grep io
                                  root 9 2 0 17:43 ? 00:00:00 [migration/0]
                                  root 13 2 0 17:43 ? 00:00:00 [migration/1]
                                  root 18 2 0 17:43 ? 00:00:00 [migration/2]
                                  root 23 2 0 17:43 ? 00:00:00 [migration/3]
                                  root 34 2 0 17:43 ? 00:00:00 [bioset]
                                  root 38 2 0 17:43 ? 00:00:00 [rpciod]
                                  root 39 2 0 17:43 ? 00:00:00 [xprtiod]
                                  root 42 2 0 17:43 ? 00:00:00 [nfsiod]
                                  root 53 2 0 17:43 ? 00:00:00 [bioset]
                                  root 54 2 0 17:43 ? 00:00:00 [bioset]
                                  root 55 2 0 17:43 ? 00:00:00 [bioset]
                                  root 56 2 0 17:43 ? 00:00:00 [bioset]
                                  root 57 2 0 17:43 ? 00:00:00 [bioset]
                                  root 58 2 0 17:43 ? 00:00:00 [bioset]
                                  root 59 2 0 17:43 ? 00:00:00 [bioset]
                                  root 60 2 0 17:43 ? 00:00:00 [bioset]
                                  root 61 2 0 17:43 ? 00:00:00 [bioset]
                                  root 62 2 0 17:43 ? 00:00:00 [bioset]
                                  root 63 2 0 17:43 ? 00:00:00 [bioset]
                                  root 64 2 0 17:43 ? 00:00:00 [bioset]
                                  root 65 2 0 17:43 ? 00:00:00 [bioset]
                                  root 66 2 0 17:43 ? 00:00:00 [bioset]
                                  root 67 2 0 17:43 ? 00:00:00 [bioset]
                                  root 68 2 0 17:43 ? 00:00:00 [bioset]
                                  root 69 2 0 17:43 ? 00:00:00 [bioset]
                                  root 70 2 0 17:43 ? 00:00:00 [bioset]
                                  root 71 2 0 17:43 ? 00:00:00 [bioset]
                                  root 72 2 0 17:43 ? 00:00:00 [bioset]
                                  root 73 2 0 17:43 ? 00:00:00 [bioset]
                                  root 74 2 0 17:43 ? 00:00:00 [bioset]
                                  root 75 2 0 17:43 ? 00:00:00 [bioset]
                                  root 76 2 0 17:43 ? 00:00:00 [bioset]
                                  root 80 2 0 17:43 ? 00:00:00 [DWC Notificatio]
                                  root 91 2 0 17:43 ? 00:00:00 [bioset]
                                  avahi 440 1 0 17:43 ? 00:00:00 avahi-daemon: running [iobroker-garage-gross.local]
                                  message+ 448 1 0 17:43 ? 00:00:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
                                  pi 1362 868 0 18:08 pts/0 00:00:00 grep --color=auto io
                                  pi@iobroker-garage-gross:/opt/iobroker $

                                  
                                  EDIT: Denke das ist mein Problem: To change any host name (must be only single host system, not for multihosts) write iobroker host this.
                                  
                                  Das ist ja jetzt ein Slave.
                                  
                                  Wie muss ich das denn da machen bzw. mit welchem Befehl oder muss ich alle anderen iobroker installation stoppen?
                                  1 Reply Last reply Reply Quote 0
                                  • wendy2702
                                    wendy2702 last edited by

                                    Habe jetzt den Slave wieder rückgangig gemacht, dann den hostnamen geändert, Slave wieder hinzugefügt…

                                    Läuft erstmal.

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

                                      @wendy2702:

                                      Denke das ist mein Problem: To change any host name (must be only single host system, not for multihosts) write iobroker host this `
                                      Da geht es auch unter angebe des Hostnamens - weiß aber nicht mehr auswendig wie.

                                      Gruß

                                      Rainer

                                      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

                                      844
                                      Online

                                      31.9k
                                      Users

                                      80.3k
                                      Topics

                                      1.3m
                                      Posts

                                      3
                                      17
                                      3252
                                      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