Webinterface nicht erreichbar

Virtualisierte CCU für Raspberry Pi und Clones

Moderator: Co-Administratoren

thormann
Beiträge: 168
Registriert: 31.07.2011, 11:52

Webinterface nicht erreichbar

Beitrag von thormann » 05.08.2018, 10:47

Hallo,

ich habe heute über apt-update auf die letzte Firmware aktualisiert! Das update lief auch durch, jedoch ist seit einem Neustart (sudo reboot) des Raspi das Webinterface nicht mehr erreichbar. Pivccu scheint aber zu laufen:

Code: Alles auswählen

piVCCU version: 2.35.16-35
Kernel modules: Available
Raw UART dev:   Available
HMRF Hardware:  HM-MOD-RPI-PCB
HMIP Hardware:  HM-MOD-RPI-PCB
Board serial:   MEQ1888684
Radio MAC:      0x45fdac
SGTIN:          3014F711A061A7D3C9A639AC
State:          RUNNING
PID:            888
IP:             192.168.1.3
IP:             2001:1238:4b5:f000:15cd:34ef:efa2:f6e4
CPU use:        53.28 seconds
BlkIO use:      45.36 MiB
Memory use:     122.68 MiB
KMem use:       2.49 MiB
Link:           vethpivccu
 TX bytes:      16.98 KiB
 RX bytes:      64.16 KiB
 Total bytes:   81.13 KiB
Ich hatte hier im Forum gelesen, dass es vielleicht an der bridge liegt. Ich habe dann in der lxc.config auf diese Zeile geändert

Code: Alles auswählen

lxc.network.link = br0
Leider ohne Erfolg!

Ich hatte früher mal yahm installiert, aber danach lief pivccu eigentlich sehr gut, bis zu diesem update

Hat jemand noch eine Idee?

Danke

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: Webinterface nicht erreichbar

Beitrag von deimos » 05.08.2018, 12:12

Hi,

welche IP nutzt du? Kannst du die CCU anpingen? Wie sieht deine /etc/network/interfaces aus? Hast du Docker installiert?

Viele Grüße
Alex

thormann
Beiträge: 168
Registriert: 31.07.2011, 11:52

Re: Webinterface nicht erreichbar

Beitrag von thormann » 05.08.2018, 14:26

Hallo Alex,

ping funktioniert! Habe mittlerweile festgestellt, dass auch die Programme ausgeführt werden. Ich komme nur nicht auf das Webif! Auch diverse apps und der iobroker Rega Adapter verbinden sich nicht!

Docker habe ich nicht installiert. Hier meine interfaces

Code: Alles auswählen

source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

auto br0
iface br0 inet dhcp
  bridge_ports eth0
Welche ip meinst Du? Pivccu stand ja in der info (192.168.1.3).

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: Webinterface nicht erreichbar

Beitrag von deimos » 05.08.2018, 16:24

Hi,

der Vollständigkeit halber Frage ich mal: Hast du irgendwann mal mit der Firewall der CCU gespielt gehabt? (Und urgendwas davon triggert jetzt ein möglicherweise geändertes Verhalten)

Dann bitte mal den Pi neu starten und nach ca. 5 Minuten folgende Befehle ausführen und die Ausgabe hier posten:

Code: Alles auswählen

sudo pivccu-attach ping www.heise.de
sudo pivccu-attach cat /var/log/messages
sudo pivccu-attach ps aux
Viele Grüße
Alex

thormann
Beiträge: 168
Registriert: 31.07.2011, 11:52

Re: Webinterface nicht erreichbar

Beitrag von thormann » 05.08.2018, 17:23

Firewall? Nee, sowas mache ich nicht!

Hier die Ausgaben:

Code: Alles auswählen

pi@raspberrypi:~ $ sudo pivccu-attach ping www.heise.de
PING www.heise.de (193.99.144.85): 56 data bytes
64 bytes from 193.99.144.85: seq=0 ttl=247 time=18.951 ms
64 bytes from 193.99.144.85: seq=1 ttl=247 time=18.253 ms
64 bytes from 193.99.144.85: seq=2 ttl=247 time=18.168 ms
64 bytes from 193.99.144.85: seq=3 ttl=247 time=18.313 ms
64 bytes from 193.99.144.85: seq=4 ttl=247 time=18.642 ms
64 bytes from 193.99.144.85: seq=5 ttl=247 time=18.296 ms
64 bytes from 193.99.144.85: seq=6 ttl=247 time=18.520 ms
64 bytes from 193.99.144.85: seq=7 ttl=247 time=18.112 ms
64 bytes from 193.99.144.85: seq=8 ttl=247 time=18.450 ms
64 bytes from 193.99.144.85: seq=9 ttl=247 time=18.155 ms
64 bytes from 193.99.144.85: seq=10 ttl=247 time=18.234 ms
64 bytes from 193.99.144.85: seq=11 ttl=247 time=18.079 ms
64 bytes from 193.99.144.85: seq=12 ttl=247 time=18.213 ms
64 bytes from 193.99.144.85: seq=13 ttl=247 time=18.709 ms
64 bytes from 193.99.144.85: seq=14 ttl=247 time=17.990 ms
^C
--- www.heise.de ping statistics ---
15 packets transmitted, 15 packets received, 0% packet loss
round-trip min/avg/max = 17.990/18.339/18.951 ms
pi@raspberrypi:~ $ sudo pivccu-attach cat /var/log/messages
Aug  5 17:17:42 homematic-ccu2 syslog.info syslogd started: BusyBox v1.20.2
Aug  5 17:17:42 homematic-ccu2 user.notice kernel: klogd started: BusyBox v1.20.2 (2018-07-03 14:19:59 CEST)
Aug  5 15:17:43 homematic-ccu2 daemon.info ifplugd(eth0)[128]: ifplugd 0.28 initializing.
Aug  5 15:17:43 homematic-ccu2 daemon.info ifplugd(eth0)[128]: Using interface eth0/0A:3B:85:B3:F6:E4 with driver <veth> (version: 1.0)
Aug  5 15:17:43 homematic-ccu2 daemon.info ifplugd(eth0)[128]: Using detection mode: SIOCETHTOOL
Aug  5 15:17:43 homematic-ccu2 daemon.info ifplugd(eth0)[128]: Initialization complete, link beat detected.
Aug  5 15:17:43 homematic-ccu2 daemon.warn ifplugd(eth0)[128]: Could not open /dev/tty, cannot beep.
Aug  5 15:17:43 homematic-ccu2 daemon.info ifplugd(eth0)[128]: Executing '/etc/ifplugd/ifplugd.action eth0 up'.
Aug  5 15:17:43 homematic-ccu2 daemon.warn ifplugd(eth0)[128]: client: sysctl: error: 'net.ipv4.tcp_timestamps' is an unknown key
Aug  5 15:17:43 homematic-ccu2 daemon.warn ifplugd(eth0)[128]: client: udhcpc (v1.20.2) started
Aug  5 15:17:43 homematic-ccu2 daemon.warn ifplugd(eth0)[128]: client: Sending discover...
Aug  5 17:17:43 homematic-ccu2 user.debug setclock: Try to get time from ntp.homematic.com
Aug  5 17:17:43 homematic-ccu2 user.debug setclock: Sun Aug 5 17:17:43 CEST 2018
Aug  5 15:17:43 homematic-ccu2 daemon.warn ifplugd(eth0)[128]: client: Sending select for 192.168.1.34...
Aug  5 15:17:44 homematic-ccu2 daemon.warn ifplugd(eth0)[128]: client: Lease of 192.168.1.34 obtained, lease time 864000
Aug  5 15:17:44 homematic-ccu2 daemon.warn ifplugd(eth0)[128]: client: rm: can't remove '/var/etc/resolv.conf': No such file or directory
Aug  5 15:17:44 homematic-ccu2 daemon.warn ifplugd(eth0)[128]: client: udhcpc (v1.20.2) started
Aug  5 15:17:44 homematic-ccu2 daemon.warn ifplugd(eth0)[128]: client: Sending discover...
Aug  5 15:17:44 homematic-ccu2 daemon.warn ifplugd(eth0)[128]: client: Sending select for 192.168.1.34...
Aug  5 15:17:44 homematic-ccu2 daemon.warn ifplugd(eth0)[128]: client: Lease of 192.168.1.34 obtained, lease time 864000
Aug  5 15:17:44 homematic-ccu2 daemon.info ifplugd(eth0)[128]: Program executed successfully.
Aug  5 15:17:49 homematic-ccu2 user.info logger: Updating RF Lan Gateway Coprocessor Firmware
Aug  5 15:17:49 homematic-ccu2 user.debug update-coprocessor: firmware filename is: coprocessor_update_hm_only.eq3
Aug  5 15:17:49 homematic-ccu2 user.info logger: Updating RF Lan Gateway Firmware
Aug  5 15:17:49 homematic-ccu2 user.info update-lgw-firmware: No gateway found in config file /etc/config/rfd.conf
Aug  5 15:17:49 homematic-ccu2 user.info logger: Updating Wired Lan Gateway Firmware
Aug  5 15:17:49 homematic-ccu2 user.info update-lgw-firmware: No gateway found in config file /etc/config/hs485d.conf
Aug  5 15:17:49 homematic-ccu2 user.info logger: Checking if firmware Update is needed for HM-MOD-RPI-PCB
Aug  5 15:17:52 homematic-ccu2 user.info update-coprocessor: Version: 2.8.6
Aug  5 15:17:52 homematic-ccu2 user.info update-coprocessor: No update necessary
Aug  5 17:17:57 homematic-ccu2 user.info kernel: [   39.028031] eq3loop: eq3loop_open_slave() mmd_bidcos
Aug  5 17:18:31 homematic-ccu2 user.info kernel: [   73.159565] eq3loop: eq3loop_open_slave() ttyS0
Aug  5 17:18:31 homematic-ccu2 user.info kernel: [   73.159847] eq3loop: eq3loop_close_slave() ttyS0
Aug  5 17:18:31 homematic-ccu2 user.info kernel: [   73.188960] eq3loop: eq3loop_open_slave() ttyS0
Aug  5 17:18:31 homematic-ccu2 user.notice kernel: [   73.193987] eq3loop: eq3loop_ioctl_slave() ttyS0: unhandled ioctl 0x5459
Aug  5 17:18:31 homematic-ccu2 user.notice kernel: [   73.194010] eq3loop: eq3loop_ioctl_slave() ttyS0: unhandled ioctl 0x545D
Aug  5 17:18:43 homematic-ccu2 user.debug setclock: Try to get time from ntp.homematic.com
Aug  5 17:18:44 homematic-ccu2 user.debug setclock: Sun Aug 5 17:18:44 CEST 2018
Aug  5 17:18:58 homematic-ccu2 local0.err ReGaHss: Error: XmlRpc: Error in XmlRpcClient::writeRequest: write error (error 111). [iseXmlRpc.h:281]
Aug  5 17:18:58 homematic-ccu2 local0.err ReGaHss: Error: IseXmlRpc::CallXmlrpcMethod: execute failed; method =init Params = {"xmlrpc_bin://127.0.0.1:1999","1008"} result= nil [iseXmlRpc.cpp:2599]
Aug  5 17:18:58 homematic-ccu2 local0.err ReGaHss: Error: IseXmlRpc::CallInit: CallXmlrpcMethod failed [iseXmlRpc.cpp:1204]
Aug  5 17:18:58 homematic-ccu2 local0.err ReGaHss: Error: XmlRpcClientThread::ThreadFunction(): failed call init for interface=BidCos-Wired [iseRTHss.cpp:163]
Aug  5 17:18:58 homematic-ccu2 local0.err ReGaHss: Error: XmlRpc: Error in XmlRpcClient::writeRequest: write error (error 111). [iseXmlRpc.h:281]
Aug  5 17:18:58 homematic-ccu2 local0.err ReGaHss: Error: IseXmlRpc::CallXmlrpcMethod: execute failed; method =init Params = {"xmlrpc_bin://127.0.0.1:1999","1009"} result= nil [iseXmlRpc.cpp:2599]
Aug  5 17:18:58 homematic-ccu2 local0.err ReGaHss: Error: IseXmlRpc::CallInit: CallXmlrpcMethod failed [iseXmlRpc.cpp:1204]
Aug  5 17:18:58 homematic-ccu2 local0.err ReGaHss: Error: XmlRpcClientThread::ThreadFunction(): failed call init for interface=System [iseRTHss.cpp:163]
pi@raspberrypi:~ $ sudo pivccu-attach ps aux
PID   USER     COMMAND
    1 root     init
   63 root     /usr/sbin/crond
   67 root     /sbin/syslogd -m 0
   69 root     /sbin/klogd
  128 root     /usr/sbin/ifplugd -i eth0 -fI -u0 -d10
  206 root     udhcpc -x hostname Homematic-CCU2 -V eQ3-CCU2 -b -s /bin/dhcp.sc
  209 root     /bin/eq3configd
  210 root     /bin/ssdpd
  255 root     /bin/multimacd -f /etc/config/multimacd.conf -l 5
  279 root     /bin/rfd -f /etc/config/rfd.conf -l 5
  300 root     java -Xmx64m -Dlog4j.configuration=file:///etc/config/log4j.xml 
  379 root     ntpclient -h ntp.homematic.com -l
  400 root     /bin/ReGaHss.normal -f /etc/rega.conf -l 2
  444 root     ps aux

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: Webinterface nicht erreichbar

Beitrag von deimos » 05.08.2018, 18:12

Ok, der Webserver ist nicht gestartet. Im Log steht jetzt nichts dazu drin, wie es dazu kam, da müssen wir jetzt etwas weiter forschen, ich habe aber grade nur das Handy zur Hand, melde mich später nochmal.

Viele Grüße
Alex

thormann
Beiträge: 168
Registriert: 31.07.2011, 11:52

Re: Webinterface nicht erreichbar

Beitrag von thormann » 05.08.2018, 18:22

Ah O.K.!

Wie gesagt, ich habe nur das update gemacht und vorher lief alles!

Dann bis später...

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: Webinterface nicht erreichbar

Beitrag von deimos » 05.08.2018, 19:16

Hi,

bitte mal Folgendes:

Code: Alles auswählen

sudo pivccu-attach /etc/init.d/S50lighttpd stop
sudo pivccu-attach /etc/init.d/S50lighttpd start
Viele Grüße
Alex

thormann
Beiträge: 168
Registriert: 31.07.2011, 11:52

Re: Webinterface nicht erreichbar

Beitrag von thormann » 06.08.2018, 09:52

Dann kommt folgendes beim Start:

Code: Alles auswählen

pi@raspberrypi:~ $ sudo pivccu-attach /etc/init.d/S50lighttpd start
Starting lighttpd: Segmentation fault
OK
Starting lighttpd with SSL support: Segmentation fault
OK

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: Webinterface nicht erreichbar

Beitrag von deimos » 06.08.2018, 10:02

Hi,

Ok, das ist wirklich Strange. Segmentation Fault bedeutet, dass versucht wird, auf eine Resource (primär mal RAM) zuzugreifen, auf welche nicht zugegriffen werden darf. Da der Webserver innerhalb des Containers als Root läuft, gibt es überschaubar wenige Gründe, wie es zu sowas kommt. Die wahrscheinlichsten sind entweder ein defekter Arbeitsspeicher (wogegen aber die Reproduzierbarkeit ausgerechtet mit dem Webserver spricht, das würde dann alles mögliche betreffen) oder ein defektes Binary.

Daher idealerweise die Binaries von piVCCU einmal neu installieren:

Code: Alles auswählen

sudo apt install --reinstall pivccu
Sinnvoll wäre auf jeden Fall auch ein Test der SD Karte auf Defekte.

Viele Grüße
Alex

Antworten

Zurück zu „piVCCU“