Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Socket hang up

    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

    Socket hang up

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

      2015-11-10 17:10:49.392  - error: hm-rega.0 post request error: socket hang up
      2015-11-10 19:45:21.718  - error: hm-rega.0 post request error: socket hang up
      

      Nach dieser Meldung wird die ccu2 sehr langsam

      Ein Restart des rega-Adapters (über das Webfrontend) behebt das Problem

      sofort wieder.

      Was kann da falsch laufen?

      Kann das etwas mit der Meldung:

      2015-11-10 21:07:18.528  - error: hm-rega.0 Cannot parse answer for datapoints: {"BidCos-RF.LEQ0475295:0.UNREACH":false,^M
      "BidCos-RF.LEQ0475295:0.STICKY_UNREACH":false,^M
      "BidCos-RF.LEQ0475295:0.CONFIG_PENDING":false,^M
      

      zu tun haben?

      Danach kommen übrigens alle meine Geräte.

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

        Anbei ein Skript, welches wenigstens hilft bei hängern von den Adaptern diese neu zu starten:

        (habe ich in /opt liegen, ggf. anpassen)

        #!/bin/bash
        logfile=/opt/test-hang.log
        
        cd /opt/iobroker/log
        
        more `ls -t | head -1` | grep "hang up" | wc -l > /opt/counthang.akt  
        read akt < /opt/counthang.akt
        cd /opt
        
        if [ $(ls -1 /opt | grep -c counthang.old) = 0 ];
        then 
          echo "$(date) Keine alte Datei, Akt: $akt: " >> $logfile
          cp /opt/counthang.akt /opt/counthang.old  
          exit 0
        fi
        read old < /opt/counthang.old
        
        # echo "Alt: $old = Neu: $akt"
        cp /opt/counthang.akt /opt/counthang.old
        
        if [ $akt -gt $old ];
        then
          echo "Aktion!"  >> $logfile
          echo "$(date) $akt > $old" >> $logfile
          iobroker restart hm-rega.0 >> $logfile
          iobroker restart hm-rpc.0 >> $logfile
          iobroker restart hm-rpc.1 >> $logfile
        else
          touch $logfile
        fi
        
        

        in /etc/crontab folgende Zeile ergänzen:

        */5 *   * * *   root    /opt/test-hang.sh >> /opt/test-hang.log
        

        Es wird die Anzahl der Socket Hanger im log gezählt, sollte diese Steigen, werden die Adapter neu gestartet.

        Ale Vergleichswert wird immer die letzte Zählung genommen.

        Zum Testen einfach in die Datei counthang.old eine -1 schreiben.

        Beispiel aus der Logdatei:

        Mit Nov 11 02:40:03 CET 2015 2 > 0
        Adapter "hm-rega.0 restarted.
        Adapter "hm-rpc.0 restarted.
        Aktion!
        Mit Nov 11 04:40:02 CET 2015 3 > 2
        Adapter "hm-rega.0 restarted.
        Adapter "hm-rpc.0 restarted.
        Aktion!
        Mit Nov 11 05:17:05 CET 2015 4 > 3
        Adapter "hm-rega.0 restarted.
        Adapter "hm-rpc.0 restarted.
        Aktion!
        Mit Nov 11 07:10:05 CET 2015 5 > 4
        Adapter "hm-rega.0 restarted.
        Adapter "hm-rpc.0 restarted.
        Adapter "hm-rpc.1 restarted.
        Aktion!
        Mit Nov 11 16:10:02 CET 2015 6 > 5
        Adapter "hm-rega.0 restarted.
        Adapter "hm-rpc.0 restarted.
        
        1 Reply Last reply Reply Quote 0
        • sissiwup
          sissiwup last edited by

          Gibt es jemanden, der ähnliche Probleme hat?

          Oder liegt es daran, das der PI zu langsam wird

          (Habe nur iobroker laufen)

          1 Reply Last reply Reply Quote 0
          • I
            iben last edited by

            Nein, läuft ohne Probleme bei mir. ccu2 und reichlich Aktoren.

            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

            693
            Online

            31.9k
            Users

            80.2k
            Topics

            1.3m
            Posts

            2
            4
            2218
            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