Couchbase lite push is not working


#1

Hi I saved a document to couchbase lite in my app.
I checked the date from sqlite browser.
But I can’t see the data from couchbase server.
When I save the document, sync seems gateway worked, this is my log.

INFO) QUERY (Query): [22] 2017-5-19 10:26:19.464-07:00 [Query: Database=Database[C:\Users\Administrator\AppData\Local\sync_gateway.cblite2], Limit=2147483647, Skip=0, Descending=False, StartKey=<redacted>,
EndKey=<redacted>, StartKeyDocId=<redacted>, EndKeyDocId=<redacted>, InclusiveStart=True, InclusiveEnd=True,
IndexUpdateMode=Before, AllDocsMode=AllDocs, Keys=, MapOnly=True, GroupLevel=0, Prefetch=False,
IncludeDeleted=False, PostFilter=, PrefixMatchLevel=0] running...
INFO) VIEW (SqliteViewStore): [22] 2017-5-19 10:26:19.465-07:00 Checking indexes of (clientdetails_note) for clientdetails_note
INFO) VIEW (SqliteViewStore): [22] 2017-5-19 10:26:19.466-07:00 Updating indexes of (clientdetails_note) from #192768 to #192769 ...
INFO) VIEW (SqliteViewStore): [22] 2017-5-19 10:26:19.466-07:00 ...Finished re-indexing (clientdetails_note) to #192769 (deleted 0, added 1)
INFO) QUERY (SqliteViewStore): [22] 2017-5-19 10:26:19.467-07:00 Query clientdetails_note: SELECT key, value, docid, revs.sequence FROM 'maps_24', revs, docs WHERE 1  AND revs.sequence = 'maps_24'.sequence AND docs.doc_id = revs.doc_id ORDER BY key, docid LIMIT ? OFFSET ?
	Arguments: <redacted>
INFO) QUERY (View): [23] 2017-5-19 10:26:19.474-07:00 Query clientdetails_note: Returning iterator
INFO) DATABASE (Database): [23] 2017-5-19 10:26:19.487-07:00 Database[C:\Users\Administrator\AppData\Local\sync_gateway.cblite2] posting change notifications: seq [192770]
INFO) SYNC (RemoteSession): [22] 2017-5-19 10:26:20.553-07:00 [Couchbase Sync Gateway: Version=1.4.0]: Server Version: [Couchbase Sync Gateway: Version=1.4.0]
INFO) SYNC (Pusher): [22] 2017-5-19 10:26:20.557-07:00 Pusher 8fbee973-a846-4db6-9319-7a193d2b43fa sending 1 revisions
Push: Active, Pull: Idle
Sync: Push Progress: 0/1;
(0.00)
INFO) CHANGE TRACKER (ChunkedChanges): [20] 2017-5-19 10:26:21.204-07:00 Parse found 1 changes
Push: Active, Pull: Active
Sync: Pull Progress: 0/1;
(0.00)
INFO) CHANGE TRACKER (ChunkedChanges): [22] 2017-5-19 10:26:21.205-07:00 Parsed [{"seq":192746,"id":"clientdetails_note:72","changes":[{"rev":"1-5d247beb9c7e60946e17a1368e4b441f"}]}] (nested count: 0)
INFO) SYNC (Puller): [22] 2017-5-19 10:26:21.207-07:00 Puller 37c4bbd6-dda2-4e63-b532-f727ca45356d Removed 1 already present revisions
INFO) SYNC (Replication): [22] 2017-5-19 10:26:21.209-07:00 Puller 37c4bbd6-dda2-4e63-b532-f727ca45356d checkpointing sequence=192746
Push: Active, Pull: Idle
Sync: Pull Progress: 1/1;
(1.00)
Push: Active, Pull: Idle
Sync: Pull Progress: 0/0;
(0.00)
INFO) SYNC (RemoteSession): [20] 2017-5-19 10:26:21.301-07:00 [Couchbase Sync Gateway: Version=1.4.0]: Server Version: [Couchbase Sync Gateway: Version=1.4.0]
Push: Idle, Pull: Idle
Sync: Push Progress: 0/0;
(0.00)
INFO) SYNC (Replication): [22] 2017-5-19 10:26:21.302-07:00 Pusher 8fbee973-a846-4db6-9319-7a193d2b43fa checkpointing sequence=192770
Push: Idle, Pull: Idle
Sync: Push Progress: 0/0;
(0.00)
INFO) SYNC (RemoteSession): [22] 2017-5-19 10:26:22.084-07:00 [Couchbase Sync Gateway: Version=1.4.0]: Server Version: [Couchbase Sync Gateway: Version=1.4.0]
INFO) SYNC (Replication): [23] 2017-5-19 10:26:22.095-07:00 Pusher 8fbee973-a846-4db6-9319-7a193d2b43fa saved remote checkpoint '192770' (_rev=0-9)
INFO) SYNC (RemoteSession): [13] 2017-5-19 10:26:22.317-07:00 [Couchbase Sync Gateway: Version=1.4.0]: Server Version: [Couchbase Sync Gateway: Version=1.4.0]
INFO) SYNC (Replication): [23] 2017-5-19 10:26:22.340-07:00 Puller 37c4bbd6-dda2-4e63-b532-f727ca45356d saved remote checkpoint '192746' (_rev=0-1479

#2

Do you mean “can not see the data”?


#3

From this line it looks like the push replicator sent a revision, although it doesn’t say what document:

INFO) SYNC (Pusher): [22] 2017-5-19 10:26:20.557-07:00 Pusher 8fbee973-a846-4db6-9319-7a193d2b43fa sending 1 revisions

You can probably enable more verbose logging to find out what revision got sent; but I don’t know what platform of CBL you’re using, and I’m only deeply familiar with iOS/Mac, so I don’t know exactly how to change the logging.

Also, how are you looking for the document on the server?


#4

@jens I sent this person here to ask a specific question about server data and they ended up just copying and pasting from the GH ticket. This is .NET