[lxc-users] Inotify does not work in a privileged container
Simos Xenitellis
simos.lists at googlemail.com
Sat Apr 21 18:40:42 UTC 2018
According to this, https://github.com/lxc/lxd/issues/2004
the "Failed to reset devices.list ..." can be ignored.
There should be some additional lines earlier (not shown) that have a
hint towards the real issue.
This "InCronD" is probably using "inotify". Search for "inotify" at
https://github.com/lxc/lxd/blob/master/doc/production-setup.md
to increase the relevant parameters.
Simos
On Sat, Apr 21, 2018 at 3:43 PM, Saint Michael <venefax at gmail.com> wrote:
> Incrond is a service that monitors directories for file events and fires a
> script.
> It fails inside an LXC container.
> Is there something I need to add to the configuration to make it work?
>
> systemctl start incrond
> Job for incrond.service failed because a timeout was exceeded. See
> "systemctl status incrond.service" and "journalctl -xe" for details.
> [root at iplinkcdr src]# journalctl -xe
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/tmp.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/dev-lxc-tty7.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/systemd-tmpfiles-setup-dev.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/systemd-journald.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/dev-lxc-console.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/dev-ptmx.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/dev-hugepages.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/dev-lxc-tty4.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/systemd-logind.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/cdr.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/sys-fs-fuse-connections.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/sshd.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/run-user-1202.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/sys-kernel-debug.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/dnsmasq.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/run-user-1002.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/dev-lxc-tty3.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/rhel-readonly.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/dev-lxc-tty10.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/systemd-tmpfiles-setup.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/-.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/yum-cron.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/systemd-udev-trigger.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/rsyslog.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/polkit.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/system-getty.slice: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/dev-lxc-tty8.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/systemd-udevd.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/iptables.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/dev-lxc-tty9.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/dev-lxc-tty1.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/dev-lxc-tty2.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/systemd-update-utmp.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/dbus.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/systemd-sysctl.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to set devices.allow on
> /system.slice/mariadb.service: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: Failed to reset devices.list on
> /system.slice/dev-mqueue.mount: Operation not permitted
> Apr 21 07:25:11 iplinkcdr systemd[1]: PID file /run/incrond.pid not readable
> (yet?) after start.
> Apr 21 07:26:41 iplinkcdr systemd[1]: incrond.service start operation timed
> out. Terminating.
> Apr 21 07:26:41 iplinkcdr incrond[31442]: stopping service
> Apr 21 07:26:41 iplinkcdr systemd[1]: Failed to start Inotify System
> Scheduler.
> -- Subject: Unit incrond.service has failed
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
More information about the lxc-users
mailing list