{"action":"created","issue":{"url":"https://api.github.com/repos/portainer/portainer/issues/1991","repository_url":"https://api.github.com/repos/portainer/portainer","labels_url":"https://api.github.com/repos/portainer/portainer/issues/1991/labels{/name}","comments_url":"https://api.github.com/repos/portainer/portainer/issues/1991/comments","events_url":"https://api.github.com/repos/portainer/portainer/issues/1991/events","html_url":"https://github.com/portainer/portainer/issues/1991","id":334892209,"node_id":"MDU6SXNzdWUzMzQ4OTIyMDk=","number":1991,"title":"Too many open files","user":{"login":"Umaaz","id":707162,"node_id":"MDQ6VXNlcjcwNzE2Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/707162?v=4","gravatar_id":"","url":"https://api.github.com/users/Umaaz","html_url":"https://github.com/Umaaz","followers_url":"https://api.github.com/users/Umaaz/followers","following_url":"https://api.github.com/users/Umaaz/following{/other_user}","gists_url":"https://api.github.com/users/Umaaz/gists{/gist_id}","starred_url":"https://api.github.com/users/Umaaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Umaaz/subscriptions","organizations_url":"https://api.github.com/users/Umaaz/orgs","repos_url":"https://api.github.com/users/Umaaz/repos","events_url":"https://api.github.com/users/Umaaz/events{/privacy}","received_events_url":"https://api.github.com/users/Umaaz/received_events","type":"User","site_admin":false},"labels":[{"id":909917117,"node_id":"MDU6TGFiZWw5MDk5MTcxMTc=","url":"https://api.github.com/repos/portainer/portainer/labels/area/agent","name":"area/agent","color":"fbca04","default":false},{"id":379305037,"node_id":"MDU6TGFiZWwzNzkzMDUwMzc=","url":"https://api.github.com/repos/portainer/portainer/labels/kind/bug","name":"kind/bug","color":"ee0701","default":false},{"id":806139229,"node_id":"MDU6TGFiZWw4MDYxMzkyMjk=","url":"https://api.github.com/repos/portainer/portainer/labels/status/need-confirmation","name":"status/need-confirmation","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/portainer/portainer/milestones/68","html_url":"https://github.com/portainer/portainer/milestone/68","labels_url":"https://api.github.com/repos/portainer/portainer/milestones/68/labels","id":3528076,"node_id":"MDk6TWlsZXN0b25lMzUyODA3Ng==","number":68,"title":"1.19.x","description":"","creator":{"login":"deviantony","id":5485061,"node_id":"MDQ6VXNlcjU0ODUwNjE=","avatar_url":"https://avatars2.githubusercontent.com/u/5485061?v=4","gravatar_id":"","url":"https://api.github.com/users/deviantony","html_url":"https://github.com/deviantony","followers_url":"https://api.github.com/users/deviantony/followers","following_url":"https://api.github.com/users/deviantony/following{/other_user}","gists_url":"https://api.github.com/users/deviantony/gists{/gist_id}","starred_url":"https://api.github.com/users/deviantony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deviantony/subscriptions","organizations_url":"https://api.github.com/users/deviantony/orgs","repos_url":"https://api.github.com/users/deviantony/repos","events_url":"https://api.github.com/users/deviantony/events{/privacy}","received_events_url":"https://api.github.com/users/deviantony/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2018-07-27T14:08:11Z","updated_at":"2018-08-22T06:35:11Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2018-06-22T14:10:13Z","updated_at":"2018-08-22T11:04:48Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n\r\nThanks for reporting a bug for Portainer !\r\n\r\nDo you need help or have a question? Come chat with us on Slack http://portainer.io/slack/ or gitter https://gitter.im/portainer/Lobby.\r\n\r\nBefore opening a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository. If there is a duplicate, please close your issue and add a comment\r\nto the existing issue instead.\r\n\r\nAlso, be sure to check our FAQ and documentation first: https://portainer.readthedocs.io\r\n-->\r\n\r\n**Bug description**\r\n\r\nI am running a docker swarm with 7 nodes 3 managers and 4 workers. I have deployed portainer via the stack file, with agents and portainer it's self. After some time an agent instance will report high cpu usage 60-70% and the portainer instance will not load any data about services, stacks etc.\r\n\r\nWhen i look at the log files for the agent with the high CPU i get:\r\n```\r\n2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files\r\n2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files\r\n2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files\r\n2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files\r\n2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files\r\n2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files\r\n2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files\r\n2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files\r\n2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files\r\n2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files\r\n2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files\r\n2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files\r\n2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files\r\n2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files\r\n2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files\r\n2018/06/22 13:48:35 [ERR] memberlist: Error accepting TCP connection: accept tcp [::]:7946: accept4: too many open files\r\n```\r\n**Expected behavior**\r\nI would expect that the portainer instance loads all the data it can, so i can continue to use it as much as possible. An error message explaining that it was unable to contact an agent would also be helpful.\r\n\r\n**Steps to reproduce the issue:**\r\nI do not have any specific steps to reproduce it. Just seems to happen randomly.\r\n\r\n**Technical details:**\r\n\r\n* Portainer version: 1.18.0\r\n* Docker version (managed by Portainer): 18.03.1-ce\r\n* Platform (windows/linux): Amazon Linux AMI release 2018.03\r\n* Command used to start Portainer (`docker run -p 9000:9000 portainer/portainer`): sudo curl -L https://portainer.io/download/portainer-agent-stack.yml -o portainer-agent-stack.yml\r\nsudo docker stack deploy --compose-file=portainer-agent-stack.yml portainer\r\n* Browser: Firefox 60.0.2 (64-bit)\r\n"},"comment":{"url":"https://api.github.com/repos/portainer/portainer/issues/comments/414995477","html_url":"https://github.com/portainer/portainer/issues/1991#issuecomment-414995477","issue_url":"https://api.github.com/repos/portainer/portainer/issues/1991","id":414995477,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDk5NTQ3Nw==","user":{"login":"deviantony","id":5485061,"node_id":"MDQ6VXNlcjU0ODUwNjE=","avatar_url":"https://avatars2.githubusercontent.com/u/5485061?v=4","gravatar_id":"","url":"https://api.github.com/users/deviantony","html_url":"https://github.com/deviantony","followers_url":"https://api.github.com/users/deviantony/followers","following_url":"https://api.github.com/users/deviantony/following{/other_user}","gists_url":"https://api.github.com/users/deviantony/gists{/gist_id}","starred_url":"https://api.github.com/users/deviantony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deviantony/subscriptions","organizations_url":"https://api.github.com/users/deviantony/orgs","repos_url":"https://api.github.com/users/deviantony/repos","events_url":"https://api.github.com/users/deviantony/events{/privacy}","received_events_url":"https://api.github.com/users/deviantony/received_events","type":"User","site_admin":false},"created_at":"2018-08-22T11:04:48Z","updated_at":"2018-08-22T11:04:48Z","author_association":"MEMBER","body":"Awesome, I do not have any lead on this problem yet. Please report it there if you still encounter the issue."}}
{"actor":{"display_login":"deviantony"}}