{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/6896","repository_url":"https://api.github.com/repos/meteor/meteor","labels_url":"https://api.github.com/repos/meteor/meteor/issues/6896/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/6896/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/6896/events","html_url":"https://github.com/meteor/meteor/issues/6896","id":150858794,"number":6896,"title":"Can't connect to hidden secondary to pull reporting data?","user":{"login":"Broham","id":899854,"avatar_url":"https://avatars.githubusercontent.com/u/899854?v=3","gravatar_id":"","url":"https://api.github.com/users/Broham","html_url":"https://github.com/Broham","followers_url":"https://api.github.com/users/Broham/followers","following_url":"https://api.github.com/users/Broham/following{/other_user}","gists_url":"https://api.github.com/users/Broham/gists{/gist_id}","starred_url":"https://api.github.com/users/Broham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Broham/subscriptions","organizations_url":"https://api.github.com/users/Broham/orgs","repos_url":"https://api.github.com/users/Broham/repos","events_url":"https://api.github.com/users/Broham/events{/privacy}","received_events_url":"https://api.github.com/users/Broham/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-25T13:26:15Z","updated_at":"2016-05-23T16:35:24Z","closed_at":"2016-05-23T16:35:24Z","body":"I have setup a hidden secondary MongoDB instance that I would like to read from for reporting purposes.  The problem that I have run into is that when I try to connect to the hidden secondary I get the error:\r\n\r\n> Error: No primary found in set\r\n\r\nCan I connect to this type of database instance using `RemoteCollectionDriver` as I am trying below?\r\n\r\nThe code I am using to connect now is:\r\n\r\n    flirtDb = new MongoInternals.RemoteCollectionDriver(\"mongodb://1.1.1.1/myDB\");\r\n\r\nOutput of `rs.status()`:\r\n\r\n    {\r\n    \t\"set\" : \"flirtReplica\",\r\n    \t\"date\" : ISODate(\"2016-04-21T16:37:24.637Z\"),\r\n    \t\"myState\" : 2,\r\n    \t\"term\" : NumberLong(1),\r\n    \t\"syncingTo\" : \"10.0.0.175:27017\",\r\n    \t\"heartbeatIntervalMillis\" : NumberLong(2000),\r\n    \t\"members\" : [\r\n    \t\t{\r\n    \t\t\t\"_id\" : 0,\r\n    \t\t\t\"name\" : \"10.0.0.175:27017\",\r\n    \t\t\t\"health\" : 1,\r\n    \t\t\t\"state\" : 1,\r\n    \t\t\t\"stateStr\" : \"PRIMARY\",\r\n    \t\t\t\"uptime\" : 2484535,\r\n    \t\t\t\"optime\" : {\r\n    \t\t\t\t\"ts\" : Timestamp(1461183860, 11),\r\n    \t\t\t\t\"t\" : NumberLong(1)\r\n    \t\t\t},\r\n    \t\t\t\"optimeDate\" : ISODate(\"2016-04-20T20:24:20Z\"),\r\n    \t\t\t\"lastHeartbeat\" : ISODate(\"2016-04-21T16:37:24.389Z\"),\r\n    \t\t\t\"lastHeartbeatRecv\" : ISODate(\"2016-04-21T16:37:24.389Z\"),\r\n    \t\t\t\"pingMs\" : NumberLong(0),\r\n    \t\t\t\"electionTime\" : Timestamp(0, 0),\r\n    \t\t\t\"electionDate\" : ISODate(\"1970-01-01T00:00:00Z\"),\r\n    \t\t\t\"configVersion\" : 3\r\n    \t\t},\r\n    \t\t{\r\n    \t\t\t\"_id\" : 1,\r\n    \t\t\t\"name\" : \"10.0.0.134:27017\",\r\n    \t\t\t\"health\" : 1,\r\n    \t\t\t\"state\" : 2,\r\n    \t\t\t\"stateStr\" : \"SECONDARY\",\r\n    \t\t\t\"uptime\" : 2485582,\r\n    \t\t\t\"optime\" : {\r\n    \t\t\t\t\"ts\" : Timestamp(1461183860, 11),\r\n    \t\t\t\t\"t\" : NumberLong(1)\r\n    \t\t\t},\r\n    \t\t\t\"optimeDate\" : ISODate(\"2016-04-20T20:24:20Z\"),\r\n    \t\t\t\"syncingTo\" : \"10.0.0.175:27017\",\r\n    \t\t\t\"configVersion\" : 3,\r\n    \t\t\t\"self\" : true\r\n    \t\t}\r\n    \t],\r\n    \t\"ok\" : 1\r\n    }"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/221025386","html_url":"https://github.com/meteor/meteor/issues/6896#issuecomment-221025386","issue_url":"https://api.github.com/repos/meteor/meteor/issues/6896","id":221025386,"user":{"login":"Broham","id":899854,"avatar_url":"https://avatars.githubusercontent.com/u/899854?v=3","gravatar_id":"","url":"https://api.github.com/users/Broham","html_url":"https://github.com/Broham","followers_url":"https://api.github.com/users/Broham/followers","following_url":"https://api.github.com/users/Broham/following{/other_user}","gists_url":"https://api.github.com/users/Broham/gists{/gist_id}","starred_url":"https://api.github.com/users/Broham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Broham/subscriptions","organizations_url":"https://api.github.com/users/Broham/orgs","repos_url":"https://api.github.com/users/Broham/repos","events_url":"https://api.github.com/users/Broham/events{/privacy}","received_events_url":"https://api.github.com/users/Broham/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T16:35:24Z","updated_at":"2016-05-23T16:35:24Z","body":"@abernix yeah I added the second one when I knew what the problem was to determine if we should add support.  This can be closed out"}}
{"actor":{"display_login":"Broham"}}