angelnu / docker-ccu

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

CCU2CommController::init(): Init failed. Cannot start coprocessor application #13

Closed mawize closed 6 years ago

mawize commented 7 years ago

Hi,

i have problems getting the hm-mod-rpi-pcb board to work inside docker. When using RaspberryMatic image everything works fine. But i would love to use Raspbian and docker. I did the following reproducible steps:

  1. Download http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-07-05/2017-07-05-raspbian-jessie-lite.zip
  2. Flash 2017-07-05-raspbian-jessie-lite.img to SD
  3. Create empty file with name ssh on bootfs partition
  4. Insert SDCard into RaspberryPi and connect Ethernet
  5. Connect to raspberrypi with ssh and user pi
  6. I use the following commands:
    
    sudo -i

echo "enable_uart=1" >> /boot/config.txt echo "dtoverlay=pi3-miniuart-bt" >> /boot/config.txt echo "core_freq=250" >> /boot/config.txt sed -i s/'\bconsole=serial0,115200 //' /boot/cmdline.txt systemctl disable serial-getty@ttyAMA0.service systemctl disable serial-getty@ttyS0.service

reboot

7. After reboot i use the following commands to install docker

sudo apt-get update sudo apt-get install git vim curl -ks https://packagecloud.io/install/repositories/Hypriot/Schatzkiste/script.deb.sh | sudo bash sudo sudo apt-get install docker-hypriot sudo sh -c 'usermod -aG docker $SUDO_USER' sudo systemctl enable docker.service

`docker version` shows:

Client: Version: 1.11.1 API version: 1.23 Go version: go1.4.3 Git commit: 5604cbe Built: Mon May 9 00:50:14 2016 OS/Arch: linux/arm

Server: Version: 1.11.1 API version: 1.23 Go version: go1.4.3 Git commit: 5604cbe Built: Mon May 9 00:50:14 2016 OS/Arch: linux/arm

8. Now i clone this repository and execute build.sh
**I changed the CCU Version**
`: ${CCU2_VERSION:="2.29.23"}`
**The package python-lzo is not found. I installed it manually.**
FYI `python -mplatform` gives me `Linux-4.9.35-v7+-armv7l-with-debian-8.0`

9. After this is done and the container starts correctly i use a browser to connect to
http://raspberrypi/

Webinterface works fine. Unfortunately it does not find my radio module. The logs show repeatedly the following line: 

ccu2 user.err update-coprocessor: CCU2CommControllerMod::performIdentify(): Unable to determine coprocessor state.

followed by these two lines:

ccu2 user.crit rfd: CCU2CommController::init(): Init failed. Cannot start coprocessor application. ccu2 user.err rfd: () CCU2CommController::setCSMACAEnabled(): Error disabling CSMA/CA.



Any help would be greatly appreciated
angelnu commented 7 years ago

Could you please provide the following info:

btw: 1.11 is a quite old version of docker. You might want to upgrade to a newer one. I use deb [arch=armhf] https://apt.dockerproject.org/repo ubuntu-xenial main as apt source.

Mortinke commented 6 years ago

I get the same error with a raspberry pi 3 model b.

Environment

# cat /etc/issue
Raspbian GNU/Linux 9 \n \l
# uname -a
Linux mortinke-raspberry 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux
docker --version
Docker version 17.12.0-ce, build c97c6d6

/boot/config.txt

dtparam=audio=on
enable_uart=1
dtoverlay=pi3-miniuart-bt

/boot/cmdline.txt

dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=345516f7-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

rfd.conf -> /var/lib/docker/volumes/ccu2_data/_data/etc/config/rfd.conf

# TCP Port for XmlRpc connections
Listen Port = 2001

Log Destination = Syslog
Log Identifier = rfd
Log Level = 1

Persist Keys = 1

# PID File = /var/rfd.pid
# UDS File = /var/socket_rfd

Device Description Dir = /firmware/rftypes
Device Files Dir = /etc/config/rfd
Key File = /etc/config/keys
Address File = /etc/config/ids
Firmware Dir = /firmware
Replacemap File = /firmware/rftypes/replaceMap/rfReplaceMap.xml
Fire NACK Error Events = true
#Improved Coprocessor Initialization = true

[Interface 0]
Type = CCU2
ComPortFile = /dev/mmd_bidcos
 AccessFile = /dev/null
 ResetFile = /dev/ccu2-ic200

output docker inspect

[
    {
        "Id": "f2cf0ae7002d85eb47a2d659f3223ff06dd8872e63a35ffe90e50697f061dc86",
        "Created": "2018-01-01T19:01:51.886069114Z",
        "Path": "/entrypoint.sh",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 846,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2018-01-01T19:12:48.601882287Z",
            "FinishedAt": "2018-01-01T19:12:34.828339342Z"
        },
        "Image": "sha256:1dd7cdd2360f6782cd12cbb6231a2f882f05ed6c8c7ed43d07e90341550dbebf",
        "ResolvConfPath": "/var/lib/docker/containers/f2cf0ae7002d85eb47a2d659f3223ff06dd8872e63a35ffe90e50697f061dc86/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/f2cf0ae7002d85eb47a2d659f3223ff06dd8872e63a35ffe90e50697f061dc86/hostname",
        "HostsPath": "/var/lib/docker/containers/f2cf0ae7002d85eb47a2d659f3223ff06dd8872e63a35ffe90e50697f061dc86/hosts",
        "LogPath": "/var/lib/docker/containers/f2cf0ae7002d85eb47a2d659f3223ff06dd8872e63a35ffe90e50697f061dc86/f2cf0ae7002d85eb47a2d659f3223ff06dd8872e63a35ffe90e50697f061dc86-json.log",
        "Name": "/ccu2",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": [
            "b9b1d1a47a92aebc954644cd9a3024d8b8b788693a77efbde0db88f528a8796c"
        ],
        "HostConfig": {
            "Binds": [
                "/sys:/sys_org",
                "ccu2_data:/mnt"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "default",
            "PortBindings": {
                "2001/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "2001"
                    }
                ],
                "80/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "80"
                    }
                ],
                "8181/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "8181"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "always",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": null,
            "CapDrop": null,
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "shareable",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": [],
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [
                {
                    "PathOnHost": "/dev/ttyAMA0",
                    "PathInContainer": "/dev_org/ttyAMA0",
                    "CgroupPermissions": "rwm"
                }
            ],
            "DeviceCgroupRules": null,
            "DiskQuota": 0,
            "KernelMemory": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "PidsLimit": 0,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/074a4acfdaa4e50e1e73491daf80d5c55003cda4bb7506f872fc508902ed8cbf-init/diff:/var/lib/docker/overlay2/6b0475145ceabcbe795900a6463c62f26616417a2c5eaf360736765e4c3e9506/diff:/var/lib/docker/overlay2/a0672de1adca0dcf40786e846b8f7feef80e6212fb62ad012fd261a6944aa877/diff:/var/lib/docker/overlay2/12bb6385ba8cb3f62cf88a6abbc4a28a62deb7502a0bbacb94dd5fd001bacd3e/diff:/var/lib/docker/overlay2/cd56ea40cf9a1081b524a085b6a7c93e5791cbb38eaf8dc6859a92dc265a8616/diff",
                "MergedDir": "/var/lib/docker/overlay2/074a4acfdaa4e50e1e73491daf80d5c55003cda4bb7506f872fc508902ed8cbf/merged",
                "UpperDir": "/var/lib/docker/overlay2/074a4acfdaa4e50e1e73491daf80d5c55003cda4bb7506f872fc508902ed8cbf/diff",
                "WorkDir": "/var/lib/docker/overlay2/074a4acfdaa4e50e1e73491daf80d5c55003cda4bb7506f872fc508902ed8cbf/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "volume",
                "Name": "ccu2_data",
                "Source": "/var/lib/docker/volumes/ccu2_data/_data",
                "Destination": "/mnt",
                "Driver": "local",
                "Mode": "z",
                "RW": true,
                "Propagation": ""
            },
            {
                "Type": "bind",
                "Source": "/sys",
                "Destination": "/sys_org",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "ccu2",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "2001/tcp": {},
                "80/tcp": {},
                "8181/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PERSISTENT_DIR=/mnt",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
            ],
            "Cmd": [
                "/entrypoint.sh"
            ],
            "ArgsEscaped": true,
            "Image": "angelnu/ccu2",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": {}
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "79bf50f87d9fe7e17ae9bf96b4528650250fefcedea047e6966b164eacbd54a2",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "2001/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "2001"
                    }
                ],
                "80/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "80"
                    }
                ],
                "8181/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "8181"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/79bf50f87d9f",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "bc6faf682b551a9f350a1412480457264883f32924d8fd1d648e6f52c98f55ce",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "172.17.0.2",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "MacAddress": "02:42:ac:11:00:02",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "d7f78cad00e9ce1d5b173c3c57c66961b5a433a17e6db691465e6f2e2e676f57",
                    "EndpointID": "bc6faf682b551a9f350a1412480457264883f32924d8fd1d648e6f52c98f55ce",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:11:00:02",
                    "DriverOpts": null
                }
            }
        }
    }
]

container logs:

Checking device
Detected Raspberry
Copying from /mnt to /usr/local/
sending incremental file list
crontabs/
crontabs/crontabs -> /usr/local/crontabs
crontabs/root
etc/
etc/ssh_host_dsa_key
etc/ssh_host_dsa_key.pub
etc/ssh_host_ecdsa_key
etc/ssh_host_ecdsa_key.pub
etc/ssh_host_key
etc/ssh_host_key.pub
etc/ssh_host_rsa_key
etc/ssh_host_rsa_key.pub
etc/config/
etc/config/InterfacesList.xml
etc/config/TZ
etc/config/crypttool.cfg
etc/config/hm_addons.cfg
etc/config/hmip_address.conf
etc/config/homematic.regadom
etc/config/ids
etc/config/keys
etc/config/log4j.xml
etc/config/multimacd.conf
etc/config/netconfig
etc/config/ntpclient
etc/config/rfd.conf
etc/config/shadow
etc/config/syslog
etc/config/userAckSecurityHint
etc/config/addons/
etc/config/addons/mh/
etc/config/addons/mh/addcron.sh
etc/config/addons/mh/autoupdate
etc/config/addons/mh/autoupdatean
etc/config/addons/mh/autoupdatean.sh
etc/config/addons/mh/autoupdateaus
etc/config/addons/mh/autoupdateaus.sh
etc/config/addons/mh/baddns
etc/config/addons/mh/badip
etc/config/addons/mh/ca.crt
etc/config/addons/mh/checkcon.sh
etc/config/addons/mh/checkdns
etc/config/addons/mh/checkip
etc/config/addons/mh/cleanup.sh
etc/config/addons/mh/client.conf
etc/config/addons/mh/cloudmaticcheck.sh
etc/config/addons/mh/csmsg.sh
etc/config/addons/mh/dienst
etc/config/addons/mh/dienstan
etc/config/addons/mh/dienstan.sh
etc/config/addons/mh/dienstanngx.sh
etc/config/addons/mh/dienstanzbx.sh
etc/config/addons/mh/dienstaus
etc/config/addons/mh/dienstaus.sh
etc/config/addons/mh/dienstausngx.sh
etc/config/addons/mh/dienstauszbx.sh
etc/config/addons/mh/dienstngx
etc/config/addons/mh/dienstzbx
etc/config/addons/mh/dotest.sh
etc/config/addons/mh/dotest2.sh
etc/config/addons/mh/doupdatecm.sh
etc/config/addons/mh/doupdatemh.sh
etc/config/addons/mh/encodesms
etc/config/addons/mh/fastcgi.conf
etc/config/addons/mh/fastcgi.conf.default
etc/config/addons/mh/fastcgi_params
etc/config/addons/mh/fastcgi_params.default
etc/config/addons/mh/ids
etc/config/addons/mh/keytransfer
etc/config/addons/mh/keytransferan
etc/config/addons/mh/keytransferaus
etc/config/addons/mh/koi-utf
etc/config/addons/mh/koi-win
etc/config/addons/mh/loop.sh
etc/config/addons/mh/loophammer.sh
etc/config/addons/mh/loopupd.sh
etc/config/addons/mh/mhca.crt
etc/config/addons/mh/mhcfg
etc/config/addons/mh/mhmkey
etc/config/addons/mh/mime.types
etc/config/addons/mh/mime.types.default
etc/config/addons/mh/newver
etc/config/addons/mh/nginx
etc/config/addons/mh/nginx.conf
etc/config/addons/mh/nginx.conf.default
etc/config/addons/mh/nginx.pi
etc/config/addons/mh/oldver
etc/config/addons/mh/result.txt
etc/config/addons/mh/result2.txt
etc/config/addons/mh/scgi_params
etc/config/addons/mh/scgi_params.default
etc/config/addons/mh/smsguthaben
etc/config/addons/mh/startopenvpn
etc/config/addons/mh/trans.sh
etc/config/addons/mh/upd1503
etc/config/addons/mh/update.sh
etc/config/addons/mh/uwsgi_params
etc/config/addons/mh/uwsgi_params.default
etc/config/addons/mh/win-utf
etc/config/addons/mh/zabbix.conf
etc/config/addons/mh/zabbix_agentd
etc/config/addons/mh/html/
etc/config/addons/mh/html/50x.html
etc/config/addons/mh/html/cmsmarthome.png
etc/config/addons/mh/html/index.html
etc/config/addons/mh/scripts/
etc/config/addons/mh/scripts/getdpintbyid.tcl
etc/config/addons/mh/scripts/getdpvalue.tcl
etc/config/addons/mh/scripts/getdpvaluebyid.tcl
etc/config/addons/www/
etc/config/addons/www/mh -> /opt/mh/www
etc/config/crRFD/
etc/config/crRFD/data/
etc/config/hs485d/
etc/config/rc.d/
etc/config/rfd/
etc/config/userprofiles/

sent 1961696 bytes  received 1993 bytes  3927378.00 bytes/sec
total size is 1954756  speedup is 1.00
Configuring GPIO in port 18

Check if /etc/config/keys exits

Check if /etc/config/ids exits

Starting CCU2 init scripts

Starting /etc/init.d/S00eQ3SystemStart
cat: can't open '/sys/module/plat_eq3ccu2/parameters/board_serial': No such file or directory
/etc/init.d/S00eQ3SystemStart: line 152: can't create /sys/class/leds/power/brightness: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 152: can't create /sys/class/leds/power/trigger: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 152: can't create /sys/class/leds/internet/trigger: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 152: can't create /sys/class/leds/info/trigger: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 152: can't create /sys/class/leds/info/brightness: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 152: can't create /sys/class/leds/info/delay_off: nonexistent directory
/etc/init.d/S00eQ3SystemStart: line 152: can't create /sys/class/leds/info/delay_on: nonexistent directory
mkdir: can't create directory '/var/log': File exists
mkdir: can't create directory '/var/tmp': File exists
mkdir: can't create directory '/var/run': File exists
mkdir: can't create directory '/var/spool': File exists
mkdir: can't create directory '/var/lock': File exists
mkdir: can't create directory '/var/cache': File exists
mkdir: can't create directory '/var/lib': File exists
mkdir: can't create directory '/var/lib/misc': File exists
mkdir: can't create directory '/var/empty': File exists
modprobe: chdir(4.9.59-v7+): No such file or directory
modprobe: chdir(4.9.59-v7+): No such file or directory
modprobe: chdir(4.9.59-v7+): No such file or directory
modprobe: chdir(4.9.59-v7+): No such file or directory
modprobe: chdir(4.9.59-v7+): No such file or directory
modprobe: chdir(4.9.59-v7+): No such file or directory
modprobe: chdir(4.9.59-v7+): No such file or directory
modprobe: chdir(4.9.59-v7+): No such file or directory
modprobe: chdir(4.9.59-v7+): No such file or directory
modprobe: chdir(4.9.59-v7+): No such file or directory
LED Code: System start: OK
Init Firewall: Starting crond: OK

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

Starting /etc/init.d/S10udev
/etc/init.d/S10udev: line 45: can't create /proc/sys/kernel/hotplug: Read-only file system
Populating /dev using udev: done

Starting /etc/init.d/S15watchdog
Starting watchdog...

Starting /etc/init.d/S20urandom
Initializing random number generator... done.

Starting /etc/init.d/S40UsbNetwork
ifconfig: SIOCSIFADDR: Operation not permitted
Starting network over usb: OK

Starting /etc/init.d/S40network
Starting network...
ip: RTNETLINK answers: Operation not permitted
sysctl: error: 'net.ipv4.tcp_timestamps' is an unknown key
hostname: sethostname: Operation not permitted
route: SIOCADDRT: Operation not permitted
udhcpc (v1.20.2) started
ifconfig: SIOCSIFADDR: Operation not permitted
Sending discover...
Sending discover...
Sending discover...
No lease, failing
killall: checkDHCP: no process killed
eth0 carrier detected
ifconfig: SIOCSIFADDR: Operation not permitted
route: SIOCADDRT: Operation not permitted

Starting /etc/init.d/S45ifplugd
Starting Network Interface Plugging Daemon: eth0.

Starting /etc/init.d/S49hs485d
Preparing start of hs485dOK

Starting /etc/init.d/S50SetClock
clock_settime: Operation not permitted
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
Starting setclock: OK

Starting /etc/init.d/S50eq3configd
cat: can't open '/sys/module/plat_eq3ccu2/parameters/radio_mac': No such file or directory
cat: can't open '/sys/module/plat_eq3ccu2/parameters/board_serial': No such file or directory
Starting eq3configd: OK

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

Starting /etc/init.d/S50sshd

Starting /etc/init.d/S58LGWFirmwareUpdate

Starting /etc/init.d/S59SetLGWKey
ls: /etc/config/*.keychange: No such file or directory
OK

Starting /etc/init.d/S60hs485d
Starting hs485d: OK

Starting /etc/init.d/S60multimacd
Starting multimacd:
Could not open SPI device: No such file or directory
Could not open SPI device: No such file or directory
sed: /sys/module/plat_eq3ccu2/parameters/radio_mac: No such file or directory
2018/01/01 20:45:31.590 <Error> CCU2CommControllerMod::performIdentify(): Unable to determine coprocessor state.
Could not open SPI device: No such file or directory
checking if firmware update is needed...
error while updating coprocessor, recovering...
Could not open SPI device: No such file or directory
sh: 274: unknown operand
sh: 274: unknown operand
sh: 274: unknown operand
sh: 274: unknown operand
sh: 274: unknown operand
Waiting for multimacd to get ready.....Timeout while waiting for multimacd to get ready.

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

Starting /etc/init.d/S62HMServer
cp: can't stat '/etc/config_templates/hmip_networkkey.conf': No such file or directory
Starting HMServer: Waiting for HMServer to get ready
OK

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

Starting /etc/init.d/S99eQ3SystemStarted
cat: can't open '/sys/module/plat_eq3ccu2/parameters/board_serial': No such file or directory
/etc/init.d/S99eQ3SystemStarted: line 58: can't create /sys/class/leds/power/brightness: nonexistent directory
/etc/init.d/S99eQ3SystemStarted: line 58: can't create /sys/class/leds/power/trigger: nonexistent directory
/etc/init.d/S99eQ3SystemStarted: line 58: can't create /sys/class/leds/internet/trigger: nonexistent directory
/etc/init.d/S99eQ3SystemStarted: line 58: can't create /sys/class/leds/info/trigger: nonexistent directory
insmod: can't insert '/opt/mh/tun.ko': Operation not permitted
System startedOK
Done starting CCU2 init scripts

Register trap for SIGTERM
sending incremental file list
etc/config/
etc/config/netconfig
etc/config/rfd.conf
etc/config/addons/mh/ids

sent 3461 bytes  received 86 bytes  7094.00 bytes/sec
total size is 1954756  speedup is 551.10
Mortinke commented 6 years ago

Any ideas or hints? I have been searching for the error for several hours, but without success.

angelnu commented 6 years ago

The container might be missing access to the serial device. Did you use the deploy script to start the docker image? This will copy a systems rule to give the container access.

Could you please check that the simlink ton the serial device is there and you can read and write to it?

Could you get also the rfd log?

Did you use the adapter before or is it new?

Mortinke commented 6 years ago

Hi @angelnu,

thanky for your reply. Yes, I used the deploy script and also executed the permission script again - unfortunately without success. With https://github.com/leonsio/YAHM everything works fine.

Currently I'm on vacation and will be able to test it again from 20.01.

dj95 commented 6 years ago

I think it's an error in your /boot/config.txt. If I remove the line dtparam=audio=on and add the line dtparam=spi=on. Then it works for me and the docker-ccu finds the module.

angelnu commented 6 years ago

Thanks @dj95

@Mortinke - does it work for you now?