angelnu / docker-ccu

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

Kernel error after deployment on RPi 4 and Raspbian Buster #35

Closed andreheuer closed 3 years ago

andreheuer commented 5 years ago

Hi @angelnu ,

first: thank you for providing this great docker image and providing regular updates!

Issue After buying a new Raspberry Pi 4 with 4GB, I checked your image for any updates concerning the virtual devices issue and was happy to see the solution from last December by using the PivCCU Kernel extensions #23 . So I made a fresh Raspbian Lite (Buster) installation on my brand new RPi:

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.19.66-v7l+ #1253 SMP Thu Aug 15 12:02:08 BST 2019 armv7l GNU/Linux

On Raspbian Buster:

pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

and Docker CE 19:

pi@raspberrypi:~ $ sudo docker version
Client: Docker Engine - Community
 Version:           19.03.2
 API version:       1.40
 Go version:        go1.12.8
 Git commit:        6a30dfc
 Built:             Thu Aug 29 06:18:36 2019
 OS/Arch:           linux/arm
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.2
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.8
  Git commit:       6a30dfc
  Built:            Thu Aug 29 06:12:41 2019
  OS/Arch:          linux/arm
  Experimental:     false
 containerd:
  Version:          1.2.6
  GitCommit:        894b81a4b802e4eb2a91d1ce216b8817763c29fb
 runc:
  Version:          1.0.0-rc8
  GitCommit:        425e105d5a03fabd737a126ad93d62a9eeede87f
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

My cmdline.txt and boot.txt

pi@raspberrypi:~/docker-ccu-master $ cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=17869b7d-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
pi@raspberrypi:~/docker-ccu-master $ cat /boot/config.txt
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=off
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d
start_x=0
gpu_mem=64
dtoverlay=pivccu-raspberrypi

After starting the container:

pi@raspberrypi:~/docker-ccu-master $ sudo ./deploy.sh

Load eq3_char_loop module
Enable realtime
kernel.sched_rt_runtime_us = -1

Starting container as plain docker
docker run --privileged --restart=always --mount type=volume,src=ccu_data,dst=/mnt --detach=true --name ccu -p 80:80 -p 2001:2001 -p 2010:2010 -p 2222:22 -p 8181:8181 -e PERSISTENT_DIR=/mnt --hostname ccu  angelnu/ccu:3
c2f33bb00bd44f300633f646add19bfb56c03d955e9b7bc8461100564d9fa4ee

Docker container started!
Docker data volume used: ccu_data
You can find its location with the command 'docker volume inspect ccu_data'
[
    {
        "CreatedAt": "2019-09-07T21:39:16+02:00",
        "Driver": "local",
        "Labels": null,
        "Mountpoint": "/var/lib/docker/volumes/ccu_data/_data",
        "Name": "ccu_data",
        "Options": null,
        "Scope": "local"
    }
]

And shortly after deploying the docker image, Kernel errors are shown on the console. Thereafter, dmesg shows the following errors:

[   21.432454] docker0: port 1(veth52aafc0) entered forwarding state
[  174.807299] eq3_char_loop: loading out-of-tree module taints kernel.
[  329.488553] docker0: port 2(vethbb7d794) entered blocking state
[  329.488559] docker0: port 2(vethbb7d794) entered disabled state
[  329.488708] device vethbb7d794 entered promiscuous mode
[  329.488921] IPv6: ADDRCONF(NETDEV_UP): vethbb7d794: link is not ready
[  329.551714] IPv6: ADDRCONF(NETDEV_UP): vetha03cc2a: link is not ready
[  329.551736] IPv6: ADDRCONF(NETDEV_CHANGE): vetha03cc2a: link becomes ready
[  329.551830] IPv6: ADDRCONF(NETDEV_CHANGE): vethbb7d794: link becomes ready
[  329.551894] docker0: port 2(vethbb7d794) entered blocking state
[  329.551899] docker0: port 2(vethbb7d794) entered forwarding state
[  330.708862] docker0: port 2(vethbb7d794) entered disabled state
[  330.709776] eth0: renamed from vetha03cc2a
[  330.769172] docker0: port 2(vethbb7d794) entered blocking state
[  330.769182] docker0: port 2(vethbb7d794) entered forwarding state
[  346.815328] eq3loop: eq3loop_open_slave()
[  346.815339] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[  346.815357] pgd = 051bd8fd
[  346.815365] [00000000] *pgd=19f15003, *pmd=f8beb003
[  346.815382] Internal error: Oops: a07 [#1] SMP ARM
[  346.815391] Modules linked in: eq3_char_loop(O) xt_nat xt_tcpudp veth ipt_MASQUERADE nf_conntrack_netlink nft_counter nft_chain_nat_ipv4 nf_nat_ipv4 xt_addrtype nft_compat nf_tables nfnetlink xt_conntrack nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 br_netfilter bridge overlay bnep hci_uart btbcm serdev bluetooth ecdh_generic 8021q garp stp llc sg vc4 v3d drm_kms_helper gpu_sched brcmfmac brcmutil drm sha256_generic snd_bcm2835(C) snd_soc_core snd_compress snd_pcm_dmaengine drm_panel_orientation_quirks snd_pcm snd_timer syscopyarea sysfillrect sysimgblt fb_sys_fops cfg80211 bcm2835_codec(C) snd v4l2_mem2mem rfkill bcm2835_v4l2(C) bcm2835_mmal_vchiq(C) v4l2_common raspberrypi_hwmon videobuf2_vmalloc hwmon videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media vc_sm_cma(C)
[  346.815639]  rpivid_mem fixed uio_pdrv_genirq uio ip_tables x_tables ipv6
[  346.815671] CPU: 3 PID: 9275 Comm: rfd Tainted: G         C O      4.19.66-v7l+ #1253
[  346.815682] Hardware name: BCM2835
[  346.815699] PC is at __down_interruptible+0x58/0x120
[  346.815711] LR is at down_interruptible+0x5c/0x68
[  346.815719] pc : [<c099961c>]    lr : [<c0277cd8>]    psr: 600c0093
[  346.815728] sp : cd6b3cf8  ip : c4da2403  fp : cd6b3d34
[  346.815736] r10: 00000000  r9 : d992d108  r8 : cd6b2000
[  346.815744] r7 : c1004d88  r6 : 7fffffff  r5 : d992d108  r4 : d992d108
[  346.815754] r3 : cd6b2000  r2 : 00000000  r1 : cd6b3cfc  r0 : d992d110
[  346.815764] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  346.815775] Control: 30c5383d  Table: 10cd76c0  DAC: 55555555
[  346.815784] Process rfd (pid: 9275, stack limit = 0x763f779e)
[  346.815793] Stack: (0xcd6b3cf8 to 0xcd6b4000)
[  346.815802] 3ce0:                                                       c03045d0 d992d110
[  346.815814] 3d00: 00000000 d992d108 600c0013 c4da2403 d992d108 d106f9c0 00000894 d992c004
[  346.815826] 3d20: d0f1e030 d992d108 cd6b3d54 cd6b3d38 c0277cd8 c09995d0 cd6b3d8c 600c0013
[  346.815838] 3d40: d992c000 d106f9c0 cd6b3d8c cd6b3d58 bfae63dc c0277c88 c03b3ef0 00000000
[  346.815850] 3d60: 0000000b bfae8000 c1004d88 c11241c4 d992c004 d0f1e030 d106f9c0 00000000
[  346.815862] 3d80: cd6b3dc4 cd6b3d90 c03b4a8c bfae634c 00000002 c4da2403 d0f1e030 d106f9c0
[  346.815874] 3da0: 00000000 d0f1e030 cd6b3f50 d106f9c8 c03b499c 00000000 cd6b3dec cd6b3dc8
[  346.815885] 3dc0: c03ab88c c03b49a8 00000002 00000000 00000000 cd6b3f50 d106f9c0 cd6b3e90
[  346.815897] 3de0: cd6b3dfc cd6b3df0 c03acd68 c03ab65c cd6b3e8c cd6b3e00 c03bf594 c03acd38
[  346.815909] 3e00: c03bab14 c03d3888 cd6b3e68 00000000 c1004d88 c03c04d0 c10054c0 cd6b2000
[  346.815921] 3e20: cdb35110 cdb35110 c1004d88 00000041 c10056d8 00000000 00000000 00000006
[  346.815932] 3e40: 00000002 d0f1e030 dacb1110 cda8d000 cd6b3e7c cd6b3e60 c030430c c4da2403
[  346.815944] 3e60: 000111a5 c1004d88 c1004d88 cd6b3f50 cd6b3e90 00000001 cd6b2000 00000142
[  346.815956] 3e80: cd6b3f44 cd6b3e90 c03c147c c03bf178 dacb1110 cda8d000 5e91806a 0000000a
[  346.815968] 3ea0: dc62e015 006000c0 00000000 cdb35110 d0f1e030 00000101 00000002 00000d32
[  346.815980] 3ec0: 00000000 00000000 00000000 cd6b3ed0 c0424094 c4da2403 1b856382 00000007
[  346.815992] 3ee0: d0d9ae00 d0d9ae18 00000000 00100000 00000002 00000020 cd6b3f34 cd6b3f08
[  346.816003] 3f00: dc62e000 00000000 00000002 00000002 ffffff9c ffffff9c dc62e000 c4da2403
[  346.816015] 3f20: cd6b2000 00000007 c1004d88 ffffff9c dc62e000 c02011c4 cd6b3f94 cd6b3f48
[  346.816027] 3f40: c03ad048 c03c1408 cd6b3f58 c02011c4 00000002 c1000000 00000006 00000100
[  346.816039] 3f60: 00000001 c4da2403 a00d0010 01c27df0 bebcf650 bebcf668 00000142 c02011c4
[  346.816050] 3f80: cd6b2000 00000142 cd6b3fa4 cd6b3f98 c03ad144 c03acf14 00000000 cd6b3fa8
[  346.816062] 3fa0: c0201000 c03ad134 01c27df0 bebcf650 ffffff9c bebcf6b0 00000002 00000000
[  346.816074] 3fc0: 01c27df0 bebcf650 bebcf668 00000142 bebcf698 bebcf6b0 01c27df0 01c27ab0
[  346.816086] 3fe0: b6eb8ec0 bebcf5b8 00075f70 b6eb8f0c 600c0010 ffffff9c 00000000 00000000
[  346.816102] [<c099961c>] (__down_interruptible) from [<c0277cd8>] (down_interruptible+0x5c/0x68)
[  346.816123] [<c0277cd8>] (down_interruptible) from [<bfae63dc>] (eq3loop_open+0x9c/0x1c0 [eq3_char_loop])
[  346.816167] [<bfae63dc>] (eq3loop_open [eq3_char_loop]) from [<c03b4a8c>] (chrdev_open+0xf0/0x1c0)
[  346.816185] [<c03b4a8c>] (chrdev_open) from [<c03ab88c>] (do_dentry_open+0x23c/0x3c0)
[  346.816199] [<c03ab88c>] (do_dentry_open) from [<c03acd68>] (vfs_open+0x3c/0x40)
[  346.816214] [<c03acd68>] (vfs_open) from [<c03bf594>] (path_openat+0x428/0x1024)
[  346.816228] [<c03bf594>] (path_openat) from [<c03c147c>] (do_filp_open+0x80/0xec)
[  346.816241] [<c03c147c>] (do_filp_open) from [<c03ad048>] (do_sys_open+0x140/0x1f0)
[  346.816254] [<c03ad048>] (do_sys_open) from [<c03ad144>] (sys_openat+0x1c/0x20)
[  346.816267] [<c03ad144>] (sys_openat) from [<c0201000>] (ret_fast_syscall+0x0/0x28)
[  346.816277] Exception stack(0xcd6b3fa8 to 0xcd6b3ff0)
[  346.816287] 3fa0:                   01c27df0 bebcf650 ffffff9c bebcf6b0 00000002 00000000
[  346.816299] 3fc0: 01c27df0 bebcf650 bebcf668 00000142 bebcf698 bebcf6b0 01c27df0 01c27ab0
[  346.816310] 3fe0: b6eb8ec0 bebcf5b8 00075f70 b6eb8f0c
[  346.816321] Code: e50bc028 e1a08003 e50b0038 e3e06102 (e5821000)
[  346.816332] ---[ end trace 7e1ed5ecdcb9baad ]---
[  353.850746] eq3loop: eq3loop_open_slave()
[  353.850770] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[  353.850783] pgd = 99917292
[  353.850790] [00000000] *pgd=0e660003, *pmd=fbe15003
[  353.850807] Internal error: Oops: a07 [#2] SMP ARM
[  353.850817] Modules linked in: eq3_char_loop(O) xt_nat xt_tcpudp veth ipt_MASQUERADE nf_conntrack_netlink nft_counter nft_chain_nat_ipv4 nf_nat_ipv4 xt_addrtype nft_compat nf_tables nfnetlink xt_conntrack nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 br_netfilter bridge overlay bnep hci_uart btbcm serdev bluetooth ecdh_generic 8021q garp stp llc sg vc4 v3d drm_kms_helper gpu_sched brcmfmac brcmutil drm sha256_generic snd_bcm2835(C) snd_soc_core snd_compress snd_pcm_dmaengine drm_panel_orientation_quirks snd_pcm snd_timer syscopyarea sysfillrect sysimgblt fb_sys_fops cfg80211 bcm2835_codec(C) snd v4l2_mem2mem rfkill bcm2835_v4l2(C) bcm2835_mmal_vchiq(C) v4l2_common raspberrypi_hwmon videobuf2_vmalloc hwmon videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media vc_sm_cma(C)
[  353.851068]  rpivid_mem fixed uio_pdrv_genirq uio ip_tables x_tables ipv6
[  353.851100] CPU: 2 PID: 9327 Comm: java Tainted: G      D  C O      4.19.66-v7l+ #1253
[  353.851111] Hardware name: BCM2835
[  353.851128] PC is at __down_interruptible+0x58/0x120
[  353.851139] LR is at down_interruptible+0x5c/0x68
[  353.851147] pc : [<c099961c>]    lr : [<c0277cd8>]    psr: 60070093
[  353.851156] sp : ce409cf8  ip : c4da2403  fp : ce409d34
[  353.851164] r10: 00000000  r9 : d992c874  r8 : ce408000
[  353.851172] r7 : c1004d88  r6 : 7fffffff  r5 : d992c874  r4 : d992c874
[  353.851181] r3 : ce408000  r2 : 00000000  r1 : ce409cfc  r0 : d992c87c
[  353.851191] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  353.851202] Control: 30c5383d  Table: 10f65480  DAC: 55555555
[  353.851211] Process java (pid: 9327, stack limit = 0x1a7355f1)
[  353.851220] Stack: (0xce409cf8 to 0xce40a000)
[  353.851228] 9ce0:                                                       c03045d0 d992c87c
[  353.851241] 9d00: 00000000 d992c874 60070013 c4da2403 d992c874 da920300 00000000 d992c004
[  353.851252] 9d20: d0f1a030 d992c874 ce409d54 ce409d38 c0277cd8 c09995d0 ce409d8c 60070013
[  353.851264] 9d40: d992c000 da920300 ce409d8c ce409d58 bfae63dc c0277c88 c03b3ef0 00000000
[  353.851276] 9d60: 0000000b bfae8000 c1004d88 c11241c4 d992c004 d0f1a030 da920300 00000000
[  353.851287] 9d80: ce409dc4 ce409d90 c03b4a8c bfae634c 00000001 c4da2403 d0f1a030 da920300
[  353.851299] 9da0: 00000000 d0f1a030 ce409f50 da920308 c03b499c 00000000 ce409dec ce409dc8
[  353.851311] 9dc0: c03ab88c c03b49a8 00000900 00000000 00000000 ce409f50 da920300 ce409e90
[  353.851322] 9de0: ce409dfc ce409df0 c03acd68 c03ab65c ce409e8c ce409e00 c03bf594 c03acd38
[  353.851334] 9e00: da75b714 da920180 00000000 ce409ec8 ce409ee8 ce409ee0 ce409e54 ce408000
[  353.851346] 9e20: c03aee58 c03ad530 c1004d88 00000041 c10056d8 00000000 00000000 00000004
[  353.851357] 9e40: 00000002 d0f1a030 dacb1110 cf67aaa0 c03aefa0 bf9aaee4 ce409eb4 c4da2403
[  353.851369] 9e60: bf9aaee4 c1004d88 c1004d88 ce409f50 ce409e90 00000001 ce408000 00000142
[  353.851380] 9e80: ce409f44 ce409e90 c03c147c c03bf178 dacb1110 cf67aaa0 e1e9c3a2 00000008
[  353.851392] 9ea0: dba35015 006000c0 00000000 cdb35110 d0f1a030 00000101 00000002 00000d42
[  353.851404] 9ec0: 00000000 00000000 00000000 ce409ed0 c0291720 c4da2403 00000000 0000002d
[  353.851415] 9ee0: db314500 d0e16080 00000000 00100000 00000900 00000100 ce409f34 ce409f08
[  353.851427] 9f00: dba35000 00000000 00000900 00000002 ffffff9c ffffff9c dba35000 c4da2403
[  353.851439] 9f20: ce408000 0000002d c1004d88 ffffff9c dba35000 c02011c4 ce409f94 ce409f48
[  353.851450] 9f40: c03ad048 c03c1408 ce408010 c02011c4 00000900 c0200000 00000004 00000100
[  353.851462] 9f60: 00000001 c4da2403 c0201068 a9df47e8 00000000 b3013150 00000142 c02011c4
[  353.851474] 9f80: ce408000 00000142 ce409fa4 ce409f98 c03ad144 c03acf14 00000000 ce409fa8
[  353.851485] 9fa0: c0201000 c03ad134 a9df47e8 00000000 ffffff9c a9df47e8 00000900 00000000
[  353.851497] 9fc0: a9df47e8 00000000 b3013150 00000142 a7aac130 00000004 a7aac000 a6e2dde8
[  353.851508] 9fe0: 00000000 a6e2dcb0 00000000 b6f1ff68 80070010 ffffff9c 00000000 00000000
[  353.851525] [<c099961c>] (__down_interruptible) from [<c0277cd8>] (down_interruptible+0x5c/0x68)
[  353.851546] [<c0277cd8>] (down_interruptible) from [<bfae63dc>] (eq3loop_open+0x9c/0x1c0 [eq3_char_loop])
[  353.851565] [<bfae63dc>] (eq3loop_open [eq3_char_loop]) from [<c03b4a8c>] (chrdev_open+0xf0/0x1c0)
[  353.851583] [<c03b4a8c>] (chrdev_open) from [<c03ab88c>] (do_dentry_open+0x23c/0x3c0)
[  353.851597] [<c03ab88c>] (do_dentry_open) from [<c03acd68>] (vfs_open+0x3c/0x40)
[  353.851610] [<c03acd68>] (vfs_open) from [<c03bf594>] (path_openat+0x428/0x1024)
[  353.851624] [<c03bf594>] (path_openat) from [<c03c147c>] (do_filp_open+0x80/0xec)
[  353.851637] [<c03c147c>] (do_filp_open) from [<c03ad048>] (do_sys_open+0x140/0x1f0)
[  353.851649] [<c03ad048>] (do_sys_open) from [<c03ad144>] (sys_openat+0x1c/0x20)
[  353.851663] [<c03ad144>] (sys_openat) from [<c0201000>] (ret_fast_syscall+0x0/0x28)
[  353.851673] Exception stack(0xce409fa8 to 0xce409ff0)
[  353.851682] 9fa0:                   a9df47e8 00000000 ffffff9c a9df47e8 00000900 00000000
[  353.851694] 9fc0: a9df47e8 00000000 b3013150 00000142 a7aac130 00000004 a7aac000 a6e2dde8
[  353.851705] 9fe0: 00000000 a6e2dcb0 00000000 b6f1ff68
[  353.851715] Code: e50bc028 e1a08003 e50b0038 e3e06102 (e5821000)
[  353.851726] ---[ end trace 7e1ed5ecdcb9baae ]---

This Kernel errors are raised during the start of the HM Server (Starting /etc/init.d/S62HMServer,). Thereafter, the start continues:

Copying from /mnt to /usr/local/,
sending incremental file list,,
/,
boot_par/.gitkeep,
,
sent 123 bytes  received 39 bytes  324.00 bytes/sec,
total size is 0  speedup is 0.00,
,
Starting CCU services,
,
Starting /etc/init.d/S00InstallAddon,
,
Starting /etc/init.d/S00watchdog,
S00watchdog - skipping,
,
Starting /etc/init.d/S01InitHost,
S01InitHost - defaults,
Checking device,
Detected Raspberry PI,
,
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: RPI-RF-MOD, HmIP: RPI-RF-MOD, OK,
,
Starting /etc/init.d/S12UpdateRFHardware,
Updating Homematic RF-Hardware: RPI-RF-MOD: =>4.0.16, ERROR ( != 4.0.16),
,
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: creating new SSL cert... OK,
,
Starting /etc/init.d/S50ssdpd,
Starting ssdpd: OK,
,
Starting /etc/init.d/S50sshd,
,
Starting /etc/init.d/S55InitAddons,
Initializing Third-Party Addons: OK,
,
Starting /etc/init.d/S58LGWFirmwareUpdate,
Starting LGWFirmwareUpdate: ...OK,
,
Starting /etc/init.d/S59SetLGWKey,
Setting LAN Gateway keys: OK,
,
Starting /etc/init.d/S59snmpd,
cat: can't open '/etc/config/snmp/snmpd.conf': No such file or directory,
,
Starting /etc/init.d/S60hs485d,
Starting hs485d: no Hm-Wired hardware found,
,
Starting /etc/init.d/S60multimacd,
Starting multimacd: SKIPPING (missing HM_HOST_GPIO_UART),
,
Starting /etc/init.d/S60openvpn,
,
Starting /etc/init.d/S61rfd,
Starting rfd: ,
Waiting for rfd to get ready.rfd is ready now.,
,
Starting /etc/init.d/S62HMServer,
Starting HMIPServer: (/dev/mmd_hmip) .......................................................................................................................................................ERROR,
,
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 NeoServer: OK,
,
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,
ne starting CCU services,
,
Register trap for SIGTERM,
sending incremental file list,
addons/,
addons/mediola/,
addons/mediola/Disabled,
addons/mediola/README.md,
addons/mediola/VERSION,
addons/mediola/mediola_addon.cfg,
addons/mediola/update_addon,
addons/mediola/bin/,
addons/mediola/bin/watchdog,
addons/mediola/neo_server/,
addons/mediola/neo_server/automation.js,
addons/mediola/neo_server/package-lock.json,
addons/mediola/neo_server/package.json,
addons/mediola/neo_server/licenses/,
addons/mediola/neo_server/licenses/files/,
addons/mediola/neo_server/licenses/files/adm-zip.txt,
addons/mediola/neo_server/licenses/files/brace-expansion.txt,
addons/mediola/neo_server/licenses/files/cookie-signature.txt,
addons/mediola/neo_server/licenses/files/cron.txt,
addons/mediola/neo_server/licenses/files/debug.txt,
addons/mediola/neo_server/licenses/files/isarray.txt,
addons/mediola/neo_server/licenses/files/nwjs.txt,
addons/mediola/neo_server/licenses/files/options.txt,
addons/mediola/neo_server/licenses/files/winreg.txt,
addons/mediola/neo_server/licenses/files/ws.txt,
addons/mediola/neo_server/node_modules/,
addons/mediola/neo_server/node_modules/m.aio.activationcodemgmt.js,
addons/mediola/neo_server/node_modules/m.aio.automation.js,
addons/mediola/neo_server/node_modules/m.aio.backupmanager.js,
addons/mediola/neo_server/node_modules/m.aio.commandhandler.js,
addons/mediola/neo_server/node_modules/m.aio.configmanager.js,
addons/mediola/neo_server/node_modules/m.aio.devicemanager.js,
addons/mediola/neo_server/node_modules/m.aio.filemanager.js,
addons/mediola/neo_server/node_modules/m.aio.importmanager.js,
addons/mediola/neo_server/node_modules/m.aio.infomanager.js,
addons/mediola/neo_server/node_modules/m.aio.macromanager.js,
addons/mediola/neo_server/node_modules/m.aio.modulemanager.js,
addons/mediola/neo_server/node_modules/m.aio.skinmanager.js,
addons/mediola/neo_server/node_modules/m.aio.syncmanager.js,
addons/mediola/neo_server/node_modules/m.aio.templatemanager.js,
addons/mediola/neo_server/node_modules/m.aio.voicemanager.js,
addons/mediola/neo_server/node_modules/runner.js,
addons/mediola/neo_server/node_modules/runner2.js,
addons/mediola/neo_server/node_modules/script_executor.js,
addons/mediola/neo_server/node_modules/websocket.js,
addons/mediola/neo_server/node_modules/x.aws.js,
addons/mediola/neo_server/node_modules/x.core.js,
addons/mediola/neo_server/node_modules/x.crypt.js,
addons/mediola/neo_server/node_modules/x.events.js,
addons/mediola/neo_server/node_modules/x.hub.camman.js,
addons/mediola/neo_server/node_modules/x.hub.commandman.js,
addons/mediola/neo_server/node_modules/x.hub.datastore.js,
addons/mediola/neo_server/node_modules/x.hub.deviceman.js,
addons/mediola/neo_server/node_modules/x.hub.eventbus.js,
addons/mediola/neo_server/node_modules/x.hub.fileman.js,
addons/mediola/neo_server/node_modules/x.hub.hubsyncman.js,
addons/mediola/neo_server/node_modules/x.hub.js,
addons/mediola/neo_server/node_modules/x.hub.logman.js,
addons/mediola/neo_server/node_modules/x.hub.m.cams.js,
addons/mediola/neo_server/node_modules/x.hub.m.enocean.js,
addons/mediola/neo_server/node_modules/x.hub.m.gateway.js,
addons/mediola/neo_server/node_modules/x.hub.m.harmony.js,
addons/mediola/neo_server/node_modules/x.hub.m.hm.js,
addons/mediola/neo_server/node_modules/x.hub.m.hue.js,
addons/mediola/neo_server/node_modules/x.hub.m.knx.js,
addons/mediola/neo_server/node_modules/x.hub.m.netatmo.js,
addons/mediola/neo_server/node_modules/x.hub.m.proxy.js,
addons/mediola/neo_server/node_modules/x.hub.m.siegenia.js,
addons/mediola/neo_server/node_modules/x.hub.m.template.js,
addons/mediola/neo_server/node_modules/x.hub.m.zigbee.js,
addons/mediola/neo_server/node_modules/x.hub.m.zwave.js,
addons/mediola/neo_server/node_modules/x.hub.m.zway.js,
addons/mediola/neo_server/node_modules/x.hub.macroman.js,
addons/mediola/neo_server/node_modules/x.hub.moduleman.js,
addons/mediola/neo_server/node_modules/x.hub.peripheralman.js,
addons/mediola/neo_server/node_modules/x.hub.recordman.js,
addons/mediola/neo_server/node_modules/x.hub.scriptman.js,
addons/mediola/neo_server/node_modules/x.hub.sysvarman.js,
addons/mediola/neo_server/node_modules/x.hub.taskman.js,
addons/mediola/neo_server/node_modules/x.hub.v5.js,
addons/mediola/neo_server/node_modules/x.logger.js,
addons/mediola/neo_server/node_modules/x.mdns.js,
addons/mediola/neo_server/node_modules/x.mjpeg.js,
addons/mediola/neo_server/node_modules/x.nodeext.js,
addons/mediola/neo_server/node_modules/x.upnp.js,
addons/mediola/neo_server/node_modules/x.xmlrpc.js,
addons/mediola/neo_server/node_modules/xnm.aio.artnet.js,
addons/mediola/neo_server/node_modules/xnm.aio.bose.js,
addons/mediola/neo_server/node_modules/xnm.aio.brennenstuhl.js,
addons/mediola/neo_server/node_modules/xnm.aio.cams.js,
addons/mediola/neo_server/node_modules/xnm.aio.cloud.js,
addons/mediola/neo_server/node_modules/xnm.aio.commandhandler.js,
addons/mediola/neo_server/node_modules/xnm.aio.contronics.js,
addons/mediola/neo_server/node_modules/xnm.aio.denon.js,
addons/mediola/neo_server/node_modules/xnm.aio.devicegroup.js,
addons/mediola/neo_server/node_modules/xnm.aio.digitalstrom.js,
addons/mediola/neo_server/node_modules/xnm.aio.dlink.js,
addons/mediola/neo_server/node_modules/xnm.aio.edimax.js,
addons/mediola/neo_server/node_modules/xnm.aio.ez.js,
addons/mediola/neo_server/node_modules/xnm.aio.feller.js,
addons/mediola/neo_server/node_modules/xnm.aio.fibaro.js,
addons/mediola/neo_server/node_modules/xnm.aio.fritz.js,
addons/mediola/neo_server/node_modules/xnm.aio.gateway.js,
addons/mediola/neo_server/node_modules/xnm.aio.harmony.js,
addons/mediola/neo_server/node_modules/xnm.aio.hautau.js,
addons/mediola/neo_server/node_modules/xnm.aio.hcgw.js,
addons/mediola/neo_server/node_modules/xnm.aio.heos.js,
addons/mediola/neo_server/node_modules/xnm.aio.hm.js,
addons/mediola/neo_server/node_modules/xnm.aio.homewizard.js,
addons/mediola/neo_server/node_modules/xnm.aio.hue.js,
addons/mediola/neo_server/node_modules/xnm.aio.icomfort.js,
addons/mediola/neo_server/node_modules/xnm.aio.iobroker.js,
addons/mediola/neo_server/node_modules/xnm.aio.ip.js,
addons/mediola/neo_server/node_modules/xnm.aio.ir.js,
addons/mediola/neo_server/node_modules/xnm.aio.jointspace.js,
addons/mediola/neo_server/node_modules/xnm.aio.knx.js,
addons/mediola/neo_server/node_modules/xnm.aio.kt.js,
addons/mediola/neo_server/node_modules/xnm.aio.lg.js,
addons/mediola/neo_server/node_modules/xnm.aio.m10T.js,
addons/mediola/neo_server/node_modules/xnm.aio.max.js,
addons/mediola/neo_server/node_modules/xnm.aio.mcontrol.js,
addons/mediola/neo_server/node_modules/xnm.aio.moehlenhoff.js,
addons/mediola/neo_server/node_modules/xnm.aio.mystrom.js,
addons/mediola/neo_server/node_modules/xnm.aio.neoserver.js,
addons/mediola/neo_server/node_modules/xnm.aio.netatmo.js,
addons/mediola/neo_server/node_modules/xnm.aio.nuki.js,
addons/mediola/neo_server/node_modules/xnm.aio.onkyo.js,
addons/mediola/neo_server/node_modules/xnm.aio.orvibo.js,
addons/mediola/neo_server/node_modules/xnm.aio.osram.js,
addons/mediola/neo_server/node_modules/xnm.aio.panasonic.js,
addons/mediola/neo_server/node_modules/xnm.aio.philips.js,
addons/mediola/neo_server/node_modules/xnm.aio.pioneer.js,
addons/mediola/neo_server/node_modules/xnm.aio.push.js,
addons/mediola/neo_server/node_modules/xnm.aio.qivicon.js,
addons/mediola/neo_server/node_modules/xnm.aio.rademacher.js,
addons/mediola/neo_server/node_modules/xnm.aio.raumfeld.js,
addons/mediola/neo_server/node_modules/xnm.aio.rehau.js,
addons/mediola/neo_server/node_modules/xnm.aio.rgb.js,
addons/mediola/neo_server/node_modules/xnm.aio.rwe.js,
addons/mediola/neo_server/node_modules/xnm.aio.samsung.js,
addons/mediola/neo_server/node_modules/xnm.aio.siegenia.js,
addons/mediola/neo_server/node_modules/xnm.aio.slim.js,
addons/mediola/neo_server/node_modules/xnm.aio.sonos.js,
addons/mediola/neo_server/node_modules/xnm.aio.sony.js,
addons/mediola/neo_server/node_modules/xnm.aio.symcon.js,
addons/mediola/neo_server/node_modules/xnm.aio.synology.js,
addons/mediola/neo_server/node_modules/xnm.aio.systemdata.js,
addons/mediola/neo_server/node_modules/xnm.aio.tado.js,
addons/mediola/neo_server/node_modules/xnm.aio.tahoma.js,
addons/mediola/neo_server/node_modules/xnm.aio.tplink.js,
addons/mediola/neo_server/node_modules/xnm.aio.upnp.js,
addons/mediola/neo_server/node_modules/xnm.aio.warema.js,
addons/mediola/neo_server/node_modules/xnm.aio.webhook.js,
addons/mediola/neo_server/node_modules/xnm.aio.webpage.js,
addons/mediola/neo_server/node_modules/xnm.aio.wemo.js,
addons/mediola/neo_server/node_modules/xnm.aio.yamaha.js,
addons/mediola/neo_server/node_modules/xnm.aio.yellowstone.js,
addons/mediola/neo_server/node_modules/.bin/,
addons/mediola/neo_server/node_modules/.bin/mime,
addons/mediola/neo_server/node_modules/.bin/uuid,
addons/mediola/neo_server/node_modules/async-limiter/,
addons/mediola/neo_server/node_modules/async-limiter/.travis.yml,
addons/mediola/neo_server/node_modules/async-limiter/LICENSE,
addons/mediola/neo_server/node_modules/async-limiter/index.js,
addons/mediola/neo_server/node_modules/async-limiter/package.json,
addons/mediola/neo_server/node_modules/async-limiter/readme.md,
addons/mediola/neo_server/node_modules/async-limiter/coverage/,
addons/mediola/neo_server/node_modules/async-limiter/coverage/coverage.json,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov.info,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov-report/,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov-report/base.css,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov-report/prettify.css,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov-report/prettify.js,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov-report/sort-arrow-sprite.png,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov-report/sorter.js,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov-report/async-throttle/,
addons/mediola/neo_server/node_modules/async-limiter/coverage/lcov-report/async-throttle/index.js.html,
addons/mediola/neo_server/node_modules/buffer-alloc-unsafe/,
addons/mediola/neo_server/node_modules/buffer-alloc-unsafe/index.js,
addons/mediola/neo_server/node_modules/buffer-alloc-unsafe/package.json,
addons/mediola/neo_server/node_modules/buffer-alloc-unsafe/readme.md,
addons/mediola/neo_server/node_modules/buffer-alloc/,
addons/mediola/neo_server/node_modules/buffer-alloc/index.js,
addons/mediola/neo_server/node_modules/buffer-alloc/package.json,
addons/mediola/neo_server/node_modules/buffer-alloc/readme.md,
addons/mediola/neo_server/node_modules/buffer-fill/,
addons/mediola/neo_server/node_modules/buffer-fill/index.js,
addons/mediola/neo_server/node_modules/buffer-fill/package.json,
addons/mediola/neo_server/node_modules/buffer-fill/readme.md,
addons/mediola/neo_server/node_modules/events/,
addons/mediola/neo_server/node_modules/events/.npmignore,
addons/mediola/neo_server/node_modules/events/.travis.yml,
addons/mediola/neo_server/node_modules/events/.zuul.yml,
addons/mediola/neo_server/node_modules/events/History.md,
addons/mediola/neo_server/node_modules/events/LICENSE,
addons/mediola/neo_server/node_modules/events/Readme.md,
addons/mediola/neo_server/node_modules/events/events.js,
addons/mediola/neo_server/node_modules/events/package.json,
addons/mediola/neo_server/node_modules/events/tests/,
addons/mediola/neo_server/node_modules/events/tests/add-listeners.js,
addons/mediola/neo_server/node_modules/events/tests/check-listener-leaks.js,
addons/mediola/neo_server/node_modules/events/tests/common.js,
addons/mediola/neo_server/node_modules/events/tests/index.js,
addons/mediola/neo_server/node_modules/events/tests/legacy-compat.js,
addons/mediola/neo_server/node_modules/events/tests/listener-count.js,
addons/mediola/neo_server/node_modules/events/tests/listeners-side-effects.js,
addons/mediola/neo_server/node_modules/events/tests/listeners.js,
addons/mediola/neo_server/node_modules/events/tests/max-listeners.js,
addons/mediola/neo_server/node_modules/events/tests/modify-in-emit.js,
addons/mediola/neo_server/node_modules/events/tests/num-args.js,
addons/mediola/neo_server/node_modules/events/tests/once.js,
addons/mediola/neo_server/node_modules/events/tests/remove-all-listeners.js,
addons/mediola/neo_server/node_modules/events/tests/remove-listeners.js,
addons/mediola/neo_server/node_modules/events/tests/set-max-listeners-side-effects.js,
addons/mediola/neo_server/node_modules/events/tests/subclass.js,
addons/mediola/neo_server/node_modules/fs-constants/,
addons/mediola/neo_server/node_modules/fs-constants/LICENSE,
addons/mediola/neo_server/node_modules/fs-constants/README.md,
addons/mediola/neo_server/node_modules/fs-constants/browser.js,
addons/mediola/neo_server/node_modules/fs-constants/index.js,
addons/mediola/neo_server/node_modules/fs-constants/package.json,
addons/mediola/neo_server/node_modules/loop-protect/,
addons/mediola/neo_server/node_modules/loop-protect/.editorconfig,
addons/mediola/neo_server/node_modules/loop-protect/.npmignore,
addons/mediola/neo_server/node_modules/loop-protect/LICENSE.md,
addons/mediola/neo_server/node_modules/loop-protect/README.md,
addons/mediola/neo_server/node_modules/loop-protect/loop-protect.js,
addons/mediola/neo_server/node_modules/loop-protect/loop-protect.test.js,
addons/mediola/neo_server/node_modules/loop-protect/package.json,
addons/mediola/rc.d/,
addons/mediola/rc.d/97NeoServer,,
/,
crontabs/root,
etc/,
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/ids,
etc/config/localtime -> /usr/share/zoneinfo/Europe/Berlin,
etc/config/log4j.xml,
etc/config/netconfig,
etc/config/ntpclient,
etc/config/rfd.conf,
etc/config/securitySettingsMigrated,
etc/config/server.pem,
etc/config/shadow,
etc/config/syslog,
etc/config/timezone,
etc/config/addons/,
etc/config/addons/mediola/,
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/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/mediola -> /opt/mediola/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/rc.d/97NeoServer,
etc/config/rfd/,
etc/config/snmp/,
etc/config/snmp/snmpd-user.conf,
etc/config/snmp/snmpd.conf,
etc/config/snmp/snmptrapd-user.conf,
etc/config/userprofiles/,
etc/ssh/,
tmp/,
,
sent 5,523,009 bytes  received 6,032 bytes  11,058,082.00 bytes/sec,
total size is 5,501,198  speedup is 0.99,

If try thereafter to open the CCU website, I´m getting a 404 error: image

After this, I tried to restart the container. However, this completly crashes the RPi and I have to powercycle the RPi to get it restarted. And even then, the container will not start but crash my RPi.

My first thought was about the pivCCU Kernel extensions. But based on this post of the pivCCU developer, it is compatible with the Raspberry Pi 4.

Do you have any idea?

m-rossi commented 5 years ago

Exact same issue for me since I performed some updates on the Raspberry Pi yesterday. During normal boot I see messages from the kernel like your ones and after some time the WebUI is accessible. However none of my devices can be controlled or accessed.

If I rerun sudo ./deploy.sh the Pi crashes completely and I also have to cut the power to access it again.

I think especially the lines

Starting /etc/init.d/S12UpdateRFHardware,
Updating Homematic RF-Hardware: RPI-RF-MOD: =>4.0.16, ERROR ( != 4.0.16),

are part of the problem.

I have to note this happens on my Raspberry Pi 3 with Raspbian Stretch.

angelnu commented 5 years ago

Hi @andreheuer ,

did you reboot after running deploy.sh ? The docker log shows that the /dev/raw_uart was not detected. You should get:

S01InitHost - defaults
Checking device
Detected piVCCU kernel module

Without this the multimacd daemon does not start due to the missing HM_HOST_GPIO_UART. The eq3loop device does not seem to handle well that the slave device is open without the master running (multimacd): this leads to the kernel becoming unstable.

m-rossi commented 5 years ago

Ok, my problem seems to be fixed. I used the tip in https://github.com/angelnu/docker-ccu/issues/33#issuecomment-482205781 and added dtoverlay=pivccu-raspberrypi to /boot/config.txt.

Although now it is not clear to me whats need to be in /boot/config.txt? dtoverlay=pi3-miniuart-bt and/or dtoverlay=pivccu-raspberrypi?

andreheuer commented 5 years ago

Hi @angelnu, first: I do not use any local antenna, but a HM-CFG-LAN. Thus, I did not install all pivccu Kernel modules. All Kernel modules of pivccu are added, but I did not add dtoverlay=pi3-miniuart-bt nor the the steps described here under point 5. Shall I do so?

I did a restart and the container stucks at the same point as @m-rossi (Starting /etc/init.d/S12UpdateRFHardware,). The init line looks like you expected:

S01InitHost - defaults
Checking device
Detected piVCCU kernel module

My last lines in config.txt are

[all]
#dtoverlay=vc4-fkms-v3d
start_x=0
gpu_mem=64
dtoverlay=pivccu-raspberrypi

On my host and in the container, I have a /dev/raw_uart device.

andreheuer commented 5 years ago

Hi @angelnu, as I explained above, the start of the container stucks at the above mentioned point. So, I tried the following: I opened the console in the container and started the entrypoint.sh manually and it almost went through:

/ # ./entrypoint.sh
Copying from /mnt to /usr/local/
sending incremental file list
rsync: link_stat "/mnt/*" failed: No such file or directory (2)

sent 18 bytes  received 12 bytes  60.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]

Starting CCU services

Starting /etc/init.d/S00InstallAddon

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

Starting /etc/init.d/S01InitHost
S01InitHost - defaults
Checking device
Detected piVCCU kernel module
mknod: /dev/mmd_hmip: File exists
mknod: /dev/mmd_bidcos: File exists

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
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: none, HmIP: none, OK

Starting /etc/init.d/S12UpdateRFHardware
Updating Homematic RF-Hardware: no GPIO/USB connected RF-hardware found

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

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

Starting /etc/init.d/S30dbus
Starting system message bus: dbus-daemon[305]: Failed to start message bus: The pid file "/var/run/messagebus.pid" exists, if the message bus is not running, remove this file
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: creating new SSL cert... OK

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

Starting /etc/init.d/S50sshd

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

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

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

Starting /etc/init.d/S59snmpd
cat: can't open '/etc/config/snmp/snmpd.conf': No such file or directory

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

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

Starting /etc/init.d/S60openvpn

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

Starting /etc/init.d/S62HMServer
Starting HMIPServer: (/dev/mmd_hmip) ..............................................................................................................................^C
/ #

As the HMIPServer did not start, I stopped the execution of the script. As you can see /etc/init.d/S60multimacd could not be started.

BR André

andreheuer commented 5 years ago

Ok, next step: I tried to load the multimacd daemon directly in the container. It terminates with the following errors. It seems that there is a problem that no "Coprocessor" is present!?

/ # /bin/multimacd -f /etc/multimacd.conf -l 0 -c
2019/09/08 18:33:09.826 <Debug> FastMacResponder::ThreadFunction() started Id=139
2019/09/08 18:33:09.826 <Debug> MacController::ThreadFunction() started. Id=140
2019/09/08 18:33:09.826 <Debug> SubsystemManager::ThreadFunction() started. Id=141
2019/09/08 18:33:09.827 <Debug> C<: #0 COMMON IdentifyRequest
2019/09/08 18:33:09.827 <Debug> C< @13878849: bin:FD 00 03 FE 00 01 14 1E
2019/09/08 18:33:09.827 <Debug> UpstreamCharConnection slave mmd_hmip ThreadFunction() started Id=142
2019/09/08 18:33:09.828 <Debug> Subsystem 1 ThreadFunction() started. Id=143
2019/09/08 18:33:09.830 <Debug> UpstreamCharConnection slave mmd_bidcos ThreadFunction() started Id=144
2019/09/08 18:33:09.830 <Debug> Subsystem 2 ThreadFunction() started. Id=145
2019/09/08 18:33:10.827 <Debug> C<: #1 HmSystem Identify
2019/09/08 18:33:10.828 <Debug> C< @13879850: bin:FD 00 03 00 01 00 9E 03
2019/09/08 18:33:15.828 <Error> No Coprocessor detected!!!
2019/09/08 18:33:15.828 <Debug> SubsystemManager::ThreadFunction() ended
2019/09/08 18:33:15.829 <Debug> Subsystem 1 ThreadFunction() ended
Signal 10 caught
2019/09/08 18:33:15.829 <Debug> UpstreamCharConnection slave device mmd_hmip ThreadFunction() ended
2019/09/08 18:33:15.830 <Debug> Subsystem 2 ThreadFunction() ended
Signal 10 caught
2019/09/08 18:33:15.830 <Debug> UpstreamCharConnection slave device mmd_bidcos ThreadFunction() ended
Signal 10 caught
2019/09/08 18:33:15.830 <Warning> FastMacResponder read error: Interrupted system call
2019/09/08 18:33:15.830 <Debug> FastMacResponder::ThreadFunction() ended
2019/09/08 18:33:15.831 <Debug> MacController::ThreadFunction() ended
angelnu commented 5 years ago

@m-rossi - if you install all the pivccu it should take care of the DTD and config files. pivccu-raspberrypi is added by the pivccu and should work in all situation. I removed the instructions instucting how to manually change the DTD to avoid confusions.

@andreheuer - could you please append the lsmod output? Since you are using a remote LAN it should use the fake_hmrf module. If it is not loaded then you can try with modproble fake_hmrf. This module is added by the pivccu and can be loaded as dep by the generic_raw_uart module (that then created /dev/raw_uart).

If this works then you can make the module to load automatically with echo fake_hmrf>/etc/modules-load.d/fake_hmrf.conf.

If with fake_rf does not work it would you can still start the rfd by editing /etc/config/rfd.conf and removing the reference to the uart interface and adding the LAN adapter (I did this in the past before switching to pivccu).

andreheuer commented 5 years ago

Hi @angelnu,

thank you for your suggestions. Here is my lsmod output:

pi@docker-host:~ $ sudo lsmod
Module                  Size  Used by
xt_nat                 16384  1
xt_tcpudp              16384  3
veth                   24576  0
ipt_MASQUERADE         16384  3
nf_conntrack_netlink    40960  0
nft_counter            16384  26
nft_chain_nat_ipv4     16384  4
nf_nat_ipv4            16384  2 nft_chain_nat_ipv4,ipt_MASQUERADE
xt_addrtype            16384  2
nft_compat             20480  11
nf_tables             122880  96 nft_chain_nat_ipv4,nft_compat,nft_counter
nfnetlink              16384  4 nft_compat,nf_conntrack_netlink,nf_tables
xt_conntrack           16384  2
nf_nat                 36864  2 xt_nat,nf_nat_ipv4
nf_conntrack          135168  6 xt_nat,ipt_MASQUERADE,nf_conntrack_netlink,xt_conntrack,nf_nat_ipv4,nf_nat
nf_defrag_ipv6         20480  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
br_netfilter           24576  0
bridge                135168  1 br_netfilter
overlay               106496  1
8021q                  32768  0
garp                   16384  1 8021q
stp                    16384  2 garp,bridge
llc                    16384  3 garp,bridge,stp
rtc_rx8130             20480  0
rtc_ds1307             24576  0
sg                     28672  0
vc4                   176128  0
drm_kms_helper        184320  1 vc4
v3d                    61440  0
gpu_sched              28672  1 v3d
brcmfmac              311296  0
brcmutil               16384  1 brcmfmac
drm                   442368  5 v3d,vc4,gpu_sched,drm_kms_helper
sha256_generic         20480  0
snd_soc_core          192512  1 vc4
snd_compress           20480  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
drm_panel_orientation_quirks    16384  1 drm
cfg80211              614400  1 brcmfmac
syscopyarea            16384  1 drm_kms_helper
bcm2835_v4l2           45056  0
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
bcm2835_codec          36864  0
raspberrypi_hwmon      16384  0
hwmon                  16384  2 rtc_ds1307,raspberrypi_hwmon
fb_sys_fops            16384  1 drm_kms_helper
v4l2_mem2mem           24576  1 bcm2835_codec
videobuf2_dma_contig    20480  1 bcm2835_codec
bcm2835_mmal_vchiq     32768  2 bcm2835_codec,bcm2835_v4l2
snd_bcm2835            24576  1
rfkill                 28672  4 cfg80211
v4l2_common            16384  1 bcm2835_v4l2
videobuf2_vmalloc      16384  1 bcm2835_v4l2
videobuf2_memops       16384  2 videobuf2_dma_contig,videobuf2_vmalloc
snd_pcm               102400  4 vc4,snd_pcm_dmaengine,snd_bcm2835,snd_soc_core
videobuf2_v4l2         24576  3 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem
videobuf2_common       45056  4 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
snd_timer              32768  1 snd_pcm
snd                    73728  7 snd_compress,snd_timer,snd_bcm2835,snd_soc_core,snd_pcm
i2c_bcm2835            16384  0
videodev              200704  6 bcm2835_codec,v4l2_common,videobuf2_common,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
media                  36864  2 videodev,v4l2_mem2mem
pl011_raw_uart         16384  0
vc_sm_cma              36864  1 bcm2835_mmal_vchiq
generic_raw_uart       20480  1 pl011_raw_uart
rpivid_mem             16384  0
fixed                  16384  0
uio_pdrv_genirq        16384  0
uio                    20480  1 uio_pdrv_genirq
eq3_char_loop          20480  0
ip_tables              24576  0
x_tables               32768  7 xt_nat,ip_tables,nft_compat,xt_tcpudp,ipt_MASQUERADE,xt_addrtype,xt_conntrack
ipv6                  450560  47 bridge

As you can see, there is no fake_hmrf. Then, I loaded the module by sudo modprobe fake_hmrf and validated this by sudo lsmod. After that, I have redeployed the container (before, I deleted all volumes, the container, and rfd.conf symlink) and redeployed the container by sudo ./deploy.sh However, the container start still stucks at the same point as before: Starting /etc/init.d/S11InitRFHardware. But one step further: I did not receive any Kernel panic.

As this did not wok, I have modified /etc/config/rfd.conf as follows:

/usr/local/etc/config # cat rfd.conf
# TCP Port for XmlRpc connections
Listen Port = 32001

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 = HMLGW2
Name = LAN Adapter
Serial Number = JEXXXXX5
Encryption Key =
IP Address = 192.168.XXX.XXX

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

But even though, the start of the container did not went through and stopped at the same spot.

Then, I did the following: I copied the entrypoint.sh to another name removed the for-iteration in which the init scripts are called. Obviously, the container could start. Then I "consoled" into the container and executed the copy of the entrypoint.sh which produced the following output:

/ # ./entrypoint-on.sh
Copying from /mnt to /usr/local/
sending incremental file list

sent 905 bytes  received 22 bytes  1,854.00 bytes/sec
total size is 8,208  speedup is 8.85

Starting CCU services

Starting /etc/init.d/S00InstallAddon

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
Initializing System: OK

Starting /etc/init.d/S07DisableHdmi
./entrypoint-off.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: none, HmIP: none, OK

Starting /etc/init.d/S12UpdateRFHardware
Updating Homematic RF-Hardware: no GPIO/USB connected RF-hardware found

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

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

Starting /etc/init.d/S30dbus
Starting system message bus: dbus-daemon[153]: Failed to start message bus: The pid file "/var/run/messagebus.pid" exists, if the message bus is not running, remove this file
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 /etc/init.d/S55InitAddons
Initializing Third-Party Addons: OK

Starting /etc/init.d/S58LGWFirmwareUpdate
Starting LGWFirmwareUpdate: ...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: .....ERROR

Starting /etc/init.d/S60openvpn

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

Starting /etc/init.d/S62HMServer
Starting HMIPServer: (/dev/mmd_hmip) ..................................................................................................................^C
/ #

As you can see in the log, S11InitRFHardware could be started (without any hardware as desired) and rfd could also be started. But S60multimacd still fails. Also, the HMIPServer could not be started (I interrupted the start after a while).

In /var/log/hmserver.log, the following error is recurring:

Sep 9 23:29:01 de.eq3.cbcs.vertx.management.VertxManager WARN  [vert.x-eventloop-thread-6] SYSTEM ADVICE: 
pre-conditions for deployment of LanRoutingWorker still not met - check deployment 
configuration (still unfulfilled: [connector.open])

So, a bit progress, but still not reached the final goal...:-/

angelnu commented 5 years ago

I think the problem is that it loads the real uart driver pl011_raw_uart and therefore it does not use the the fake one. Please try to remove it and check that the generic uart driver has the fake as dependency.

If this works I think it would be good to make the he selection explicit over the config used by deploy.sh. Pivccu has a helper tool to select that might be reused.

On Mon, Sep 9, 2019, 23:30 andreheuer notifications@github.com wrote:

Hi @angelnu https://github.com/angelnu,

thank you for your suggestions. Here is my lsmod output:

pi@docker-host:~ $ sudo lsmod Module Size Used by xt_nat 16384 1 xt_tcpudp 16384 3 veth 24576 0 ipt_MASQUERADE 16384 3 nf_conntrack_netlink 40960 0 nft_counter 16384 26 nft_chain_nat_ipv4 16384 4 nf_nat_ipv4 16384 2 nft_chain_nat_ipv4,ipt_MASQUERADE xt_addrtype 16384 2 nft_compat 20480 11 nf_tables 122880 96 nft_chain_nat_ipv4,nft_compat,nft_counter nfnetlink 16384 4 nft_compat,nf_conntrack_netlink,nf_tables xt_conntrack 16384 2 nf_nat 36864 2 xt_nat,nf_nat_ipv4 nf_conntrack 135168 6 xt_nat,ipt_MASQUERADE,nf_conntrack_netlink,xt_conntrack,nf_nat_ipv4,nf_nat nf_defrag_ipv6 20480 1 nf_conntrack nf_defrag_ipv4 16384 1 nf_conntrack br_netfilter 24576 0 bridge 135168 1 br_netfilter overlay 106496 1 8021q 32768 0 garp 16384 1 8021q stp 16384 2 garp,bridge llc 16384 3 garp,bridge,stp rtc_rx8130 20480 0 rtc_ds1307 24576 0 sg 28672 0 vc4 176128 0 drm_kms_helper 184320 1 vc4 v3d 61440 0 gpu_sched 28672 1 v3d brcmfmac 311296 0 brcmutil 16384 1 brcmfmac drm 442368 5 v3d,vc4,gpu_sched,drm_kms_helper sha256_generic 20480 0 snd_soc_core 192512 1 vc4 snd_compress 20480 1 snd_soc_core snd_pcm_dmaengine 16384 1 snd_soc_core drm_panel_orientation_quirks 16384 1 drm cfg80211 614400 1 brcmfmac syscopyarea 16384 1 drm_kms_helper bcm2835_v4l2 45056 0 sysfillrect 16384 1 drm_kms_helper sysimgblt 16384 1 drm_kms_helper bcm2835_codec 36864 0 raspberrypi_hwmon 16384 0 hwmon 16384 2 rtc_ds1307,raspberrypi_hwmon fb_sys_fops 16384 1 drm_kms_helper v4l2_mem2mem 24576 1 bcm2835_codec videobuf2_dma_contig 20480 1 bcm2835_codec bcm2835_mmal_vchiq 32768 2 bcm2835_codec,bcm2835_v4l2 snd_bcm2835 24576 1 rfkill 28672 4 cfg80211 v4l2_common 16384 1 bcm2835_v4l2 videobuf2_vmalloc 16384 1 bcm2835_v4l2 videobuf2_memops 16384 2 videobuf2_dma_contig,videobuf2_vmalloc snd_pcm 102400 4 vc4,snd_pcm_dmaengine,snd_bcm2835,snd_soc_core videobuf2_v4l2 24576 3 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem videobuf2_common 45056 4 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2 snd_timer 32768 1 snd_pcm snd 73728 7 snd_compress,snd_timer,snd_bcm2835,snd_soc_core,snd_pcm i2c_bcm2835 16384 0 videodev 200704 6 bcm2835_codec,v4l2_common,videobuf2_common,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2 media 36864 2 videodev,v4l2_mem2mem pl011_raw_uart 16384 0 vc_sm_cma 36864 1 bcm2835_mmal_vchiq generic_raw_uart 20480 1 pl011_raw_uart rpivid_mem 16384 0 fixed 16384 0 uio_pdrv_genirq 16384 0 uio 20480 1 uio_pdrv_genirq eq3_char_loop 20480 0 ip_tables 24576 0 x_tables 32768 7 xt_nat,ip_tables,nft_compat,xt_tcpudp,ipt_MASQUERADE,xt_addrtype,xt_conntrack ipv6 450560 47 bridge

As you can see, there is no fake_hmrf. Then, I loaded the module by sudo modprobe fake_hmrf and validated this by sudo lsmod. After that, I have redeployed the container (before, I deleted all volumes, the container, and rfd.conf symlink) and redeployed the container by sudo ./deploy.sh However, the container start still stucks at the same point as before: Starting /etc/init.d/S11InitRFHardware. But one step further: I did not receive any Kernel panic.

As this did not wok, I have modified /etc/config/rfd.conf as follows:

/usr/local/etc/config # cat rfd.conf

TCP Port for XmlRpc connections

Listen Port = 32001

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 = HMLGW2 Name = LAN Adapter Serial Number = JEXXXXX5 Encryption Key = IP Address = 192.168.XXX.XXX

[Interface 0]

Type = CCU2

ComPortFile = /dev/mmd_bidcos

AccessFile = /dev/null

ResetFile = /dev/ccu2-ic200

But even though, the start of the container did not went through and stopped at the same spot.

Then, I did the following: I copied the entrypoint.sh to another name removed the for-iteration in which the init scripts are called. Obviously, the container could start. Then I "consoled" into the container and executed the copy of the entrypoint.sh which produced the following output:

/ # ./entrypoint-on.sh Copying from /mnt to /usr/local/ sending incremental file list

sent 905 bytes received 22 bytes 1,854.00 bytes/sec total size is 8,208 speedup is 8.85

Starting CCU services

Starting /etc/init.d/S00InstallAddon

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 Initializing System: OK

Starting /etc/init.d/S07DisableHdmi ./entrypoint-off.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: none, HmIP: none, OK

Starting /etc/init.d/S12UpdateRFHardware Updating Homematic RF-Hardware: no GPIO/USB connected RF-hardware found

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

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

Starting /etc/init.d/S30dbus Starting system message bus: dbus-daemon[153]: Failed to start message bus: The pid file "/var/run/messagebus.pid" exists, if the message bus is not running, remove this file 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 /etc/init.d/S55InitAddons Initializing Third-Party Addons: OK

Starting /etc/init.d/S58LGWFirmwareUpdate Starting LGWFirmwareUpdate: ...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: .....ERROR

Starting /etc/init.d/S60openvpn

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

Starting /etc/init.d/S62HMServer Starting HMIPServer: (/dev/mmd_hmip) ..................................................................................................................^C / #

As you can see in the log, S11InitRFHardware could be started (without any hardware as desired) and rfd could also be started. But S60multimacd still fails. Also, the HMIPServer could not be started (I interrupted the start after a while).

In /var/log/hmserver.log, the following error is recurring:

Sep 9 23:29:01 de.eq3.cbcs.vertx.management.VertxManager WARN [vert.x-eventloop-thread-6] SYSTEM ADVICE: pre-conditions for deployment of LanRoutingWorker still not met - check deployment configuration (still unfulfilled: [connector.open])

So, a bit progress, but still not reached the final goal...:-/

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/angelnu/docker-ccu/issues/35?email_source=notifications&email_token=ABBTZA3IM7WVXGYEYDTADPDQI26AXA5CNFSM4IURL2QKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6JDHLA#issuecomment-529675180, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBTZAYUBEIKVM6FIBCFY3DQI26AXANCNFSM4IURL2QA .

andreheuer commented 5 years ago

Hi @angelnu, after a few days of studying the pivccu bash files and several tries, I finally managed to get it working without any attached hardware, but a HM-CFG-LAN adapter.

I extended your deploy.sh as follows:

  1. I added a new config variable, which could also be moved into settings file: FAKE_HMRF=1
  2. Then, I added a line to load the fake_hmrf Kernel module:

    if [ "0$FAKE_HMRF" -eq 1 ]; then
        echo "Load Fake HMRF"
        modprobe -a fake_hmrf || true
        echo fake_hmrf>/etc/modules-load.d/fake_hmrf.conf || true
    
        echo "Create /dev/raw-uart fake HMRF..."
        UART_MAJOR=`cat /sys/devices/virtual/fake-hmrf/fake-hmrf/dev | cut -d: -f1`
        UART_MINOR=`cat /sys/devices/virtual/fake-hmrf/fake-hmrf/dev | cut -d: -f2`
        mknod -m 666 /dev/raw-uart c $UART_MAJOR $UART_MINOR
    fi

    These lines add the fake_hmrf Kernel module as "autoload" on startup, then receives the Major & Minor Version, and last, it created the raw-uart module.

During startup, the fake HMRF is discovered as HM-MOD-RPI-PCB and everything starts well. The LAN Adapter can then be registered in the settings.

Also my import from a pivccu instance is working out of the box.

Thank you for your support!! Maybe you can add those lines/settings to the image? I will for sure be a tester for this :-)

angelnu commented 5 years ago

Congratulations for getting it working!

I think it would be useful to have a HW-TYPE variable in the settings, being the default "autodetect". Would you be be able to contribute a PR?

On Mon, Sep 16, 2019, 11:16 PM andreheuer notifications@github.com wrote:

Hi @angelnu https://github.com/angelnu, after a few days of studying the pivccu bash files and several tries, I finally managed to get it working without any attached hardware, but a HM-CFG-LAN adapter.

I extended your deploy.sh as follows:

  1. I added a new config variable, which could also be moved into settings file: FAKE_HMRF=1
  2. Then, I added a line to load the fake_hmrf Kernel module:

if [ "0$FAKE_HMRF" -eq 1 ]; then echo "Load Fake HMRF" modprobe -a fake_hmrf || true echo fake_hmrf>/etc/modules-load.d/fake_hmrf.conf || true

    echo "Create /dev/raw-uart fake HMRF..."
    UART_MAJOR=`cat /sys/devices/virtual/fake-hmrf/fake-hmrf/dev | cut -d: -f1`
    UART_MINOR=`cat /sys/devices/virtual/fake-hmrf/fake-hmrf/dev | cut -d: -f2`
    mknod -m 666 /dev/raw-uart c $UART_MAJOR $UART_MINOR

fi

These lines add the fake_hmrf Kernel module as "autoload" on startup, then receives the Major & Minor Version, and last, it created the raw-uart module.

During startup, the fake HMRF is discovered as HM-MOD-RPI-PCB and everything starts well. The LAN Adapter can then be registered in the settings.

Also my import from a pivccu instance is working out of the box.

Thank you for your support!! Maybe you can add those lines/settings to the image? I will for sure be a tester for this :-)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/angelnu/docker-ccu/issues/35?email_source=notifications&email_token=ABBTZA5VEK47KYPZQAHRXLLQJ7ZS5A5CNFSM4IURL2QKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD62ROZY#issuecomment-531961703, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBTZAY4ADZYJVBANZ2NSF3QJ7ZS5ANCNFSM4IURL2QA .