I have finally fixed my issue, after install in my emulator a program to 
see the logs of the device, I noticed that this error was appearing every 
time the replication was done:

03-31 10:39:32.112 E/CBLite  (3968): Database: Invalid top-level key '_class' 
in document to be inserted
03-31 10:39:32.112 I/CBLite  (3968): CBLManagerWorkExecutor CANCEL transaction 
(level 2)
03-31 10:39:32.112 W/Sync    (3968): 
com.couchbase.lite.replicator.PullerInternal@5cbee10: failed to write 
{Document-t_c-in-en #1-054356dc8a11d1fec32cff12df3d1688}: status=400
03-31 10:39:32.112 E/Sync    (3968): 
com.couchbase.lite.replicator.PullerInternal@5cbee10: Progress: set error = 
org.apache.http.client.HttpResponseException

So it seems that the documents that have that attributes aren't replicated 
to CBLite. This '_class' attribute is added by the spring-data-couchbase 
library when saving some documents to the shadowed bucket in Couchbase 
Server, so I had to avoid saving the documents with that library and use 
the methods in the CocuhbaseClient instead. I don't know if this behaviour 
is correct but I think that the replication shouldn't fail if an attribute 
like that is saved to the document.

I think I will file an issue in github

Best regards.

El lunes, 30 de marzo de 2015, 12:02:59 (UTC+2), Jaime Lopez Carratala 
escribió:
>
> Does anybody have any clue why I am getting this strange behaviour?
>
> Also how can I enable the logging using the Phonegapp CBLite plugin?
>
> Thanks and best regards.
> Jaime
>
> El viernes, 27 de marzo de 2015, 11:55:02 (UTC+1), Jaime Lopez Carratala 
> escribió:
>>
>> About versions, I am using Couchbase server 3.0.1, sync gateway 1.0.3 (I 
>> am about to install the 1.0.4 to see if it gets better) and 1.0.3 of the 
>> Phonegap plugin for CBLite.
>>
>> And also sometimes I get this error when I start the gateway:
>>
>> 11:50:22.092581 WARNING: Error from Incr in _reserveSequences(1): 
>> MCResponse status=DELTA_BADVAL, opcode=INCREMENT, opaque=0, msg: 
>> Non-numeric server-side value for incr or decr -- 
>> db.(*sequenceAllocator)._reserveSequences() at sequence_allocator.go:59
>> 11:50:22.093581 FATAL: Error opening database: Couldn't create user 
>> "GUEST": MCResponse status=DELTA_BADVAL, opcode=INCREMENT, opaque=0, msg: 
>> Non-numeric server-side value for incr or decr -- rest.RunServer() at 
>> config.go:415
>>
>> But usually after the 2nd or third try it works, I don't know if it is 
>> related.
>>
>> Best regards.
>> Jaime
>>
>> El viernes, 27 de marzo de 2015, 9:13:00 (UTC+1), Jaime Lopez Carratala 
>> escribió:
>>>
>>> Hi Jens,
>>>
>>> I use the Phonegap Couchbase Lite plugin:
>>> https://github.com/couchbaselabs/Couchbase-Lite-PhoneGap-Plugin
>>>
>>> And the problems I have them with Android (in both device and emulator), 
>>> I haven't tested it on iOS yet.
>>>
>>> Thanks for the fast reply.
>>>
>>> Best regards.
>>> Jaime
>>>
>>> El jueves, 26 de marzo de 2015, 22:14:40 (UTC+1), Jens Alfke escribió:
>>>>
>>>> Jaime— 
>>>>
>>>> You need to specify which implementation of Couchbase Lite (iOS? Java? 
>>>> .NET?) you’re using. 
>>>>
>>>> Also turning on logging on the client side would be the best way to 
>>>> track the progress of replication. (The details of doing that differ by 
>>>> platform, that’s one reason we need to know what you’re using.) 
>>>>
>>>> —Jens
>>>
>>>

-- 
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/3a8b79ad-82ad-4858-8755-ec504b1cfcdb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to