{"action":"created","issue":{"url":"https://api.github.com/repos/esatterwhite/skyring/issues/20","repository_url":"https://api.github.com/repos/esatterwhite/skyring","labels_url":"https://api.github.com/repos/esatterwhite/skyring/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/esatterwhite/skyring/issues/20/comments","events_url":"https://api.github.com/repos/esatterwhite/skyring/issues/20/events","html_url":"https://github.com/esatterwhite/skyring/issues/20","id":381370725,"node_id":"MDU6SXNzdWUzODEzNzA3MjU=","number":20,"title":"NatsError when connecting to Nats instances in Kubernetes","user":{"login":"Iaskebba","id":19295381,"node_id":"MDQ6VXNlcjE5Mjk1Mzgx","avatar_url":"https://avatars0.githubusercontent.com/u/19295381?v=4","gravatar_id":"","url":"https://api.github.com/users/Iaskebba","html_url":"https://github.com/Iaskebba","followers_url":"https://api.github.com/users/Iaskebba/followers","following_url":"https://api.github.com/users/Iaskebba/following{/other_user}","gists_url":"https://api.github.com/users/Iaskebba/gists{/gist_id}","starred_url":"https://api.github.com/users/Iaskebba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Iaskebba/subscriptions","organizations_url":"https://api.github.com/users/Iaskebba/orgs","repos_url":"https://api.github.com/users/Iaskebba/repos","events_url":"https://api.github.com/users/Iaskebba/events{/privacy}","received_events_url":"https://api.github.com/users/Iaskebba/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-15T22:41:27Z","updated_at":"2018-11-21T22:20:50Z","closed_at":null,"author_association":"NONE","body":"While booting up the ring node I am receiving this error.\r\n\r\n2018-11-15T22:35:40.275Z skyring:nats creating nats client { servers: [ 'nats://10.28.0.105:4222' ] }\r\nnats error { NatsError: Could not connect to server: Error: connect ECONNREFUSED 10.28.0.105:4222\r\n    at Socket.<anonymous> (/opt/skyring/node_modules/nats/lib/nats.js:513:34)\r\n    at emitOne (events.js:115:13)\r\n    at Socket.emit (events.js:210:7)\r\n    at emitErrorNT (internal/streams/destroy.js:64:8)\r\n    at _combinedTickCallback (internal/process/next_tick.js:138:11)\r\n    at process._tickCallback (internal/process/next_tick.js:180:9)\r\n  name: 'NatsError',\r\n  message: 'Could not connect to server: Error: connect ECONNREFUSED 10.28.0.105:4222',\r\n  code: 'CONN_ERR',\r\n  chainedError:\r\n   { Error: connect ECONNREFUSED 10.28.0.105:4222\r\n    at Object._errnoException (util.js:1021:11)\r\n    at _exceptionWithHostPort (util.js:1043:20)\r\n    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1175:14)\r\n     code: 'ECONNREFUSED',\r\n     errno: 'ECONNREFUSED',\r\n     syscall: 'connect',\r\n     address: '10.28.0.105',\r\n     port: 4222 } }\r\n2018-11-15T22:35:40.309Z skyring:store storage backend ready { backend: 'leveldown',\r\n  path: '/var/data/skyring',\r\n  createIfMissing: true,\r\n  errorIfExists: false }\r\n\r\nThe nat works properly under this ip and I can exec into a separate pod and connect to the nat using CLI tools. I believe that it is a problem with the wrapper for the nat.js but I am having trouble finding the exact issue."},"comment":{"url":"https://api.github.com/repos/esatterwhite/skyring/issues/comments/440828053","html_url":"https://github.com/esatterwhite/skyring/issues/20#issuecomment-440828053","issue_url":"https://api.github.com/repos/esatterwhite/skyring/issues/20","id":440828053,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDgyODA1Mw==","user":{"login":"Iaskebba","id":19295381,"node_id":"MDQ6VXNlcjE5Mjk1Mzgx","avatar_url":"https://avatars0.githubusercontent.com/u/19295381?v=4","gravatar_id":"","url":"https://api.github.com/users/Iaskebba","html_url":"https://github.com/Iaskebba","followers_url":"https://api.github.com/users/Iaskebba/followers","following_url":"https://api.github.com/users/Iaskebba/following{/other_user}","gists_url":"https://api.github.com/users/Iaskebba/gists{/gist_id}","starred_url":"https://api.github.com/users/Iaskebba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Iaskebba/subscriptions","organizations_url":"https://api.github.com/users/Iaskebba/orgs","repos_url":"https://api.github.com/users/Iaskebba/repos","events_url":"https://api.github.com/users/Iaskebba/events{/privacy}","received_events_url":"https://api.github.com/users/Iaskebba/received_events","type":"User","site_admin":false},"created_at":"2018-11-21T22:20:50Z","updated_at":"2018-11-21T22:20:50Z","author_association":"NONE","body":"The actual error was from our Istio service mesh. Nats did not like having envoy in between it and the skyring nodes. Once I ran it without the envoy sidecar everything worked great! Thank you!"}}
{"actor":{"display_login":"Iaskebba"}}