{"action":"created","issue":{"url":"https://api.github.com/repos/rueckstiess/mtools/issues/646","repository_url":"https://api.github.com/repos/rueckstiess/mtools","labels_url":"https://api.github.com/repos/rueckstiess/mtools/issues/646/labels{/name}","comments_url":"https://api.github.com/repos/rueckstiess/mtools/issues/646/comments","events_url":"https://api.github.com/repos/rueckstiess/mtools/issues/646/events","html_url":"https://github.com/rueckstiess/mtools/issues/646","id":338112084,"node_id":"MDU6SXNzdWUzMzgxMTIwODQ=","number":646,"title":"Can't launch mongodb instance with `--auth`","user":{"login":"zhaoyi0113","id":3355579,"node_id":"MDQ6VXNlcjMzNTU1Nzk=","avatar_url":"https://avatars0.githubusercontent.com/u/3355579?v=4","gravatar_id":"","url":"https://api.github.com/users/zhaoyi0113","html_url":"https://github.com/zhaoyi0113","followers_url":"https://api.github.com/users/zhaoyi0113/followers","following_url":"https://api.github.com/users/zhaoyi0113/following{/other_user}","gists_url":"https://api.github.com/users/zhaoyi0113/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaoyi0113/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaoyi0113/subscriptions","organizations_url":"https://api.github.com/users/zhaoyi0113/orgs","repos_url":"https://api.github.com/users/zhaoyi0113/repos","events_url":"https://api.github.com/users/zhaoyi0113/events{/privacy}","received_events_url":"https://api.github.com/users/zhaoyi0113/received_events","type":"User","site_admin":false},"labels":[{"id":13950014,"node_id":"MDU6TGFiZWwxMzk1MDAxNA==","url":"https://api.github.com/repos/rueckstiess/mtools/labels/bug","name":"bug","color":"fc2929","default":true},{"id":35130085,"node_id":"MDU6TGFiZWwzNTEzMDA4NQ==","url":"https://api.github.com/repos/rueckstiess/mtools/labels/mlaunch","name":"mlaunch","color":"AAAAAA","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/rueckstiess/mtools/milestones/27","html_url":"https://github.com/rueckstiess/mtools/milestone/27","labels_url":"https://api.github.com/repos/rueckstiess/mtools/milestones/27/labels","id":3465560,"node_id":"MDk6TWlsZXN0b25lMzQ2NTU2MA==","number":27,"title":"1.5.1","description":"","creator":{"login":"stennie","id":15554,"node_id":"MDQ6VXNlcjE1NTU0","avatar_url":"https://avatars1.githubusercontent.com/u/15554?v=4","gravatar_id":"","url":"https://api.github.com/users/stennie","html_url":"https://github.com/stennie","followers_url":"https://api.github.com/users/stennie/followers","following_url":"https://api.github.com/users/stennie/following{/other_user}","gists_url":"https://api.github.com/users/stennie/gists{/gist_id}","starred_url":"https://api.github.com/users/stennie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stennie/subscriptions","organizations_url":"https://api.github.com/users/stennie/orgs","repos_url":"https://api.github.com/users/stennie/repos","events_url":"https://api.github.com/users/stennie/events{/privacy}","received_events_url":"https://api.github.com/users/stennie/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2018-07-02T03:46:59Z","updated_at":"2018-07-04T03:13:53Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-07-04T02:43:48Z","updated_at":"2018-07-04T04:01:28Z","closed_at":"2018-07-04T03:13:53Z","author_association":"CONTRIBUTOR","body":"I use this command to launch a mongodb instance but failed on authentication setup.\r\n```\r\nmlaunch init --single --dir data/10652 --port 10652   --hostname localhost --auth\r\naunching: \"mongod\" on port 10652\r\nTraceback (most recent call last):\r\n  File \"/Users/joeyzhao/.pyenv/versions/3.6.5/bin/mlaunch\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/Users/joeyzhao/.pyenv/versions/3.6.5/lib/python3.6/site-packages/mtools/mlaunch/mlaunch.py\", line 2042, in main\r\n    tool.run()\r\n  File \"/Users/joeyzhao/.pyenv/versions/3.6.5/lib/python3.6/site-packages/mtools/mlaunch/mlaunch.py\", line 536, in run\r\n    getattr(self, self.args['command'])()\r\n  File \"/Users/joeyzhao/.pyenv/versions/3.6.5/lib/python3.6/site-packages/mtools/mlaunch/mlaunch.py\", line 746, in init\r\n    roles = self.args['auth_role']\r\nKeyError: 'auth_role'\r\n```\r\n\r\nThe mongodb instance is running but the authentication is not setup. The mongodb version I am using is 4.0.0. Python is 3.6.5. \r\n\r\n```\r\n$ mlaunch --version\r\nmtools version 1.5.0 || Python 3.6.5 (default, Jul 2 2018, 20:53:24) [GCC\r\n4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)]\r\n```"},"comment":{"url":"https://api.github.com/repos/rueckstiess/mtools/issues/comments/402356620","html_url":"https://github.com/rueckstiess/mtools/issues/646#issuecomment-402356620","issue_url":"https://api.github.com/repos/rueckstiess/mtools/issues/646","id":402356620,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjM1NjYyMA==","user":{"login":"stennie","id":15554,"node_id":"MDQ6VXNlcjE1NTU0","avatar_url":"https://avatars1.githubusercontent.com/u/15554?v=4","gravatar_id":"","url":"https://api.github.com/users/stennie","html_url":"https://github.com/stennie","followers_url":"https://api.github.com/users/stennie/followers","following_url":"https://api.github.com/users/stennie/following{/other_user}","gists_url":"https://api.github.com/users/stennie/gists{/gist_id}","starred_url":"https://api.github.com/users/stennie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stennie/subscriptions","organizations_url":"https://api.github.com/users/stennie/orgs","repos_url":"https://api.github.com/users/stennie/repos","events_url":"https://api.github.com/users/stennie/events{/privacy}","received_events_url":"https://api.github.com/users/stennie/received_events","type":"User","site_admin":false},"created_at":"2018-07-04T04:01:28Z","updated_at":"2018-07-04T04:01:28Z","author_association":"COLLABORATOR","body":"@zhaoyi0113 Looks like there was an off-by-one typo. Fixed this via 973c346.\r\n\r\nRegards,\r\nStennie"}}
{"actor":{"display_login":"stennie"}}