Probleme mit SSH bei Pi 2

Heute ist Stammtischzeit:
Jeden Donnerstag 20:30 Uhr hier im Chat.
Wer Lust hat, kann sich gerne beteiligen. ;)
  • Hallo Leute, ich habe mir vor nicht allzu langer Zeit einen Pi 2 gegönnt, mit dem ich eigentlich sehr zu frieden bin. Nun kommts, ich habe auf den Pi das LXCCU installiert was soweit ganz gut läuft ich habe nur ein Problem bei der ganzen Sache. Im Gegensatz zum alten Pi habe ich immer wieder probleme im 24/7 Betrieb das er irgendwann nicht mehr zu erreichen ist, weder SSH oder die Oberfläche vom LXCCU. Da habe ich mal hingesetzt und die sys.log Datei genau unter die Lupe genommen und eine Unregelmäßigkeit entdeckt. Hier ist mal ein kleiner Auszug meiner sys.log:

    Jul 6 20:17:22 raspberrypi dhcpcd[2149]: eth0: using IPv4LL address 169.254.130.103
    Jul 6 20:17:22 raspberrypi avahi-daemon[2496]: Registering new address record for 169.254.130.103 on eth0.IPv4.

    Jul 6 20:17:22 raspberrypi dhcpcd[2149]: eth0: adding route to 169.254.0.0/16
    Jul 6 20:17:23 raspberrypi kernel: [ 27.878163] lxccubr0: port 1(eth0) entered forwarding state
    Jul 6 20:17:23 raspberrypi dhcpcd[2149]: lxccubr0: no IPv6 Routers available
    Jul 6 20:17:25 raspberrypi dhcpcd[2149]: vethTPNJG2: probing for an IPv4LL address
    Jul 6 20:17:30 raspberrypi dhcpcd[2149]: vethTPNJG2: using IPv4LL address 169.254.61.208
    Jul 6 20:17:30 raspberrypi avahi-daemon[2496]: Joining mDNS multicast group on interface vethTPNJG2.IPv4 with address 169.254.61.208.
    Jul 6 20:17:30 raspberrypi avahi-daemon[2496]: New relevant interface vethTPNJG2.IPv4 for mDNS.
    Jul 6 20:17:30 raspberrypi dhcpcd[2149]: vethTPNJG2: adding route to 169.254.0.0/16
    Jul 6 20:17:30 raspberrypi avahi-daemon[2496]: Registering new address record for 169.254.61.208 on vethTPNJG2.IPv4.
    Jul 6 20:17:33 raspberrypi dhcpcd[2149]: vethTPNJG2: no IPv6 Routers available
    Jul 6 20:17:34 raspberrypi kernel: [ 38.478184] lxccubr0: port 2(vethTPNJG2) entered forwarding state
    Jul 6 20:17:39 raspberrypi ntpd[2505]: Deferring DNS for 0.debian.pool.ntp.org 1
    Jul 6 20:17:59 raspberrypi ntpd[2505]: Deferring DNS for 1.debian.pool.ntp.org 1
    Jul 6 20:18:19 raspberrypi ntpd[2505]: Deferring DNS for 2.debian.pool.ntp.org 1
    Jul 6 22:13:54 raspberrypi ntpd[2505]: Deferring DNS for 3.debian.pool.ntp.org 1
    Jul 6 22:13:54 raspberrypi ntpd[3270]: signal_no_reset: signal 17 had flags 4000000
    Jul 6 22:13:56 raspberrypi ntpd[2505]: Listen normally on 7 eth0 169.254.130.103 UDP 123
    Jul 6 22:13:56 raspberrypi ntpd[2505]: Listen normally on 8 vethTPNJG2 169.254.61.208 UDP 123
    Jul 6 22:13:56 raspberrypi ntpd[2505]: Listen normally on 9 vethTPNJG2 fe80::2d70:6ab:99e4:3fc3 UDP 123
    Jul 6 22:13:56 raspberrypi ntpd[2505]: peers refreshed
    Jul 6 22:14:16 raspberrypi ntpd_intres[3270]: host name not found: 0.debian.pool.ntp.org
    Jul 6 22:14:36 raspberrypi ntpd_intres[3270]: host name not found: 1.debian.pool.ntp.org
    Jul 6 22:14:56 raspberrypi ntpd_intres[3270]: host name not found: 2.debian.pool.ntp.org
    Jul 6 22:15:16 raspberrypi ntpd_intres[3270]: host name not found: 3.debian.pool.ntp.org
    Jul 6 22:15:38 raspberrypi ntpd_intres[3270]: host name not found: 0.debian.pool.ntp.org
    Jul 6 22:15:58 raspberrypi ntpd_intres[3270]: host name not found: 1.debian.pool.ntp.org
    Jul 6 22:16:18 raspberrypi ntpd_intres[3270]: host name not found: 2.debian.pool.ntp.org
    Jul 6 22:16:38 raspberrypi ntpd_intres[3270]: host name not found: 3.debian.pool.ntp.org
    Jul 6 22:17:01 raspberrypi /USR/SBIN/CRON[3337]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
    Jul 6 22:19:00 raspberrypi ntpd_intres[3270]: host name not found: 0.debian.pool.ntp.org
    Jul 6 22:19:20 raspberrypi ntpd_intres[3270]: host name not found: 1.debian.pool.ntp.org
    Jul 6 22:19:40 raspberrypi ntpd_intres[3270]: host name not found: 2.debian.pool.ntp.org
    Jul 6 22:20:00 raspberrypi ntpd_intres[3270]: host name not found: 3.debian.pool.ntp.org
    Jul 6 22:24:22 raspberrypi ntpd_intres[3270]: host name not found: 0.debian.pool.ntp.org
    Jul 6 22:24:42 raspberrypi ntpd_intres[3270]: host name not found: 1.debian.pool.ntp.org
    Jul 6 22:25:02 raspberrypi ntpd_intres[3270]: host name not found: 2.debian.pool.ntp.org
    Jul 6 22:25:22 raspberrypi ntpd_intres[3270]: host name not found: 3.debian.pool.ntp.org
    Jul 6 22:33:45 raspberrypi ntpd_intres[3270]: host name not found: 0.debian.pool.ntp.org
    Jul 6 22:34:05 raspberrypi ntpd_intres[3270]: host name not found: 1.debian.pool.ntp.org
    Jul 6 22:34:25 raspberrypi ntpd_intres[3270]: host name not found: 2.debian.pool.ntp.org
    Jul 6 22:34:45 raspberrypi ntpd_intres[3270]: host name not found: 3.debian.pool.ntp.org
    Jul 6 22:51:08 raspberrypi ntpd_intres[3270]: host name not found: 0.debian.pool.ntp.org
    Jul 6 22:51:28 raspberrypi ntpd_intres[3270]: host name not found: 1.debian.pool.ntp.org
    Jul 6 22:51:48 raspberrypi ntpd_intres[3270]: host name not found: 2.debian.pool.ntp.org
    Jul 6 22:52:08 raspberrypi ntpd_intres[3270]: host name not found: 3.debian.pool.ntp.org
    Jul 6 23:08:30 raspberrypi ntpd_intres[3270]: host name not found: 0.debian.pool.ntp.org
    Jul 6 23:08:51 raspberrypi ntpd_intres[3270]: host name not found: 1.debian.pool.ntp.org
    Jul 6 23:09:11 raspberrypi ntpd_intres[3270]: host name not found: 2.debian.pool.ntp.org
    Jul 6 23:09:31 raspberrypi ntpd_intres[3270]: host name not found: 3.debian.pool.ntp.org
    Jul 6 23:17:01 raspberrypi /USR/SBIN/CRON[3381]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
    Jul 6 23:25:53 raspberrypi ntpd_intres[3270]: host name not found: 0.debian.pool.ntp.org
    Jul 6 23:26:13 raspberrypi ntpd_intres[3270]: host name not found: 1.debian.pool.ntp.org
    Jul 6 23:26:33 raspberrypi ntpd_intres[3270]: host name not found: 2.debian.pool.ntp.org
    Jul 6 23:26:54 raspberrypi ntpd_intres[3270]: host name not found: 3.debian.pool.ntp.org
    Jul 6 23:43:16 raspberrypi ntpd_intres[3270]: host name not found: 0.debian.pool.ntp.org
    Jul 6 23:43:36 raspberrypi ntpd_intres[3270]: host name not found: 1.debian.pool.ntp.org
    Jul 6 23:43:56 raspberrypi ntpd_intres[3270]: host name not found: 2.debian.pool.ntp.org
    Jul 6 23:44:16 raspberrypi ntpd_intres[3270]: host name not found: 3.debian.pool.ntp.org
    Jul 7 00:00:39 raspberrypi ntpd_intres[3270]: host name not found: 0.debian.pool.ntp.org
    Jul 7 00:00:59 raspberrypi ntpd_intres[3270]: host name not found: 1.debian.pool.ntp.org
    Jul 7 00:01:19 raspberrypi ntpd_intres[3270]: host name not found: 2.debian.pool.ntp.org
    Jul 7 00:01:39 raspberrypi ntpd_intres[3270]: host name not found: 3.debian.pool.ntp.org
    Jul 7 00:17:01 raspberrypi /USR/SBIN/CRON[3436]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)

    Am Anfang ist noch der Bootvorgang zu sehen und dann kommt immer der gleiche Fehler rot Markiert. Ich denke das ist das Problem weil immer wenn das kommt ist er nicht mehr zu Erreichen, und das war beim Pi vorgänger nicht der Fall. Vielleicht könnt ihr da helfen.


    LG Micha

  • Hallo Micha,

    für mich sieht ds nach "Mysterium" aus. Suche mal in diesem Forum nach diesem Stichwort.

    Dazu zwei Fragen:
    1. Mit welchem Netzteil betreibst Du Deinen Raspberry Pi (Hersteller, Modell, technische Daten)
    2. Welche Peripherie betreibst Du mit Deinem Raspberry Pi? Was hängt alles an den USB-Buchsen (Tastatur, Maus, USB-Stick, WLAN-Stick, sonstiges...), HDMI, LAN, GPIO-Experimente, ...)?

    Beste Grüße

    Andreas

    Ich bin wirklich nicht darauf aus, Microsoft zu zerstören. Das wird nur ein völlig unbeabsichtigter Nebeneffekt sein.
    Linus Torvalds - "Vater" von Linux

    Linux is like a wigwam, no windows, no gates, but with an apache inside dancing samba, very hungry eating a yacc, a gnu and a bison.

    Einmal editiert, zuletzt von Andreas (7. Juli 2015 um 09:36)


  • Hallo Micha,

    für mich sieht ds nach "Mysterium" aus. Suche mal in diesem Forum nach diesem Stichwort.

    Dazu zwei Fragen:
    1. Mit welchem Netzteil betreibst Du Deinem Raspberry Pi (Hersteller, Modell, technische Daten)
    2. Welche Peripherie betreibst Du mit Deinem Raspberry Pi? Was hängt alles an den USB-Buchsen (Tastatur, Maus, USB-Stick, WLAN-Stick, sonstiges...), HDMI, LAN, GPIO-Experimente, ...)?

    Beste Grüße

    Andreas

    Hallo Andreas,

    zu 1. ich habe das Set gekauft http://www.amazon.de/Starter-Set-Raspberry-Netzteil-schwarzes/dp/B00T34RVR4/ref=sr_1_4?ie=UTF8&qid=1436251199&sr=8-4&keywords=raspberry+pi+2&tag=psblog-21 [Anzeige]

    zu 2. Ich habe nichts dran außer das Netzwerkkabel und die Spannungsversorgung da es ja bei mir nur für das Smarthome da ist mit LXCCU

    LG Micha

  • ping doch mal die Adresse die er nicht findet, klappt das? ich kann die pingen, wenn du das mit dem Pi nicht kannst, dann hast du ein Problem mit deinem DNS-Server. ob das der Grund für die Erreichbarkeitsprobleme ist, weiß ich aber nicht. Das ist jedoch die Fehlermeldung.


  • Ich denke das ist das Problem weil immer wenn das kommt ist er nicht mehr zu Erreichen, und das war beim Pi vorgänger nicht der Fall.

    Ich denke, das ist nur eine Folge des Problems.

    Evtl. ist dein PI/(W)LAN noch nicht optimal konfiguriert. Versuch mal ohne Link-Local-Adressen (169.254.0.0/16) und ohne IPv6 bzw. ohne avahi (wenn diese nicht benötigt werden).

    The most popular websites without IPv6 in Germany.  IPv6-Ausreden

    Meine PIs

    PI4B/8GB (border device) OpenBSD 7.4 (64bit): SSH-Server, WireGuard-Server, ircd-hybrid-Server, stunnel-Proxy, Mumble-Server

    PI3B+ FreeBSD 14.0-R-p3 (arm64): SSH-Serv., WireGuard-Serv., ircd-hybrid-Serv., stunnel-Proxy, Mumble-Serv., ddclient

    PI4B/4GB Bullseye-lite (64bit; modifiziert): SSH-Server, WireGuard-Server, ircd-hybrid-Server, stunnel-Proxy, Mumble-Server, botamusique, ample

  • Ich denke, das ist nur eine Folge des Problems.

    Evtl. ist dein PI/(W)LAN noch nicht optimal konfiguriert. Versuch mal ohne Link-Local-Adressen (169.254.0.0/16) und ohne IPv6 bzw. ohne avahi (wenn diese nicht benötigt werden).

    Wie mache ich das genau?

    LG Micha

  • Die Link-Local-Adresse zeigt doch hier ganz eindeutig, dass dem Interface eth0 vom DHCP keine IP-Adresse zugeordnet wird.
    Folgendes Vorgehen zur Problemlösung:
    - Monitor und Tastatur anschließen
    - wenn das Problem auftritt, lokal anmelden und die Ausgabe von "dmesg", "ifconfig" und das komplette syslog des Zeitraums von Boot bis aktuell hier posten. Bitte mit code-tag!


  • Die Link-Local-Adresse zeigt doch hier ganz eindeutig, dass dem Interface eth0 vom DHCP keine IP-Adresse zugeordnet wird.
    Folgendes Vorgehen zur Problemlösung:
    - Monitor und Tastatur anschließen
    - wenn das Problem auftritt, lokal anmelden und die Ausgabe von "dmesg", "ifconfig" und das komplette syslog des Zeitraums von Boot bis aktuell hier posten. Bitte mit code-tag!

    Kann schlecht sein da ich eine Statische IP benutze.

    LG Micha


  • Kann schlecht sein da ich eine Statische IP benutze.

    Wie sind auf deinem PI, die Ausgaben von:

    Code
    ifconfig -a
    route -n
    arp -av
    cat /etc/network/interfaces
    sudo cat /var/log/syslog | grep -iE 'eth|wlan'


    ?

    The most popular websites without IPv6 in Germany.  IPv6-Ausreden

    Meine PIs

    PI4B/8GB (border device) OpenBSD 7.4 (64bit): SSH-Server, WireGuard-Server, ircd-hybrid-Server, stunnel-Proxy, Mumble-Server

    PI3B+ FreeBSD 14.0-R-p3 (arm64): SSH-Serv., WireGuard-Serv., ircd-hybrid-Serv., stunnel-Proxy, Mumble-Serv., ddclient

    PI4B/4GB Bullseye-lite (64bit; modifiziert): SSH-Server, WireGuard-Server, ircd-hybrid-Server, stunnel-Proxy, Mumble-Server, botamusique, ample

  • Wie sind auf deinem PI, die Ausgaben von:

    Code
    ifconfig -a
    route -n
    arp -av
    cat /etc/network/interfaces
    sudo cat /var/log/syslog | grep -iE 'eth|wlan'


    ?

    ifconfig -a:

    route -n

    Code
    Kernel-IP-Routentabelle
    Ziel            Router          Genmask         Flags Metric Ref    Use Iface
    0.0.0.0         192.168.178.1   0.0.0.0         UG    0      0        0 lxccubr0
    0.0.0.0         192.168.178.1   0.0.0.0         UG    203    0        0 lxccubr0
    169.254.0.0     0.0.0.0         255.255.0.0     U     202    0        0 eth0
    169.254.0.0     0.0.0.0         255.255.0.0     U     205    0        0 veth1N1PZO
    192.168.178.0   0.0.0.0         255.255.255.0   U     203    0        0 lxccubr0

    arp -avc

    Code
    fritz.box (192.168.xxx.x) auf 34:81:c4:fe:3d:7a [ether] auf lxccubr0
    android-2f65696e7b35da9a.fritz.box (192.168.178.21) auf 20:d3:90:dd:4c:66 [ether] auf lxccubr0
    android-48e862ca1a255327.fritz.box (192.168.178.20) auf 08:3d:88:7b:6d:73 [ether] auf lxccubr0
    homematic-ccu2.fritz.box (192.168.xxx.xx) auf 4a:49:43:49:79:50 [ether] auf lxccubr0
    Einträge: 4   Ignoriert: 0   Gefunden: 4

    cat /etc/network/interfaces

    sudo cat /var/log/syslog | grep -iE 'eth|wlan'

    Code
    Da kommt nichts bzw. wird nichts Angezeigt.

  • ifconfig -a:

    Code
    eth0      Link encap:Ethernet  Hardware Adresse b8:27:eb:9c:41:9f
              inet Adresse:xxx.xxx.xxx.xxx  Bcast:xxx.xxx.xxx.xxx Maske:255.255.0.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
              RX packets:83955 errors:0 dropped:0 overruns:0 frame:0
              TX packets:56912 errors:0 dropped:0 overruns:0 carrier:0
              Kollisionen:0 Sendewarteschlangenlänge:1000
              RX bytes:10204283 (9.7 MiB)  TX bytes:6998553 (6.6 MiB)

    route -n

    Code
    Kernel-IP-Routentabelle
    Ziel            Router          Genmask         Flags Metric Ref    Use Iface
    169.254.0.0     0.0.0.0         255.255.0.0     U     202    0        0 eth0

    cat /etc/network/interfaces

    Code
    auto eth0
    allow-hotplug eth0
    #iface eth0 inet static
    iface eth0 inet static
            address 192.168.178.xxx
            netmask 255.255.255.0
            gateway 192.168.xxx.x

    BTW: Warum hast Du manche IP-Adressen & Co., auf diese Art und Weise anonymisiert?

    The most popular websites without IPv6 in Germany.  IPv6-Ausreden

    Meine PIs

    PI4B/8GB (border device) OpenBSD 7.4 (64bit): SSH-Server, WireGuard-Server, ircd-hybrid-Server, stunnel-Proxy, Mumble-Server

    PI3B+ FreeBSD 14.0-R-p3 (arm64): SSH-Serv., WireGuard-Serv., ircd-hybrid-Serv., stunnel-Proxy, Mumble-Serv., ddclient

    PI4B/4GB Bullseye-lite (64bit; modifiziert): SSH-Server, WireGuard-Server, ircd-hybrid-Server, stunnel-Proxy, Mumble-Server, botamusique, ample


  • Ich tippe, wie Andreas, auf Probleme mit der Stromversorgung. Unabhängig davon, ob es zum dazugehörigen Starterpaket dazugehört, probiere ein anderes aus.

    Außerdem ist da noch ein anderes Problem mit der IP-Konfiguration. Aber das ist aus Deinen Angaben nicht ersichtlich.

    Was kommt bei

    Code
    sudo service dhcpcd status

    Da kommt:

    Code
    [ ok ] dhcpcd is running.
  • Da kommt:

    Code
    [ ok ] dhcpcd is running.

    Aja. Ich habs geahnt.

    Ich gehe davon aus, dass Du Deine Netzwerk-Konfiguration in der Datei /etc/network/interfaces machen willst. Wenn ja, dann musst Du den dhcpcd abschalten.

    Code
    sudo update-rc.d dhcpcd disable

    Ein eventuelles Problem mit der Stromversorgung ist dann aber noch nicht gelöst. Das solltest Du prüfen.

  • Aja. Ich habs geahnt.

    Ich gehe davon aus, dass Du Deine Netzwerk-Konfiguration in der Datei /etc/network/interfaces machen willst. Wenn ja, dann musst Du den dhcpcd abschalten.

    Code
    sudo update-rc.d dhcpcd disable

    Ein eventuelles Problem mit der Stromversorgung ist dann aber noch nicht gelöst. Das solltest Du prüfen.

    Das scheint nicht zu funktionieren da kommt immer:

    Code
    update-rc.d: using dependency based boot sequencing
    insserv: warning: current start runlevel(s) (empty) of script `dhcpcd' overrides LSB defaults (2 3 4 5).
    insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `dhcpcd' overrides LSB defaults (0 1 6).
    insserv: warning: script 'netrestart' missing LSB tags and overrides
    insserv: There is a loop between service watchdog and netrestart if stopped
    insserv:  loop involving service netrestart at depth 2
    insserv:  loop involving service watchdog at depth 1
    insserv: Stopping netrestart depends on watchdog and therefore on system facility `$all' which can not be true!
    insserv: exiting now without changing boot order!
    update-rc.d: error: insserv rejected the script header

  • Das scheint nicht zu funktionieren da kommt immer:

    Code
    update-rc.d: using dependency based boot sequencing
    insserv: warning: current start runlevel(s) (empty) of script `dhcpcd' overrides LSB defaults (2 3 4 5).
    insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `dhcpcd' overrides LSB defaults (0 1 6).
    insserv: warning: script 'netrestart' missing LSB tags and overrides
    insserv: There is a loop between service watchdog and netrestart if stopped
    insserv:  loop involving service netrestart at depth 2
    insserv:  loop involving service watchdog at depth 1
    insserv: Stopping netrestart depends on watchdog and therefore on system facility `$all' which can not be true!
    insserv: exiting now without changing boot order!
    update-rc.d: error: insserv rejected the script header

    Jo, sieht doch ziemlich eindeutig aus: Netrestart und watchdog bilden ein loop und das wird durch update-rc.d bemerkt und vermutlich beide skripte ignoriert. Und wenn netrestart zufälligerweise etwas mit dem Netzwerk zu tun hat, dann könnte das essig werden.
    In welchem der beiden Skripte steht den das $all im header? /etc/init.d/netrestart oder /etc/init.d/watchdog ? Oder in beiden?

    --
    man ist das System-Anzeigeprogramm für die Handbuchseiten von Linux.

  • Aja. Ich habs geahnt.

    Ich gehe davon aus, dass Du Deine Netzwerk-Konfiguration in der Datei /etc/network/interfaces machen willst. Wenn ja, dann musst Du den dhcpcd abschalten.

    Code
    sudo update-rc.d dhcpcd disable

    Ich muss mich gerade noch mal korrigieren. Das wäre besser.

    Code
    sudo update-rc.d -f dhcpcd remove

    Danach sollte man einen Reboot machen, um zu sehen, ob der DHCPCD außer Betrieb bleibt.

Jetzt mitmachen!

Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!