sync gateway in amazon server please help

99 views
Skip to first unread message

Sandra

unread,
May 30, 2014, 8:49:08 PM5/30/14
to mobile-c...@googlegroups.com
Hello,
    I'd like to express that I find sync gateway documentation (http://docs.couchbase.com/sync-gateway/#developing) not very clear and on all honesty I don't understand what to write in the config file.
    Is there any documentation where I can find a step by step sync gateway config file creation? something for dummies please  :)
    Ok, so I was working with a DB in the local network, we have just moved to an amazon server and now I want to run sync gateway on that amazon server.
    My config.json file is this:

{

   "interface":":4984",

   "adminInterface":":4985",

   "log":["REST"],

   "databases":{

      "srestaurant":{

         "server":"http://172.16.1.115:8091",

         "users": {

                   "GUEST": {"disabled": false, "admin_channels": ["*"] }

                  },

      "shadow": {

         "server": "http://172.16.1.115:8091",

          "bucket": "restaurant"

                },

      "sync":`function(doc) {channel(doc.channels);}`

      }

   }

}


    I installed sync gateway in the amazon server and tried to run it with this same config.json file above, just updating the IP to the amazon server.

    The sync gateway seems to be up and running but if I try to connect to it I have no response from the server at all.


        I appreciate any help, 
       BR, Sandra

J. Chris Anderson

unread,
May 30, 2014, 11:14:05 PM5/30/14
to mobile-c...@googlegroups.com


On Friday, May 30, 2014 5:49:08 PM UTC-7, Sandra wrote:


    I installed sync gateway in the amazon server and tried to run it with this same config.json file above, just updating the IP to the amazon server.

    The sync gateway seems to be up and running but if I try to connect to it I have no response from the server at all.



Sync gateway runs on 4984 interface so you need this URL:


Maybe you need to add that port to your firewall on your EC2 security group or use another server to proxy it to port 80. It looks like port 80 is accepted by Amazon but 4984 is blocked by Amazon, based on how fast it is.

Chris

Sandra

unread,
Jun 2, 2014, 12:24:10 PM6/2/14
to mobile-c...@googlegroups.com
ooooh yeeeeah! I opened the ports and worked perfectly!
Thanks a lot!
I'm still interested in sync-gateway documentation, please.
Thank you very much and have a very happy day  :)
Sandra

J. Chris Anderson

unread,
Jun 6, 2014, 6:06:49 PM6/6/14
to mobile-c...@googlegroups.com


On Monday, June 2, 2014 9:24:10 AM UTC-7, Sandra wrote:
ooooh yeeeeah! I opened the ports and worked perfectly!
Thanks a lot!
I'm still interested in sync-gateway documentation, please.

Sandra,

Our new dev portal has a tutorial I wrote about the sync function here: http://developer.couchbase.com/mobile/get-started/get-started-mobile/cloud-sync-function/index.html

And maybe an easier to navigate packaging of the Sync Gateway docs here: http://developer.couchbase.com/mobile/develop/guides/sync-gateway/index.html

Maybe that helps? If there's something particular you need let us know.

Cheers,
Chris

Sandra Bazan

unread,
Jun 9, 2014, 3:02:22 PM6/9/14
to mobile-c...@googlegroups.com
Thank you very much Chris  :)
Reply all
Reply to author
Forward
0 new messages