pivccu läuft nach fhem Installation nicht mehr

Virtualisierte CCU für Raspberry Pi und Clones

Moderator: Co-Administratoren

a_quadrat
Beiträge: 18
Registriert: 14.11.2019, 19:54
Danksagung erhalten: 2 Mal

pivccu läuft nach fhem Installation nicht mehr

Beitrag von a_quadrat » 11.02.2022, 11:31

Hallo zusammen,

ich bin von raspberrymatic auf pivccu umgestiegen, um auch eine fhem Instanz auf dem pi laufen zu haben. Die Installation hat auch alles wunderbar funktioniert, bis ich den pi nach der fhem Installation rebootet habe. Danach konnte ich Homematic nicht mehr erreichen.
Anbei der Auszug von pivccu-info:

Code: Alles auswählen

root@raspberrypi:~# sudo pivccu-info
piVCCU version: 3.61.7-68
Kernel modules: Available
Failed to load config for lxc
Failure to retrieve information on /var/lib/piVCCU3:lxc
Raw UART dev:   Available
HMRF Hardware:  HM-MOD-RPI-PCB
 Connected via: GPIO (/dev/raw-uart)
 Board serial:  PEQ2214193
 Radio MAC:     0x6BD4FD
HMIP Hardware:  HM-MOD-RPI-PCB
 Connected via: GPIO (/dev/raw-uart)
 SGTIN:         3014F711A061A7D8A9AB3131
 Radio MAC:     0xB4475D
Failed to load config for lxc
Failure to retrieve information on /var/lib/piVCCU3:lxc
Die config kann scheinbar nicht mehr geladen werden. Hat jemand eine Idee, wo das Problem liegt?
Wahrscheinlich vorm Rechner. :lol:

VG Andreas

raimundl
Beiträge: 46
Registriert: 22.09.2018, 15:49
Hat sich bedankt: 1 Mal

Re: pivccu läuft nach fhem Installation nicht mehr

Beitrag von raimundl » 11.02.2022, 11:36

Eine eher laienhafte Antwort:

Ich habe diese Konfig und muss nach reboot einige Minuten später nochmals fhem mit shutdown/restart machen. Der Server von Homematic braucht etwas länger als fhem.
System "Charly" mit RPi3+/RPI-RF-MOD und ca. 40 HM/2 HMIP auf piVCCU3 mit fhem

a_quadrat
Beiträge: 18
Registriert: 14.11.2019, 19:54
Danksagung erhalten: 2 Mal

Re: pivccu läuft nach fhem Installation nicht mehr

Beitrag von a_quadrat » 11.02.2022, 12:36

fhem ist nicht das Problem, ich kann die CCU nicht mehr erreichen.

VG Andreas


a_quadrat
Beiträge: 18
Registriert: 14.11.2019, 19:54
Danksagung erhalten: 2 Mal

Re: pivccu läuft nach fhem Installation nicht mehr

Beitrag von a_quadrat » 11.02.2022, 13:30

Hi,

wie meinst du das? Ich habe den Raspi runtergefahren, kurz vom Strom getrennt und wieder gestartet, aber es gab keine Verbesserung.

VG Andreas

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: pivccu läuft nach fhem Installation nicht mehr

Beitrag von deimos » 11.02.2022, 14:25

Hi,

genau das meinte ich.

Dann bitte mal die Ausgabe von:

Code: Alles auswählen

sudo pivccu-info
systemctl status pivccu
systemctl start pivccu
journalctl -xe
Welche Schritte hast du für die Installation von FHEM durchgeführt?

Viele Grüße
Alex

a_quadrat
Beiträge: 18
Registriert: 14.11.2019, 19:54
Danksagung erhalten: 2 Mal

Re: pivccu läuft nach fhem Installation nicht mehr

Beitrag von a_quadrat » 11.02.2022, 20:05

Ich bin das WE unterwegs, ich kann erst Montag wieder testen. Aber die Installationsschritte waren:

Code: Alles auswählen

sudo apt-get -f install && sudo apt-get -y install perl-base libdevice-serialport-perl libwww-perl libio-socket-ssl-perl libcgi-pm-perl libjson-perl sqlite3 libdbd-sqlite3-perl libtext-diff-perl libtimedate-perl libmail-imapclient-perl libgd-graph-perl libtext-csv-perl libxml-simple-perl liblist-moreutils-perl fonts-liberation2 libimage-librsvg-perl libgd-text-perl libsocket6-perl libio-socket-inet6-perl libmime-base64-perl libimage-info-perl libusb-1.0-0-dev libnet-server-perl
und danach

Code: Alles auswählen

sudo wget http://fhem.de/fhem-6.1.deb && sudo dpkg -i fhem-6.1.deb
Ohne Neustart hat beides funktioniert. Nach dem Neustart nur noch fhem.

VG Andreas

a_quadrat
Beiträge: 18
Registriert: 14.11.2019, 19:54
Danksagung erhalten: 2 Mal

Re: pivccu läuft nach fhem Installation nicht mehr

Beitrag von a_quadrat » 14.02.2022, 08:30

Hallo Alex,

ich habe alle Befehle ausgeführt, mit folgenden Meldungen:

Code: Alles auswählen

root@raspberrypi:~# sudo pivccu-info
piVCCU version: 3.61.7-68
Kernel modules: Available
Failed to load config for lxc
Failure to retrieve information on /var/lib/piVCCU3:lxc
Raw UART dev:   Available
HMRF Hardware:  HM-MOD-RPI-PCB
 Connected via: GPIO (/dev/raw-uart)
 Board serial:  PEQ2214193
 Radio MAC:     0x6BD4FD
HMIP Hardware:  HM-MOD-RPI-PCB
 Connected via: GPIO (/dev/raw-uart)
 SGTIN:         3014F711A061A7D8A9AB3131
 Radio MAC:     0xB4475D
Failed to load config for lxc
Failure to retrieve information on /var/lib/piVCCU3:lxc

Code: Alles auswählen

● pivccu.service - piVCCU
   Loaded: loaded (/lib/systemd/system/pivccu.service; enabled; vendor preset: enabled)
   Active: failed (Result: protocol) since Mon 2022-02-14 08:08:28 CET; 10min ago

Feb 14 08:08:28 raspberrypi start_container.sh[470]: kernel.sched_rt_runtime_us = -1
Feb 14 08:08:28 raspberrypi start_container.sh[470]: lxc-start: lxc: confile.c: parse_line: 2312 Unknown configuration key "lxc.utsname"
Feb 14 08:08:28 raspberrypi start_container.sh[470]: lxc-start: lxc: parse.c: lxc_file_for_each_line_mmap: 142 Failed to parse config file "/var/lib/piVCCU3/lxc/config" at line "lxc.utsname =
Feb 14 08:08:28 raspberrypi start_container.sh[470]: Failed to load config for lxc
Feb 14 08:08:28 raspberrypi start_container.sh[470]: lxc-start: lxc: tools/lxc_start.c: main: 264 Failed to create lxc_container
Feb 14 08:08:28 raspberrypi systemd[1]: pivccu.service: Can't open PID file /run/pivccu3.pid (yet?) after start: No such file or directory
Feb 14 08:08:28 raspberrypi systemd[1]: pivccu.service: Failed with result 'protocol'.
Feb 14 08:08:28 raspberrypi systemd[1]: Failed to start piVCCU.
Feb 14 08:09:54 raspberrypi systemd[1]: /lib/systemd/system/pivccu.service:8: PIDFile= references path below legacy directory /var/run/, updating /var/run/pivccu3.pid → /run/pivccu3.pid; plea
Feb 14 08:10:09 raspberrypi systemd[1]: /lib/systemd/system/pivccu.service:8: PIDFile= references path below legacy directory /var/run/, updating /var/run/pivccu3.pid → /run/pivccu3.pid; plea
~

Code: Alles auswählen

root@raspberrypi:~# systemctl start pivccu                                                                                                                 
Job for pivccu.service failed because the service did not take the steps require                                                                           
d by its unit configuration.
See "systemctl status pivccu.service" and "journalctl -xe" for details.

Code: Alles auswählen

root@raspberrypi:~# journalctl -xe
Feb 14 08:25:10 raspberrypi systemd[1]: pivccu.service: Failed with result 'protocol'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit pivccu.service has entered the 'failed' state with result 'protocol'.
Feb 14 08:25:10 raspberrypi systemd[1]: Failed to start piVCCU.
-- Subject: A start job for unit pivccu.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit pivccu.service has finished with a failure.
--
-- The job identifier is 729 and the job result is failed.
Feb 14 08:25:10 raspberrypi systemd[1]: Condition check resulted in Monitor HB-RF-ETH being skipped.
-- Subject: A start job for unit monitor-hb-rf-eth.service has finished successfully
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit monitor-hb-rf-eth.service has finished successfully.
--
-- The job identifier is 787.
Feb 14 08:25:33 raspberrypi kernel: Voltage normalised (0x00000000)
Ich hoffe du kannst erkennen wo das Problem liegt.

VG Andreas

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: pivccu läuft nach fhem Installation nicht mehr

Beitrag von deimos » 14.02.2022, 08:51

Hi,

dann bitte mal die Ausgaben von:

Code: Alles auswählen

cat /etc/os-release
command -v lxc-update-config
lxc-start --version
cat /var/lib/piVCCU3/lxc/config
Viele Grüße
Alex

a_quadrat
Beiträge: 18
Registriert: 14.11.2019, 19:54
Danksagung erhalten: 2 Mal

Re: pivccu läuft nach fhem Installation nicht mehr

Beitrag von a_quadrat » 14.02.2022, 09:19

ok, anbei die Auszüge:

Code: Alles auswählen

root@raspberrypi:~# cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Code: Alles auswählen

root@raspberrypi:~# lxc-start --version
3.0.3

Code: Alles auswählen

root@raspberrypi:~# cat /var/lib/piVCCU3/lxc/config
lxc.utsname = piVCCU

lxc.hook.start = /etc/piVCCU3/start-hook.sh

lxc.rootfs = /var/lib/piVCCU3/rootfs
lxc.rootfs.options = ro

lxc.mount.auto = proc sys:rw cgroup
lxc.mount.entry = devpts dev/pts devpts defaults,newinstance 0 0

lxc.mount.entry = tmpfs tmp tmpfs defaults,mode=1777 0 0
lxc.mount.entry = /tmp/pivccu-var var none defaults,bind 0 0
lxc.mount.entry = /tmp/pivccu-media media none defaults,bind 0 0
lxc.mount.entry = tmpfs run tmpfs defaults,mode=0755,nosuid,nodev 0 0
lxc.mount.entry = tmpfs dev/shm tmpfs defaults,nosuid,nodev,noexec,mode=1777,size=16M,create=dir 0 0

lxc.mount.entry = /var/lib/piVCCU3/userfs usr/local/ none defaults,bind 0 0

lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = <bridge_auto>
lxc.network.hwaddr = <mac_auto>
lxc.network.veth.pair = vethpivccu

lxc.cgroup.devices.deny = a
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:2 rwm
lxc.cgroup.devices.allow = c 10:200 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c <eq3loop_major>:0 rwm
lxc.cgroup.devices.allow = c <eq3loop_major>:1 rwm
lxc.cgroup.devices.allow = c <eq3loop_major>:2 rwm
lxc.cgroup.devices.allow = c <uart_major>:<uart_minor> rwm
lxc.cgroup.devices.allow = c <hmip_major>:<hmip_minor> rwm

lxc.aa_profile = unconfined
VG Andreas

Antworten

Zurück zu „piVCCU“