Great, thanks for the detailed response.  I think the data is not making it 
to the server, when I run "curl localhost:4984/grocery-sync/_all_docs" I 
receive:

{"rows":[
],

So the POST/PUT may not be working.
I do continue to see output in the sync-gateway application however 
whenever I add a row or checkbox, so the server is responding to the 
android app.

I have a clean couchbase install on a Ubuntu12 server.  I added a bucket 
called "grocery-sync" with all the defaults.

I start the sync-gateway with the following command:
./sync_gateway -url http://localhost:8091 -bucket="grocery-sync"

I added the Guest user with the following command:
curl -X PUT localhost:4985/grocery-sync/_user/GUEST --data 
'{"disabled":false, "admin_channels":["public"]}'

That's all on the server.  

Are there any other logs that may give some ideas or other commands on the 
server I need to execute?  Thanks again for all the quick help.

Also, is there a public or demo sync-gateway server that I could use to 
potentially rule out server related issues?

-james

On Monday, April 21, 2014 10:39:53 AM UTC-6, Traun Leyden wrote:
>
>
> James, 
>
> Sorry to hear you've been having such a bumpy experience and have been 
> getting bitten by our out-of-date docs.  I'm sure we can help you get 
> things working.
>
> I just re-tested the latest master branch of GrocerySync-Android locally, 
> and both push/pull replication are working for me.
>
> To establish a "baseline", I would focus on the push replication and 
> simply verify that docs are getting pushed to the sync gateway:
>
> * Create a doc in grocery sync
> * Verify that doc made it to the sync gateway
>
> *My local setup*
>
> *Sync Gateway*
>
> Version: commit e7c0b389 from March 28
> Config.json:  https://gist.github.com/tleyden/11147841
> Environment: running on localhost (dev workstation)
>
> *Grocery Sync*
>
> Version: Latest master branch - 80443e47
> SYNC_URL: "http://10.0.3.2:4984/grocery-sync";;  
> Environment: Installed to Genymotion emulator (hence the 10.0.3.2 special 
> "loopback" address)
>
> *Steps to verify*
>
> * Delete GrocerySync from emulator to start fresh
> * Delete data/grocery-sync.walrus to start fresh
> * Start sync gateway
> * Start grocery sync by hitting "Debug" button in Android Studio (version 
> 0.4.3)
> * GrocerySync comes up in emulator, and list is currently empty
> * Add item "foo" in GrocerySync
> * Run "curl localhost:4984/grocery-sync/_all_docs" against sync gateway, 
> and it returns: https://gist.github.com/tleyden/11148026
> * Run "curl 
> localhost:4984/grocery-sync/8ecc5ef6-8ebf-437c-bf12-5bc4dc344200" and it 
> returns: https://gist.github.com/tleyden/11148044 
>
> The last step verifies that the doc was indeed pushed to sync gateway.
>
> Can you try the same steps with as close to this setup as possible and let 
> me know the results?  Be sure to point out any "deltas" in case they are 
> relevant.
>
>
> On Sunday, April 20, 2014, James Norman <[email protected] <javascript:>> 
> wrote:
>
>> I have the Grocery Sync app running in Android studio with both the 
>> current master branch and the beta2 of grocery-sync  and am seeing the 
>> exact behavior as outlined above.  The same messages come from the server 
>> and the applications never sync.
>>
>> This leads me to believe something is wrong with my server configuration 
>> or the URL to the sync gateway.  The  android lite guide (
>> https://github.com/couchbaselabs/GrocerySync-Android) says to modify the 
>> DATABASE_URL 
>> which doesn't exist anywhere in source.  I instead modified the SYNC_URL 
>> from  http://10.0.0.2:4984 to http://54.187.90.23:4984/sync_gateway and 
>> left everything else the same.
>>
>> We're ready to run with couchbase and purchase licenses but I need to see 
>> it working to sell it to the organization.  I'm glad to pay for support to 
>> simple prototype the demo app.  If anyone can help please let me know.
>>  
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Couchbase Mobile" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/mobile-couchbase/ce0c20ce-f521-41b8-913f-d306759274b7%40googlegroups.com<https://groups.google.com/d/msgid/mobile-couchbase/ce0c20ce-f521-41b8-913f-d306759274b7%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/ad4becb4-0c94-473c-bbc7-71bd3cb2d037%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to