{"action":"created","issue":{"url":"https://api.github.com/repos/vanadium/issues/issues/907","labels_url":"https://api.github.com/repos/vanadium/issues/issues/907/labels{/name}","comments_url":"https://api.github.com/repos/vanadium/issues/issues/907/comments","events_url":"https://api.github.com/repos/vanadium/issues/issues/907/events","html_url":"https://github.com/vanadium/issues/issues/907","id":117418207,"number":907,"title":"Syncbase: cloud syncbase instance doesn't always sync with local instance","user":{"login":"yyoon","id":1309817,"avatar_url":"https://avatars.githubusercontent.com/u/1309817?v=3","gravatar_id":"","url":"https://api.github.com/users/yyoon","html_url":"https://github.com/yyoon","followers_url":"https://api.github.com/users/yyoon/followers","following_url":"https://api.github.com/users/yyoon/following{/other_user}","gists_url":"https://api.github.com/users/yyoon/gists{/gist_id}","starred_url":"https://api.github.com/users/yyoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyoon/subscriptions","organizations_url":"https://api.github.com/users/yyoon/orgs","repos_url":"https://api.github.com/users/yyoon/repos","events_url":"https://api.github.com/users/yyoon/events{/privacy}","received_events_url":"https://api.github.com/users/yyoon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vanadium/issues/labels/Area:%20Syncbase","name":"Area: Syncbase","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-17T18:27:33Z","updated_at":"2015-11-17T20:13:12Z","closed_at":null,"body":"@asadovsky @hpucha \r\n\r\nI'm having some sync issues with Reader Android app. The basic syncbase setup is the same as in #848. There is a cloudsync instance running with syncbased, and the Android Reader app is running its own local syncbase instance. The syncgroup is hosted on cloudsync, and the local syncbase joins the group. Both instances are mounted on the global mount table using proxy.\r\n\r\nI expect that the cloudsync instance to replicate all the local data, but that's not always happening.\r\n\r\nWhen the sync is not happening, every two seconds, the Android client is generating the following set of logs.\r\n(NOTE: The peer `{96614e42328460f1}` is the cloudsync instance.)\r\n\r\n```\r\n11-17 12:13:28.267 28354-28744/io.v.android.apps.reader E/STDERR: E1117 18:13:28.266790   28354 funcs.go:94] sync: syncClock: received network error: gojni:<rpc.Client>\"/ns.dev.v.io:8101/users/youngseokyoon@google.com/reader/rendezvous/96614e42328460f1/%%sync\".GetTime: Canceled: [/@6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@/%%sync:/ns.dev.v.io:8101/users/youngseokyoon@google.com/reader/rendezvous/96614e42328460f1/%%sync.GetTime: gojni:<client>tryCreateFlow /@6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@/%%sync: : gojni:<client>tryCreateFlow /@6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@/%%sync: error reading from unknown: EOF]\r\n11-17 12:13:28.267 28354-28528/io.v.android.apps.reader E/vlog: E1117 18:13:28.266790   28354 funcs.go:94] sync: syncClock: received network error: gojni:<rpc.Client>\"/ns.dev.v.io:8101/users/youngseokyoon@google.com/reader/rendezvous/96614e42328460f1/%%sync\".GetTime: Canceled: [/@6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@/%%sync:/ns.dev.v.io:8101/users/youngseokyoon@google.com/reader/rendezvous/96614e42328460f1/%%sync.GetTime: gojni:<client>tryCreateFlow /@6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@/%%sync: : gojni:<client>tryCreateFlow /@6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@/%%sync: error reading from unknown: EOF]\r\n11-17 12:13:28.267 28354-28528/io.v.android.apps.reader W/vlog: E1117 18:13:28.266790   28354 funcs.go:94] sync: syncClock: received network error: gojni:<rpc.Client>\"/ns.dev.v.io:8101/users/youngseokyoon@google.com/reader/rendezvous/96614e42328460f1/%%sync\".GetTime: Canceled: [/@6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@/%%sync:/ns.dev.v.io:8101/users/youngseokyoon@google.com/reader/rendezvous/96614e42328460f1/%%sync.GetTime: gojni:<client>tryCreateFlow /@6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@/%%sync: : gojni:<client>tryCreateFlow /@6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@/%%sync: error reading from unknown: EOF]\r\n11-17 12:13:28.267 28354-28528/io.v.android.apps.reader I/vlog: E1117 18:13:28.266790   28354 funcs.go:94] sync: syncClock: received network error: gojni:<rpc.Client>\"/ns.dev.v.io:8101/users/youngseokyoon@google.com/reader/rendezvous/96614e42328460f1/%%sync\".GetTime: Canceled: [/@6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@/%%sync:/ns.dev.v.io:8101/users/youngseokyoon@google.com/reader/rendezvous/96614e42328460f1/%%sync.GetTime: gojni:<client>tryCreateFlow /@6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@/%%sync: : gojni:<client>tryCreateFlow /@6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@/%%sync: error reading from unknown: EOF]\r\n11-17 12:13:28.267 28354-28744/io.v.android.apps.reader E/STDERR: E1117 18:13:28.267694   28354 funcs.go:94] sync: syncClock: couldn't connect to peer {96614e42328460f1 }\r\n11-17 12:13:28.276 28354-28528/io.v.android.apps.reader E/vlog: E1117 18:13:28.267694   28354 funcs.go:94] sync: syncClock: couldn't connect to peer {96614e42328460f1 }\r\n11-17 12:13:28.276 28354-28528/io.v.android.apps.reader W/vlog: E1117 18:13:28.267694   28354 funcs.go:94] sync: syncClock: couldn't connect to peer {96614e42328460f1 }\r\n11-17 12:13:28.276 28354-28528/io.v.android.apps.reader I/vlog: E1117 18:13:28.267694   28354 funcs.go:94] sync: syncClock: couldn't connect to peer {96614e42328460f1 }\r\n11-17 12:13:28.652 28354-28528/io.v.android.apps.reader E/vlog: E1117 18:13:28.652903   28354 conn.go:484] Error sending tearDown on connection to @6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@: EOF\r\n11-17 12:13:28.653 28354-28528/io.v.android.apps.reader W/vlog: E1117 18:13:28.652903   28354 conn.go:484] Error sending tearDown on connection to @6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@: EOF\r\n11-17 12:13:28.653 28354-28464/io.v.android.apps.reader E/STDERR: E1117 18:13:28.652903   28354 conn.go:484] Error sending tearDown on connection to @6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@: EOF\r\n11-17 12:13:28.653 28354-28528/io.v.android.apps.reader I/vlog: E1117 18:13:28.652903   28354 conn.go:484] Error sending tearDown on connection to @6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@: EOF\r\n```\r\n\r\nOn the cloudsync console, I'm seeing these errors:\r\n```\r\nE1117 10:12:42.597992   62959 conn.go:484] Error sending tearDown on connection to @6@wsh@104.197.5.136:8110@@9427e52e41ee2a03c244f7946407aa0a@s@dev.v.io/u/youngseokyoon@google.com@@: EOF\r\nE1117 10:12:50.540806   62959 conn.go:484] Error sending tearDown on connection to @6@tcp@100.110.114.19:46987@@00000000000000000000000000000000@s@@@: EOF\r\nE1117 10:12:58.927067   62959 conn.go:484] Error sending tearDown on connection to @6@ws@104.197.5.136:8110@@00000000000000000000000000000000@s@@@: EOF\r\nE1117 10:13:03.818736   62959 conn.go:484] Error sending tearDown on connection to @6@ws@172.17.166.57:8000@@00000000000000000000000000000000@s@@@: websocket: close sent\r\n```\r\n\r\nThis might be related to the latency issue I reported in #848."},"comment":{"url":"https://api.github.com/repos/vanadium/issues/issues/comments/157492224","html_url":"https://github.com/vanadium/issues/issues/907#issuecomment-157492224","issue_url":"https://api.github.com/repos/vanadium/issues/issues/907","id":157492224,"user":{"login":"asadovsky","id":538767,"avatar_url":"https://avatars.githubusercontent.com/u/538767?v=3","gravatar_id":"","url":"https://api.github.com/users/asadovsky","html_url":"https://github.com/asadovsky","followers_url":"https://api.github.com/users/asadovsky/followers","following_url":"https://api.github.com/users/asadovsky/following{/other_user}","gists_url":"https://api.github.com/users/asadovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/asadovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asadovsky/subscriptions","organizations_url":"https://api.github.com/users/asadovsky/orgs","repos_url":"https://api.github.com/users/asadovsky/repos","events_url":"https://api.github.com/users/asadovsky/events{/privacy}","received_events_url":"https://api.github.com/users/asadovsky/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T20:13:12Z","updated_at":"2015-11-17T20:13:12Z","body":"Your description suggests that the Android client is attempting to reach the cloudsync instance (96614e42328460f1) but is unable to do so. Some questions:\r\n- When you say \"both instances are mounted on the global mount table using proxy\", what do you mean by that? Are you referring to the --name flag passed to Syncbase, or to the \"Syncbase id\" mount entries that sync creates?\r\n- What are your mounttable ACLs set to? If you configure those ACLs to be completely open, does that help?\r\n- If you attempt to send RPCs to those Syncbase id mount entries, e.g. using the vrpc tool, does that work?\r\n    $JIRI_ROOT/release/go/bin/vrpc -v23.credentials=creds signature [name]"}}