{"action":"opened","issue":{"url":"https://api.github.com/repos/cnodejs/egg-cnode/issues/134","repository_url":"https://api.github.com/repos/cnodejs/egg-cnode","labels_url":"https://api.github.com/repos/cnodejs/egg-cnode/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/cnodejs/egg-cnode/issues/134/comments","events_url":"https://api.github.com/repos/cnodejs/egg-cnode/issues/134/events","html_url":"https://github.com/cnodejs/egg-cnode/issues/134","id":336952144,"node_id":"MDU6SXNzdWUzMzY5NTIxNDQ=","number":134,"title":"nodejs.MongoError: not authorized on egg_cnode to execute command { listIndexes: \"topics\", cursor: {} }","user":{"login":"vipzrx","id":5094958,"node_id":"MDQ6VXNlcjUwOTQ5NTg=","avatar_url":"https://avatars1.githubusercontent.com/u/5094958?v=4","gravatar_id":"","url":"https://api.github.com/users/vipzrx","html_url":"https://github.com/vipzrx","followers_url":"https://api.github.com/users/vipzrx/followers","following_url":"https://api.github.com/users/vipzrx/following{/other_user}","gists_url":"https://api.github.com/users/vipzrx/gists{/gist_id}","starred_url":"https://api.github.com/users/vipzrx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vipzrx/subscriptions","organizations_url":"https://api.github.com/users/vipzrx/orgs","repos_url":"https://api.github.com/users/vipzrx/repos","events_url":"https://api.github.com/users/vipzrx/events{/privacy}","received_events_url":"https://api.github.com/users/vipzrx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-29T10:44:54Z","updated_at":"2018-06-29T10:44:54Z","closed_at":null,"author_association":"NONE","body":"使用egg-cnode 在本地搭建 报错 \r\n\r\n```\r\nkk@V1:~/src$ ls\r\napp           bin                     docker-compose.yml  LICENSE       package.json       run\r\napp.js        config                  Dockerfile          logs          package-lock.json  test\r\nappveyor.yml  docker-compose.dev.yml  init.d              node_modules  README.md          tutorials\r\n\r\n```\r\nnpm i\r\n```\r\nkk@V1:~/src$ npm i\r\nnpm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.\r\nnpm WARN co-mocha@1.2.2 requires a peer of mocha@>=1.18 <6 but none is installed. You must install peer dependencies yourself.\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):\r\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {\"os\":\"darwin\",\"arch\":\"any\"} (current: {\"os\":\"linux\",\"arch\":\"x64\"})\r\n\r\nup to date in 16.837s\r\n\r\n```\r\n\r\nnpm run dev\r\n\r\n```\r\nkk@V1:~/src$ npm run dev\r\n\r\n> cnode@1.0.0 dev /home/kk/src\r\n> egg-bin dev\r\n\r\n2018-06-29 16:22:02,725 INFO 3037 [master] node version v8.11.3\r\n2018-06-29 16:22:02,727 INFO 3037 [master] egg version 2.9.1\r\n2018-06-29 16:22:03,499 INFO 3037 [master] agent_worker#1:3043 started (768ms)\r\n2018-06-29 16:22:05,189 INFO 3037 [master] egg started on http://127.0.0.1:7001 (2462ms)\r\n2018-06-29 16:22:05,236 ERROR 3053 nodejs.MongoError: not authorized on egg_cnode to execute command { listIndexes: \"topics\", cursor: {} }\r\n    at Function.MongoError.create (/home/kk/src/node_modules/mongodb-core/lib/error.js:31:11)\r\n    at queryCallback (/home/kk/src/node_modules/mongodb-core/lib/cursor.js:212:36)\r\n    at /home/kk/src/node_modules/mongodb-core/lib/connection/pool.js:469:18\r\n    at _combinedTickCallback (internal/process/next_tick.js:131:7)\r\n    at process._tickCallback (internal/process/next_tick.js:180:9)\r\n\r\nname: 'MongoError'\r\nmessage: 'not authorized on egg_cnode to execute command { listIndexes: \"topics\", cursor: {} }'\r\nok: 0\r\nerrmsg: 'not authorized on egg_cnode to execute command { listIndexes: \"topics\", cursor: {} }'\r\ncode: 13\r\npid: 3053\r\nhostname: V1\r\n\r\n2018-06-29 16:22:05,241 ERROR 3053 nodejs.MongoError: not authorized on egg_cnode to execute command { listIndexes: \"replies\", cursor: {} }\r\n    at Function.MongoError.create (/home/kk/src/node_modules/mongodb-core/lib/error.js:31:11)\r\n    at queryCallback (/home/kk/src/node_modules/mongodb-core/lib/cursor.js:212:36)\r\n    at /home/kk/src/node_modules/mongodb-core/lib/connection/pool.js:469:18\r\n    at _combinedTickCallback (internal/process/next_tick.js:131:7)\r\n    at process._tickCallback (internal/process/next_tick.js:180:9)\r\n\r\nname: 'MongoError'\r\nmessage: 'not authorized on egg_cnode to execute command { listIndexes: \"replies\", cursor: {} }'\r\nok: 0\r\nerrmsg: 'not authorized on egg_cnode to execute command { listIndexes: \"replies\", cursor: {} }'\r\ncode: 13\r\npid: 3053\r\nhostname: V1\r\n\r\n2018-06-29 16:22:05,245 ERROR 3053 nodejs.MongoError: not authorized on egg_cnode to execute command { listIndexes: \"topiccollects\", cursor: {} }\r\n    at Function.MongoError.create (/home/kk/src/node_modules/mongodb-core/lib/error.js:31:11)\r\n    at queryCallback (/home/kk/src/node_modules/mongodb-core/lib/cursor.js:212:36)\r\n    at /home/kk/src/node_modules/mongodb-core/lib/connection/pool.js:469:18\r\n    at _combinedTickCallback (internal/process/next_tick.js:131:7)\r\n    at process._tickCallback (internal/process/next_tick.js:180:9)\r\n\r\nname: 'MongoError'\r\nmessage: 'not authorized on egg_cnode to execute command { listIndexes: \"topiccollects\", cursor: {} }'\r\nok: 0\r\nerrmsg: 'not authorized on egg_cnode to execute command { listIndexes: \"topiccollects\", cursor: {} }'\r\ncode: 13\r\npid: 3053\r\nhostname: V1\r\n\r\n2018-06-29 16:22:05,248 ERROR 3053 nodejs.MongoError: not authorized on egg_cnode to execute command { listIndexes: \"messages\", cursor: {} }\r\n    at Function.MongoError.create (/home/kk/src/node_modules/mongodb-core/lib/error.js:31:11)\r\n    at queryCallback (/home/kk/src/node_modules/mongodb-core/lib/cursor.js:212:36)\r\n    at /home/kk/src/node_modules/mongodb-core/lib/connection/pool.js:469:18\r\n    at _combinedTickCallback (internal/process/next_tick.js:131:7)\r\n    at process._tickCallback (internal/process/next_tick.js:180:9)\r\n\r\nname: 'MongoError'\r\nmessage: 'not authorized on egg_cnode to execute command { listIndexes: \"messages\", cursor: {} }'\r\nok: 0\r\nerrmsg: 'not authorized on egg_cnode to execute command { listIndexes: \"messages\", cursor: {} }'\r\ncode: 13\r\npid: 3053\r\nhostname: V1\r\n\r\n2018-06-29 16:22:05,249 ERROR 3053 nodejs.MongoError: not authorized on egg_cnode to execute command { listIndexes: \"users\", cursor: {} }\r\n    at Function.MongoError.create (/home/kk/src/node_modules/mongodb-core/lib/error.js:31:11)\r\n    at queryCallback (/home/kk/src/node_modules/mongodb-core/lib/cursor.js:212:36)\r\n    at /home/kk/src/node_modules/mongodb-core/lib/connection/pool.js:469:18\r\n    at _combinedTickCallback (internal/process/next_tick.js:131:7)\r\n    at process._tickCallback (internal/process/next_tick.js:180:9)\r\n\r\nname: 'MongoError'\r\nmessage: 'not authorized on egg_cnode to execute command { listIndexes: \"users\", cursor: {} }'\r\nok: 0\r\nerrmsg: 'not authorized on egg_cnode to execute command { listIndexes: \"users\", cursor: {} }'\r\ncode: 13\r\npid: 3053\r\nhostname: V1\r\n\r\n\r\n```"}}
{"actor":{"display_login":"vipzrx"}}