{"action":"created","issue":{"url":"https://api.github.com/repos/SeattleTestbed/resource/issues/5","labels_url":"https://api.github.com/repos/SeattleTestbed/resource/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/SeattleTestbed/resource/issues/5/comments","events_url":"https://api.github.com/repos/SeattleTestbed/resource/issues/5/events","html_url":"https://github.com/SeattleTestbed/resource/issues/5","id":105562177,"number":5,"title":"Mac_BSD_resources fails if sysctl lacks kern.ipc.maxsockets key","user":{"login":"aaaaalbert","id":3806695,"avatar_url":"https://avatars.githubusercontent.com/u/3806695?v=3","gravatar_id":"","url":"https://api.github.com/users/aaaaalbert","html_url":"https://github.com/aaaaalbert","followers_url":"https://api.github.com/users/aaaaalbert/followers","following_url":"https://api.github.com/users/aaaaalbert/following{/other_user}","gists_url":"https://api.github.com/users/aaaaalbert/gists{/gist_id}","starred_url":"https://api.github.com/users/aaaaalbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaaaalbert/subscriptions","organizations_url":"https://api.github.com/users/aaaaalbert/orgs","repos_url":"https://api.github.com/users/aaaaalbert/repos","events_url":"https://api.github.com/users/aaaaalbert/events{/privacy}","received_events_url":"https://api.github.com/users/aaaaalbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-09T09:46:09Z","updated_at":"2015-09-10T10:16:53Z","closed_at":null,"body":"The Mac/BSD resource measurement script expects a `sysctl` key named `kern.ipc.maxsockets` to find the maximum number of sockets that a Seattle install should use. On OS X 10.10, this key does not always exist, and the [mechanics of when it exists or is missing](https://github.com/SeattleTestbed/dist/issues/144#issuecomment-58562655) are unknown currently.\r\n\r\nThe error is seen during install,\r\n```\r\n$ ./install.sh\r\nSystem benchmark starting...\r\nsysctl: unknown oid 'kern.ipc.maxsockets'\r\nBenchmark failed for insockets resource: unable to find max number of sockets\r\nBenchmark failed for outsockets resource: unable to find max number of sockets\r\nThe above benchmarking error(s) occurred.\r\nIf you choose to continue anyways then default values will be used for failed benchmarks.\r\nFailed.\r\nThis install cannot succeed either because required installation info is corrupted or resources are insufficient.\r\nPlease email the Seattle project for additional support, and attach the installer_benchmark.log and vesselinfo files, found in the seattle_repy directory, in order to help us diagnose the issue.\r\n```\r\n\r\nDavid A. Herrera from Universidad Antonio Nariño in Colombia helped developing and testing a patch, which essentially goes and [preinitializes the number](\r\nhttps://github.com/SeattleTestbed/resource/blob/143e29bcda1db76198b65cde20483b31441eded3/Mac_BSD_resources.py#L134) to `512` (the number found on my OS 10.6.8 box).\r\n\r\nBefore sending a PR, I would appreciate any Mac users to chime in and report the value found on their machines (if it exists!) by sending the output of\r\n```\r\nuname -v\r\nsysctl kern.ipc.maxsockets\r\n```\r\n\r\nOS X version | Darwin version [(crossref)](https://en.wikipedia.org/wiki/Darwin_%28operating_system%29#Release_history) | maxsockets | by\r\n---|---|---|---\r\nDarwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 | 10.10.5 | **N/A** | @fmetzger\r\nDarwin Kernel Version 14.0.0: Sat Sep 27 03:58:47 PDT 2014; root:xnu-2782.1.97~11/RELEASE_X86_64 | 10.10 | **N/A** | @XuefengHuang\r\nDarwin Kernel Version 10.8.0: Tue Jun  7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 | 10.6.8 | 512 | @aaaaalbert\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/SeattleTestbed/resource/issues/comments/139196878","html_url":"https://github.com/SeattleTestbed/resource/issues/5#issuecomment-139196878","issue_url":"https://api.github.com/repos/SeattleTestbed/resource/issues/5","id":139196878,"user":{"login":"aaaaalbert","id":3806695,"avatar_url":"https://avatars.githubusercontent.com/u/3806695?v=3","gravatar_id":"","url":"https://api.github.com/users/aaaaalbert","html_url":"https://github.com/aaaaalbert","followers_url":"https://api.github.com/users/aaaaalbert/followers","following_url":"https://api.github.com/users/aaaaalbert/following{/other_user}","gists_url":"https://api.github.com/users/aaaaalbert/gists{/gist_id}","starred_url":"https://api.github.com/users/aaaaalbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaaaalbert/subscriptions","organizations_url":"https://api.github.com/users/aaaaalbert/orgs","repos_url":"https://api.github.com/users/aaaaalbert/repos","events_url":"https://api.github.com/users/aaaaalbert/events{/privacy}","received_events_url":"https://api.github.com/users/aaaaalbert/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T10:16:53Z","updated_at":"2015-09-10T10:16:53Z","body":"Thanks!"}}