Okteto daemon error in k3s on lxd/lxc

I have install self-hosted Okteto on k3s in lxd/lxc. And i have error with okteto-daemon:

{"level":"fatal","service":"daemon","error":"open /proc-aux/sys/fs/inotify/max_user_watches: permission denied","message":"tasks initialization failed"}

I do not understand the path /proc-aux/sys/....
Path /proc/sys/fs/inotify/max_user_watches present in container.

What ideas do you have for this?


Does /proc-aux/sys/fs/inotify/max_user_watches filepath actually exist?
Also, what value does it have and what value does your /proc/sys/fs/inotify/max_user_watches have?


/proc-aux/... does not exist
/proc/sys/fs/inotify/max_user_watches - 524288 (increased to 10048576)

I believe the /proc-aux is where the node’s /proc directory is mounted. So this might be running into a permissions issue with the /proc directory, since we specify in our documentation that permission is needed to mount here: Configuration Settings | Okteto Documentation

I set the container as privileged and this solved the problem.

lxc profile set <container_profile_name> security.privileged true
1 Like