[lxc-users] Inotify does not work in a privileged container
Saint Michael
venefax at gmail.com
Sat Apr 21 12:43:53 UTC 2018
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20180421/4e8397a8/attachment.html>
More information about the lxc-users
mailing list