YAHM startet nicht mehr nach Upgrade auf FW 2.31.25

Einrichtung, Nutzung und Hilfe zu YAHM

Moderator: Co-Administratoren

Antworten
roland90427
Beiträge: 19
Registriert: 01.08.2016, 19:57
Wohnort: Durmersheim
Danksagung erhalten: 3 Mal

YAHM startet nicht mehr nach Upgrade auf FW 2.31.25

Beitrag von roland90427 » 25.03.2018, 15:45

Hallo,

auch ich habe wie viele das Problem, daß WEBUI wegen der Sommerzeit-Umstellung seit gestern morgen nicht mehr läuft.

Also wollte ich die FW upgraden, wie empfohlen von jmaus unter viewtopic.php?f=26&t=42887&hilit=zeitum ... 10#p426695. Jedoch startet der YAHM-Container nach dem Upgrade nicht mehr:

Code: Alles auswählen

pi@raspberrypi-1:~ $ sudo yahm-ctl update
New CCU2 firmware: 2.31.25 available, update with 'yahm-lxc update' possible
Updating YAHM installation, for updatate CCU2 please use 'yahm-lxc update'
Fetching submodule share/tools/Network-Interfaces-Script
Fetching submodule share/tools/arm-board-detect
Fetching submodule share/tools/rpi-source
Already up-to-date.
Updating all YAHM modules
Betrete 'share/tools/Network-Interfaces-Script'
Von https://github.com/leonsio/Network-Interfaces-Script
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Betrete 'share/tools/arm-board-detect'
Von https://github.com/leonsio/arm-board-detect
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Betrete 'share/tools/rpi-source'
Von https://github.com/notro/rpi-source
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Betrete 'share/tools/Network-Interfaces-Script'
Betrete 'share/tools/arm-board-detect'
Betrete 'share/tools/rpi-source'
Updating CCU2-FW archive
YAHM version 1.9 found
pi@raspberrypi-1:~ $ sudo yahm-ctl info
New CCU2 firmware: 2.31.25 available, update with 'yahm-lxc update' possible
YAHM Version: 1.9
CCU2 Version: 2.27.8

LXC container information
Name:           yahm
State:          RUNNING
PID:            18341
IP:             10.8.0.191
IP:             192.168.0.45
IP:             2003:c6:3bf2:f700:4849:43ff:fe49:79a1
CPU use:        23.88 seconds
BlkIO use:      200.00 KiB
Memory use:     69.39 MiB
KMem use:       4.10 MiB
Link:           vethRJ8UJ4
 TX bytes:      510.65 KiB
 RX bytes:      186.57 KiB
 Total bytes:   697.22 KiB
pi@raspberrypi-1:~ $ sudo yahm-lxc -f update
New CCU2 firmware: 2.31.25 available, update with 'yahm-lxc update' possible

Installed version: 2.27.8
Available version: 2.31.25

Trying to create a config-backup from installed version 2.27.8, calling: 'yahm-backup data_backup' script
New CCU2 firmware: 2.31.25 available, update with 'yahm-lxc update' possible
Clean up TMP directory
Ask Rega to save the DOM
Creating Backup from /usr/local folder
Creating Homematic backup file
Clean up
STATUS: CCU2 Backup was successfully created: /tmp/YAHM/homematic-ccu2-1522155654.sbk
Backup old LXC config
Backup installed modules
INFO: Config backup file location: /tmp/YAHM_update/yahm/homematic-ccu2-1522155654.sbk
Creating full backup from installed version 2.27.8, calling: 'yahm-backup full_backup' script
New CCU2 firmware: 2.31.25 available, update with 'yahm-lxc update' possible
Trying to stop yahm container
Creating new backup from yahm version 2.27.8
tar: yahm/root/tmp/udev/control: Socket ignoriert
STATUS: Backup was successfully created: /tmp/YAHM/yahm_backup-2.27.8.tgz
Please start yahm container with 'sudo yahm-ctl -n yahm start' manually
INFO: Full backup file location: /tmp/YAHM_update/yahm/yahm_backup-2.27.8_20180327.tgz
Delete old YAHM Container version: 2.27.8
Backup virtual SD-Card
Entering force mode
Deleting installed YAHM container: yahm version: 2.27.8 To cancel this operation type CTRL+C you have 5 seconds...
... too late ;)
Stopping LXC container
yahm is not running
Container can not be found or is not running
Deleting LXC container
Clean up
Create new YAHM Container version: 2.31.25
ATTENTION: FORCE-Switch is used, actual instance will be overwritten
Creating new lxc container name: yahm, version 2.31.25
Downloading CCU Firmware
Extracting firmware
Extract ubi image
Writing to: /var/lib/lxc/yahm/root
INFO: No patches for version 2.31.25 found, trying to use old patches from 2.29.23
Cleanup CCU2 source
Applying patch
patch: **** Can't open patch file /opt/YAHM/share/firmware/patches/2.29.23.patch : No such file or directory
Applying scripts
sh: 0: Can't open /opt/YAHM/share/firmware/scripts/2.29.23.sh
Creating SD card
Clean Up
Creating lxc config file
Container version 2.31.25 is created, please use 'yahm-ctl -n yahm start' to start and 'yahm-ctl -n yahm join' for console access
For network configuration see yahm-network script
Restoring old LXC config
Trying to restore old CCU2 backup, calling 'yahm-backup data_restore'
Clean up TMP directory
Extracting CCU2 backup
WARNING: /usr/local folder with all settings inside yahm container will be removed. You have 5 seconds to cancel this operation...
... to late ;)
Extracting Backup Data
STATUS: Backup version 2.27.8 was successfully restored into yahm container version 2.31.25
Please start yahm container with 'sudo yahm-ctl -n yahm start' manually
Starting yahm LXC container
Restoring old installed modules
Restoring hm-mod-rpi-pcb Module
Executing hm-mod-rpi-pcb module_install()
Found hardware: Raspberry Pi 3
Trying to disable bluetooth on Raspberry Pi 3 to use HM-MOD-RPI-PCB
Trying to disable serial console
Serial already disabled
Preparing devices inside LXC container
Creating device /dev/ttyAMA0...
Creating symlink /dev/mmd_bidcos...
Creating symlink /dev/ccu2-ic200...
Preparing modification rfd.conf...
[Interface 0] block found in rfd.conf checking it...
Modification rfd.conf done.
HM-MOD-RPI-PCB was installed successfully, please restart YAHM to apply changes
Trying to start service
Synchronizing state for hm-mod-rpi-pcb.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d hm-mod-rpi-pcb defaults
Executing /usr/sbin/update-rc.d hm-mod-rpi-pcb enable
STATUS: Module hm-mod-rpi-pcb was successfully installed
Restoring regahss-beta Module
Specified module can not be found
STATUS: Update was successfully new version is: 2.31.25
STATUS: Old config backup file: /tmp/YAHM_update/yahm/homematic-ccu2-1522155654.sbk
STATUS: Old full lxc backup file: /tmp/YAHM_update/yahm/yahm_backup-2.27.8_20180327.tgz
pi@raspberrypi-1:~ $ sudo yahm-ctl info
YAHM Version: 1.9
CCU2 Version: 2.31.25

LXC container information
Name:           yahm
State:          STOPPED
pi@raspberrypi-1:~ $ sudo yahm-ctl start
Starting yahm LXC container
pi@raspberrypi-1:~ $ sudo yahm-ctl info
YAHM Version: 1.9
CCU2 Version: 2.31.25

LXC container information
Name:           yahm
State:          STOPPED
pi@raspberrypi-1:~ $ sudo yahm-ctl -v start
Starting yahm LXC container in debug mode
lxc-start: tools/lxc_start.c: main: 366 The container failed to start.
lxc-start: tools/lxc_start.c: main: 368 To get more details, run the container in foreground mode.
lxc-start: tools/lxc_start.c: main: 370 Additional information can be obtained by setting the --logfile and --logpriority options.
pi@raspberrypi-1:~ $ sudo yahm-module installed
Installed modules:
        hm-mod-rpi-pcb      GPIO Funkmodul für Raspberry Pi2/3
pi@raspberrypi-1:~ $ sudo yahm-module available
Available modules:
        cuxd                CuxD 1.7 for Yahm
        hm-lan-fake-gw      HM-MOD-RPI-PCB as HM LAN Gateway inside host
        hm-mod-rpi-pcb      GPIO Funkmodul für Raspberry Pi2/3
        homebridge          Installiert Homebridge zur Anbindung von Apple HomeKit an die CCU
        homematic-ip        Homematic IP Unterstützung
        meinhomematic       Unterstützung für Mein Homematic
Nach Restore der Sicherung der alten FW 2.27.8 kann YAHM wieder gestartet werden:

Code: Alles auswählen

pi@raspberrypi-1:/var/log/yahm $ sudo yahm-backup -f -d /nas/backup/ccu2_backup_full_pi1_2018-03-14.tgz full_restore
Clean up TMP directory
Extracting LXC backup
yahm is not running
No running lxc instance found, continue
Moving backup to /var/lib/lxc/yahm
Clean up
STATUS: YAHM version 2.27.8 was successfully restored
Please start yahm container with 'sudo yahm-ctl -n yahm start' manually
pi@raspberrypi-1:~ $ sudo yahm-ctl start
New CCU2 firmware: 2.31.25 available, update with 'yahm-lxc update' possible
Starting yahm LXC container
pi@raspberrypi-1:~ $ sudo yahm-ctl info
New CCU2 firmware: 2.31.25 available, update with 'yahm-lxc update' possible
YAHM Version: 1.9
CCU2 Version: 2.27.8

LXC container information
Name:           yahm
State:          RUNNING
PID:            18341
IP:             192.168.0.45
IP:             2003:c6:3bf2:f700:4849:43ff:fe49:79a1
CPU use:        2.53 seconds
BlkIO use:      88.00 KiB
Memory use:     7.16 MiB
KMem use:       3.64 MiB
Link:           vethRJ8UJ4
 TX bytes:      34.49 KiB
 RX bytes:      18.82 KiB
 Total bytes:   53.32 KiB
Nur bei der neuen FW 2.31.25 will YAHM absolut nicht starten

Ich verzweifle inzwischen nach stundenlanger Fehlersuche und Probieren :cry: . Bitte um Eure Hilfe.

Viele Grüße
Roland

Familienvater
Beiträge: 7151
Registriert: 31.12.2006, 15:18
System: Alternative CCU (auf Basis OCCU)
Wohnort: Rhein-Main
Danksagung erhalten: 34 Mal

Re: YAHM startet nicht mehr nach Upgrade auf FW 2.31.25

Beitrag von Familienvater » 25.03.2018, 16:23

Hi,

wenn Du unbedingt bei YAHM bleiben willst, und keine Lust auf weitere Experimente mit Fehlschlägen hast, dann schalt das Ding ab, geh in der Sonne spazieren, und versuche morgen Früh wieder Dein Glück, dann sollte der Spuk vorbei sein, und mache ein Upgrade der Firmware "irgendwann", wenn Dir nicht der Zeitumstellungsschalk im Nacken sitzt.
Und vielleicht schaut man auch mal über den Tellerrand, was andere Mütter so für Töchter haben, z.B. piVCCU...

Der Familienvater

roland90427
Beiträge: 19
Registriert: 01.08.2016, 19:57
Wohnort: Durmersheim
Danksagung erhalten: 3 Mal

Re: YAHM startet nicht mehr nach Upgrade auf FW 2.31.25

Beitrag von roland90427 » 27.03.2018, 12:18

Ich habe mich mittlerweile so an YAHM gewöhnt was auch sehr gut und ausgereift ist. Die Tools für Backup und Restore funktionieren gut.

Schade, wenn mir keiner sonst helfen kann, muss ich wohl irgendwann auf piVCCU umsteigen.

leonsio
Beiträge: 1107
Registriert: 07.01.2012, 14:06
Danksagung erhalten: 6 Mal

Re: YAHM startet nicht mehr nach Upgrade auf FW 2.31.25

Beitrag von leonsio » 27.03.2018, 23:13

was geht den nach dem Update nicht?
zu 99% liegt es am veränderten Speicherort für die SD-Karte
einfach blick auf /var/lib/lxc/yahm.log werfen falls LXC Container nicht startet

roland90427
Beiträge: 19
Registriert: 01.08.2016, 19:57
Wohnort: Durmersheim
Danksagung erhalten: 3 Mal

Re: YAHM startet nicht mehr nach Upgrade auf FW 2.31.25

Beitrag von roland90427 » 30.03.2018, 09:05

Vielen Dank an alle für die Unterstützung.

Ich habe mittlerweile den Fehler gefunden: in /opt/YAHM/share/ waren keine module mehr im Verzeichnis module und keine patches und scripts im entsprechenden Verzeichnis drin.
Wie die wegkamen ist mir schleierhaft.

Nach der manuellen Neuinstallation von YAHM und dann der Upgrade auf FW 2.31.25 lief alles zufriedenstellend.

Antworten

Zurück zu „YAHM“