{"action":"created","issue":{"url":"https://api.github.com/repos/BastienM/rocketchat-kubernetes/issues/2","repository_url":"https://api.github.com/repos/BastienM/rocketchat-kubernetes","labels_url":"https://api.github.com/repos/BastienM/rocketchat-kubernetes/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/BastienM/rocketchat-kubernetes/issues/2/comments","events_url":"https://api.github.com/repos/BastienM/rocketchat-kubernetes/issues/2/events","html_url":"https://github.com/BastienM/rocketchat-kubernetes/issues/2","id":298958751,"number":2,"title":"MongoError: connect ECONNREFUSED","user":{"login":"nedbase-jesse","id":36228032,"avatar_url":"https://avatars3.githubusercontent.com/u/36228032?v=4","gravatar_id":"","url":"https://api.github.com/users/nedbase-jesse","html_url":"https://github.com/nedbase-jesse","followers_url":"https://api.github.com/users/nedbase-jesse/followers","following_url":"https://api.github.com/users/nedbase-jesse/following{/other_user}","gists_url":"https://api.github.com/users/nedbase-jesse/gists{/gist_id}","starred_url":"https://api.github.com/users/nedbase-jesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nedbase-jesse/subscriptions","organizations_url":"https://api.github.com/users/nedbase-jesse/orgs","repos_url":"https://api.github.com/users/nedbase-jesse/repos","events_url":"https://api.github.com/users/nedbase-jesse/events{/privacy}","received_events_url":"https://api.github.com/users/nedbase-jesse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"BastienM","id":2453600,"avatar_url":"https://avatars2.githubusercontent.com/u/2453600?v=4","gravatar_id":"","url":"https://api.github.com/users/BastienM","html_url":"https://github.com/BastienM","followers_url":"https://api.github.com/users/BastienM/followers","following_url":"https://api.github.com/users/BastienM/following{/other_user}","gists_url":"https://api.github.com/users/BastienM/gists{/gist_id}","starred_url":"https://api.github.com/users/BastienM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BastienM/subscriptions","organizations_url":"https://api.github.com/users/BastienM/orgs","repos_url":"https://api.github.com/users/BastienM/repos","events_url":"https://api.github.com/users/BastienM/events{/privacy}","received_events_url":"https://api.github.com/users/BastienM/received_events","type":"User","site_admin":false},"assignees":[{"login":"BastienM","id":2453600,"avatar_url":"https://avatars2.githubusercontent.com/u/2453600?v=4","gravatar_id":"","url":"https://api.github.com/users/BastienM","html_url":"https://github.com/BastienM","followers_url":"https://api.github.com/users/BastienM/followers","following_url":"https://api.github.com/users/BastienM/following{/other_user}","gists_url":"https://api.github.com/users/BastienM/gists{/gist_id}","starred_url":"https://api.github.com/users/BastienM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BastienM/subscriptions","organizations_url":"https://api.github.com/users/BastienM/orgs","repos_url":"https://api.github.com/users/BastienM/repos","events_url":"https://api.github.com/users/BastienM/events{/privacy}","received_events_url":"https://api.github.com/users/BastienM/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-02-21T12:53:09Z","updated_at":"2018-02-21T16:38:59Z","closed_at":null,"author_association":"NONE","body":"Hi Bastien,\r\n\r\nI get the following error when I follow your tutorial:\r\n```\r\n$ kubectl -n rocketchat logs rocketchat-app-658557f9c8-ppzjp\r\n\r\n/app/bundle/programs/server/node_modules/fibers/future.js:313\r\n                                                throw(ex);\r\n                                                ^\r\nMongoError: failed to connect to server [mongo-1.mongo:27017] on first connect [MongoError: connect ECONNREFUSED 10.244.47.12:27017]\r\n    at Pool.<anonymous> (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/topologies/server.js:336:35)\r\n    at emitOne (events.js:116:13)\r\n    at Pool.emit (events.js:211:7)\r\n    at Connection.<anonymous> (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/pool.js:280:12)\r\n    at Object.onceWrapper (events.js:317:30)\r\n    at emitTwo (events.js:126:13)\r\n    at Connection.emit (events.js:214:7)\r\n    at Socket.<anonymous> (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb-core/lib/connection/connection.js:187:49)\r\n    at Object.onceWrapper (events.js:315:30)\r\n    at emitOne (events.js:116:13)\r\n```\r\nThe mongo pods are up:\r\n```\r\nNAME                              READY     STATUS             RESTARTS   AGE\r\nmongo-0                           2/2       Running            0          3m\r\nmongo-1                           2/2       Running            0          3m\r\nmongo-2                           2/2       Running            0          3m\r\nrocketchat-app-658557f9c8-ppzjp   0/1       CrashLoopBackOff   4          3m\r\n```\r\nAm I doing something wrong?"},"comment":{"url":"https://api.github.com/repos/BastienM/rocketchat-kubernetes/issues/comments/367388160","html_url":"https://github.com/BastienM/rocketchat-kubernetes/issues/2#issuecomment-367388160","issue_url":"https://api.github.com/repos/BastienM/rocketchat-kubernetes/issues/2","id":367388160,"user":{"login":"BastienM","id":2453600,"avatar_url":"https://avatars2.githubusercontent.com/u/2453600?v=4","gravatar_id":"","url":"https://api.github.com/users/BastienM","html_url":"https://github.com/BastienM","followers_url":"https://api.github.com/users/BastienM/followers","following_url":"https://api.github.com/users/BastienM/following{/other_user}","gists_url":"https://api.github.com/users/BastienM/gists{/gist_id}","starred_url":"https://api.github.com/users/BastienM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BastienM/subscriptions","organizations_url":"https://api.github.com/users/BastienM/orgs","repos_url":"https://api.github.com/users/BastienM/repos","events_url":"https://api.github.com/users/BastienM/events{/privacy}","received_events_url":"https://api.github.com/users/BastienM/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T16:38:59Z","updated_at":"2018-02-21T16:38:59Z","author_association":"OWNER","body":"Hi @nedbase-jesse,\r\n\r\nIt indeed seems that the mongo cluster does not accept connection : \r\n```\r\n$ wget mongo-0.mongo:27027\r\nConnecting to mongo-0.mongo:27027 (172.17.0.4:27027)\r\nwget: can't connect to remote host (172.17.0.4): Connection refused\r\n```\r\n\r\nBy investigating further, the side-car which is supposed to initiate Mongo's replicaSet has error too : \r\n```\r\nError in workloop { MongoError: failed to connect to server [172.17.0.4:27017] on first connect [MongoError: connect ECONNREFUSED 172.17.0.4:27017]\r\n    at Pool.<anonymous> (/opt/cvallance/mongo-k8s-sidecar/node_modules/mongodb-core/lib/topologies/server.js:336:35)\r\n    at Pool.emit (events.js:159:13)\r\n    at Connection.<anonymous> (/opt/cvallance/mongo-k8s-sidecar/node_modules/mongodb-core/lib/connection/pool.js:280:12)\r\n    at Object.onceWrapper (events.js:254:19)\r\n    at Connection.emit (events.js:159:13)\r\n    at Socket.<anonymous> (/opt/cvallance/mongo-k8s-sidecar/node_modules/mongodb-core/lib/connection/connection.js:187:49)\r\n    at Object.onceWrapper (events.js:254:19)\r\n    at Socket.emit (events.js:159:13)\r\n    at emitErrorNT (internal/streams/destroy.js:64:8)\r\n    at _combinedTickCallback (internal/process/next_tick.js:138:11)\r\n  name: 'MongoError',\r\n  message: 'failed to connect to server [172.17.0.4:27017] on first connect [MongoError: connect ECONNREFUSED 172.17.0.4:27017]' }\r\n```\r\n\r\nI will try debugging this issue asap, thanks for reporting it 👍 "}}
{"actor":{"display_login":"BastienM"}}