Update auf CCU-Version 2.29.18

Einrichtung, Nutzung und Hilfe zu YAHM

Moderator: Co-Administratoren

falke69
Beiträge: 61
Registriert: 05.11.2016, 19:51

Re: Update auf CCU-Version 2.29.18

Beitrag von falke69 » 07.09.2017, 09:54

Hallo,

hat schon jemand die 2.29.22 getestet?
Ich bekomme diese Version einfach nicht drauf. :?
wenn ich über

Code: Alles auswählen

yahm-ui
gehe, bekomme ich diese Version leider noch nicht angezeigt.
Also versuche ich es manuel.

Code: Alles auswählen

sudo yahm-ctl update
Installiert es mir Yahm auf 1.7
2017-09-07_093707.jpg
Und mit

Code: Alles auswählen

yahm-lxc -b  2.29.22 -n yahm  -f -v -d /mein Ordner auf dem Pi/HHM-CCU-2.29.22.tar.gz update
zum Schluss gibt er mir folgende Fehlermeldung aus:

Code: Alles auswählen

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
Delete old YAHM Container version: 2.27.8
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
rm: das Entfernen von „/var/lib/lxc/yahm/root/tmp/devlog.txt.0.20170827-1216“ ist nicht möglich: Die Struktur muss bereinigt werden
rm: das Entfernen von „/var/lib/lxc/yahm/root/tmp/devlog.txt.0.20170731-0205“ ist nicht möglich: Die Struktur muss bereinigt werden
Clean up
Create new YAHM Container version: 2.29.22
ATTENTION: FORCE-Switch is used, actual instance will be overwritten
Creating new lxc container name: yahm, version 2.29.22
ERROR: Restore file can not be found, please specify it with -d flag
Nach Neusart wird mir angegeben, das kein Container existiert.

Wenn ich dann versuche ein Update über die Ui auf die 2.29.18 durchzuführen erschein folgendes:

Code: Alles auswählen

Welcome to YAHM-UI
Update Check
Entering main loop
Creating new lxc container name: yahm, version 2.29.18
Downloading CCU Firmware
Extracting firmware
Extract ubi image
usage: ubi_extract_files.py [options] filepath
ubi_extract_files.py: error: Volume output directory is not empty. /var/lib/lxc/yahm/root
ERROR: Can not find yahm container
lxc-start: Executing '/sbin/init' with no configuration file may crash the host
waiting for RegaHSS to launch ...
...............................................
und diese Zeile füllt sich auch nach Stunden noch mit den ............

Code: Alles auswählen

RegaHSS to launch ...
..............................................
Und wenn ich gleich über die Ui versuche das Update auf 2.29.18 zu installieren, bleibt es am Schluss beim Schreiben der ............. stehen. :idea:

daniel79
Beiträge: 16
Registriert: 28.08.2014, 10:03

Re: Update auf CCU-Version 2.29.18

Beitrag von daniel79 » 07.09.2017, 12:27

Hallo,

ich verzweifel gerade beim Versuch meine YAHM CCU auf die aktuelle Version 2.29.22 zu updaten.

Bisher nutze ich die 2.21.10.
Ich habe folgendes gemacht:

Code: Alles auswählen

sudo apt-get update
sudo apt-get upgrade
sudo yahm-ctl update
sudo yahm-lxc update
Hier kam dann folgende Ausgabe:

Code: Alles auswählen

Installed version: 2.21.10
Available version: 2.29.22

ERROR: Can not find any patches for 2.29.22, please call 'yahm-ctl update' and try again
bin dann per yahm-ui in die develop branch gewechselt

aber auch hier die Ausgabe gleich:

Code: Alles auswählen

pi@ccu2host:~ $ sudo yahm-lxc update

!!! You are using develop branch, this branch is unstable. Using at your own risk !!!!


Installed version: 2.21.10
Available version: 2.29.22

ERROR: Can not find any patches for 2.29.22, please call 'yahm-ctl update' and try again
hier noch die Ausgabe von yahm-ctl update:

Code: Alles auswählen

pi@ccu2host:~ $ sudo yahm-ctl update

!!! You are using develop branch, this branch is unstable. Using at your own risk !!!!

Updating YAHM installation, for updatate CCU2 please use 'yahm-lxc update'
Already up-to-date.
Updating all YAHM modules
Entering 'share/tools/Network-Interfaces-Script'
From https://github.com/leonsio/Network-Interfaces-Script
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Entering 'share/tools/arm-board-detect'
From https://github.com/leonsio/arm-board-detect
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Entering 'share/tools/rpi-source'
From https://github.com/notro/rpi-source
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Updating CCU2-FW archive
Habe hier gelesen, dass man selber Symlinks anlegen soll, jedoch scheint mir der patches Ordner ganz zu fehlen...:

Code: Alles auswählen

pi@ccu2host:~ $ ls -lisa /opt/YAHM/share/
total 44
132364  4 drwxr-xr-x  5 root root 4096 Sep  7 09:53 .
132305  4 drwxr-xr-x  5 root root 4096 Sep  7 09:53 ..
258817  4 drwxr-xr-x  2 root root 4096 Sep  7 09:53 firmware
132365 12 -rw-r--r--  1 root root 9981 Sep  7 09:53 include.sh
258818  4 drwxr-xr-x  2 root root 4096 Sep  7 09:53 modules
132411  4 drwxr-xr-x 10 root root 4096 Sep  7 09:12 tools
132480 12 -rw-r--r--  1 root root 9223 Oct 27  2016 yahm_completion
Mache ich irgendwo einen Fehler? Habe ich etwas übersehen? Komme momentan nicht weiter.

Gruß
Daniel

Edit: ich glaube mir ist gerade selber was aufgefallen:
beim sudo yahm-ctl update scheint er immer noch aus der master branch zu updaten statt aus der develop branch. Habe aber keine Ahnung wie ich das ändern kann...

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

Re: Update auf CCU-Version 2.29.18

Beitrag von leonsio » 07.09.2017, 13:16

bitte führt die Installation mit -v aus
und schaut ob im firmware Verzeichnis Dateien liegen

daniel79
Beiträge: 16
Registriert: 28.08.2014, 10:03

Re: Update auf CCU-Version 2.29.18

Beitrag von daniel79 » 07.09.2017, 13:22

Hallo,

habe beide Befehle mit -v ausgeführt:

Code: Alles auswählen

pi@ccu2host:~ $ sudo yahm-ctl -v update

!!! You are using develop branch, this branch is unstable. Using at your own risk !!!!

Updating YAHM installation, for updatate CCU2 please use 'yahm-lxc update'
Already up-to-date.
Updating all YAHM modules
Entering 'share/tools/Network-Interfaces-Script'
From https://github.com/leonsio/Network-Interfaces-Script
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Entering 'share/tools/arm-board-detect'
From https://github.com/leonsio/arm-board-detect
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Entering 'share/tools/rpi-source'
From https://github.com/notro/rpi-source
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Updating CCU2-FW archive
--2017-09-07 11:18:19--  https://raw.githubusercontent.com/leonsio/CCU2-FW/master/fw.list
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 422 [text/plain]
Last-modified header missing -- time-stamps turned off.
--2017-09-07 11:18:19--  https://raw.githubusercontent.com/leonsio/CCU2-FW/master/fw.list
Reusing existing connection to raw.githubusercontent.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 422 [text/plain]
Saving to: ‘fw.list’

fw.list                             100%[===================================================================>]     422  --.-KB/s   in 0s

2017-09-07 11:18:19 (3.02 MB/s) - ‘fw.list’ saved [422/422]

Code: Alles auswählen

pi@ccu2host:~ $ sudo yahm-lxc -v update

!!! You are using develop branch, this branch is unstable. Using at your own risk !!!!


Installed version: 2.21.10
Available version: 2.29.22

ERROR: Can not find any patches for 2.29.22, please call 'yahm-ctl update' and try again
Hat aber leider nichts gebracht. Oder habe ich dich falsch verstanden?

Gruß
Daniel

Im firmware Ordner liegt bei mir nix drin:

Code: Alles auswählen

pi@ccu2host:~ $ ls -lisa /opt/YAHM/share/firmware/
total 8
258817 4 drwxr-xr-x 2 root root 4096 Sep  7 09:53 .
132364 4 drwxr-xr-x 5 root root 4096 Sep  7 09:53 ..

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

Re: Update auf CCU-Version 2.29.18

Beitrag von leonsio » 08.09.2017, 11:18

Bitte yahn-ctl update ausführen
dann sollte update/installation funktionieren

daniel79
Beiträge: 16
Registriert: 28.08.2014, 10:03

Re: Update auf CCU-Version 2.29.18

Beitrag von daniel79 » 08.09.2017, 11:23

Danke für deine Antwort.

Er hat beim Update auch was gemacht, aber er findet immer noch keine patches:

Code: Alles auswählen

root@ccu2host:/home/pi# yahm-ctl -v update

!!! You are using develop branch, this branch is unstable. Using at your own ris                                                 k !!!!

Updating YAHM installation, for updatate CCU2 please use 'yahm-lxc update'
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 4 (delta 3), reused 4 (delta 3), pack-reused 0
Unpacking objects: 100% (4/4), done.
From https://github.com/leonsio/YAHM
   8c23d3c..204f77b  develop    -> origin/develop
Updating 8c23d3c..204f77b
Fast-forward
 bin/yahm-ctl | 1 +
 1 file changed, 1 insertion(+)
Updating all YAHM modules
Entering 'share/tools/Network-Interfaces-Script'
From https://github.com/leonsio/Network-Interfaces-Script
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Entering 'share/tools/arm-board-detect'
From https://github.com/leonsio/arm-board-detect
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Entering 'share/tools/rpi-source'
From https://github.com/notro/rpi-source
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Updating CCU2-FW archive
--2017-09-08 09:20:51--  https://raw.githubusercontent.com/leonsio/CCU2-FW/maste                                                 r/fw.list
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133                                                 , 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.13                                                 3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 422 [text/plain]
Last-modified header missing -- time-stamps turned off.
--2017-09-08 09:20:52--  https://raw.githubusercontent.com/leonsio/CCU2-FW/maste                                                 r/fw.list
Reusing existing connection to raw.githubusercontent.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 422 [text/plain]
Saving to: ‘fw.list’

fw.list             100%[=====================>]     422  --.-KB/s   in 0s

2017-09-08 09:20:52 (2.63 MB/s) - ‘fw.list’ saved [422/422]

root@ccu2host:/home/pi# yahm-lxc -v update

!!! You are using develop branch, this branch is unstable. Using at your own risk !!!!


Installed version: 2.21.10
Available version: 2.29.22

ERROR: Can not find any patches for 2.29.22, please call 'yahm-ctl update' and try again
Gruß
Daniel

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

Re: Update auf CCU-Version 2.29.18

Beitrag von leonsio » 08.09.2017, 11:25

hmm komisch
wechsle bitte ins /opt/YAHM und führe folgendes aus

git submodule update --init --recursive

daniel79
Beiträge: 16
Registriert: 28.08.2014, 10:03

Re: Update auf CCU-Version 2.29.18

Beitrag von daniel79 » 08.09.2017, 11:39

Damit hat es geklappt:

Code: Alles auswählen

root@ccu2host:/opt/YAHM# git submodule update --init --recursive
Submodule 'share/firmware' (https://github.com/leonsio/YAHM-Firmware) registered for path 'share/firmware'
Submodule 'share/modules' (https://github.com/leonsio/YAHM-Module) registered for path 'share/modules'
Cloning into 'share/firmware'...
remote: Counting objects: 21, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 21 (delta 7), reused 14 (delta 6), pack-reused 0
Unpacking objects: 100% (21/21), done.
Checking connectivity... done.
Submodule path 'share/firmware': checked out '29188f206ecd865d5f107b45439c78bc1764ace9'
Cloning into 'share/modules'...
remote: Counting objects: 17, done.
remote: Total 17 (delta 0), reused 0 (delta 0), pack-reused 17
Unpacking objects: 100% (17/17), done.
Checking connectivity... done.
Submodule path 'share/modules': checked out 'cddd1518786be47e989dff987122b362f8613449'
Submodule path 'share/tools/arm-board-detect': checked out '77ba884734406f527c261d22f54d8435685113b8'
Das war dann die Ausgabe von yahm-lxc update:

Code: Alles auswählen

root@ccu2host:/opt/YAHM# yahm-lxc update

!!! You are using develop branch, this branch is unstable. Using at your own risk !!!!


Installed version: 2.21.10
Available version: 2.29.22

Trying to create a config-backup from installed version 2.21.10, calling: 'yahm-backup data_backup' script

!!! You are using develop branch, this branch is unstable. Using at your own risk !!!!

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-1504862845.sbk
Backup old LXC config
Backup installed modules
Creating full backup from installed version 2.21.10, calling: 'yahm-backup full_backup' script

!!! You are using develop branch, this branch is unstable. Using at your own risk !!!!

Trying to stop yahm container
Creating new backup from yahm version 2.21.10
tar: yahm/root/tmp/udev/control: socket ignored
tar: yahm/root/tmp/log: socket ignored
STATUS: Backup was successfully created: /tmp/YAHM/yahm_backup-2.21.10.tgz
Please start yahm container with 'sudo yahm-ctl -n yahm start' manually
Delete old YAHM Container version: 2.21.10
Deleting installed YAHM container: yahm version: 2.21.10 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.29.22
Creating new lxc container name: yahm, version 2.29.22
Downloading CCU Firmware
Extracting firmware
Extract ubi image
Writing to: /var/lib/lxc/yahm/root
Cleanup CCU2 source
Applying patch
Applying scripts
Creating SD card
Clean Up
Creating lxc config file
Container 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'

!!! You are using develop branch, this branch is unstable. Using at your own risk !!!!

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.21.10 was successfully restored into yahm container version 2.29.22
Please start yahm container with 'sudo yahm-ctl -n yahm start' manually

!!! You are using develop branch, this branch is unstable. Using at your own risk !!!!

Starting yahm LXC container
Restoring old installed modules

!!! You are using develop branch, this branch is unstable. Using at your own risk !!!!

Executing homematic-ip module_remove()
Installing dependencies
xmlstarlet is installed
Removing HmIP-RF Interface
Downloading jre-7u10
Extracting jre-7u10
Downloading old HMServer.jar
Stopping rfd and multimac services, to detect module firmware
Stopping multimacd: OK
Stopping rfd: start-stop-daemon: warning: killing process 306: No such process
OK
Downgrade firmware if needed
Firmware already downgraded
Stopping rfd: OK
Starting rfd:
Waiting for rfd to get ready.sh: 406: unknown operand
.sh: 406: unknown operand
.sh: 406: unknown operand
.sh: 406: unknown operand
.rfd is ready now.
Starting HMServer: OK
Homematic-IP interface was removed, please restart CCU2-LXC Container
rm: cannot remove ‘/var/lib/lxc/yahm/.modules/homematic-ip’: No such file or directory
STATUS: Module homematic-ip was successfully removed
Restoring hm-mod-rpi-pcb Module

!!! You are using develop branch, this branch is unstable. Using at your own risk !!!!

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...
ln: failed to create symbolic link ‘ccu2-ic200’: File exists
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
STATUS: Update was successfully new version is: 2.29.22
Erst funktionierte danach garnix mehr, aber nach einen Neustart des Pi scheint soweit alles i.O.

Jedoch ist mir noch eine Sache aufgefallen. In den Einstellungen komme ich nicht ins Kopplungen Menü... Wollte ein Lightify Gateway an die CCU anbinden. Ist das normal?

Gruß
Daniel

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

Re: Update auf CCU-Version 2.29.18

Beitrag von leonsio » 08.09.2017, 11:43

Da stand du sollst YAHM neustarten und nicht Pi ;)
Was genau meinst du?
laufen alle RFD Komponenten? komst du bei den Geräten in die Einstellungen?

daniel79
Beiträge: 16
Registriert: 28.08.2014, 10:03

Re: Update auf CCU-Version 2.29.18

Beitrag von daniel79 » 08.09.2017, 11:55

Da danach ja "Trying to start service" kam dachte ich das wäre schon automatisch passiert ;-)

In die Geräteeinstellungen komme ich rein. Wo sehe ich die RFD Komponenten?

Antworten

Zurück zu „YAHM“