CCU-Historian Verbindung zur RaspberryMatic

Das Langzeitarchiv für HomeMatic

Moderator: Co-Administratoren

Antworten
Int17
Beiträge: 34
Registriert: 30.09.2017, 21:40
Hat sich bedankt: 1 Mal

CCU-Historian Verbindung zur RaspberryMatic

Beitrag von Int17 » 29.10.2020, 11:12

Hallo,

ich bekomme keine Verbindung (Timeout) zur RaspberryMatic.
Habe BIDCOS_RF und CuxD als Plugin probiert:

RaspberryMatic:
Raspi Modell 4 mit RPI-RF-MOD
RaspberryMatic 3.53.30.20201024

CCU-Historian:
Raspi Modell 3
RaspberryPI Linux 5.4.72-v7+ #1356 SMP Thu Oct 22 13:56:54 BST 2020 armv7l GNU/Linux
# java -version
openjdk version "11.0.9" 2020-10-20
OpenJDK Runtime Environment (build 11.0.9+11-post-Raspbian-1deb10u1)
OpenJDK Server VM (build 11.0.9+11-post-Raspbian-1deb10u1, mixed mode)

Config Datei:

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 Handbuchs
// (https://github.com/mdzio/ccu-historian/wiki#konfiguration) zu finden.
//
// Liste der zur Verfügung stehen Konfigurationsoptionen mit ihren jeweiligen Standardwerten:
//
// logSystem.consoleLevel=Level.INFO
// logSystem.fileLevel=Level.OFF
logSystem.fileLevel=Level.FINER
logSystem.fileName='/opt/ccu-historian/logs/ccu-historian-%g.log'
// logSystem.fileLimit=1000000
// logSystem.fileCount=5
// logSystem.binRpcLevel=Level.WARNING
database.dir='/opt/ccu-historian/data'
// database.name='history'
// database.user='sa'
database.password='homematic'
// database.backup=''
// database.webEnable=true
database.webPort=8082
database.webAllowOthers=true
// database.tcpEnable=false
// database.tcpPort=9092
// database.tcpAllowOthers=false
// database.pgEnable=false
// database.pgPort=5435
// database.pgAllowOthers=false
// webServer.port=80
webServer.dir='/opt/ccu-historian/webapp'
// webServer.logLevel=Level.WARNING
webServer.historianAddress='<IP des Historian Raspi>'
// webServer.trendDesigns ... (s.a. https://github.com/mdzio/ccu-historian/wiki#anpassung-der-trend-darstellung)
// webServer.apiKeys=[]
// webServer.menuLinks ... (s.a. https://github.com/mdzio/ccu-historian/wiki#eigene-verweise-auf-web-seiten)
// webServer.corsOrigin='*'
// historian.metaCycle=3600000 // 1 Stunde
// historian.bufferCount=5000
// historian.bufferTime=0
// historian.defaultDisabled=false
// historian.defaultHidden=false
// devices.historianBinRpcPort=2099
// devices.historianXmlRpcPort=2098
devices.historianAddress='<IP des Historian Raspi>'
// base.scriptDir='.'
//
// Für jede Zentrale bzw. jedes Gerät müssen folgende zwei Optionen gesetzt werden
// (s.a. https://github.com/mdzio/ccu-historian/wiki#konfiguration-der-angeschlossenen-ger%C3%A4te):
// 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.>.watchdogProgram=''
// devices.device<Nr.>.watchdogCycle=300000 // 5 Minuten
// Bei Anbindung von mehreren Zentralen muss ein Präfix je Zentrale gesetzt werden!
// devices.device<Nr.>.prefix=''
//
// Es muss im Folgenden mindestens eine Zentrale bzw. Gerät konfiguriert werden:

// Typ der Zentrale: CCU1 oder CCU2 oder CUSTOM_CCU
devices.device1.type=CUSTOM_CCU
// IP-Adresse der Zentrale
devices.device1.address='<RaspberryMatic IP>'
// Optional können noch folgende Optionen gesetzt werden:
devices.device1.plugin1.type=BIDCOS_RF
devices.device1.plugin2.type=CUXD
// Userid & Password
// devices.device1.username='<userid>'
// devices.device1.password='<pw>'

// 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

// Zum Freischalten der Web-Links zu den Beispiel-Web-Seiten, die Kommentarzeichen (//) vor folgenden
// zwei Zeilen entfernen:
webServer.menuLinks.link1.text='H2-HighChart'
webServer.menuLinks.link1.address='/custom/h2-highchart/H2-HighChart.gy'
// webServer.menuLinks.link2.text='Beispiel 1 - Vorjahresvergleich'
// webServer.menuLinks.link2.address='/custom/example1.gy'
Firewall in RaspberryMatic:
Firewall.jpg
Sicherheit in RaspberryMatic:
Auth.jpg
Log:

Code: Alles auswählen

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/opt/ccu-historian/lib/groovy-2.5.13-indy.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2020-10-29 10:47:14|INFO   |CCU-Historian V2.5.1
2020-10-29 10:47:15|INFO   |(C)MDZ (info@ccu-historian.de)
2020-10-29 10:47:21|INFO   |Starting base services
2020-10-29 10:47:23|INFO   |Connecting to database
2020-10-29 10:47:26|INFO   |Starting database web server
2020-10-29 10:47:27|INFO   |Setting up device 1
2020-10-29 10:47:28|INFO   |Creating HM script client for http://192.168.168.40:8181/tclrega.exe
2020-10-29 10:47:28|INFO   |Setting up plug-in 1
2020-10-29 10:47:29|INFO   |Setting up plug-in 2
2020-10-29 10:47:29|INFO   |Configured following interfaces: SysVar, BidCos-RF, CUxD
2020-10-29 10:47:29|INFO   |Starting interfaces
2020-10-29 10:47:29|INFO   |Starting BIN-RPC server on port 2099
2020-10-29 10:47:29|INFO   |Starting XML-RPC server on port 2098
2020-10-29 10:49:40|SEVERE |Exception: Die Wartezeit für die Verbindung ist abgelaufen (Connection timed out)
2020-10-29 10:49:40|SEVERE |Detail: java.net.ConnectException: Die Wartezeit für die Verbindung ist abgelaufen (Connection timed out)
        at mdz.hc.itf.hm.HmXmlRpcClient.init(HmXmlRpcClient.groovy:54)
        at mdz.hc.itf.hm.HmXmlRpcInterface.init(HmXmlRpcInterface.groovy:121)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.hc.itf.hm.HmXmlRpcInterface$_start_closure1.doCall(HmXmlRpcInterface.groovy:76)
        at mdz.hc.itf.hm.HmXmlRpcInterface$_start_closure1.doCall(HmXmlRpcInterface.groovy)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.Exceptions.lambda$0(Exceptions.java:84)
        at mdz.Exceptions.catchToLog(Exceptions.java:74)
        at mdz.Exceptions.catchToLog(Exceptions.java:84)
        at mdz.hc.itf.hm.HmXmlRpcInterface.start(HmXmlRpcInterface.groovy:76)
        at mdz.hc.itf.Manager$_start_closure1.doCall(Manager.groovy:58)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.hc.itf.Manager.start(Manager.groovy:56)
        at mdz.ccuhistorian.HistorianSystem.<init>(HistorianSystem.groovy:39)
        at mdz.ccuhistorian.Main.start(Main.groovy:100)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.ccuhistorian.Main$_run_closure4.doCall(Main.groovy:77)
        at mdz.ccuhistorian.Main$_run_closure4.doCall(Main.groovy)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        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:77)
        at mdz.ccuhistorian.Main.main(Main.groovy:45)
2020-10-29 10:49:40|INFO   |Connecting to 192.168.168.40:8701
2020-10-29 10:51:53|SEVERE |Exception: Die Wartezeit für die Verbindung ist abgelaufen (Connection timed out)
2020-10-29 10:51:53|SEVERE |Detail: java.net.ConnectException: Die Wartezeit für die Verbindung ist abgelaufen (Connection timed out)
        at mdz.hc.itf.binrpc.BinRpcClient.connect(BinRpcClient.groovy:60)
        at mdz.hc.itf.binrpc.BinRpcClient.send(BinRpcClient.groovy:74)
        at mdz.hc.itf.binrpc.BinRpcClient.call(BinRpcClient.groovy:142)
        at mdz.hc.itf.hm.HmBinRpcInterface.init(HmBinRpcInterface.groovy:124)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.hc.itf.hm.HmBinRpcInterface$_start_closure1.doCall(HmBinRpcInterface.groovy:78)
        at mdz.hc.itf.hm.HmBinRpcInterface$_start_closure1.doCall(HmBinRpcInterface.groovy)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.Exceptions.lambda$0(Exceptions.java:84)
        at mdz.Exceptions.catchToLog(Exceptions.java:74)
        at mdz.Exceptions.catchToLog(Exceptions.java:84)
        at mdz.hc.itf.hm.HmBinRpcInterface.start(HmBinRpcInterface.groovy:78)
        at mdz.hc.itf.Manager$_start_closure1.doCall(Manager.groovy:58)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.hc.itf.Manager.start(Manager.groovy:56)
        at mdz.ccuhistorian.HistorianSystem.<init>(HistorianSystem.groovy:39)
        at mdz.ccuhistorian.Main.start(Main.groovy:100)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.ccuhistorian.Main$_run_closure4.doCall(Main.groovy:77)
        at mdz.ccuhistorian.Main$_run_closure4.doCall(Main.groovy)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        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:77)
        at mdz.ccuhistorian.Main.main(Main.groovy:45)
2020-10-29 10:51:53|INFO   |Starting historian
2020-10-29 10:51:53|INFO   |Starting web server
2020-10-29 10:51:57|INFO   |Web server port: 80
2020-10-29 10:52:07|SEVERE |Exception: connect timed out
2020-10-29 10:52:07|SEVERE |Detail: java.net.SocketTimeoutException: connect timed out
        at mdz.hc.itf.hm.HmScriptClient.execute(HmScriptClient.groovy:357)
        at mdz.hc.itf.hm.HmScriptClient.getSystemVariables(HmScriptClient.groovy:60)
        at mdz.hc.itf.hm.HmSysVarInterface.getCache(HmSysVarInterface.groovy:79)
        at mdz.hc.itf.hm.HmSysVarInterface.getAllDataPoints(HmSysVarInterface.groovy:139)
        at mdz.ccuhistorian.Historian.browse(Historian.groovy:124)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.ccuhistorian.Historian$_updateDataPointMeta_closure3$_closure12.doCall(Historian.groovy:112)
        at mdz.ccuhistorian.Historian$_updateDataPointMeta_closure3$_closure12.doCall(Historian.groovy)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        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$_updateDataPointMeta_closure3.doCall(Historian.groovy:110)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.ccuhistorian.Historian.updateDataPointMeta(Historian.groovy:109)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.ccuhistorian.Historian$_run_closure2.doCall(Historian.groovy:103)
        at mdz.ccuhistorian.Historian$_run_closure2.doCall(Historian.groovy)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        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)
2020-10-29 10:56:50|SEVERE |Exception: Die Wartezeit für die Verbindung ist abgelaufen (Connection timed out)
2020-10-29 10:56:50|SEVERE |Detail: java.net.ConnectException: Die Wartezeit für die Verbindung ist abgelaufen (Connection timed out)
        at mdz.hc.itf.hm.HmXmlRpcClient.init(HmXmlRpcClient.groovy:54)
        at mdz.hc.itf.hm.HmXmlRpcInterface.init(HmXmlRpcInterface.groovy:121)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3$_closure4.doCall(HmReinitTask.groovy:83)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3$_closure4.call(HmReinitTask.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.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3.doCall(HmReinitTask.groovy:82)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3.call(HmReinitTask.groovy)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1.doCall(HmReinitTask.groovy:77)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1.call(HmReinitTask.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.hc.itf.hm.HmReinitTask.checkInterfaces(HmReinitTask.groovy:73)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2020-10-29 10:56:50|INFO   |Connecting to 192.168.168.40:8701
2020-10-29 10:59:03|SEVERE |Exception: Die Wartezeit für die Verbindung ist abgelaufen (Connection timed out)
2020-10-29 10:59:03|SEVERE |Detail: java.net.ConnectException: Die Wartezeit für die Verbindung ist abgelaufen (Connection timed out)
        at mdz.hc.itf.binrpc.BinRpcClient.connect(BinRpcClient.groovy:60)
        at mdz.hc.itf.binrpc.BinRpcClient.send(BinRpcClient.groovy:74)
        at mdz.hc.itf.binrpc.BinRpcClient.call(BinRpcClient.groovy:142)
        at mdz.hc.itf.hm.HmBinRpcInterface.init(HmBinRpcInterface.groovy:124)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3$_closure4.doCall(HmReinitTask.groovy:83)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3$_closure4.call(HmReinitTask.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.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3.doCall(HmReinitTask.groovy:82)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3.call(HmReinitTask.groovy)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1.doCall(HmReinitTask.groovy:77)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1.call(HmReinitTask.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.hc.itf.hm.HmReinitTask.checkInterfaces(HmReinitTask.groovy:73)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2020-10-29 11:01:47|SEVERE |Exception: Die Wartezeit für die Verbindung ist abgelaufen (Connection timed out)
2020-10-29 11:01:47|SEVERE |Detail: java.net.ConnectException: Die Wartezeit für die Verbindung ist abgelaufen (Connection timed out)
        at mdz.hc.itf.hm.HmXmlRpcClient.init(HmXmlRpcClient.groovy:54)
        at mdz.hc.itf.hm.HmXmlRpcInterface.init(HmXmlRpcInterface.groovy:121)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3$_closure4.doCall(HmReinitTask.groovy:83)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3$_closure4.call(HmReinitTask.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.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3.doCall(HmReinitTask.groovy:82)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3.call(HmReinitTask.groovy)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1.doCall(HmReinitTask.groovy:77)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1.call(HmReinitTask.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.hc.itf.hm.HmReinitTask.checkInterfaces(HmReinitTask.groovy:73)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2020-10-29 11:01:47|INFO   |Connecting to 192.168.168.40:8701
2020-10-29 11:04:00|SEVERE |Exception: Die Wartezeit für die Verbindung ist abgelaufen (Connection timed out)
2020-10-29 11:04:00|SEVERE |Detail: java.net.ConnectException: Die Wartezeit für die Verbindung ist abgelaufen (Connection timed out)
        at mdz.hc.itf.binrpc.BinRpcClient.connect(BinRpcClient.groovy:60)
        at mdz.hc.itf.binrpc.BinRpcClient.send(BinRpcClient.groovy:74)
        at mdz.hc.itf.binrpc.BinRpcClient.call(BinRpcClient.groovy:142)
        at mdz.hc.itf.hm.HmBinRpcInterface.init(HmBinRpcInterface.groovy:124)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3$_closure4.doCall(HmReinitTask.groovy:83)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3$_closure4.call(HmReinitTask.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.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3.doCall(HmReinitTask.groovy:82)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3.call(HmReinitTask.groovy)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1.doCall(HmReinitTask.groovy:77)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1.call(HmReinitTask.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.hc.itf.hm.HmReinitTask.checkInterfaces(HmReinitTask.groovy:73)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2020-10-29 11:06:44|SEVERE |Exception: Die Wartezeit für die Verbindung ist abgelaufen (Connection timed out)
2020-10-29 11:06:44|SEVERE |Detail: java.net.ConnectException: Die Wartezeit für die Verbindung ist abgelaufen (Connection timed out)
        at mdz.hc.itf.hm.HmXmlRpcClient.init(HmXmlRpcClient.groovy:54)
        at mdz.hc.itf.hm.HmXmlRpcInterface.init(HmXmlRpcInterface.groovy:121)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3$_closure4.doCall(HmReinitTask.groovy:83)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3$_closure4.call(HmReinitTask.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.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3.doCall(HmReinitTask.groovy:82)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1$_closure3.call(HmReinitTask.groovy)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1.doCall(HmReinitTask.groovy:77)
        at mdz.hc.itf.hm.HmReinitTask$_checkInterfaces_closure1.call(HmReinitTask.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.hc.itf.hm.HmReinitTask.checkInterfaces(HmReinitTask.groovy:73)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2020-10-29 11:06:44|INFO   |Connecting to 192.168.168.40:8701
Ports auf der CCU-Historian Raspi

Code: Alles auswählen

Auf Historian:
# ss -tulpn
Netid         State          Recv-Q         Send-Q                 Local Address:Port                  Peer Address:Port
udp           UNCONN         0              0                            0.0.0.0:68                         0.0.0.0:*            users:(("dhcpcd",pid=420,fd=10))
udp           UNCONN         0              0                            0.0.0.0:47832                      0.0.0.0:*            users:(("avahi-daemon",pid=378,fd=14))
udp           UNCONN         0              0                            0.0.0.0:5353                       0.0.0.0:*            users:(("avahi-daemon",pid=378,fd=12))
udp           UNCONN         0              0                                  *:546                              *:*            users:(("dhcpcd",pid=420,fd=17))
udp           UNCONN         0              0                                  *:51432                            *:*            users:(("avahi-daemon",pid=378,fd=15))
udp           UNCONN         0              0                                  *:5353                             *:*            users:(("avahi-daemon",pid=378,fd=13))
tcp           LISTEN         0              128                          0.0.0.0:22                         0.0.0.0:*            users:(("sshd",pid=4874,fd=3))
tcp           LISTEN         0              128                        127.0.0.1:6010                       0.0.0.0:*            users:(("sshd",pid=4822,fd=11))
tcp           LISTEN         0              128                        127.0.0.1:6011                       0.0.0.0:*            users:(("sshd",pid=5141,fd=11))
tcp           LISTEN         0              50                                 *:2098                             *:*            users:(("java",pid=5181,fd=36))
tcp           LISTEN         0              50                                 *:8082                             *:*            users:(("java",pid=5181,fd=34))
tcp           LISTEN         0              50                                 *:2099                             *:*            users:(("java",pid=5181,fd=35))
tcp           LISTEN         0              128                             [::]:22                            [::]:*            users:(("sshd",pid=4874,fd=4))
tcp           LISTEN         0              128                            [::1]:6010                          [::]:*            users:(("sshd",pid=4822,fd=10))
tcp           LISTEN         0              128                            [::1]:6011                          [::]:*            users:(("sshd",pid=5141,fd=10))
Ports auf der RaspberryMatic Raspi

Code: Alles auswählen

# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:49292           0.0.0.0:*               LISTEN      755/lighttpd
tcp        0      0 0.0.0.0:9292            0.0.0.0:*               LISTEN      755/lighttpd
tcp        0      0 0.0.0.0:41999           0.0.0.0:*               LISTEN      755/lighttpd
tcp        0      0 0.0.0.0:1999            0.0.0.0:*               LISTEN      755/lighttpd
tcp        0      0 0.0.0.0:42000           0.0.0.0:*               LISTEN      755/lighttpd
tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      755/lighttpd
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      755/lighttpd
tcp        0      0 0.0.0.0:42001           0.0.0.0:*               LISTEN      755/lighttpd
tcp        0      0 0.0.0.0:2001            0.0.0.0:*               LISTEN      755/lighttpd
tcp        0      0 0.0.0.0:48181           0.0.0.0:*               LISTEN      755/lighttpd
tcp        0      0 0.0.0.0:8181            0.0.0.0:*               LISTEN      755/lighttpd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      770/sshd [listener]
tcp        0      0 0.0.0.0:8183            0.0.0.0:*               LISTEN      1197/ReGaHss
tcp        0      0 0.0.0.0:42010           0.0.0.0:*               LISTEN      755/lighttpd
tcp        0      0 0.0.0.0:2010            0.0.0.0:*               LISTEN      755/lighttpd
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      755/lighttpd
tcp        0      0 0.0.0.0:8700            0.0.0.0:*               LISTEN      820/cuxd
tcp        0      0 0.0.0.0:8701            0.0.0.0:*               LISTEN      820/cuxd
tcp        0      0 0.0.0.0:31999           0.0.0.0:*               LISTEN      1197/ReGaHss
tcp        0      0 0.0.0.0:32001           0.0.0.0:*               LISTEN      926/rfd
tcp        0      0 :::32010                :::*                    LISTEN      1081/java
tcp        0      0 :::49292                :::*                    LISTEN      755/lighttpd
tcp        0      0 :::9292                 :::*                    LISTEN      755/lighttpd
tcp        0      0 :::9293                 :::*                    LISTEN      1081/java
tcp        0      0 :::41999                :::*                    LISTEN      755/lighttpd
tcp        0      0 :::1999                 :::*                    LISTEN      755/lighttpd
tcp        0      0 :::42000                :::*                    LISTEN      755/lighttpd
tcp        0      0 :::2000                 :::*                    LISTEN      755/lighttpd
tcp        0      0 :::80                   :::*                    LISTEN      755/lighttpd
tcp        0      0 :::42001                :::*                    LISTEN      755/lighttpd
tcp        0      0 :::2001                 :::*                    LISTEN      755/lighttpd
tcp        0      0 :::48181                :::*                    LISTEN      755/lighttpd
tcp        0      0 :::8181                 :::*                    LISTEN      755/lighttpd
tcp        0      0 :::22                   :::*                    LISTEN      770/sshd [listener]
tcp        0      0 :::42010                :::*                    LISTEN      755/lighttpd
tcp        0      0 :::2010                 :::*                    LISTEN      755/lighttpd
tcp        0      0 :::443                  :::*                    LISTEN      755/lighttpd
tcp        0      0 :::39292                :::*                    LISTEN      1081/java
udp        0      0 127.0.0.1:323           0.0.0.0:*                           715/chronyd
udp        0      0 0.0.0.0:1900            0.0.0.0:*                           764/ssdpd
udp        0      0 0.0.0.0:43438           0.0.0.0:*                           1081/java
udp        0      0 0.0.0.0:43439           0.0.0.0:*                           747/eq3configd
udp        0      0 127.0.0.1:1998          0.0.0.0:*                           1197/ReGaHss
udp        0      0 127.0.0.1:8182          0.0.0.0:*                           229/hss_led
udp        0      0 0.0.0.0:43525           0.0.0.0:*                           926/rfd
udp        0      0 ::1:323                 :::*                                715/chronyd
udp        0      0 :::33259                :::*                                1081/java
CuxD Port vom CCU-Historian Raspi erreichbar

Code: Alles auswählen

# telnet 192.168.x.x 8701
Trying 192.168.x.x...
Connected to 192.168.x.x.
Escape character is '^]'.
CCU-Historian Ports vom RaspberryMatic Raspi erreichbar

Code: Alles auswählen

# telnet 192.168.y.y 2098
Connected to 192.168.y.y
^C
Console escape. Commands are:

 l      go to line mode
 c      go to character mode
 z      suspend telnet
 e      exit telnet
# telnet 192.168.y.y 2099
Connected to 192.168.y.y
^C
Console escape. Commands are:

 l      go to line mode
 c      go to character mode
 z      suspend telnet
 e      exit telnet
#
Idee, was ich falsch gemacht habe?

MfG
Klaus

Benutzeravatar
Baxxy
Beiträge: 10789
Registriert: 18.12.2018, 15:45
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 604 Mal
Danksagung erhalten: 2208 Mal

Re: CCU-Historian Verbindung zur RaspberryMatic

Beitrag von Baxxy » 29.10.2020, 18:17

Int17 hat geschrieben:
29.10.2020, 11:12
Idee, was ich falsch gemacht habe?
Nicht so wirklich. Zumindest deine config sieht etwas ungewöhnlich aus.
Ich nutze das immer so für meine RaspberryMatics:

Code: Alles auswählen

// Typ der Zentrale: CCU1 oder CCU2
devices.device1.type=CCU2
devices.device1.address='192.168.168.168'
devices.device1.plugin1.type=CUXD
Wenn man ein HomeMatic Wired LAN Gateway nutzt dann noch...

Code: Alles auswählen

devices.device1.plugin2.type=HMWLGW
dran.

Die RaspberryMatic Firewall sieht dazu so aus:
RM_Firewall für Historian.JPG
Die RaspberryMatic und der Historian PC befinden sich im gleichen Subnetz. Das läuft.

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

Re: CCU-Historian Verbindung zur RaspberryMatic

Beitrag von Mathias » 29.10.2020, 22:07

Das ist bisher die ausführlichste Problembeschreibung, die ich bisher gesehen habe. Alles ist vorhanden: Systemangaben, Versionen, Konfiguration, Log-Ausgaben und sogar Port-Tests.

Aber eigentlich sieht alles gut aus. :?

Ist denn der BidCos-RF Port (2000) vom CCU-Historian-Raspi aus erreichbar?

Verwende mal bitte die Konfigurationsoption devices.device1.type=CCU3 und kommentiere die zwei Plug-Ins aus (// voranstellen).

Int17
Beiträge: 34
Registriert: 30.09.2017, 21:40
Hat sich bedankt: 1 Mal

Re: CCU-Historian Verbindung zur RaspberryMatic

Beitrag von Int17 » 30.10.2020, 07:06

Hally Baxxy / Mathias,

Fehler gefunden. Es muss irgendwo ein oder mehrere ungültige Steuerzeichen in die Konfig reingekommen sein.
Erneutes kopieren und Abändern brachte den Erfolg.

Code: Alles auswählen

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/opt/ccu-historian/lib/groovy-2.5.13-indy.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2020-10-30 07:01:42|INFO   |CCU-Historian V2.5.1
2020-10-30 07:01:42|INFO   |(C)MDZ (info@ccu-historian.de)
2020-10-30 07:01:49|INFO   |Starting base services
2020-10-30 07:01:51|INFO   |Connecting to database
2020-10-30 07:01:54|INFO   |Starting database web server
2020-10-30 07:01:55|INFO   |Setting up device 1
2020-10-30 07:01:55|INFO   |Creating HM script client for http://192.168.x.x:8181/tclrega.exe
2020-10-30 07:01:56|INFO   |Setting up plug-in 1
2020-10-30 07:01:56|INFO   |Configured following interfaces: BidCos-RF, HmIP-RF, SysVar, CUxD
2020-10-30 07:01:56|INFO   |Starting interfaces
2020-10-30 07:01:56|INFO   |Starting BIN-RPC server on port 2099
2020-10-30 07:01:56|INFO   |Starting XML-RPC server on port 2098
2020-10-30 07:01:58|INFO   |Connecting to 192.168.x.x:8701
2020-10-30 07:01:58|INFO   |Starting historian
2020-10-30 07:01:59|INFO   |Starting web server
2020-10-30 07:02:04|INFO   |Historian: Creating data point SysVar.1238.VALUE
2020-10-30 07:02:04|INFO   |Web server port: 80
2020-10-30 07:02:04|INFO   |Historian: Creating data point SysVar.31178.VALUE
2020-10-30 07:02:04|INFO   |Historian: Creating data point SysVar.8219.VALUE
2020-10-30 07:02:04|INFO   |Historian: Creating data point SysVar.8220.VALUE
2020-10-30 07:02:04|INFO   |Historian: Creating data point SysVar.4971.VALUE
2020-10-30 07:02:04|INFO   |Historian: Creating data point SysVar.27078.VALUE
2020-10-30 07:02:05|INFO   |Historian: Creating data point SysVar.26350.VALUE
Danke fürs Analysieren.

Noch eine Frage zur Sicherheit:
Um eine Authentifizierung per User/PW zu bekommen, habe ich in der Konfig
devices.device1.username
devices.device1.password
mit einem existierenden CCU User (Benutzer) besetzt. Bekomme damit aber keine Verbindung.
Liegt es ggf. an der Berechtigungsstufe (Admin/Benutzer/Gast), die der User hat?

Code: Alles auswählen

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/opt/ccu-historian/lib/groovy-2.5.13-indy.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2020-10-30 07:50:46|INFO   |CCU-Historian V2.5.1
2020-10-30 07:50:46|INFO   |(C)MDZ (info@ccu-historian.de)
2020-10-30 07:50:53|INFO   |Starting base services
2020-10-30 07:50:55|INFO   |Connecting to database
2020-10-30 07:51:01|INFO   |Starting database web server
2020-10-30 07:51:02|INFO   |Setting up device 1
2020-10-30 07:51:03|INFO   |Creating HM script client for http://192.168.178.40:8181/tclrega.exe
2020-10-30 07:51:04|INFO   |Setting up plug-in 1
2020-10-30 07:51:04|INFO   |Configured following interfaces: BidCos-RF, HmIP-RF, SysVar, CUxD
2020-10-30 07:51:04|INFO   |Starting interfaces
2020-10-30 07:51:04|INFO   |Starting BIN-RPC server on port 2099
2020-10-30 07:51:04|INFO   |Starting XML-RPC server on port 2098
2020-10-30 07:51:05|SEVERE |Exception: Server returned HTTP response code: 401 for URL: http://192.168.178.40:2001
2020-10-30 07:51:05|SEVERE |Detail: java.io.IOException: Server returned HTTP response code: 401 for URL: http://192.168.178.40:2001
        at mdz.hc.itf.hm.HmXmlRpcClient.init(HmXmlRpcClient.groovy:54)
        at mdz.hc.itf.hm.HmXmlRpcInterface.init(HmXmlRpcInterface.groovy:121)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.hc.itf.hm.HmXmlRpcInterface$_start_closure1.doCall(HmXmlRpcInterface.groovy:76)
        at mdz.hc.itf.hm.HmXmlRpcInterface$_start_closure1.doCall(HmXmlRpcInterface.groovy)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.Exceptions.lambda$0(Exceptions.java:84)
        at mdz.Exceptions.catchToLog(Exceptions.java:74)
        at mdz.Exceptions.catchToLog(Exceptions.java:84)
        at mdz.hc.itf.hm.HmXmlRpcInterface.start(HmXmlRpcInterface.groovy:76)
        at mdz.hc.itf.Manager$_start_closure1.doCall(Manager.groovy:58)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.hc.itf.Manager.start(Manager.groovy:56)
        at mdz.ccuhistorian.HistorianSystem.<init>(HistorianSystem.groovy:39)
        at mdz.ccuhistorian.Main.start(Main.groovy:100)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.ccuhistorian.Main$_run_closure4.doCall(Main.groovy:77)
        at mdz.ccuhistorian.Main$_run_closure4.doCall(Main.groovy)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        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:77)
        at mdz.ccuhistorian.Main.main(Main.groovy:45)
2020-10-30 07:51:05|SEVERE |Exception: Server returned HTTP response code: 401 for URL: http://192.168.178.40:2010
2020-10-30 07:51:05|SEVERE |Detail: java.io.IOException: Server returned HTTP response code: 401 for URL: http://192.168.178.40:2010
        at mdz.hc.itf.hm.HmXmlRpcClient.init(HmXmlRpcClient.groovy:54)
        at mdz.hc.itf.hm.HmXmlRpcInterface.init(HmXmlRpcInterface.groovy:121)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.hc.itf.hm.HmXmlRpcInterface$_start_closure1.doCall(HmXmlRpcInterface.groovy:76)
        at mdz.hc.itf.hm.HmXmlRpcInterface$_start_closure1.doCall(HmXmlRpcInterface.groovy)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.Exceptions.lambda$0(Exceptions.java:84)
        at mdz.Exceptions.catchToLog(Exceptions.java:74)
        at mdz.Exceptions.catchToLog(Exceptions.java:84)
        at mdz.hc.itf.hm.HmXmlRpcInterface.start(HmXmlRpcInterface.groovy:76)
        at mdz.hc.itf.Manager$_start_closure1.doCall(Manager.groovy:58)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.hc.itf.Manager.start(Manager.groovy:56)
        at mdz.ccuhistorian.HistorianSystem.<init>(HistorianSystem.groovy:39)
        at mdz.ccuhistorian.Main.start(Main.groovy:100)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.ccuhistorian.Main$_run_closure4.doCall(Main.groovy:77)
        at mdz.ccuhistorian.Main$_run_closure4.doCall(Main.groovy)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        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:77)
        at mdz.ccuhistorian.Main.main(Main.groovy:45)
2020-10-30 07:51:05|INFO   |Connecting to 192.168.178.40:8701
2020-10-30 07:51:06|INFO   |Starting historian
2020-10-30 07:51:06|INFO   |Starting web server
2020-10-30 07:51:10|SEVERE |Exception: Server returned HTTP response code: 401 for URL: http://192.168.178.40:8181/tclrega.exe
2020-10-30 07:51:10|SEVERE |Detail: java.io.IOException: Server returned HTTP response code: 401 for URL: http://192.168.178.40:8181/tclrega.exe
        at mdz.hc.itf.hm.HmScriptClient.execute(HmScriptClient.groovy:360)
        at mdz.hc.itf.hm.HmScriptClient.retrieveDevices(HmScriptClient.groovy:216)
        at mdz.hc.itf.hm.HmScriptClient.getModel(HmScriptClient.groovy:305)
        at mdz.hc.itf.hm.HmXmlRpcInterface.updateLogicProperties(HmXmlRpcInterface.groovy:133)
        at mdz.hc.itf.hm.HmXmlRpcInterface.updateProperties(HmXmlRpcInterface.groovy:237)
        at mdz.hc.itf.Manager$_updateProperties_closure4.doCall(Manager.groovy:119)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.hc.itf.Manager.updateProperties(Manager.groovy:116)
        at mdz.ccuhistorian.Historian.update(Historian.groovy:156)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.ccuhistorian.Historian$_updateDataPointMeta_closure3$_closure12.doCall(Historian.groovy:114)
        at mdz.ccuhistorian.Historian$_updateDataPointMeta_closure3$_closure12.doCall(Historian.groovy)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        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$_updateDataPointMeta_closure3.doCall(Historian.groovy:110)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.ccuhistorian.Historian.updateDataPointMeta(Historian.groovy:109)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at mdz.ccuhistorian.Historian$_run_closure2.doCall(Historian.groovy:103)
        at mdz.ccuhistorian.Historian$_run_closure2.doCall(Historian.groovy)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        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)

Klaus

Benutzeravatar
Baxxy
Beiträge: 10789
Registriert: 18.12.2018, 15:45
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 604 Mal
Danksagung erhalten: 2208 Mal

Re: CCU-Historian Verbindung zur RaspberryMatic

Beitrag von Baxxy » 30.10.2020, 08:53

Int17 hat geschrieben:
30.10.2020, 07:06
mit einem existierenden CCU User (Benutzer) besetzt. Bekomme damit aber keine Verbindung.
Also mal davon ab das "Gäste" und "Benutzer" auf der Zentrale aus meiner Sicht sinnlos sind... sie sind quasi auch Admins bei denen die WebUI nur ein paar Sachen ausblendet... geht das natürlich mit einer korrekten .config auch.
Das die Authentifizierung auf der Zentrale unter Systemsteuerung --> Sicherheit: "Authentifizierung aktiv" gesetzt ist setze ich voraus.

Dann sähe meine Beispielconfig nun so aus:

Code: Alles auswählen

// Typ der Zentrale: CCU1 oder CCU2
devices.device1.type=CCU3
devices.device1.address='192.168.168.168'
devices.device1.plugin1.type=CUXD
devices.device1.username='User-X'
devices.device1.password='User-XY'
Gerade gesehen das Matthias in der Doku...

Code: Alles auswählen

device.device1.username
statt

Code: Alles auswählen

devices.device1.username
angibt. Da fehlt ein "s". :wink:

Int17
Beiträge: 34
Registriert: 30.09.2017, 21:40
Hat sich bedankt: 1 Mal

Re: CCU-Historian Verbindung zur RaspberryMatic

Beitrag von Int17 » 30.10.2020, 10:45

Hallo Baxxy,

das fehlende "s" hat Mathias auf meinen Hinweise korriegiert, man bekam sonst einen Konfig Fehler gemeldet.
Wie schon geschrieben, steht in der Konfig:

Code: Alles auswählen

// Typ der Zentrale: CCU1 oder CCU2 oder CUSTOM_CCU
devices.device1.type=CCU2
// IP-Adresse der Zentrale
devices.device1.address='192.168.x.x'
// Optional können noch folgende Optionen gesetzt werden:
devices.device1.plugin1.type=CUXD
// Userid & Password
devices.device1.username='<userid>'
devices.device1.password='<password>'
und in Systemsteuerung --> Sicherheit: "Authentifizierung aktiv" ist natürlich markiert, sonst käme es nicht zu dem Fehler.
Ohne die Authentifzierung klappt alles. Userid/Password sind korrekt, da ich mit diesem User auch HM-pdetect laufen lasse.

MfG
Klaus

Benutzeravatar
Baxxy
Beiträge: 10789
Registriert: 18.12.2018, 15:45
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 604 Mal
Danksagung erhalten: 2208 Mal

Re: CCU-Historian Verbindung zur RaspberryMatic

Beitrag von Baxxy » 30.10.2020, 14:43

Int17 hat geschrieben:
30.10.2020, 10:45
Ohne die Authentifzierung klappt alles. Userid/Password sind korrekt,
Hmm da muss ich leider passen. :shock:
Bei mir klappt das genau so.
Leg dir doch mal zum testen einen neuen Benutzer mit simplem Passwort auf der Zentrale an.
Wenn ich bei mir den Username oder das Passwort in der .config falsch eintrage erhalte ich eine Fehlermeldung ähnlich der deinen.

Code: Alles auswählen

2020-10-30 14:36:02|SEVERE |Exception: Server returned HTTP response code: 401 for URL: http://192.168.168.168:8181/tclrega.exe
2020-10-30 14:36:02|SEVERE |Detail: java.io.IOException: Server returned HTTP response code: 401 for URL: http://192.168.168.168:8181/tclrega.exe

Int17
Beiträge: 34
Registriert: 30.09.2017, 21:40
Hat sich bedankt: 1 Mal

Re: CCU-Historian Verbindung zur RaspberryMatic

Beitrag von Int17 » 31.10.2020, 12:44

Hallo Baxxy,

hast Recht, die Komplexität des PW war das Problem. Userid/PW = test/test funktionierte.
Danke.

MfG
Klaus

Antworten

Zurück zu „CCU-Historian“