{"action":"created","issue":{"url":"https://api.github.com/repos/Storj/storjshare-cli/issues/98","repository_url":"https://api.github.com/repos/Storj/storjshare-cli","labels_url":"https://api.github.com/repos/Storj/storjshare-cli/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/Storj/storjshare-cli/issues/98/comments","events_url":"https://api.github.com/repos/Storj/storjshare-cli/issues/98/events","html_url":"https://github.com/Storj/storjshare-cli/issues/98","id":162203278,"number":98,"title":"2 instances not work.","user":{"login":"luishmendes","id":13944410,"avatar_url":"https://avatars.githubusercontent.com/u/13944410?v=3","gravatar_id":"","url":"https://api.github.com/users/luishmendes","html_url":"https://github.com/luishmendes","followers_url":"https://api.github.com/users/luishmendes/followers","following_url":"https://api.github.com/users/luishmendes/following{/other_user}","gists_url":"https://api.github.com/users/luishmendes/gists{/gist_id}","starred_url":"https://api.github.com/users/luishmendes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luishmendes/subscriptions","organizations_url":"https://api.github.com/users/luishmendes/orgs","repos_url":"https://api.github.com/users/luishmendes/repos","events_url":"https://api.github.com/users/luishmendes/events{/privacy}","received_events_url":"https://api.github.com/users/luishmendes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-24T18:24:10Z","updated_at":"2016-06-24T23:23:34Z","closed_at":"2016-06-24T22:13:06Z","body":"StorjShare: 4.0.4\r\nCore:       1.3.1\r\nProtocol:   0.7.0\r\n\r\nC:\\Users\\Luis>node --version\r\nv4.4.5\r\n\r\nCLI with 1 instance works 100% With 2 instances not work the 2 instance.\r\n\r\n\r\n\r\nC:\\Users\\Luis>storjshare start --datadir e:\\cli\r\n [...]  > Unlock your private key to start storj  >  *********\r\n\r\n{\"level\":\"warn\",\"message\":\"you are not bound to a public address, trying traversal strategies...\",\"timestamp\":\"2016-06-24T18:19:40.212Z\"}\r\n{\"level\":\"info\",\"message\":\"you are configured to tunnel up to 3 connections\",\"timestamp\":\"2016-06-24T18:19:40.220Z\"}\r\n{\"level\":\"warn\",\"message\":\"could not connect to NAT device via UPnP\",\"timestamp\":\"2016-06-24T18:19:41.259Z\"}\r\n{\"level\":\"error\",\"message\":\"failed to map port for tunserver: connect ECONNREFUSED 192.168.1.142:3159\",\"timestamp\":\"2016-06-24T18:19:41.260Z\"}\r\n{\"level\":\"warn\",\"message\":\"could not obtain public IP address\",\"timestamp\":\"2016-06-24T18:19:41.522Z\"}\r\nevents.js:141\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\n\r\nError: listen EADDRINUSE :::4000\r\n    at Object.exports._errnoException (util.js:870:11)\r\n    at exports._exceptionWithHostPort (util.js:893:20)\r\n    at Server._listen2 (net.js:1234:14)\r\n    at listen (net.js:1270:10)\r\n    at Server.listen (net.js:1366:5)\r\n    at Transport.HTTPTransport._open (C:\\Users\\Luis\\AppData\\Roaming\\npm\\node_modules\\storjshare-cli\\node_modules\\storj\\node_modules\\kad\\lib\\transports\\http.js:83:16)\r\n    at C:\\Users\\Luis\\AppData\\Roaming\\npm\\node_modules\\storjshare-cli\\node_modules\\storj\\lib\\network\\transport.js:72:41\r\n    at C:\\Users\\Luis\\AppData\\Roaming\\npm\\node_modules\\storjshare-cli\\node_modules\\storj\\lib\\network\\transport.js:100:16\r\n    at C:\\Users\\Luis\\AppData\\Roaming\\npm\\node_modules\\storjshare-cli\\node_modules\\storj\\node_modules\\nat-upnp\\lib\\nat-upnp\\client.js:158:23\r\n    at C:\\Users\\Luis\\AppData\\Roaming\\npm\\node_modules\\storjshare-cli\\node_modules\\storj\\node_modules\\nat-upnp\\lib\\nat-upnp\\device.js:117:21\r\n\r\nC:\\Users\\Luis>\r\n\r\n\r\n\r\nConfig 1 instance:\r\n\r\n{\r\n  \"keypath\": \"d:\\\\cli\\\\id_ecdsa\",\r\n  \"address\": \"167Xg7hFofTfHLdxiBQGGjduk9bSyg1CwD\",\r\n  \"storage\": {\r\n    \"path\": \"d:/cli\",\r\n    \"size\": 3300,\r\n    \"unit\": \"GB\"\r\n  },\r\n  \"network\": {\r\n    \"address\": \"127.0.0.1\",\r\n    \"port\": 4000,\r\n    \"seeds\": [],\r\n    \"opcodes\": [\r\n      \"0f01020202\",\r\n      \"0f02020202\",\r\n      \"0f03020202\"\r\n    ],\r\n    \"forward\": true,\r\n    \"tunnels\": 3,\r\n    \"tunnelport\": 0,\r\n    \"gateways\": {\r\n      \"min\": 0,\r\n      \"max\": 0\r\n    }\r\n  },\r\n  \"telemetry\": {\r\n    \"service\": \"https://status.storj.io\",\r\n    \"enabled\": true\r\n  },\r\n  \"loglevel\": 3\r\n}\r\n\r\n\r\nConfig 2 instance   (  not Work )\r\n\r\n{\r\n  \"keypath\": \"e:\\\\cli\\\\id_ecdsa\",\r\n  \"address\": \"124NGM7RWiJVLw8vhauq33X5fafDMcQetN\",\r\n  \"storage\": {\r\n    \"path\": \"e:\\\\cli\",\r\n    \"size\": 4000,\r\n    \"unit\": \"GB\"\r\n  },\r\n  \"network\": {\r\n    \"address\": \"127.0.0.1\",\r\n    \"port\": 4000,\r\n    \"seeds\": [],\r\n    \"opcodes\": [\r\n      \"0f01020202\",\r\n      \"0f02020202\",\r\n      \"0f03020202\"\r\n    ],\r\n    \"forward\": true,\r\n    \"tunnels\": 3,\r\n    \"tunnelport\": 0,\r\n    \"gateways\": {\r\n      \"min\": 0,\r\n      \"max\": 0\r\n    }\r\n  },\r\n  \"telemetry\": {\r\n    \"service\": \"https://status.storj.io\",\r\n    \"enabled\": true\r\n  },\r\n  \"loglevel\": 3\r\n}"},"comment":{"url":"https://api.github.com/repos/Storj/storjshare-cli/issues/comments/228487420","html_url":"https://github.com/Storj/storjshare-cli/issues/98#issuecomment-228487420","issue_url":"https://api.github.com/repos/Storj/storjshare-cli/issues/98","id":228487420,"user":{"login":"bookchin","id":1188875,"avatar_url":"https://avatars.githubusercontent.com/u/1188875?v=3","gravatar_id":"","url":"https://api.github.com/users/bookchin","html_url":"https://github.com/bookchin","followers_url":"https://api.github.com/users/bookchin/followers","following_url":"https://api.github.com/users/bookchin/following{/other_user}","gists_url":"https://api.github.com/users/bookchin/gists{/gist_id}","starred_url":"https://api.github.com/users/bookchin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bookchin/subscriptions","organizations_url":"https://api.github.com/users/bookchin/orgs","repos_url":"https://api.github.com/users/bookchin/repos","events_url":"https://api.github.com/users/bookchin/events{/privacy}","received_events_url":"https://api.github.com/users/bookchin/received_events","type":"User","site_admin":false},"created_at":"2016-06-24T23:23:34Z","updated_at":"2016-06-24T23:23:34Z","body":"After looking again at this, it looks like you *are* using 2 datadirs, but both are configured to listen on the same port. Just change your other config to listen in a different port. "}}
{"actor":{"display_login":"bookchin"}}