Seite 2 von 3
Re: CuxD WebUI unter debmatic?
Verfasst: 06.06.2023, 07:30
von didiator
Moin,
könnte mir vielleicht jemand freundlicherweise mal den Inhalt seiner Datei /usr/local/etc/config/hm_addons.cfg posten? bei mir steht da zwar was drin, das scheint aber nicht zu stimmen. Ich würde das gern berichtigen.
Vielen Dank!
Re: CuxD WebUI unter debmatic?
Verfasst: 06.06.2023, 08:43
von deimos
Hi,
dein Eintrag in der hm_addons.cfg ist korrekt.
Kannst du bitte mal die Ausgabe posten von:
Code: Alles auswählen
sudo debmatic-info
sudo apt update
sudo apt install --reinstall cuxd
Und bitte im Anschluss einen Reboot des Pis und prüfen, ob es dann geht. Dabei bitte einmal im Browser die Seite mit Strg+F5 neu laden.
Viele Grüße
Alex
Re: CuxD WebUI unter debmatic?
Verfasst: 07.06.2023, 08:07
von didiator
Hallo Alex,
einen reinstall hatte ich schon gemacht.
Code: Alles auswählen
sudo debmatic-info
debmatic version: 3.69.7-108
OS: Debian GNU/Linux 11 (bullseye)
Kernel: 6.1.21-v8+ aarch64
Service Status: Running
Kernel modules: Available
Raw UART dev: Available
Rasp.Pi UART: Not assigned to GPIO pins
HMRF Hardware: RPI-RF-MOD
Connected via: HB-RF-ETH@192.168.2.XXX (/dev/raw-uart)
Board serial: 5A4993D0D0
Radio MAC: 0xXXXXXX
HMIP Hardware: RPI-RF-MOD
Connected via: HB-RF-ETH@192.168.2.XXX (/dev/raw-uart)
SGTIN: XXX...XXX
Radio MAC: 0xXXXXXX
pi@pi4:~ $ sudo apt update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Get:2 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease
Get:4 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Hit:5 https://deb.nodesource.com/node_16.x bullseye InRelease
Hit:6 https://apt.debmatic.de/debmatic stable InRelease
Get:7 http://security.debian.org/debian-security bullseye-security/main arm64 Packages [240 kB]
Get:8 http://security.debian.org/debian-security bullseye-security/main armhf Packages [241 kB]
Fetched 573 kB in 2s (329 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
pi@pi4:~ $ sudo apt install --reinstall cuxd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/1,372 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 127249 files and directories currently installed.)
Preparing to unpack .../cuxd_2.10.1-11_arm64.deb ...
del(cuxd)
Removed /etc/systemd/system/debmatic-rega.service.wants/cuxd.service.
Removed /etc/systemd/system/debmatic.service.wants/cuxd.service.
Removed /etc/systemd/system/debmatic-startupfinished.service.wants/cuxd.service.
Unpacking cuxd (2.10.1-11) over (2.10.1-11) ...
Setting up cuxd (2.10.1-11) ...
Created symlink /etc/systemd/system/debmatic.service.wants/cuxd.service → /lib/systemd/system/cuxd.service.
Created symlink /etc/systemd/system/debmatic-rega.service.wants/cuxd.service → /lib/systemd/system/cuxd.service.
Created symlink /etc/systemd/system/debmatic-startupfinished.service.wants/cuxd.service → /lib/systemd/system/cuxd.service.
Reboot durchgeführt
Browser resettet
Leider ist das Ergebnis das Gleiche - kein CuxD Eintrag. Ich vermute, dass der Eintrag möglicherweise stimmt. Aber wahrscheinlich fehlt/fehlen mir die übergeordneten Knoten. Da stand irgendwie was mit mh, wenn ich mich recht erinnere.
Der vollständige Inhalt meiner cfg ist:
Code: Alles auswählen
cuxd {CONFIG_URL /addons/cuxd/index.ccc CONFIG_DESCRIPTION {de {<li>System</li><li>FS-20</li><li>EnOcean</li><li>...</li>} en {<li>System</li><li>FS-20</li><li>EnOcean</li><li>...</li>}} ID cuxd CONFIG_NAME CUx-Daemon}
Re: CuxD WebUI unter debmatic?
Verfasst: 07.06.2023, 09:12
von deimos
Hi,
wie schon geschrieben: Der Eintrag sieht gut aus.
Was kommt bei dem Befehl:
Code: Alles auswählen
cat << EOT | tclsh
package require HomeMatic
puts [HomeMatic::Addon::GetAll]
EOT
Viele Grüße
Alex
Re: CuxD WebUI unter debmatic?
Verfasst: 07.06.2023, 11:34
von didiator
Hallo Alex,
die Ausgabe bleibt leer, kein Ergebnis und auch kein Fehler.
Re: CuxD WebUI unter debmatic?
Verfasst: 07.06.2023, 12:10
von deimos
Hi,
was liefern:
Code: Alles auswählen
ls -la /usr/local/etc/config
ls -la /usr/local/etc/config/
ls -la /etc/config/
cat /etc/config/hm_addons.cfg
Viele Grüße
Alex
Re: CuxD WebUI unter debmatic?
Verfasst: 07.06.2023, 13:32
von didiator
Hallo Alex,
vielen Dank, dass Du mir hilfst!
Code: Alles auswählen
ls -la /usr/local/etc/config
total 472
drwxr-xr-x 8 root root 4096 Jun 2 15:25 .
drwxr-xr-x 3 root root 4096 Apr 20 18:44 ..
drwxr-xr-x 3 root root 4096 Nov 29 2022 addons
drwxr-xr-x 3 root root 4096 Nov 29 2022 crRFD
-rw-r--r-- 1 root root 35 Nov 29 2022 crypttool.cfg
drwxr-xr-x 3 root root 4096 Nov 29 2022 eshlight
-rw-r--r-- 1 root root 0 Nov 29 2022 firewallConfigured
-rw-r--r-- 1 root root 0 Nov 29 2022 hideStickyUnreach
-rw-r--r-- 1 root root 218 Jun 7 08:00 hm_addons.cfg
-rw-r--r-- 1 root root 78 Nov 29 2022 hmip_address.conf
-rw-r--r-- 1 root root 401951 Nov 29 2022 homematic.regadom
drwxr-xr-x 2 root root 4096 Nov 29 2022 hs485d
-rw-r--r-- 1 root root 48 Nov 29 2022 ids
-rw-r--r-- 1 root root 519 Jun 1 16:13 InterfacesList.xml
-rw-r--r-- 1 root root 84 Nov 29 2022 keys
-rw-r--r-- 1 root root 892 Nov 29 2022 log4j2.xml
drwxr-xr-x 2 root root 4096 Nov 29 2022 measurement
-rw-r--r-- 1 root root 200 Nov 29 2022 netconfig
-rw-r--r-- 1 root root 76 Nov 29 2022 rega.conf
drwxr-xr-x 2 root root 4096 Nov 29 2022 rfd
-rw-r--r-- 1 root root 600 Nov 29 2022 rfd.conf
-rw-r--r-- 1 root root 45 Nov 29 2022 TZ
-rw-r--r-- 1 root root 0 Nov 29 2022 userAckSecurityHint
Code: Alles auswählen
pi@pi4:~ $ ls -la /etc/config/
total 31480
drwxrwxr-x 14 root root 4096 Jun 7 13:02 .
drwxr-xr-x 133 root root 12288 Jun 2 15:00 ..
-rw-r--r-- 1 root root 73 Mar 12 2018 123456.keychange
drwxr-xr-x 4 root root 4096 Jan 11 2022 addons
-rw-r--r-- 1 root root 12 Oct 16 2021 CronBackupPath
drwxr-xr-x 3 root root 4096 Jan 29 2017 crRFD
-rw-r--r-- 1 root root 105 Apr 24 2018 crypttool.cfg
-rw-r--r-- 1 root root 12 Oct 16 2021 CustomStoragePath
-rw-r--r-- 1 root root 106 Jan 29 2017 energyPrice
drwxr-xr-x 3 root root 4096 Jan 29 2017 eshlight
-rw-r--r-- 1 root root 556 Sep 27 2021 firewall.conf
-rw-r--r-- 1 root root 0 Dec 17 2018 firewallConfigured
drwxr-xr-x 14 root root 4096 Apr 21 09:16 firmware
-rw-r--r-- 1 root root 13 Sep 7 2021 groups.gson
-rw-r--r-- 1 root root 0 Nov 1 2017 hideStickyUnreach
-rw-r--r-- 1 root root 0 Jun 7 08:00 hm_addons.cfg
-rw-r--r-- 1 root root 311 Jun 1 15:59 hm_addons.cfg-
-rw-r--r-- 1 root root 78 Jan 29 2017 hmip_address.conf
-rw-r--r-- 1 root root 13076070 Jun 7 13:02 homematic.regadom
-rw-r--r-- 1 root root 13076070 Jun 7 12:12 homematic.regadom.bak
-rw-r--r-- 1 root root 5873587 May 18 2018 homematic.regadom.err
drwxr-xr-x 2 root root 4096 Oct 12 2020 hs485d
-rw-r--r-- 1 root root 303 Jun 7 08:00 hs485d.conf
-rw-r--r-- 1 root root 53 Oct 7 2021 hss_led_info.conf
-rw-r--r-- 1 root root 48 Jan 1 1970 ids
-rw-r--r-- 1 root root 529 Jun 7 08:00 InterfacesList.xml
-rw-r--r-- 1 root root 157 Apr 24 2018 keys
-rw-r--r-- 1 root root 0 Mar 24 2019 legacyAPIMigrationAccepted
drwxr-xr-x 2 root root 4096 Jan 11 2022 lighttpd
lrwxrwxrwx 1 root root 33 Jan 1 1970 localtime -> /usr/share/zoneinfo/Europe/Berlin
-rw-r--r-- 1 root root 892 Apr 20 18:59 log4j2.xml
-rw-r--r-- 1 root root 1220 Jan 29 2017 log4j.xml
drwxr-xr-x 2 root root 4096 Oct 9 2019 measurement
-rw-r--r-- 1 root root 402 Jan 29 2017 multimacd.conf
-rw-r--r-- 1 root root 0 Jul 17 2019 neoDisabled
-rw-r--r-- 1 root root 267 Jun 7 08:00 netconfig
-rw-r--r-- 1 root root 85 Jan 1 1970 ntpclient
drwxr-xr-x 2 root root 4096 Jun 16 2018 nut
-rw-r--r-- 1 root root 512 Jan 1 1970 random-seed
drwxr-xr-x 2 root root 4096 Jan 11 2022 rc.d
-rw-r--r-- 1 root root 37 Apr 12 2019 rdmtc.uuid
-rw-r--r-- 1 root root 76 Apr 24 2018 rega.conf
drwxr-xr-x 2 root root 4096 Apr 20 19:34 rfd
-rw-r--r-- 1 root root 507 Jun 7 08:00 rfd.conf
-rw------- 1 root root 3075 Dec 10 2021 server.pem
-rw-r--r-- 1 root root 1708 Oct 7 2021 server.pem_20211007
-rw------- 1 root root 1704 Dec 10 2021 server.pem_20211210
-rw------- 1 root root 453 Apr 1 2020 shadow
drwxr-xr-x 2 root root 4096 Nov 17 2018 snmp
-rw-r--r-- 1 root root 0 Apr 1 2020 sshEnabled
-rw-r--r-- 1 root root 49 Jan 10 2022 syslog
-rw-r--r-- 1 root root 2 Feb 22 2021 systemLanguage
-rw-r--r-- 1 root root 77 Jan 29 2017 time.conf
-rw-r--r-- 1 root root 14 Jan 1 1970 timezone
-rw-r--r-- 1 root root 15 Oct 16 2021 tweaks
-rw-r--r-- 1 root root 45 Jan 29 2017 TZ
-rw-r--r-- 1 root root 0 Nov 1 2017 userAckSecurityHint
drwxr-xr-x 4 root root 4096 Oct 23 2021 userprofiles
-rw-r--r-- 1 root root 234 May 4 2020 wpa_supplicant.conf
also nichts
Re: CuxD WebUI unter debmatic?
Verfasst: 07.06.2023, 14:07
von deimos
Hi,
ok, damit ist mir jetzt klar, was los ist:
/usr/local/etc/config ist normalerweise ein Symlink auf /etc/config, so dass der Zugriff über beide Pfade zu denselben Dateien führt. Bei dir ist dies nicht der Fall, /usr/local/etc/config ist ein echtes Verzeichnis, bei welchem der Inhalt jetzt unterschiedlich zu /etc/config ist.
Die große Frage ist jetzt, wieso ist es bei dir kein Symlink und die noch größere Frage, wie bekommt man das wieder sauber.
Für Frage 1: Was hast du am 29.11.2022 gemacht?
Für Frage 2: Bitte mal die Ausgabe von
Viele Grüße
Alex
Re: CuxD WebUI unter debmatic?
Verfasst: 07.06.2023, 15:26
von didiator
Hallo Alex,
Ok, ein Symlink. Dann ist mir einiges klar. Ich hatte /usr/local/etc/config gelöscht und mit toruch neu angelegt. M.E. stand da nach dem Import von redamtic nur Murx drin (siehe Code weiter unten). Dadurch ist der Symlink verloren gegangen.
Den Diff schicke ich Dir lieber nicht. Der ist riesig. interessiert Dich da etwas bestimmtes?
Ansonsten müsste ich wissen, wer der Symlink ist und wer das Originalverzeichnis. So wie Du schreibst, ist /usr/local/etc/config der Symlink und /etc/config das Originalverzeichnis.
Wenn dem so ist, würde ich die Dienste stoppen, die Verzeichnisse von /usr/local/etc/config nach /etc/config kopieren, die Rechte nachsehen und dann alles unter /usr/local/etc/config löschen. Wenn ich dann mit ln -s /etc/config /usr/local/etc/config den Symlink wiederhergestellt habe, müsste ich die Dienste doch wieder starten können. Es müsste dann ja die identische hm_addons.cfg referenziert werden.
Unter /etc/config/hm_addons.cfg hatte ich mir übrigens die Konfiguration weggesichert wie sie vorab war:
Code: Alles auswählen
mh {CONFIG_URL /addons/mh/index.cgi CONFIG_DESCRIPTION {de {<li>Sicherer VPN Fernzugriff</li><li>SMS Versand</li><li>Versand von PUSH Nachrichten</li><li>Mail Versand per Skript</li>} en {<li>Secure VPN remote access</li><li>Send SMS Messages</li><li>Send push notifications</li><li>Send dynamic eMails</li>}}}
Davon ist m.E. nach nichts zu gebrauchen, oder?
Würdest Du auch so vorgehen?
Re: CuxD WebUI unter debmatic?
Verfasst: 07.06.2023, 15:31
von didiator
Sorry, noch eine Nachfrage: Es sind wirklich die Verzeichnisse via Symlink verbunden, nicht die hm_addons.cfg? dann müsste der Symlink durch das Einspielen des Redmatic Backups gebrochen worden sein. Das Backup war vom November 2022.