{"action":"created","issue":{"url":"https://api.github.com/repos/minio/minio-js/issues/641","repository_url":"https://api.github.com/repos/minio/minio-js","labels_url":"https://api.github.com/repos/minio/minio-js/issues/641/labels{/name}","comments_url":"https://api.github.com/repos/minio/minio-js/issues/641/comments","events_url":"https://api.github.com/repos/minio/minio-js/issues/641/events","html_url":"https://github.com/minio/minio-js/issues/641","id":267186520,"number":641,"title":"Error too many open files (ECONNRESET)","user":{"login":"danielfdsilva","id":1090606,"avatar_url":"https://avatars2.githubusercontent.com/u/1090606?v=4","gravatar_id":"","url":"https://api.github.com/users/danielfdsilva","html_url":"https://github.com/danielfdsilva","followers_url":"https://api.github.com/users/danielfdsilva/followers","following_url":"https://api.github.com/users/danielfdsilva/following{/other_user}","gists_url":"https://api.github.com/users/danielfdsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfdsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfdsilva/subscriptions","organizations_url":"https://api.github.com/users/danielfdsilva/orgs","repos_url":"https://api.github.com/users/danielfdsilva/repos","events_url":"https://api.github.com/users/danielfdsilva/events{/privacy}","received_events_url":"https://api.github.com/users/danielfdsilva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-20T14:03:00Z","updated_at":"2017-10-24T11:10:37Z","closed_at":null,"author_association":"NONE","body":"When trying to remove multiple files from minio (circa 10.000) the client throws an error:\r\n```\r\nUnhandled rejection Error: getaddrinfo ENOTFOUND localhost localhost:9000\r\n    at errnoException (dns.js:28:10)\r\n    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)\r\n\r\nError: read ECONNRESET\r\n    at exports._errnoException (util.js:1020:11)\r\n    at TCP.onread (net.js:568:26)\r\n```\r\nand the server logs:\r\n```\r\nERRO[0336] Unable to delete an object rra/tiles/b/14/6472/8685.pbf  cause=open /guts/projects/rra/.resources/test-minio/minio-data/.minio.sys/buckets/rra/tiles/b/14/6472/8685.pbf/fs.json: too many open files in system source=[object-handlers.go:1077:objectAPIHandlers.DeleteObjectHandler()] stack=fs-v1.go:647:fsObjects.DeleteObject <autogenerated>:424:(*fsObjects).DeleteObject object-handlers-common.go:241:deleteObject object-handlers.go:1076:objectAPIHandlers.DeleteObjectHandler api-router.go:62:(objectAPIHandlers).DeleteObjectHandler-fm\r\n```\r\n\r\nTo delete the files I'm getting the list with `listObjectsV2` (storing them in an array) and then looping over the array and deleting each file with `removeObject`.\r\nThis happens both with the docker and the locally installed version of minio. Doesn't seem to happen if I use an S3 bucket.\r\n\r\nAny hints?"},"comment":{"url":"https://api.github.com/repos/minio/minio-js/issues/comments/338955685","html_url":"https://github.com/minio/minio-js/issues/641#issuecomment-338955685","issue_url":"https://api.github.com/repos/minio/minio-js/issues/641","id":338955685,"user":{"login":"danielfdsilva","id":1090606,"avatar_url":"https://avatars2.githubusercontent.com/u/1090606?v=4","gravatar_id":"","url":"https://api.github.com/users/danielfdsilva","html_url":"https://github.com/danielfdsilva","followers_url":"https://api.github.com/users/danielfdsilva/followers","following_url":"https://api.github.com/users/danielfdsilva/following{/other_user}","gists_url":"https://api.github.com/users/danielfdsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfdsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfdsilva/subscriptions","organizations_url":"https://api.github.com/users/danielfdsilva/orgs","repos_url":"https://api.github.com/users/danielfdsilva/repos","events_url":"https://api.github.com/users/danielfdsilva/events{/privacy}","received_events_url":"https://api.github.com/users/danielfdsilva/received_events","type":"User","site_admin":false},"created_at":"2017-10-24T11:10:37Z","updated_at":"2017-10-24T11:10:37Z","author_association":"NONE","body":"Reopening. After some investigation turns out that the problem is with minio-js\r\nSee https://github.com/minio/minio/issues/5093#issuecomment-338829836"}}
{"actor":{"display_login":"danielfdsilva"}}