{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1026","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1026/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1026/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1026/events","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/1026","id":110159277,"number":1026,"title":"Documentation Errata: Deploy Rocket.Chat without Docker","user":{"login":"MuhClaren","id":13713585,"avatar_url":"https://avatars.githubusercontent.com/u/13713585?v=3","gravatar_id":"","url":"https://api.github.com/users/MuhClaren","html_url":"https://github.com/MuhClaren","followers_url":"https://api.github.com/users/MuhClaren/followers","following_url":"https://api.github.com/users/MuhClaren/following{/other_user}","gists_url":"https://api.github.com/users/MuhClaren/gists{/gist_id}","starred_url":"https://api.github.com/users/MuhClaren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MuhClaren/subscriptions","organizations_url":"https://api.github.com/users/MuhClaren/orgs","repos_url":"https://api.github.com/users/MuhClaren/repos","events_url":"https://api.github.com/users/MuhClaren/events{/privacy}","received_events_url":"https://api.github.com/users/MuhClaren/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-07T06:17:15Z","updated_at":"2015-10-25T17:56:48Z","closed_at":"2015-10-10T08:24:32Z","body":"**ENVIRONMENT:** VPS, non-docker installation on Ubuntu 14.04 clean install, stock kernel 3.13.0-55-generic, mongoDB 3.0.6\r\n\r\n**WHAT:** Error during rs.instantiate()\r\n\r\n**WHERE:** Wiki guide \"Deploying Rocket.Chat without Docker\", [Section 2](https://github.com/RocketChat/Rocket.Chat/wiki/Deploy-Rocket.Chat-without-docker#2-setup-mongodb-replica-set)\r\n\r\n**WHEN / HOW:** After editing /etc/mongod.conf file per instructions, upon executing command rs.instantiate() from mongodb shell, output is as follows:\r\n\r\n    { \r\n    \"info2\" : \"no configuration explicitly specified -- making one\",\r\n    \"errmsg\" : \"exception: bad --replSet config string format is: <'setname'>[<'seedhost1'>,<'seedhost2'>\",...]\", \r\n    \"code\" : 13093, \"ok\" : 0 \r\n    }\r\n\r\nIncidentally, using either `replSet=001-rs` or `replication: replSetName:  \"001-rs\"` results in the error.\r\n\r\n**SOLUTION:** Using `replicaSet=001-rs` worked for me, resulting in the following output from rs.initiate():\r\n\r\n    {\r\n    \t\"info2\" : \"no configuration explicitly specified -- making one\",\r\n    \t\"me\" : \"my_hostname.com:27017\",\r\n    \t\"ok\" : 1\r\n    }"},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments/150948783","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/1026#issuecomment-150948783","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/1026","id":150948783,"user":{"login":"maxlinux2000","id":5683921,"avatar_url":"https://avatars.githubusercontent.com/u/5683921?v=3","gravatar_id":"","url":"https://api.github.com/users/maxlinux2000","html_url":"https://github.com/maxlinux2000","followers_url":"https://api.github.com/users/maxlinux2000/followers","following_url":"https://api.github.com/users/maxlinux2000/following{/other_user}","gists_url":"https://api.github.com/users/maxlinux2000/gists{/gist_id}","starred_url":"https://api.github.com/users/maxlinux2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxlinux2000/subscriptions","organizations_url":"https://api.github.com/users/maxlinux2000/orgs","repos_url":"https://api.github.com/users/maxlinux2000/repos","events_url":"https://api.github.com/users/maxlinux2000/events{/privacy}","received_events_url":"https://api.github.com/users/maxlinux2000/received_events","type":"User","site_admin":false},"created_at":"2015-10-25T17:56:48Z","updated_at":"2015-10-25T17:56:48Z","body":"Hi\r\nI have same problem in ubuntu 14.04 64bit\r\n\r\n# mongo --help | grep \"version:\"\r\nMongoDB shell version: 3.0.7\r\n\r\n# cat /etc/hosts\r\n127.0.0.1\tlocalhost\r\n::1\t\tlocalhost ip6-localhost ip6-loopback\r\nff02::1\t\tip6-allnodes\r\nff02::2\t\tip6-allrouters\r\n# Auto-generated hostname. Please do not remove this comment.\r\nxxx.xxx.xxx.xxx MY-REAL.IP-ADDERESS.ORG MY-REAL\r\n127.0.0.1 chat.myrealdoman.org chat\r\n\r\nthen:\r\nhostnamectl set-hostname chat\r\nhostname\r\nchat\r\n\r\ncat /etc/mongod.conf  | grep rep\r\n#replication:\r\nreplicaSet=001-rs\r\n\r\n\r\nservice mongod restart\r\nstop: Unknown instance: \r\nmongod start/running, process 27731\r\n\r\nmongo\r\nMongoDB shell version: 3.0.7\r\nconnecting to: test\r\n2015-10-25T18:49:50.570+0100 W NETWORK  Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused\r\n2015-10-25T18:49:50.572+0100 E QUERY    Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed\r\n    at connect (src/mongo/shell/mongo.js:179:14)\r\n    at (connect):1:6 at src/mongo/shell/mongo.js:179\r\nexception: connect failed\r\n\r\nmy firewall is open. \r\n\r\ndeleting the \"replicaSet=001-rs\" from configuration the service can restart.\r\nI tried with replSetName:  \"001-rs\"  and replicaSet=001-rs with no success. Mongod won't restart\r\n\r\nThere is something that I can do to solve?\r\n\r\nA question  the replica is necessary for a simple chat in a server?\r\n\r\n\r\n"}}