Database in use

Das Langzeitarchiv für HomeMatic

Moderator: Co-Administratoren

derrapf
Beiträge: 815
Registriert: 17.12.2012, 22:29

Database in use

Beitrag von derrapf » 19.09.2018, 12:37

Hallo alle
Ich wollt heute mal wieder schauen was der Historian macht und stelle fest dass er nicht funktioniert.
Ein Blick in die Logs lieferte, dass angeblich die database in use wäre.
Ich habe den Hstorian beendet und per ps geschaut ob noch eine weitere Instanz läuft

Code: Alles auswählen

root@SynologyNAS:~# ps -e | grep java
root@SynologyNAS:~# 
Sieht aber nicht so aus.
Log gelöscht und Historian über die Synology wieder neu gestartet.
Jetzt sieht das Log auf einmal so aus

Code: Alles auswählen

2018-09-19 12:34:16|INFO   |CCU-Historian V2.0.0-beta.1
2018-09-19 12:34:16|INFO   |(C)MDZ (info@ccu-historian.de)
2018-09-19 12:34:18|INFO   |Starting base services
2018-09-19 12:34:18|INFO   |Connecting to database
2018-09-19 12:34:21|INFO   |Starting database web server
2018-09-19 12:34:21|INFO   |Setting up device 1
2018-09-19 12:34:21|INFO   |Creating HM script client for http://192.168.111.160:8181/tclrega.exe
2018-09-19 12:34:21|INFO   |Setting up plug-in 1
2018-09-19 12:34:21|INFO   |Configured following interfaces: BidCos-RF, HmIP-RF, SysVar, CUxD
2018-09-19 12:34:21|INFO   |Starting interfaces
2018-09-19 12:34:21|INFO   |Starting XML-RPC server on port 2098
2018-09-19 12:34:22|INFO   |Starting historian
2018-09-19 12:34:22|INFO   |Starting web server
2018-09-19 12:34:23|INFO   |Web server port: 81
2018-09-19 12:34:46|WARNING|Device BidCos-RF.CENTRAL.PONG does not exist
2018-09-19 12:34:47|WARNING|Device BidCos-RF.JEQ0098152:0.DEVICE_IN_BOOTLOADER does not exist
2018-09-19 12:34:47|WARNING|Device BidCos-RF.JEQ0098152:0.STICKY_UNREACH does not exist
2018-09-19 12:34:47|WARNING|Device BidCos-RF.JEQ0098152:0.UNREACH does not exist
2018-09-19 12:34:47|WARNING|Device BidCos-RF.JEQ0098187:0.STICKY_UNREACH does not exist
2018-09-19 12:34:47|WARNING|Device BidCos-RF.JEQ0098187:0.UNREACH does not exist
2018-09-19 12:34:48|WARNING|Device BidCos-RF.LEQ1274615.DUTY_CYCLE does not exist
2018-09-19 12:34:48|WARNING|Communication error
2018-09-19 12:34:48|WARNING|Exception: Invalid device
2018-09-19 12:34:48|WARNING|Detail: uk.co.wilson.net.xmlrpc.XMLRPCFailException: Invalid device
	at uk.co.wilson.net.xmlrpc.XMLRPCMessageProcessor.endElement(XMLRPCMessageProcessor.java:627)
	at uk.co.wilson.xml.MinML.parse(MinML.java:312)
	at uk.co.wilson.net.xmlrpc.XMLRPCMessageProcessor.parseMessage(XMLRPCMessageProcessor.java:443)
	at mdz.hc.itf.hm.HmXmlRpcClient.getParamsetDescription(HmXmlRpcClient.groovy:54)
	at mdz.hc.itf.hm.HmXmlRpcInterface$_updateDeviceProperties_closure3.doCall(HmXmlRpcInterface.groovy:161)
	at mdz.hc.itf.hm.HmXmlRpcInterface.updateDeviceProperties(HmXmlRpcInterface.groovy:156)
	at mdz.hc.itf.hm.HmXmlRpcInterface.updateProperties(HmXmlRpcInterface.groovy:209)
	at mdz.hc.itf.Manager$_updateProperties_closure4.doCall(Manager.groovy:120)
	at mdz.hc.itf.Manager.updateProperties(Manager.groovy:117)
	at mdz.ccuhistorian.Historian.updateWithoutSubscriptionSupport(Historian.groovy:179)
	at mdz.ccuhistorian.Historian.access$1(Historian.groovy)
	at mdz.ccuhistorian.Historian$_run_closure2.doCall(Historian.groovy:104)
	at mdz.ccuhistorian.Historian$_run_closure2.call(Historian.groovy)
	at mdz.Exceptions.lambda$0(Exceptions.java:84)
	at mdz.Exceptions.catchToLog(Exceptions.java:74)
	at mdz.Exceptions.catchToLog(Exceptions.java:84)
	at mdz.ccuhistorian.Historian.run(Historian.groovy:102)
2018-09-19 12:34:48|WARNING|Communication error
2018-09-19 12:34:48|WARNING|Exception: Invalid device
2018-09-19 12:34:48|WARNING|Detail: uk.co.wilson.net.xmlrpc.XMLRPCFailException: Invalid device
	at uk.co.wilson.net.xmlrpc.XMLRPCMessageProcessor.endElement(XMLRPCMessageProcessor.java:627)
	at uk.co.wilson.xml.MinML.parse(MinML.java:312)
	at uk.co.wilson.net.xmlrpc.XMLRPCMessageProcessor.parseMessage(XMLRPCMessageProcessor.java:443)
	at mdz.hc.itf.hm.HmXmlRpcClient.getParamsetDescription(HmXmlRpcClient.groovy:54)
	at mdz.hc.itf.hm.HmXmlRpcInterface$_updateDeviceProperties_closure3.doCall(HmXmlRpcInterface.groovy:161)
	at mdz.hc.itf.hm.HmXmlRpcInterface.updateDeviceProperties(HmXmlRpcInterface.groovy:156)
	at mdz.hc.itf.hm.HmXmlRpcInterface.updateProperties(HmXmlRpcInterface.groovy:209)
	at mdz.hc.itf.Manager$_updateProperties_closure4.doCall(Manager.groovy:120)
	at mdz.hc.itf.Manager.updateProperties(Manager.groovy:117)
	at mdz.ccuhistorian.Historian.updateWithoutSubscriptionSupport(Historian.groovy:179)
	at mdz.ccuhistorian.Historian.access$1(Historian.groovy)
	at mdz.ccuhistorian.Historian$_run_closure2.doCall(Historian.groovy:104)
	at mdz.ccuhistorian.Historian$_run_closure2.call(Historian.groovy)
	at mdz.Exceptions.lambda$0(Exceptions.java:84)
	at mdz.Exceptions.catchToLog(Exceptions.java:74)
	at mdz.Exceptions.catchToLog(Exceptions.java:84)
	at mdz.ccuhistorian.Historian.run(Historian.groovy:102)
2018-09-19 12:34:48|WARNING|Communication error
2018-09-19 12:34:48|WARNING|Exception: Invalid device
2018-09-19 12:34:48|WARNING|Detail: uk.co.wilson.net.xmlrpc.XMLRPCFailException: Invalid device
	at uk.co.wilson.net.xmlrpc.XMLRPCMessageProcessor.endElement(XMLRPCMessageProcessor.java:627)
	at uk.co.wilson.xml.MinML.parse(MinML.java:312)
	at uk.co.wilson.net.xmlrpc.XMLRPCMessageProcessor.parseMessage(XMLRPCMessageProcessor.java:443)
	at mdz.hc.itf.hm.HmXmlRpcClient.getParamsetDescription(HmXmlRpcClient.groovy:54)
	at mdz.hc.itf.hm.HmXmlRpcInterface$_updateDeviceProperties_closure3.doCall(HmXmlRpcInterface.groovy:161)
	at mdz.hc.itf.hm.HmXmlRpcInterface.updateDeviceProperties(HmXmlRpcInterface.groovy:156)
	at mdz.hc.itf.hm.HmXmlRpcInterface.updateProperties(HmXmlRpcInterface.groovy:209)
	at mdz.hc.itf.Manager$_updateProperties_closure4.doCall(Manager.groovy:120)
	at mdz.hc.itf.Manager.updateProperties(Manager.groovy:117)
	at mdz.ccuhistorian.Historian.updateWithoutSubscriptionSupport(Historian.groovy:179)
	at mdz.ccuhistorian.Historian.access$1(Historian.groovy)
	at mdz.ccuhistorian.Historian$_run_closure2.doCall(Historian.groovy:104)
	at mdz.ccuhistorian.Historian$_run_closure2.call(Historian.groovy)
	at mdz.Exceptions.lambda$0(Exceptions.java:84)
	at mdz.Exceptions.catchToLog(Exceptions.java:74)
	at mdz.Exceptions.catchToLog(Exceptions.java:84)
	at mdz.ccuhistorian.Historian.run(Historian.groovy:102)
2018-09-19 12:34:48|WARNING|Communication error
2018-09-19 12:34:48|WARNING|Exception: Invalid device
2018-09-19 12:34:48|WARNING|Detail: uk.co.wilson.net.xmlrpc.XMLRPCFailException: Invalid device
	at uk.co.wilson.net.xmlrpc.XMLRPCMessageProcessor.endElement(XMLRPCMessageProcessor.java:627)
	at uk.co.wilson.xml.MinML.parse(MinML.java:312)
	at uk.co.wilson.net.xmlrpc.XMLRPCMessageProcessor.parseMessage(XMLRPCMessageProcessor.java:443)
	at mdz.hc.itf.hm.HmXmlRpcClient.getParamsetDescription(HmXmlRpcClient.groovy:54)
	at mdz.hc.itf.hm.HmXmlRpcInterface$_updateDeviceProperties_closure3.doCall(HmXmlRpcInterface.groovy:161)
	at mdz.hc.itf.hm.HmXmlRpcInterface.updateDeviceProperties(HmXmlRpcInterface.groovy:156)
	at mdz.hc.itf.hm.HmXmlRpcInterface.updateProperties(HmXmlRpcInterface.groovy:209)
	at mdz.hc.itf.Manager$_updateProperties_closure4.doCall(Manager.groovy:120)
	at mdz.hc.itf.Manager.updateProperties(Manager.groovy:117)
	at mdz.ccuhistorian.Historian.updateWithoutSubscriptionSupport(Historian.groovy:179)
	at mdz.ccuhistorian.Historian.access$1(Historian.groovy)
	at mdz.ccuhistorian.Historian$_run_closure2.doCall(Historian.groovy:104)
	at mdz.ccuhistorian.Historian$_run_closure2.call(Historian.groovy)
	at mdz.Exceptions.lambda$0(Exceptions.java:84)
	at mdz.Exceptions.catchToLog(Exceptions.java:74)
	at mdz.Exceptions.catchToLog(Exceptions.java:84)
	at mdz.ccuhistorian.Historian.run(Historian.groovy:102)
2018-09-19 12:34:48|WARNING|Communication error
2018-09-19 12:34:48|WARNING|Exception: Invalid device
2018-09-19 12:34:48|WARNING|Detail: uk.co.wilson.net.xmlrpc.XMLRPCFailException: Invalid device
	at uk.co.wilson.net.xmlrpc.XMLRPCMessageProcessor.endElement(XMLRPCMessageProcessor.java:627)
	at uk.co.wilson.xml.MinML.parse(MinML.java:312)
	at uk.co.wilson.net.xmlrpc.XMLRPCMessageProcessor.parseMessage(XMLRPCMessageProcessor.java:443)
	at mdz.hc.itf.hm.HmXmlRpcClient.getParamsetDescription(HmXmlRpcClient.groovy:54)
	at mdz.hc.itf.hm.HmXmlRpcInterface$_updateDeviceProperties_closure3.doCall(HmXmlRpcInterface.groovy:161)
	at mdz.hc.itf.hm.HmXmlRpcInterface.updateDeviceProperties(HmXmlRpcInterface.groovy:156)
	at mdz.hc.itf.hm.HmXmlRpcInterface.updateProperties(HmXmlRpcInterface.groovy:209)
	at mdz.hc.itf.Manager$_updateProperties_closure4.doCall(Manager.groovy:120)
	at mdz.hc.itf.Manager.updateProperties(Manager.groovy:117)
	at mdz.ccuhistorian.Historian.updateWithoutSubscriptionSupport(Historian.groovy:179)
	at mdz.ccuhistorian.Historian.access$1(Historian.groovy)
	at mdz.ccuhistorian.Historian$_run_closure2.doCall(Historian.groovy:104)
	at mdz.ccuhistorian.Historian$_run_closure2.call(Historian.groovy)
	at mdz.Exceptions.lambda$0(Exceptions.java:84)
	at mdz.Exceptions.catchToLog(Exceptions.java:74)
	at mdz.Exceptions.catchToLog(Exceptions.java:84)
	at mdz.ccuhistorian.Historian.run(Historian.groovy:102)
CCU2 geprüft: Die läuft ganz normal, ohne Fehlermeldungen.
Kann mir jemand den Spuk erklären, bzw. eine Hilfe geben wie ich dieses Invalid Device finde?

Gruss Ralf

NickHM
Beiträge: 3733
Registriert: 23.09.2017, 12:04
Hat sich bedankt: 66 Mal
Danksagung erhalten: 120 Mal

Re: Database in use

Beitrag von NickHM » 19.09.2018, 12:46

Hallo

stell in der config Datei den Log Level für Log File mal auf "Finest"
Dann noch mal starten.

Log File und config Datei hier rein kopieren.

derrapf
Beiträge: 815
Registriert: 17.12.2012, 22:29

Re: Database in use

Beitrag von derrapf » 19.09.2018, 13:42

Hallo Nick
Der Loglevel stand schon auf FINEST.
Anbei das aktuelle Log und die Config (die musste ich in *.txt umbenennen)
Gruss Ralf
Dateianhänge
ccu-historian.txt
(3.24 KiB) 59-mal heruntergeladen
ccu-historian.log
(15.88 KiB) 57-mal heruntergeladen

NickHM
Beiträge: 3733
Registriert: 23.09.2017, 12:04
Hat sich bedankt: 66 Mal
Danksagung erhalten: 120 Mal

Re: Database in use

Beitrag von NickHM » 19.09.2018, 16:35

hättest Du das nicht einfach in Code Tags hier einfügen können ?

Code: Alles auswählen

hier meine config

derrapf
Beiträge: 815
Registriert: 17.12.2012, 22:29

Re: Database in use

Beitrag von derrapf » 19.09.2018, 17:54

Hi
Egal wie man's macht ist es verkehrt;-)
Hab jetz alle Kommentare rausgenommen, dann ist es kürzer.

Code: Alles auswählen


   logSystem.fileLevel=Level.FINEST
   logSystem.fileName='/volume1/Medien/server-extern/Synology/historian/ccu-historian-%g.log'
   logSystem.fileLimit=10000000
   logSystem.binRpcLevel=Level.WARNING
   
   database.dir='/volume1/@appstore/ccu-historian/data'
   database.webEnable=true
   database.webAllowOthers=true
   
   webServer.port=81
   webServer.dir='/volume1/@appstore/ccu-historian/webapp'
   webServer.logLevel=Level.WARNING
   webServer.historianAddress='192.168.111.180'

   devices.historianAddress='192.168.111.180'
   devices.device1.type=CCU2
   devices.device1.address='192.168.111.160'
   devices.device1.plugin1.type=CUXD
Gruss Ralf

Mathias
Beiträge: 1780
Registriert: 03.11.2010, 10:25
System: CCU
Wohnort: Aachen
Hat sich bedankt: 58 Mal
Danksagung erhalten: 258 Mal
Kontaktdaten:

Re: Database in use

Beitrag von Mathias » 19.09.2018, 21:01

Es handelt sich um WARNINGs, der CCU-Historian sollte alle anderen Datenpunkte normal aufzeichnen.

Die angemeckerten Datenpunkte scheinen nicht mehr zu existieren, aus welchen Gründen auch immer. Die Aufzeichnung also einfach unter Datenpunktkonfiguration deaktivieren, oder die Datenpunkte komplett löschen.

Code: Alles auswählen

2018-09-19 13:35:09|WARNING|Device BidCos-RF.CENTRAL.PONG does not exist
2018-09-19 13:35:09|WARNING|Device BidCos-RF.JEQ0098152:0.DEVICE_IN_BOOTLOADER does not exist
2018-09-19 13:35:10|WARNING|Device BidCos-RF.JEQ0098152:0.STICKY_UNREACH does not exist
2018-09-19 13:35:10|WARNING|Device BidCos-RF.JEQ0098152:0.UNREACH does not exist
2018-09-19 13:35:10|WARNING|Device BidCos-RF.JEQ0098187:0.STICKY_UNREACH does not exist
2018-09-19 13:35:10|WARNING|Device BidCos-RF.JEQ0098187:0.UNREACH does not exist
2018-09-19 13:35:10|WARNING|Device BidCos-RF.LEQ1274615.DUTY_CYCLE does not exist
Gruß
Mathias

derrapf
Beiträge: 815
Registriert: 17.12.2012, 22:29

Re: Database in use

Beitrag von derrapf » 20.09.2018, 12:32

Hallo Mathias, Nick
Danke für die Rückmeldung
Eines versteh ich noch nicht ganz: Zu dem Zeitpunkt als ich den Thread und die Antworten geschrieben hab war die Historian Seite nicht mehr erreichbar. Ich dachte es lag eben an diesen Fehlern. Ich habe aber den Historian laufen lassen, um mehr Losgs zu bekommen.
Eben habe ich nochmal die Seite aufgerufen und da war sie erreichbar.
Ich habe auch keine Ahnung woher der allererste Fehler kam, dass die Datenbank "in use" wäre.
Kann das Eine was mit dem Anderen zu tun haben?
Ich fasse die Syno normalerweise nicht an. D.h. ich kann ausschliessen, dass irgendwas am Hstorian geändert wurde. Das einzige was da ab und zu passiert ist, dass sich die Syno updatet und neu startet.
Das eine Device das es nicht mehr gibt wurde tatsächlich getauscht. Sowas bekommt der Hstorian nicht mit richtig? Mann muss also Geräte immer manuell entfernen?

Gruss Ralf

NickHM
Beiträge: 3733
Registriert: 23.09.2017, 12:04
Hat sich bedankt: 66 Mal
Danksagung erhalten: 120 Mal

Re: Database in use

Beitrag von NickHM » 20.09.2018, 21:41

derrapf hat geschrieben:
20.09.2018, 12:32

Das eine Device das es nicht mehr gibt wurde tatsächlich getauscht. Sowas bekommt der Hstorian nicht mit richtig? Mann muss also Geräte immer manuell entfernen?

Gruss Ralf
2x Ja. Historian weis nichts von der "Tauschfunktion " der WebUI. Und für Historian ist eine neue Gerätenummer ein neues Gerät.

derrapf
Beiträge: 815
Registriert: 17.12.2012, 22:29

Re: Database in use

Beitrag von derrapf » 21.09.2018, 03:04

OK.
Bleibt die Frage warum "database in use" war und das webui eine Zeitlang nicht erreichbar. Ominiös.
Gruss Ralf

Mathias
Beiträge: 1780
Registriert: 03.11.2010, 10:25
System: CCU
Wohnort: Aachen
Hat sich bedankt: 58 Mal
Danksagung erhalten: 258 Mal
Kontaktdaten:

Re: Database in use

Beitrag von Mathias » 26.09.2018, 21:05

NickHM hat geschrieben:
20.09.2018, 21:41
derrapf hat geschrieben:
20.09.2018, 12:32

Das eine Device das es nicht mehr gibt wurde tatsächlich getauscht. Sowas bekommt der Hstorian nicht mit richtig? Mann muss also Geräte immer manuell entfernen?

Gruss Ralf
2x Ja. Historian weis nichts von der "Tauschfunktion " der WebUI. Und für Historian ist eine neue Gerätenummer ein neues Gerät.
Der CCU-Historian fängt automatisch mit der Aufzeichnung des neuen Gerätes an. Bevor das alte Gerät aber gelöscht wird, kann die bisherige Historie für das neue Gerät übernommen werden: Einfach den neuen und den alten Datenpunkt auswählen und über "Werkzeuge" die Historie von dem einen in den anderen kopieren.

Gruß
Mathias

Antworten

Zurück zu „CCU-Historian“