angelnu / docker-ccu

Script to create a docker container with the CCU2 firmware
Apache License 2.0
32 stars 13 forks source link

homematic radio module nor working #33

Closed horchi closed 5 years ago

horchi commented 5 years ago

At first THX for the fix https://github.com/angelnu/docker-ccu/issues/30 !! With this it looks now better but still nor working.

What I have done now:

when I login to the WEB interface a page like "please wait until the startup of HomeMatic is completed" appears. This Takes around 5 minutes! The the WEB interface is ready and I get the message that the Start of the RF Modules failed.

From the messages log:

Apr  8 20:59:42 ccu daemon.crit xinetd[165]: 165 {init_services} no services. Exiting...
Apr  8 20:59:42 ccu user.info root: Updating RF Lan Gateway Coprocessor Firmware
Apr  8 20:59:42 ccu user.debug update-coprocessor: firmware filename is: coprocessor_update_hm_only.eq3
Apr  8 20:59:42 ccu user.info root: Updating RF Lan Gateway Firmware
Apr  8 20:59:42 ccu user.info update-lgw-firmware: No gateway found in config file /etc/config/rfd.conf
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: XmlRpc: Error in XmlRpcClient::writeRequest: write error (error 111). [error():iseXmlRpc.h:281]
Apr  8 21:04:52 ccu local0.warn ReGaHss: WARNING: XMLRPC 'init': rpcClient.execute() failed (url: xmlrpc_bin://127.0.0.1:32001, params: {"xmlrpc_bin://127.0.0.1:31999","1007"}, result: nil) [CallXmlrpcMethod():iseXmlRpc.cpp:2602]
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: XMLRPC 'init' call failed (interface: 1007, params: {"xmlrpc_bin://127.0.0.1:31999","1007"}) [CallInit():iseXmlRpc.cpp:1204]
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: failed CallInit() for interface=BidCos-RF [ThreadFunction():iseRTHss.cpp:163]
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: XmlRpc: Error in XmlRpcClient::writeRequest: write error (error 111). [error():iseXmlRpc.h:281]
Apr  8 21:04:52 ccu local0.warn ReGaHss: WARNING: XMLRPC 'init': rpcClient.execute() failed (url: xmlrpc://127.0.0.1:39292/groups, params: {"xmlrpc_bin://127.0.0.1:31999","1008"}, result: nil) [CallXmlrpcMethod():iseXmlRpc.cpp:2602]
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: XMLRPC 'init' call failed (interface: 1008, params: {"xmlrpc_bin://127.0.0.1:31999","1008"}) [CallInit():iseXmlRpc.cpp:1204]
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: failed CallInit() for interface=VirtualDevices [ThreadFunction():iseRTHss.cpp:163]
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: XmlRpc: Error in XmlRpcClient::writeRequest: write error (error 111). [error():iseXmlRpc.h:281]
Apr  8 21:04:52 ccu local0.warn ReGaHss: WARNING: XMLRPC 'init': rpcClient.execute() failed (url: xmlrpc://127.0.0.1:32010, params: {"xmlrpc_bin://127.0.0.1:31999","1009"}, result: nil) [CallXmlrpcMethod():iseXmlRpc.cpp:2602]
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: XMLRPC 'init' call failed (interface: 1009, params: {"xmlrpc_bin://127.0.0.1:31999","1009"}) [CallInit():iseXmlRpc.cpp:1204]
Apr  8 21:04:52 ccu local0.err ReGaHss: ERROR: failed CallInit() for interface=HmIP-RF [ThreadFunction():iseRTHss.cpp:163]

but this looks better now:

root@dashboard:~# docker exec ccu /etc/init.d/S11InitRFHardware start
Identifying Homematic RF-Hardware: sh: write error: Device or resource busy
BidCos-RF: RPI-RF-MOD, HmIP: RPI-RF-MOD, OK

Unfortunately it seems to be updated the FW of the radio module now and stopped working with my old setup (old raspi with old raspian) therefore I can't control my shutters actually :(

Any hints what I can do, what I can analyze to get it working?

Thx and best regards Jörg

angelnu commented 5 years ago

Could you please post the whole boot log?

As reference here you have mine:

Starting CCU services

Starting /etc/init.d/S00InstallAddon
rsync warning: some files vanished before they could be transferred (code 24) at main.c(1189) [sender=3.1.3]

Starting /etc/init.d/S00watchdog
S00watchdog - skipping

Starting /etc/init.d/S01InitHost
S01InitHost - defaults
Checking device
Detected piVCCU kernel module

Starting /etc/init.d/S02InitRTC
S02InitRTC - skipping

Starting /etc/init.d/S03InitURandom
S03InitURandom - skipping

Starting /etc/init.d/S04CheckFactoryReset
Checking for Factory Reset: not required

Starting /etc/init.d/S04CheckResizeLocalFS
S04CheckResizeLocal - skipping

Starting /etc/init.d/S05CheckBackupRestore
Checking for Backup Restore: not required

Starting /etc/init.d/S05avahi-setup.sh

Starting /etc/init.d/S06InitSystem
mkdir: can't create directory '/var/lib/dbus': No such file or directory
chmod: /var/lib/dbus: No such file or directory
Initializing System: OK

Starting /etc/init.d/S07DisableHdmi
/entrypoint.sh: line 21: /etc/init.d/S07DisableHdmi: Permission denied

Starting /etc/init.d/S07logging
Starting logging: OK

Starting /etc/init.d/S10udev
S10udev - skipping

Starting /etc/init.d/S11InitRFHardware
Identifying Homematic RF-Hardware: BidCos-RF: HM-MOD-RPI-PCB, HmIP: HM-MOD-RPI-PCB, OK

Starting /etc/init.d/S12UpdateRFHardware
Updating Homematic RF-Hardware: HM-MOD-RPI-PCB: 2.8.6, OK

Starting /etc/init.d/S13irqbalance
S13irqbalance - skipping

Starting /etc/init.d/S21rngd
S21rngd - skipping

Starting /etc/init.d/S30dbus
Starting system message bus: done

Starting /etc/init.d/S31bluetooth
S31bluetooth - skipping

Starting /etc/init.d/S40network
S40network - skipping

Starting /etc/init.d/S45ifplugd
S45ifplugd - skipping

Starting /etc/init.d/S48MigrateSecuritySettings
Starting : OK

Starting /etc/init.d/S48ntp
Starting ntpd: OK

Starting /etc/init.d/S49hs485d
Preparing start of hs485d: no Hm-Wired hardware found

Starting /etc/init.d/S49xinetd
Starting xinetd: OK

Starting /etc/init.d/S50eq3configd
Starting eq3configd: OK

Starting /etc/init.d/S50lighttpd
Starting lighttpd: OK

Starting /etc/init.d/S50ssdpd
Starting ssdpd: OK

Starting /etc/init.d/S50sshd
Starting sshd: OK

Starting /etc/init.d/S55InitAddons
Initializing Third-Party Addons: OK

Starting /etc/init.d/S58LGWFirmwareUpdate
Starting LGWFirmwareUpdate: .cryptEnabled true.cryptEnabled true.OK

Starting /etc/init.d/S59SetLGWKey
Setting LAN Gateway keys: OK

Starting /etc/init.d/S59snmpd

Starting /etc/init.d/S60hs485d
Starting hs485d: no Hm-Wired hardware found

Starting /etc/init.d/S60multimacd
Starting multimacd: .OK

Starting /etc/init.d/S60openvpn

Starting /etc/init.d/S61rfd
Starting rfd: 
sh: 269: unknown operand
Waiting for rfd to get ready..rfd is ready now.

Starting /etc/init.d/S62HMServer
Starting HMIPServer: (/dev/mmd_hmip) ............OK

Starting /etc/init.d/S69UDSServices
Starting eq3-uds-services: OK

Starting /etc/init.d/S70ReGaHss
Starting ReGaHss: .OK

Starting /etc/init.d/S97CloudMatic
Starting CloudMatic: OK

Starting /etc/init.d/S97NeoServer

Starting /etc/init.d/S98StartAddons
Starting Third-Party Addons: OK

Starting /etc/init.d/S98crond
Starting crond: OK

Starting /etc/init.d/S99SetupLEDs
Setup onboard LEDs: booted, OK
Done starting CCU services

The importance services (and their output) are:

horchi commented 5 years ago

sorry where i can find this messages, I checked all logs in /var/log of the docker container? May we can continue per mail (box@jwendel.de)?

angelnu commented 5 years ago

docker logs ccu after deploy.sh

horchi commented 5 years ago

This should be he problem?

Starting /etc/init.d/S60multimacd
Starting multimacd: SKIPPING (missing HM_HOST_GPIO_UART)
horchi commented 5 years ago

now i have added dtoverlay=pivccu-raspberrypi again (I commented it out for testing before). Now it looks better:

Starting /etc/init.d/S01InitHost
S01InitHost - defaults
Checking device
Detected piVCCU kernel module
--
Starting /etc/init.d/S11InitRFHardware
Identifying Homematic RF-Hardware: BidCos-RF: HM-MOD-RPI-PCB, HmIP: HM-MOD-RPI-PCB, OK

Starting /etc/init.d/S12UpdateRFHardware
Updating Homematic RF-Hardware: HM-MOD-RPI-PCB: 2.8.6, OK

--
Starting /etc/init.d/S60multimacd
Starting multimacd: .OK

--
Starting /etc/init.d/S61rfd
Starting rfd: 
Waiting for rfd to get ready..rfd is ready now.

And no error message at the WEBIF apears. :)

Only problem which is left is that i can't find my devices. I Start the 'learning mode' but it don't find the device .... and yes I pressed the config button of the device ;)

horchi commented 5 years ago

Uff! It works !!! After a second restart of the docker I was aible to find all the devices :)

Many thanks for your help!!

angelnu commented 5 years ago

Glad that it works for you know!