Seite 1 von 1

Raspberrymatic + Ext. CCU-Historian Verbindungsfehler

Verfasst: 14.07.2019, 09:53
von quito96
Hallo zusammen,

ich habe seit April meine alte CCU2 auf ein Tinkerboard S + raspberrymatic 3.45.7.20190622 + externer ccu-historian 2.2.0-beta
umgestellt und auch am laufen gehabt.

Nun ist gestern meine Raspi mit dem Historian gestorben :-( .
Nun hatte ich pfiffiger Weise :roll: ein Backup des Pi und auch der letzten ccu-historian.config Datei.
Leider muss ich was übersehen haben :?: , da ich aktuell die Verbindung zur rasberrymatic nicht mehr herstellen kann.

Weiss jemand Rat?? anbei die config und ein Auszug der log Datei (auf FINEST eingestellt) des historian.

Vielen Dank…

Code: Alles auswählen

// CCU-Historian Konfiguration
// 
// Hinweise:
// Kommentarzeilen starten mit zwei Schr‰gstrichen (//). Alle Zeichen nach den Schr‰gstrichen
// werden ignoriert. Zeichenketten als Optionswert m¸ssen von einfachen Anf¸hrungszeichen (')
// umschlossen sein. Weitere Informationen sind auch im Abschnitt 3 im Handbuch zu finden.
//
// Liste der zur Verf¸gung stehen Konfigurationsoptionen mit ihren jeweiligen Standardwerten:
//
logSystem.consoleLevel=Level.INFO
logSystem.fileLevel=Level.FINEST
logSystem.fileName='/opt/ccu-historian/ccu-historian-%g.log'
logSystem.fileLimit=1000000
logSystem.fileCount=3
logSystem.binRpcLevel=Level.WARNING
database.dir='/opt/ccu-historian/data'
database.name='history'
database.user='sa'
database.password='ccu'
// database.backup=''
database.webEnable=true
database.webPort=8082
database.webAllowOthers=true
database.tcpEnable=true
database.tcpPort=9092
database.tcpAllowOthers=true
database.pgEnable=true
database.pgPort=5435
database.pgAllowOthers=true
webServer.port=81
webServer.dir='/opt/ccu-historian/webapp'
webServer.logLevel=Level.WARNING
// webServer.historianAddress='192.168.2.105'
// webServer.trendDesigns // ... (s.a. Abschnitt 6.4.1 im Handbuch)
// webServer.apiKeys=[]
// historian.metaCycle=3600000 // 1 Stunde
// devices.historianRpcPort=2011
// devices.historianAddress=null // eigene IP-Adresse automatisch ermitteln
devices.historianAddress='192.168.2.105'
webServer.historianAddress='192.168.2.105' 

// F¸r jede Zentrale bzw. jedes Ger‰t m¸ssen folgende zwei Optionen gesetzt werden
// (s.a. Abschnitt 3.2 im Handbuch):
// devices.device<Nr.>.type=<CCU1, CCU2 oder BINRPC> 
// devices.device<Nr.>.address='<IP-Adresse>'
//
// Optional kˆnnen noch folgende Optionen gesetzt werden:
// devices.device<Nr.>.plugin<Nr.>.type=<CUXD oder HMWLGW>
// devices.device<Nr.>.sysVarDataCycle=30000
// devices.device<Nr.>.reinitTimeout=300000
// devices.device<Nr.>.writeAccess=false
// devices.device<Nr.>.prefix=''
// devices.device1.watchdogProgram='CCU-Historian Ueberwachung'
// devices.device1.watchdogCycle=300000 // 5 Minuten
//
// Es muss im Folgenden mindestens eine Zentrale bzw. Ger‰t konfiguriert werden:

// Typ der Zentrale: CCU1, CCU2 oder BINRPC
devices.device1.type=CUSTOM_CCU
devices.device1.plugin1.type=BIDCOS_RF

// IP-Adresse der Zentrale
devices.device1.address= '192.168.2.113'
devices.device1.reinitTimeout=300000

// Falls CUxD verwendet wird, die Kommentarzeichen (//) vor folgender Zeile entfernen:
// devices.device1.plugin1.type=CUXD

// Falls das HomeMatic Wired LAN Gateway verwendet wird, die Kommentarzeichen (//) vor 
// folgender Zeile entfernen:
// devices.device1.plugin1.type=HMWLGW

// Falls CUxD und das HMWLGW verwendet wird, die Kommentarzeichen (//) vor folgenden
// zwei Zeilen entfernen:
// devices.device1.plugin1.type=CUXD
// devices.device1.plugin2.type=HMWLGW

Code: Alles auswählen

2019-07-14 09:49:22|FINEST |Sleeping
2019-07-14 09:49:52|FINE   |Reading configuration file ccu-historian.config
2019-07-14 09:49:52|FINE   |Log system configuration:
2019-07-14 09:49:52|FINE   |logSystem.consoleLevel=Level.INFO
2019-07-14 09:49:52|FINE   |logSystem.fileLevel=Level.FINEST
2019-07-14 09:49:52|FINE   |logSystem.fileName='/opt/ccu-historian/ccu-historian-%g.log'
2019-07-14 09:49:52|FINE   |logSystem.fileLimit=1000000
2019-07-14 09:49:52|FINE   |logSystem.fileCount=3
2019-07-14 09:49:52|FINE   |logSystem.binRpcLevel=Level.WARNING
2019-07-14 09:49:52|INFO   |Starting base services
2019-07-14 09:49:52|INFO   |Connecting to database
2019-07-14 09:49:52|FINE   |database.dir='/opt/ccu-historian/data'
2019-07-14 09:49:52|FINE   |database.name='history'
2019-07-14 09:49:52|FINE   |database.user='sa'
2019-07-14 09:49:52|FINE   |database.webEnable=true
2019-07-14 09:49:52|FINE   |database.webPort=8082
2019-07-14 09:49:52|FINE   |database.webAllowOthers=true
2019-07-14 09:49:52|FINE   |database.tcpEnable=true
2019-07-14 09:49:52|FINE   |database.tcpPort=9092
2019-07-14 09:49:52|FINE   |database.tcpAllowOthers=true
2019-07-14 09:49:52|FINE   |database.pgEnable=true
2019-07-14 09:49:52|FINE   |database.pgPort=5435
2019-07-14 09:49:52|FINE   |database.pgAllowOthers=true
2019-07-14 09:49:52|FINE   |database.backup=''
2019-07-14 09:49:52|FINE   |Database: Preparing table DATA_POINTS
2019-07-14 09:49:52|INFO   |Starting database web server
2019-07-14 09:49:52|FINE   |Database management URL: http://127.0.1.1:8082
2019-07-14 09:49:52|INFO   |Starting database TCP server
2019-07-14 09:49:52|INFO   |Databse TCP server port: 9092
2019-07-14 09:49:52|INFO   |Starting database PG server
2019-07-14 09:49:52|INFO   |PG ODBC driver port: 5435
2019-07-14 09:49:52|FINE   |Configuring interfaces
2019-07-14 09:49:52|FINE   |All devices: Reading configuration option 'historianBinRpcPort': 
2019-07-14 09:49:52|FINE   |All devices: Reading configuration option 'historianXmlRpcPort': 
2019-07-14 09:49:52|FINE   |All devices: Reading configuration option 'historianAddress': 192.168.2.105
2019-07-14 09:49:52|INFO   |Setting up device 1
2019-07-14 09:49:52|FINE   |Device 1: Reading configuration option 'type': CUSTOM_CCU
2019-07-14 09:49:52|FINE   |Device 1: Reading configuration option 'address': 192.168.2.113
2019-07-14 09:49:52|FINE   |Device 1: Reading configuration option 'reinitTimeout': 300000
2019-07-14 09:49:52|FINE   |Device 1: Reading configuration option 'prefix': 
2019-07-14 09:49:52|FINE   |Device 1: Reading configuration option 'writeAccess': 
2019-07-14 09:49:52|FINE   |Device 1: Reading configuration option 'sysVarDataCycle': 
2019-07-14 09:49:52|FINE   |Device 1: Reading configuration option 'timeout': 
2019-07-14 09:49:52|INFO   |Creating HM script client for http://192.168.2.113:8181/tclrega.exe
2019-07-14 09:49:52|INFO   |Setting up plug-in 1
2019-07-14 09:49:52|FINE   |Plug-in 1: Reading configuration option 'type': BIDCOS_RF
2019-07-14 09:49:52|INFO   |Configured following interfaces: SysVar, BidCos-RF
2019-07-14 09:49:52|INFO   |Starting interfaces
2019-07-14 09:49:52|INFO   |Starting XML-RPC server on port 2098
2019-07-14 09:49:52|FINE   |XML-RPC server address is http://192.168.2.105:2098
2019-07-14 09:49:57|FINE   |Reading system variable values
2019-07-14 09:49:57|FINER  |Getting values of system variables
2019-07-14 09:50:02|FINE   |Stopping XML-RPC server
2019-07-14 09:50:02|FINE   |Stopping main scheduler
2019-07-14 09:50:02|INFO   |Stopping database
2019-07-14 09:50:02|INFO   |Stopping base services
2019-07-14 09:50:02|SEVERE |Exception: Read timed out
2019-07-14 09:50:02|SEVERE |Detail: java.net.SocketTimeoutException: Read timed out
	at mdz.hc.itf.binrpc.BinRpcClient.receive(BinRpcClient.groovy:104)
	at mdz.hc.itf.binrpc.BinRpcClient.call(BinRpcClient.groovy:144)
	at mdz.hc.itf.hm.HmBinRpcInterface.init(HmBinRpcInterface.groovy:121)
	at mdz.hc.itf.hm.HmBinRpcInterface.start(HmBinRpcInterface.groovy:79)
	at mdz.hc.itf.Manager$_start_closure1.doCall(Manager.groovy:60)
	at mdz.hc.itf.Manager.start(Manager.groovy:58)
	at mdz.ccuhistorian.HistorianSystem.<init>(HistorianSystem.groovy:38)
	at mdz.ccuhistorian.Main.start(Main.groovy:96)
	at mdz.ccuhistorian.Main.access$0(Main.groovy)
	at mdz.ccuhistorian.Main$_run_closure4.doCall(Main.groovy:73)
	at mdz.ccuhistorian.Main$_run_closure4.call(Main.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.Main.run(Main.groovy:73)
	at mdz.ccuhistorian.Main.main(Main.groovy:41)
2019-07-14 09:50:02|FINEST |Sleeping

Re: Raspberrymatic + Ext. CCU-Historian Verbindungsfehler

Verfasst: 14.07.2019, 10:35
von NickHM
Hallo

ich würde versuchen den RasPi laut Anleitung komplett neu mit Historian zu installieren.
Wenn das läuft, dann Historian stoppen und die alte Konfig und die alte Datenbank drauf kopieren.

Re: Raspberrymatic + Ext. CCU-Historian Verbindungsfehler

Verfasst: 14.07.2019, 11:15
von quito96
Hi,

habe ich gerade umgesetzt, alles gelöscht bis auf die alte Datenbank und neu installiert.
Klappt also wieder. :lol:

Dann werde ich mal gleich noch ein Backup erstellen. :!: