RaspberryMatic und CCU-Historian -> HTTP response code: 503

Das Langzeitarchiv für HomeMatic

Moderator: Co-Administratoren

Antworten
Flecko
Beiträge: 9
Registriert: 27.06.2017, 22:45

RaspberryMatic und CCU-Historian -> HTTP response code: 503

Beitrag von Flecko » 14.02.2019, 22:58

Hallo alle zusammen,

ich nutze eine RaspberryMatic in der Version: 3.41.11.20190126 auf der CCU-Historian in Version 2.0.1 laufen soll.

Nur leider ist die CCU-Historian unter http://10.10.10.201:8701 nicht erreichbar.

Der Dienst scheint zulaufen:

Code: Alles auswählen

 4157     1 root     S     592m 127%   8% /opt/java/bin/java -Xmx512m -Djava.util.prefs.userRoot=/usr/local/addons/ccu-historian -Djava.util.prefs.systemRoot=/usr/local/addons/ccu-historian -jar /usr/local/addons/ccu-histori....
Config sieht wie folgt aus:

Code: Alles auswählen

logSystem.fileLevel=Level.FINER
logSystem.fileName='/var/log/ccu-historian-%g.log'
logSystem.fileLimit=1000000
logSystem.fileCount=5
logSystem.binRpcLevel=Level.FINER
database.webEnable=true
database.webPort=8083
database.webAllowOthers=true
webServer.port=8082
webServer.historianAddress='10.10.10.201'
webServer.dir='/usr/local/addons/ccu-historian/ccu-historian/webapp'
webServer.logLevel=Level.FINER
devices.device1.type=CCU2
devices.device1.address='10.10.10.201'
devices.historianAddress='10.10.10.201'
historian.metaCycle=4*60*60*1000
historian.bufferTime=4*60*60*1000
devices.device1.plugin1.type=CUXD
database.dir='/media/sd-mmcblk0/ccu-historian/'
ein tail auf die log Datei fördert folgendes zu Tage:

Code: Alles auswählen

2019-02-14 22:53:15|FINE   |Reading configuration file /usr/local/addons/ccu-historian/ccu-historian.config
2019-02-14 22:53:16|FINE   |Log system configuration:
2019-02-14 22:53:16|FINE   |logSystem.consoleLevel=Level.INFO
2019-02-14 22:53:16|FINE   |logSystem.fileLevel=Level.FINER
2019-02-14 22:53:16|FINE   |logSystem.fileName='/var/log/ccu-historian-%g.log'
2019-02-14 22:53:16|FINE   |logSystem.fileLimit=1000000
2019-02-14 22:53:16|FINE   |logSystem.fileCount=5
2019-02-14 22:53:16|FINE   |logSystem.binRpcLevel=Level.FINER
2019-02-14 22:53:16|INFO   |Starting base services
2019-02-14 22:53:16|INFO   |Connecting to database
2019-02-14 22:53:16|FINE   |database.dir='/media/sd-mmcblk0/ccu-historian/'
2019-02-14 22:53:16|FINE   |database.name='history'
2019-02-14 22:53:16|FINE   |database.user='sa'
2019-02-14 22:53:16|FINE   |database.webEnable=true
2019-02-14 22:53:16|FINE   |database.webPort=8083
2019-02-14 22:53:16|FINE   |database.webAllowOthers=true
2019-02-14 22:53:16|FINE   |database.tcpEnable=false
2019-02-14 22:53:16|FINE   |database.tcpPort=9092
2019-02-14 22:53:16|FINE   |database.tcpAllowOthers=false
2019-02-14 22:53:16|FINE   |database.pgEnable=false
2019-02-14 22:53:16|FINE   |database.pgPort=5435
2019-02-14 22:53:16|FINE   |database.pgAllowOthers=false
2019-02-14 22:53:16|FINE   |database.backup=''
2019-02-14 22:53:16|FINE   |Preparing database
2019-02-14 22:53:16|FINE   |Read config: internal.databaseVersion=1
2019-02-14 22:53:16|FINE   |Read config: internal.databaseVersion=1
2019-02-14 22:53:16|INFO   |Starting database web server
2019-02-14 22:53:16|FINE   |Database management URL: http://127.0.1.1:8083
2019-02-14 22:53:16|FINE   |Configuring interfaces
2019-02-14 22:53:16|FINE   |All devices: Reading configuration option 'historianBinRpcPort':
2019-02-14 22:53:16|FINE   |All devices: Reading configuration option 'historianXmlRpcPort':
2019-02-14 22:53:16|FINE   |All devices: Reading configuration option 'historianAddress': 10.10.10.201
2019-02-14 22:53:16|INFO   |Setting up device 1
2019-02-14 22:53:16|FINE   |Device 1: Reading configuration option 'type': CCU2
2019-02-14 22:53:16|FINE   |Device 1: Reading configuration option 'address': 10.10.10.201
2019-02-14 22:53:16|FINE   |Device 1: Reading configuration option 'reinitTimeout':
2019-02-14 22:53:16|FINE   |Device 1: Reading configuration option 'prefix':
2019-02-14 22:53:16|FINE   |Device 1: Reading configuration option 'writeAccess':
2019-02-14 22:53:16|FINE   |Device 1: Reading configuration option 'sysVarDataCycle':
2019-02-14 22:53:16|FINE   |Device 1: Reading configuration option 'timeout':
2019-02-14 22:53:16|INFO   |Creating HM script client for http://10.10.10.201:8181/tclrega.exe
2019-02-14 22:53:16|INFO   |Setting up plug-in 1
2019-02-14 22:53:16|FINE   |Plug-in 1: Reading configuration option 'type': CUXD
2019-02-14 22:53:16|FINE   |Device 1: Reading configuration option 'watchdogProgram':
2019-02-14 22:53:16|FINE   |Device 1: Reading configuration option 'watchdogCycle':
2019-02-14 22:53:16|INFO   |Configured following interfaces: BidCos-RF, HmIP-RF, SysVar, CUxD
2019-02-14 22:53:16|INFO   |Starting interfaces
2019-02-14 22:53:16|INFO   |Starting BIN-RPC server on port 2099
2019-02-14 22:53:16|INFO   |Starting XML-RPC server on port 2098
2019-02-14 22:53:16|FINE   |XML-RPC server address is http://10.10.10.201:2098
2019-02-14 22:53:16|FINE   |Calling init(http://10.10.10.201:2098, BidCos-RF)
2019-02-14 22:53:16|FINE   |system.listMethods(BidCos-RF) received
2019-02-14 22:53:16|FINER  |Response: [event, listDevices, newDevices, deleteDevices, updateDevice, system.multicall, system.listMethods]
2019-02-14 22:53:16|FINE   |listDevices(BidCos-RF) call received
2019-02-14 22:53:17|FINE   |Starting re-init task
2019-02-14 22:53:17|FINE   |Calling init(http://10.10.10.201:2098, HmIP-RF)
2019-02-14 22:53:17|FINE   |Stopping re-init task
2019-02-14 22:53:17|FINE   |Calling init(http://10.10.10.201:2098)
2019-02-14 22:53:17|FINE   |Stopping XML-RPC server
2019-02-14 22:53:17|INFO   |Stopping BIN-RPC server on port 2099
2019-02-14 22:53:17|FINE   |Stopping main scheduler
2019-02-14 22:53:17|INFO   |Stopping database
2019-02-14 22:53:17|INFO   |Stopping base services
2019-02-14 22:53:17|SEVERE |Exception: Server returned HTTP response code: 503 for URL: http://10.10.10.201:2010
2019-02-14 22:53:17|SEVERE |Detail: java.io.IOException: Server returned HTTP response code: 503 for URL: http://10.10.10.201:2010
	at mdz.hc.itf.hm.HmXmlRpcClient.init(HmXmlRpcClient.groovy:44)
	at mdz.hc.itf.hm.HmXmlRpcInterface.init(HmXmlRpcInterface.groovy:114)
	at mdz.hc.itf.hm.HmXmlRpcInterface.start(HmXmlRpcInterface.groovy:73)
	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:39)
	at mdz.ccuhistorian.Main.start(Main.groovy:102)
	at mdz.ccuhistorian.Main.access$0(Main.groovy)
	at mdz.ccuhistorian.Main$_run_closure4.doCall(Main.groovy:79)
	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:79)
	at mdz.ccuhistorian.Main.main(Main.groovy:47)
2019-02-14 22:53:17|FINE   |newDevices(BidCos-RF) call received
2019-02-14 22:53:17|FINE   |newDevices(BidCos-RF): [PARAM
Ich bin am Verzweifeln weil ich irgendwie nix find was es sein könnte.
Auf welchem Auge bin ich blind?

Gruß

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: RaspberryMatic und CCU-Historian -> HTTP response code: 503

Beitrag von Mathias » 15.02.2019, 21:03

Mal wieder ein neuer Fehler-Code der CCU: 503 Service Unavailable. Es bleibt spannend.

Hast Du ein HM-Funk-Modul auf dem Raspberry Pi aufgesteckt oder nutzt Du ein HM-LAN-Gateway? Für das LAN-Gateway musst Du diesen Tipp berücksichtigen.

Ansonsten testweise mal die Firewall der CCU ganz öffnen und die Authentifizierung abschalten. Schau dazu bitte ins Handbuch.

Gruß
Mathias

Flecko
Beiträge: 9
Registriert: 27.06.2017, 22:45

Re: RaspberryMatic und CCU-Historian -> HTTP response code: 503

Beitrag von Flecko » 16.02.2019, 12:24

@mathias das wars anscheint -> CUSTOM_CCU

Hatte ich irgendwie übersehen in den ganzen Anleitung und HowTo'
Vielen Dank

------------
Ports in Firewall freigegeben

Code: Alles auswählen

80;
8082;
2098;
2099;
8082;
9092;
5435;
2000;
2001;
2002;
2010;
8181;
8701;
Haken bei Einstellungen → Systemsteuerung → Sicherheit → Authentifizierung raus nehmen

Unter /usr/locals/addons/ccu-historian/ccu-historian.config folgendes eintragen

Code: Alles auswählen

// devices.device1.type=CCU2
devices.device1.type=CUSTOM_CCU

devices.device1.plugin1.type=BIDCOS_RF
devices.device1.plugin2.type=CUXD
Und schon geht die Weboberfläche

Antworten

Zurück zu „CCU-Historian“