Thanks for the quick answer J.Chris. I'm gonna take a look on that soon :)
Le vendredi 2 mai 2014 14:40:30 UTC+1, Bart Arribe a écrit :
>
> Hi,
>
> I tried to implement a device as a master and the other one as a "client"
> that would connect to the master.
>
> I give the IP address of the master device to the client. But now, I can
> only replicate from the master device to the client, impossible to make a
> POST request to the master device according to the logs :
> 05-02 14:10:50.611: V/Database(23718): ***
> com.couchbase.lite.replicator.Replication$1@42138898: BEGIN processInbox (1
> sequences)
> 05-02 14:10:50.611: V/Database(23718): ***
> com.couchbase.lite.replicator.Replication$1@42138898: END processInbox
> (lastSequence=null
> 05-02 14:10:50.861: I/Database(23718):
> com.couchbase.lite.replicator.Pusher$2@422074c8: Sending 1 revisions
> 05-02 14:10:50.861: V/Database(23718):
> com.couchbase.lite.replicator.Pusher$2@422074c8: Sending
> [{e8bb1d57-60b3-4cfd-b35a-812917c268e4
> #3-185f2150-5903-46ec-b388-ec2194de94ca}]
> 05-02 14:10:50.941: E/Database(23718): Got error 404
> 05-02 14:10:50.941: E/Database(23718): Request was for:
> org.apache.http.client.methods.HttpPost@42129288
> 05-02 14:10:50.941: E/Database(23718): Status reason: Not found
>
It seems the error comes from the master device, not finding any existing
revision ...
05-02 16:04:25.156: I/CBLSQL(4672): Acme.Utils.ThreadPool(5)-PooledThread:
Acme.Serve.Serve$ServeConnection@412c2618 Begin transaction (level 1)
05-02 16:04:25.156: I/CBLSQL(4672): Acme.Utils.ThreadPool(5)-PooledThread:
Acme.Serve.Serve$ServeConnection@412c2618 Begin transaction (level 2)
05-02 16:04:25.156: I/CBLSQL(4672): Acme.Utils.ThreadPool(5)-PooledThread:
Acme.Serve.Serve$ServeConnection@412c2618 CANCEL transaction (level 2)
05-02 16:04:25.164: W/System.err(4672):
com.couchbase.lite.CouchbaseLiteException: No existing revision found with
doc id: ece849e1-03fa-4ca3-bae6-2710bc2a2fe2
05-02 16:04:25.164: W/System.err(4672): at
com.couchbase.lite.Database.putRevision(Database.java:2981)
05-02 16:04:25.164: W/System.err(4672): at
com.couchbase.lite.Database.putRevision(Database.java:2916)
05-02 16:04:25.164: W/System.err(4672): at
com.couchbase.lite.router.Router.update(Router.java:1453)
05-02 16:04:25.164: W/System.err(4672): at
com.couchbase.lite.router.Router.do_POST_Document_bulk_docs(Router.java:904)
05-02 16:04:25.164: W/System.err(4672): at
java.lang.reflect.Method.invokeNative(Native Method)
05-02 16:04:25.172: W/System.err(4672): at
java.lang.reflect.Method.invoke(Method.java:511)
05-02 16:04:25.172: W/System.err(4672): at
com.couchbase.lite.router.Router.start(Router.java:443)
05-02 16:04:25.172: W/System.err(4672): at
com.couchbase.lite.listener.LiteServlet.service(LiteServlet.java:102)
05-02 16:04:25.172: W/System.err(4672): at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
05-02 16:04:25.172: W/System.err(4672): at
Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2251)
05-02 16:04:25.172: W/System.err(4672): at
Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2176)
05-02 16:04:25.172: W/System.err(4672): at
Acme.Serve.Serve$ServeConnection.run(Serve.java:1988)
05-02 16:04:25.180: W/System.err(4672): at
Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223)
05-02 16:04:25.180: W/System.err(4672): at
java.lang.Thread.run(Thread.java:856)
05-02 16:04:25.180: E/Database(4672):
com.couchbase.lite.CouchbaseLiteException: No existing revision found with
doc id: ece849e1-03fa-4ca3-bae6-2710bc2a2fe2
05-02 16:04:25.180: I/CBLSQL(4672): Acme.Utils.ThreadPool(5)-PooledThread:
Acme.Serve.Serve$ServeConnection@412c2618 CANCEL transaction (level 1)
>
> I don't have any idea about where comes from the problem and don't know
> where to look for. :s
> Please, let me know if you have any clues to solve this problem.
>
> Thanks
>
> Bart
>
>
> Le mercredi 23 avril 2014 11:15:46 UTC+1, Bart Arribe a écrit :
>>
>> Thank you for your quick answers. I am going to try the different plugins
>> you mentioned to me, JChris, in order to discover peers.
>>
>> For the ticket, I've just done it.
>>
>> Bart
>>
>>
>> Le mercredi 16 avril 2014 19:16:23 UTC+1, Traun Leyden a écrit :
>>>
>>> This looks like an Android issue, but it could be with your LAN --
>>>> sometimes reachability can be tricky. Jens is correct that the only IP
>>>> address that needs to be published is the hub in the hub and spoke
>>>> arrangement.
>>>>
>>>
>>>
>>> I agree, this does look like an CBL Android issue.
>>>
>>> I filed a ticket here:
>>>
>>> https://github.com/couchbase/couchbase-lite-java-core/issues/161
>>>
>>> @Bart can you mention which version of CBL you are using on the ticket?
>>>
>>>
--
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/15c1b5bf-3728-43f1-98c4-e67ea4957a5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.