{"action":"closed","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/2252","repository_url":"https://api.github.com/repos/lxc/lxd","labels_url":"https://api.github.com/repos/lxc/lxd/issues/2252/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/2252/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/2252/events","html_url":"https://github.com/lxc/lxd/issues/2252","id":168610496,"number":2252,"title":"Failed to allocate directory watch: Too many open files","user":{"login":"naisanza","id":1614425,"avatar_url":"https://avatars.githubusercontent.com/u/1614425?v=3","gravatar_id":"","url":"https://api.github.com/users/naisanza","html_url":"https://github.com/naisanza","followers_url":"https://api.github.com/users/naisanza/followers","following_url":"https://api.github.com/users/naisanza/following{/other_user}","gists_url":"https://api.github.com/users/naisanza/gists{/gist_id}","starred_url":"https://api.github.com/users/naisanza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naisanza/subscriptions","organizations_url":"https://api.github.com/users/naisanza/orgs","repos_url":"https://api.github.com/users/naisanza/repos","events_url":"https://api.github.com/users/naisanza/events{/privacy}","received_events_url":"https://api.github.com/users/naisanza/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-01T10:03:13Z","updated_at":"2016-08-14T21:06:34Z","closed_at":"2016-08-14T21:06:34Z","body":"# Required information\r\n\r\n * Distribution: Ubuntu\r\n * Distribution version: 16.04\r\n * The output of \"lxc info\" or if that fails:\r\n   * Kernel version: 4.4.0-31-generic\r\n   * LXC version: 2.0.3\r\n   * LXD version: 2.0.3\r\n   * Storage backend in use: ZFS\r\n\r\n# Issue description\r\n\r\nI have 15 LXD Containers running and some containers are failing to function correctly because there are too many files open.\r\n\r\n\r\nThe server is running Vanilla Ubuntu 16.04 Server (up-to-date) with all configuration modifications listed below:\r\n\r\n```\r\nroot@bigma:~# cat server_changes.txt\r\n#/etc/security/limits.conf\r\n*       hard    nofile  1048576\r\n*       soft    nofile  1048576\r\n*       soft    memlock unlimited\r\n*       hard    memlock unlimited\r\n\r\n#vm.max_map_count = 65530\r\nsysctl -w vm.max_map_count=262144\r\n\r\n# /etc/apparmor.d/lxc/lxc-default\r\n# /etc/init.d/apparmor reload\r\nmount options=(rw, bind, ro),\r\nmount fstype=(ecryptfs),\r\n```\r\n\r\nNumber of files open by `lsof`:\r\n\r\n```\r\nroot@bigma:~# lsof 2>/dev/null | wc -l\r\n75675\r\n```\r\n\r\n# Steps to reproduce\r\n\r\n 1. Create 15 LXD Containers\r\n 2. Start 15 LXD Containers\r\n\r\n# Information to attach\r\n\r\n - [x] any relevant kernel output (dmesg) none relevant\r\n - [x] container log (lxc info NAME --show-log) available if needed\r\n - [x] main daemon log (/var/log/lxd.log) available if needed\r\n - [x] output of the client with --debug available if needed\r\n - [x] output of the daemon with --debug available if needed\r\n"}}
{"actor":{"display_login":"stgraber"}}