Nun wollte ich mal ein Backup der Datenbank anlegen, da das automatische am Montag nicht funktioniert hat (database.backup='/tmp/snapshots/backup/historian/db_%Y-w%W.gz'). Das Verzeichnis ist vorhanden und erreich- und beschreibbar. Nicht wundern, auf /tmp/snapshots/ habe ich das Backupverzeichnis eines angeschlossenen USB-Sticks gemountet. Die Daten wäre also nicht futsch. Das habe ich gemacht, damit snapshots der Webcams einen Reboot überleben und ich die dortige Konfiguration nicht ändern muss. Aber das nur nebenbei.
Alternativ habe ich heute mal ein Backup nach der Anleitung in "Re: Tipps & Tricks zum CCU-Historian" probiert. Das scheint auch funktioniert zu haben, aber ich habe ein paar merkwürdige Fehlermeldungen erhalten. Kann sich jemand einen Reim darauf machen. Hier die komplette Konsolenausgabe von putty:
Code: Alles auswählen
# cd /usr/local/addons/ccu-historian/ccu-historian
# ls
LICENSE.txt lib
ccu-historian-sample.config webapp
ccu-historian.jar
# /usr/local/etc/config/rc.d/ccu-historian stop
# /opt/java/bin/java -jar ccu-historian.jar -config ../ccu-historian.config -createscript backup.sql
WARNING: The library file '/opt/java-azul/lib/aarch32/client/libjvm.so' is corrupted! Further execution might lead to unexpected behavior. Ensure that you have downloaded the build from http://zulu.org/download/
WARNING: The library file '/opt/java-azul/lib/aarch32/libverify.so' is corrupted! Further execution might lead to unexpected behavior. Ensure that you have downloaded the build from http://zulu.org/download/
WARNING: The library file '/opt/java-azul/lib/aarch32/libjava.so' is corrupted! Further execution might lead to unexpected behavior. Ensure that you have downloaded the build from http://zulu.org/download/
WARNING: The library file '/opt/java-azul/lib/aarch32/libzip.so' is corrupted! Further execution might lead to unexpected behavior. Ensure that you have downloaded the build from http://zulu.org/download/
2018-07-10 17:45:15|INFO |CCU-Historian V2.0.0-beta.3
2018-07-10 17:45:15|INFO |(C)MDZ (info@ccu-historian.de)
WARNING: The library file '/opt/java-azul/lib/aarch32/libnio.so' is corrupted! Further execution might lead to unexpected behavior. Ensure that you have downloaded the build from http://zulu.org/download/
WARNING: The library file '/opt/java-azul/lib/aarch32/libnet.so' is corrupted! Further execution might lead to unexpected behavior. Ensure that you have downloaded the build from http://zulu.org/download/
2018-07-10 17:45:17|INFO |Starting base services
2018-07-10 17:45:17|INFO |Starting dump of database
2018-07-10 17:46:17|INFO |Dump of database completed
# /usr/local/etc/config/rc.d/ccu-historian start
#
Gruß Xel66