Discussion:
Mac OS X: Sync Gateway remote monitor
p***@decurtis.com
2018-05-21 18:12:08 UTC
Permalink
For an iOS project that is having multiple sync replication to different
buckets, is it possible to create a mac os x service that monitors all sync
gateway replications being used in the iOS project. The Couchbase server is
on a remote machine. By having a mac os x service/process/daemon we can
monitor all sync gateway replication and can log errors through CBLManager
class's logging methods.
Is it possible to create such mac os x service/process/deaemon?

If we opt for mac os x command line tool such that it will take
sync-gateway url and its credentials as input and start monitoring for
replication, is it possible?

Note: The purpose of this monitor is to be able to see the sync gateway
status at any point without running the respective iOS application and
checking through logs.

Thanks
--
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 mobile-couchbase+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/f40d07ec-4fbb-404a-9c32-c15327a8c3d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Traun Leyden
2018-05-21 22:05:43 UTC
Permalink
Sync Gateway has a REST API
<https://developer.couchbase.com/documentation/mobile/current/references/sync-gateway/rest-api/index.html>,
and so if your CLI application has the same Sync Gateway credentials as the
iOS app, it can detect when new changes appear on Sync Gateway, which would
tell you when you need to open the iOS app to pull new information.
Post by p***@decurtis.com
For an iOS project that is having multiple sync replication to different
buckets, is it possible to create a mac os x service that monitors all sync
gateway replications being used in the iOS project. The Couchbase server is
on a remote machine. By having a mac os x service/process/daemon we can
monitor all sync gateway replication and can log errors through CBLManager
class's logging methods.
Is it possible to create such mac os x service/process/deaemon?
If we opt for mac os x command line tool such that it will take
sync-gateway url and its credentials as input and start monitoring for
replication, is it possible?
Note: The purpose of this monitor is to be able to see the sync gateway
status at any point without running the respective iOS application and
checking through logs.
Thanks
--
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 mobile-couchbase+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/3be2e60f-c2d5-4274-b2a3-b35c7b6289a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
p***@decurtis.com
2018-05-22 05:48:47 UTC
Permalink
Thanks for the reply.
Basically I am not interested in changes but instead want to monitor sync
gateway replication for errors. Keeping in mind, checking for errors is the
motive to create this monitor.
Post by Traun Leyden
Sync Gateway has a REST API
<https://developer.couchbase.com/documentation/mobile/current/references/sync-gateway/rest-api/index.html>,
and so if your CLI application has the same Sync Gateway credentials as the
iOS app, it can detect when new changes appear on Sync Gateway, which would
tell you when you need to open the iOS app to pull new information.
Post by p***@decurtis.com
For an iOS project that is having multiple sync replication to different
buckets, is it possible to create a mac os x service that monitors all sync
gateway replications being used in the iOS project. The Couchbase server is
on a remote machine. By having a mac os x service/process/daemon we can
monitor all sync gateway replication and can log errors through CBLManager
class's logging methods.
Is it possible to create such mac os x service/process/deaemon?
If we opt for mac os x command line tool such that it will take
sync-gateway url and its credentials as input and start monitoring for
replication, is it possible?
Note: The purpose of this monitor is to be able to see the sync gateway
status at any point without running the respective iOS application and
checking through logs.
Thanks
--
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 mobile-couchbase+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/ba03e484-1b8c-432a-899f-e6ac3f121160%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Traun Leyden
2018-05-22 17:14:55 UTC
Permalink
In the Couchbase Lite SDK there is a callback function you can register
that will be invoked on replication errors. Will that work for your use
case?
Post by p***@decurtis.com
Thanks for the reply.
Basically I am not interested in changes but instead want to monitor sync
gateway replication for errors. Keeping in mind, checking for errors is the
motive to create this monitor.
Post by Traun Leyden
Sync Gateway has a REST API
<https://developer.couchbase.com/documentation/mobile/current/references/sync-gateway/rest-api/index.html>,
and so if your CLI application has the same Sync Gateway credentials as the
iOS app, it can detect when new changes appear on Sync Gateway, which would
tell you when you need to open the iOS app to pull new information.
Post by p***@decurtis.com
For an iOS project that is having multiple sync replication to different
buckets, is it possible to create a mac os x service that monitors all sync
gateway replications being used in the iOS project. The Couchbase server is
on a remote machine. By having a mac os x service/process/daemon we can
monitor all sync gateway replication and can log errors through CBLManager
class's logging methods.
Is it possible to create such mac os x service/process/deaemon?
If we opt for mac os x command line tool such that it will take
sync-gateway url and its credentials as input and start monitoring for
replication, is it possible?
Note: The purpose of this monitor is to be able to see the sync gateway
status at any point without running the respective iOS application and
checking through logs.
Thanks
--
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
To view this discussion on the web visit https://groups.google.com/d/
msgid/mobile-couchbase/ba03e484-1b8c-432a-899f-
e6ac3f121160%40googlegroups.com
<https://groups.google.com/d/msgid/mobile-couchbase/ba03e484-1b8c-432a-899f-e6ac3f121160%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 mobile-couchbase+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/CACSSHCErXdAo4u9h0H1Ga5SNYo-%3Ddp8AHRVZBDLLjcQhCoYfnw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Parvez Qureshi
2018-05-22 18:02:09 UTC
Permalink
Replication change progress notification not always fire even when their are errors in sync replication.




From: mobile-***@googlegroups.com <mobile-***@googlegroups.com> on behalf of Traun Leyden <***@gmail.com>
Sent: Tuesday, May 22, 2018 5:14:55 PM
To: mobile-***@googlegroups.com
Subject: Re: Mac OS X: Sync Gateway remote monitor

In the Couchbase Lite SDK there is a callback function you can register that will be invoked on replication errors. Will that work for your use case?

On Mon, May 21, 2018 at 10:48 PM, <***@decurtis.com<mailto:***@decurtis.com>> wrote:
Thanks for the reply.
Basically I am not interested in changes but instead want to monitor sync gateway replication for errors. Keeping in mind, checking for errors is the motive to create this monitor.

On Tuesday, May 22, 2018 at 3:35:43 AM UTC+5:30, Traun Leyden wrote:

Sync Gateway has a REST API<https://developer.couchbase.com/documentation/mobile/current/references/sync-gateway/rest-api/index.html>, and so if your CLI application has the same Sync Gateway credentials as the iOS app, it can detect when new changes appear on Sync Gateway, which would tell you when you need to open the iOS app to pull new information.


On Monday, May 21, 2018 at 11:12:08 AM UTC-7, ***@decurtis.com wrote:
For an iOS project that is having multiple sync replication to different buckets, is it possible to create a mac os x service that monitors all sync gateway replications being used in the iOS project. The Couchbase server is on a remote machine. By having a mac os x service/process/daemon we can monitor all sync gateway replication and can log errors through CBLManager class's logging methods.
Is it possible to create such mac os x service/process/deaemon?

If we opt for mac os x command line tool such that it will take sync-gateway url and its credentials as input and start monitoring for replication, is it possible?

Note: The purpose of this monitor is to be able to see the sync gateway status at any point without running the respective iOS application and checking through logs.

Thanks
--
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 mobile-couchbase+***@googlegroups.com<mailto:mobile-couchbase+***@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/ba03e484-1b8c-432a-899f-e6ac3f121160%40googlegroups.com<https://groups.google.com/d/msgid/mobile-couchbase/ba03e484-1b8c-432a-899f-e6ac3f121160%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 a topic in the Google Groups "Couchbase Mobile" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobile-couchbase/8B0qVpBross/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobile-couchbase+***@googlegroups.com<mailto:mobile-couchbase+***@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/CACSSHCErXdAo4u9h0H1Ga5SNYo-%3Ddp8AHRVZBDLLjcQhCoYfnw%40mail.gmail.com<https://groups.google.com/d/msgid/mobile-couchbase/CACSSHCErXdAo4u9h0H1Ga5SNYo-%3Ddp8AHRVZBDLLjcQhCoYfnw%40mail.gmail.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 mobile-couchbase+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/CO2PR05MB247294D51FEE0851049BE4FBFB940%40CO2PR05MB2472.namprd05.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.
Loading...