lisaac / luci-app-dockerman

Docker Manager interface for LuCI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Only "Overview" in luci app menu

kpoman opened this issue · comments

Hello,

I installed dockerman these:

docker - 20.10.7-1
dockerd - 20.10.7-1
luci-app-dockerman - v0.5.19
luci-lib-docker - git-20.211.27004-141857a

running on latest raspberry pi 4b snapshot OpenWrt SNAPSHOT, r16953-f6a03bff5b

First boot, I had the complete menu able to download images and configure container. I downloaded https://hub.docker.com/r/tusc/ntopng-udm without problems. Tried creating container without problem. When trying to start the container I got "oci runtime create failed" error. I then installed cgroup packages:

cgroup-tools - 0.41-3
cgroupfs-mount - 2020-06-26-05494281-2
libcgroup - 0.41-3

still no luck with OCI error. I then rebooted the router, and after that, my dockerman menu only has an Overview item.

Hope this helps.

thanks for your information, in your case, obviously dockerd(or depends or kernel modules) is not installed correctly.

dockerman will only show the "overview" menu when can't connect to docker daemon, which means your dockerd is not running.

ps: if you are using dockerman >=v0.5.18, please update luci-lib-docker up to v0.3.4

Thank you, I supposed that also and indeed, dockerd fails to run, but why was I able to see the menus and download an image, create a container, try to start it, get that OCI error, then after rebooting, nothing appeared ? Do you think when I saw and could use dockerman, my dockerd was running ? I say this because I am trying to launch it by CLI and see these weird errors:

root@rpi4:~# dockerd
INFO[2021-06-15T19:17:41.300441742Z] Starting up                                  
INFO[2021-06-15T19:17:41.303986529Z] libcontainerd: started new containerd process  pid=9437
INFO[2021-06-15T19:17:41.304200564Z] parsed scheme: "unix"                         module=grpc
INFO[2021-06-15T19:17:41.304264490Z] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2021-06-15T19:17:41.304365322Z] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}  module=grpc
INFO[2021-06-15T19:17:41.304446285Z] ClientConn switching balancer to "pick_first"  module=grpc
INFO[2021-06-15T19:17:41.347150581Z] starting containerd                           revision=d71fcd7d8303cbf684402823e425e9dd2e99285d version=1.4.6
INFO[2021-06-15T19:17:41.443624308Z] loading plugin "io.containerd.content.v1.content"...  type=io.containerd.content.v1
INFO[2021-06-15T19:17:41.443850955Z] loading plugin "io.containerd.snapshotter.v1.aufs"...  type=io.containerd.snapshotter.v1
INFO[2021-06-15T19:17:41.451642486Z] skip loading plugin "io.containerd.snapshotter.v1.aufs"...  error="aufs is not supported (modprobe aufs failed: exit status 255 \"\"): skip plugin" type=io.containerd.snapshotter.v1
INFO[2021-06-15T19:17:41.451800078Z] loading plugin "io.containerd.snapshotter.v1.btrfs"...  type=io.containerd.snapshotter.v1
INFO[2021-06-15T19:17:41.452261759Z] skip loading plugin "io.containerd.snapshotter.v1.btrfs"...  error="path /tmp/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs (tmpfs) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
INFO[2021-06-15T19:17:41.452335407Z] loading plugin "io.containerd.snapshotter.v1.devmapper"...  type=io.containerd.snapshotter.v1
WARN[2021-06-15T19:17:41.452426091Z] failed to load plugin io.containerd.snapshotter.v1.devmapper  error="devmapper not configured"
INFO[2021-06-15T19:17:41.452463628Z] loading plugin "io.containerd.snapshotter.v1.native"...  type=io.containerd.snapshotter.v1
INFO[2021-06-15T19:17:41.452571405Z] loading plugin "io.containerd.snapshotter.v1.overlayfs"...  type=io.containerd.snapshotter.v1
INFO[2021-06-15T19:17:41.452904958Z] loading plugin "io.containerd.snapshotter.v1.zfs"...  type=io.containerd.snapshotter.v1
INFO[2021-06-15T19:17:41.453312770Z] skip loading plugin "io.containerd.snapshotter.v1.zfs"...  error="path /tmp/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
INFO[2021-06-15T19:17:41.453381213Z] loading plugin "io.containerd.metadata.v1.bolt"...  type=io.containerd.metadata.v1
WARN[2021-06-15T19:17:41.453456435Z] could not use snapshotter devmapper in metadata plugin  error="devmapper not configured"
INFO[2021-06-15T19:17:41.453489972Z] metadata content store policy set             policy=shared
INFO[2021-06-15T19:17:41.453713266Z] loading plugin "io.containerd.differ.v1.walking"...  type=io.containerd.differ.v1
INFO[2021-06-15T19:17:41.453777970Z] loading plugin "io.containerd.gc.v1.scheduler"...  type=io.containerd.gc.v1
INFO[2021-06-15T19:17:41.453892728Z] loading plugin "io.containerd.service.v1.introspection-service"...  type=io.containerd.service.v1
INFO[2021-06-15T19:17:41.454090263Z] loading plugin "io.containerd.service.v1.containers-service"...  type=io.containerd.service.v1
INFO[2021-06-15T19:17:41.454138485Z] loading plugin "io.containerd.service.v1.content-service"...  type=io.containerd.service.v1
INFO[2021-06-15T19:17:41.454196022Z] loading plugin "io.containerd.service.v1.diff-service"...  type=io.containerd.service.v1
INFO[2021-06-15T19:17:41.454252688Z] loading plugin "io.containerd.service.v1.images-service"...  type=io.containerd.service.v1
INFO[2021-06-15T19:17:41.454296725Z] loading plugin "io.containerd.service.v1.leases-service"...  type=io.containerd.service.v1
INFO[2021-06-15T19:17:41.454353021Z] loading plugin "io.containerd.service.v1.namespaces-service"...  type=io.containerd.service.v1
INFO[2021-06-15T19:17:41.454415076Z] loading plugin "io.containerd.service.v1.snapshots-service"...  type=io.containerd.service.v1
INFO[2021-06-15T19:17:41.454469742Z] loading plugin "io.containerd.runtime.v1.linux"...  type=io.containerd.runtime.v1
INFO[2021-06-15T19:17:41.454719888Z] loading plugin "io.containerd.runtime.v2.task"...  type=io.containerd.runtime.v2
INFO[2021-06-15T19:17:41.454884813Z] loading plugin "io.containerd.monitor.v1.cgroups"...  type=io.containerd.monitor.v1
INFO[2021-06-15T19:17:41.455996175Z] loading plugin "io.containerd.service.v1.tasks-service"...  type=io.containerd.service.v1
INFO[2021-06-15T19:17:41.456073859Z] loading plugin "io.containerd.internal.v1.restart"...  type=io.containerd.internal.v1
INFO[2021-06-15T19:17:41.456191043Z] loading plugin "io.containerd.grpc.v1.containers"...  type=io.containerd.grpc.v1
INFO[2021-06-15T19:17:41.456267506Z] loading plugin "io.containerd.grpc.v1.content"...  type=io.containerd.grpc.v1
INFO[2021-06-15T19:17:41.456324857Z] loading plugin "io.containerd.grpc.v1.diff"...  type=io.containerd.grpc.v1
INFO[2021-06-15T19:17:41.456367005Z] loading plugin "io.containerd.grpc.v1.events"...  type=io.containerd.grpc.v1
INFO[2021-06-15T19:17:41.456407375Z] loading plugin "io.containerd.grpc.v1.healthcheck"...  type=io.containerd.grpc.v1
INFO[2021-06-15T19:17:41.456454504Z] loading plugin "io.containerd.grpc.v1.images"...  type=io.containerd.grpc.v1
INFO[2021-06-15T19:17:41.456495782Z] loading plugin "io.containerd.grpc.v1.leases"...  type=io.containerd.grpc.v1
INFO[2021-06-15T19:17:41.456540300Z] loading plugin "io.containerd.grpc.v1.namespaces"...  type=io.containerd.grpc.v1
INFO[2021-06-15T19:17:41.456586392Z] loading plugin "io.containerd.internal.v1.opt"...  type=io.containerd.internal.v1
INFO[2021-06-15T19:17:41.456680262Z] loading plugin "io.containerd.grpc.v1.snapshots"...  type=io.containerd.grpc.v1
INFO[2021-06-15T19:17:41.456728354Z] loading plugin "io.containerd.grpc.v1.tasks"...  type=io.containerd.grpc.v1
INFO[2021-06-15T19:17:41.456771909Z] loading plugin "io.containerd.grpc.v1.version"...  type=io.containerd.grpc.v1
INFO[2021-06-15T19:17:41.456810409Z] loading plugin "io.containerd.grpc.v1.introspection"...  type=io.containerd.grpc.v1
INFO[2021-06-15T19:17:41.457330072Z] serving...                                    address=/var/run/docker/containerd/containerd-debug.sock
INFO[2021-06-15T19:17:41.457575736Z] serving...                                    address=/var/run/docker/containerd/containerd.sock.ttrpc
INFO[2021-06-15T19:17:41.457752031Z] serving...                                    address=/var/run/docker/containerd/containerd.sock
INFO[2021-06-15T19:17:41.457813160Z] containerd successfully booted in 0.112104s  
INFO[2021-06-15T19:17:41.484471711Z] parsed scheme: "unix"                         module=grpc
INFO[2021-06-15T19:17:41.484566322Z] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2021-06-15T19:17:41.484649006Z] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}  module=grpc
INFO[2021-06-15T19:17:41.484685858Z] ClientConn switching balancer to "pick_first"  module=grpc
INFO[2021-06-15T19:17:41.486569454Z] parsed scheme: "unix"                         module=grpc
INFO[2021-06-15T19:17:41.486656990Z] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2021-06-15T19:17:41.486731601Z] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}  module=grpc
INFO[2021-06-15T19:17:41.486769601Z] ClientConn switching balancer to "pick_first"  module=grpc
INFO[2021-06-15T19:17:41.494973907Z] [graphdriver] using prior storage driver: overlay2 
WARN[2021-06-15T19:17:41.496642172Z] Your kernel does not support cgroup memory limit 
WARN[2021-06-15T19:17:41.496710245Z] Your kernel does not support cgroup blkio weight 
WARN[2021-06-15T19:17:41.496737893Z] Your kernel does not support cgroup blkio weight_device 
INFO[2021-06-15T19:17:41.497414462Z] stopping healthcheck following graceful shutdown  module=libcontainerd
INFO[2021-06-15T19:17:41.497525554Z] stopping event stream following graceful shutdown  error="context canceled" module=libcontainerd namespace=plugins.moby
failed to start daemon: Devices cgroup isn't mounted
root@rpi4:~# 

there are cgroups mounted. Anything am I missing ?

root@rpi4:~# mount
/dev/mmcblk0p2 on / type ext4 (rw,noatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mmcblk0p1 on /boot type vfat (rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000)
cgroup on /sys/fs/cgroup type tmpfs (rw,relatime,mode=755)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,relatime,cpu)
cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,relatime,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,relatime,blkio)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,relatime,net_cls)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,relatime,pids)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,relatime,rdma)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700)
/dev/mmcblk0p2 on /opt/docker type ext4 (rw,noatime)
tmpfs on /tmp/lib/docker type tmpfs (rw,nosuid,nodev,noatime)
root@rpi4:~# 


Do you think when I saw and could use dockerman, my dockerd was running ?

Yes, it was running, but with OCI error, maybe you shoud check your kernel support for docker whith this scrpit:
https://raw.githubusercontent.com/coreos/docker/master/contrib/check-config.sh

Ok, I ran the script and got this output:

root@rpi4:~# ./check-config.sh 
info: reading kernel config from /proc/config.gz ...

Generally Necessary:
- cgroup hierarchy: properly mounted [/sys/fs/cgroup]
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: missing
- CONFIG_CGROUP_FREEZER: missing
- CONFIG_CGROUP_SCHED: enabled
- CONFIG_CPUSETS: enabled
- CONFIG_MEMCG: enabled
- CONFIG_KEYS: enabled
- CONFIG_VETH: enabled (as module)
- CONFIG_BRIDGE: enabled
- CONFIG_BRIDGE_NETFILTER: enabled (as module)
- CONFIG_NF_NAT_IPV4: missing
- CONFIG_IP_NF_FILTER: enabled (as module)
- CONFIG_IP_NF_TARGET_MASQUERADE: missing
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_IPVS: enabled (as module)
- CONFIG_IP_NF_NAT: enabled (as module)
- CONFIG_NF_NAT: enabled (as module)
- CONFIG_NF_NAT_NEEDED: missing
- CONFIG_POSIX_MQUEUE: enabled

Optional Features:
- CONFIG_USER_NS: enabled
- CONFIG_SECCOMP: enabled
- CONFIG_CGROUP_PIDS: enabled
- CONFIG_MEMCG_SWAP: enabled
- CONFIG_MEMCG_SWAP_ENABLED: missing
    (cgroup swap accounting is currently not enabled, you can enable it by setting boot option "swapaccount=1")
- CONFIG_BLK_CGROUP: enabled
- CONFIG_BLK_DEV_THROTTLING: enabled
- CONFIG_IOSCHED_CFQ: missing
- CONFIG_CFQ_GROUP_IOSCHED: missing
- CONFIG_CGROUP_PERF: missing
- CONFIG_CGROUP_HUGETLB: missing
- CONFIG_NET_CLS_CGROUP: missing
- CONFIG_CGROUP_NET_PRIO: missing
- CONFIG_CFS_BANDWIDTH: enabled
- CONFIG_FAIR_GROUP_SCHED: enabled
- CONFIG_RT_GROUP_SCHED: enabled
- CONFIG_IP_VS: enabled (as module)
- CONFIG_IP_VS_NFCT: enabled
- CONFIG_IP_VS_RR: enabled (as module)
- CONFIG_EXT4_FS: enabled
- CONFIG_EXT4_FS_POSIX_ACL: missing
- CONFIG_EXT4_FS_SECURITY: missing
    enable these ext4 configs if you are using ext3 or ext4 as backing filesystem
- Network Drivers:
  - "overlay":
    - CONFIG_VXLAN: enabled (as module)
      Optional (for encrypted networks):
      - CONFIG_CRYPTO: enabled
      - CONFIG_CRYPTO_AEAD: enabled
      - CONFIG_CRYPTO_GCM: enabled (as module)
      - CONFIG_CRYPTO_SEQIV: enabled
      - CONFIG_CRYPTO_GHASH: enabled (as module)
      - CONFIG_XFRM: enabled
      - CONFIG_XFRM_USER: enabled (as module)
      - CONFIG_XFRM_ALGO: enabled (as module)
      - CONFIG_INET_ESP: enabled (as module)
      - CONFIG_INET_XFRM_MODE_TRANSPORT: missing
  - "ipvlan":
    - CONFIG_IPVLAN: enabled (as module)
  - "macvlan":
    - CONFIG_MACVLAN: enabled (as module)
    - CONFIG_DUMMY: enabled (as module)
  - "ftp,tftp client in container":
    - CONFIG_NF_NAT_FTP: enabled (as module)
    - CONFIG_NF_CONNTRACK_FTP: enabled (as module)
    - CONFIG_NF_NAT_TFTP: enabled (as module)
    - CONFIG_NF_CONNTRACK_TFTP: enabled (as module)
- Storage Drivers:
  - "aufs":
    - CONFIG_AUFS_FS: missing
  - "btrfs":
    - CONFIG_BTRFS_FS: enabled (as module)
    - CONFIG_BTRFS_FS_POSIX_ACL: missing
  - "devicemapper":
    - CONFIG_BLK_DEV_DM: enabled (as module)
    - CONFIG_DM_THIN_PROVISIONING: missing
  - "overlay":
    - CONFIG_OVERLAY_FS: enabled
  - "zfs":
    - /dev/zfs: missing
    - zfs command: missing
    - zpool command: missing

Limits:
- /proc/sys/kernel/keys/root_maxkeys: 1000000

root@rpi4:~# 

Lot of missing stuff. Do you know what is really required and I may be missing ? Do I need to install stuff via opkg ? Or will it only work if I compile the kernel manually (which I would prefer to avoid as this target rpi4 is pretty recent and I dont have the knowledge or documentation to make it fully work) ?

As you see:
Generally Necessary:

- cgroup hierarchy: properly mounted [/sys/fs/cgroup]
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: missing
- CONFIG_CGROUP_FREEZER: missing
- CONFIG_CGROUP_SCHED: enabled
- CONFIG_CPUSETS: enabled
- CONFIG_MEMCG: enabled
- CONFIG_KEYS: enabled
- CONFIG_VETH: enabled (as module)
- CONFIG_BRIDGE: enabled
- CONFIG_BRIDGE_NETFILTER: enabled (as module)
- CONFIG_NF_NAT_IPV4: missing
- CONFIG_IP_NF_FILTER: enabled (as module)
- CONFIG_IP_NF_TARGET_MASQUERADE: missing
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled (as module)
- CONFIG_NETFILTER_XT_MATCH_IPVS: enabled (as module)
- CONFIG_IP_NF_NAT: enabled (as module)
- CONFIG_NF_NAT: enabled (as module)
- CONFIG_NF_NAT_NEEDED: missing
- CONFIG_POSIX_MQUEUE: enabled