Pulling from server but can not push to it using sync gateway


#1

Hi there, this is my first Topic, excuse me if i’m doing something wrong.

I have a server with couchbase and sync gateway installed, my web app and android app are working fine, i’m using replication between server and android app and works fine.

However, my desktop app is running locally, with its own instance of couchbase and sync gateway installed on windows, i’m trying to replicate data from the server using channels througth the config file serviceconfig.json of sync gateway.

i’m able to pull data from the server using the following config file:

{
“log”: [
“*”
],
“replications”: [
{
“source”: “http://myServerIP:4984/mybucket”,
“target”: “http://localhost:4984/local”,
“continuous”: true,
“filter”: “sync_gateway/bychannel”,
“query_params”: [
“00ef2a16-2de3-4764-9140-aa7e5a54509c”
]
}
],
“databases”: {
“local”: {
“server”: “http://localhost:8091”,
“bucket”: “mybucket”,
“users”: {
“GUEST”: {
“disabled”: false,
“admin_channels”: [
“00ef2a16-2de3-4764-9140-aa7e5a54509c”
]
}
},
“username”: “username”,
“password”: “password”,
“use_views”: true
}
}
}

that works fine, now i want to push data to the server adding this lines to the file like this:
{
“log”: [
“*”
],

"replications": [
  {
	"source": "http://myServerIP:4984/mybucket",
	"target": "http://localhost:4984/local",
	"continuous": true,
	"filter": "sync_gateway/bychannel",
	"query_params": [
	  "00ef2a16-2de3-4764-9140-aa7e5a54509c"
	]
  },
  {
	"source": "http://localhost:4984/mybucket",
	"target": "http://myServerIP/remote",
	"continuous": true,
	"filter": "sync_gateway/bychannel",
	"query_params": [
	  "00ef2a16-2de3-4764-9140-aa7e5a54509c"
	]
  }
],
"databases": {
  "local": {
	"server": "http://localhost:8091",
	"bucket": "mybucket",
	"users": {
	  "GUEST": {
		"disabled": false,
		"admin_channels": [
		  "00ef2a16-2de3-4764-9140-aa7e5a54509c"
		]
	  }
	},
	"username": "username",
	"password": "password",
	"use_views": true
  },
  "remote": {
	"server": "http://myServerIP:8091",
	"bucket": "mybucket",
	"users": {
	  "GUEST": {
		"disabled": false,
		"admin_channels": [
		  "00ef2a16-2de3-4764-9140-aa7e5a54509c"
		]
	  }
	},
	"import_docs":true,
	"username": "username",
	"password": "password",
	"use_views": true
  }
}

}
with that config file the result is this:

Loop() at util.go:338
2018-11-19T21:57:48.014-05:00 Debug: RetryLoop retrying Get _sync:seq after 5 ms.
2018-11-19T21:57:50.522-05:00 Debug: RetryLoop retrying Get _sync:seq after 10 ms.
2018-11-19T21:57:53.033-05:00 Debug: RetryLoop retrying Get _sync:seq after 20 ms.
2018-11-19T21:57:55.554-05:00 Debug: RetryLoop retrying Get _sync:seq after 40 ms.
2018-11-19T21:57:58.094-05:00 Debug: RetryLoop retrying Get _sync:seq after 80 ms.
2018-11-19T21:58:00.675-05:00 Debug: RetryLoop retrying Get _sync:seq after 160 ms.
2018-11-19T21:58:03.338-05:00 Debug: RetryLoop retrying Get _sync:seq after 320 ms.
2018-11-19T21:58:06.160-05:00 Debug: RetryLoop retrying Get _sync:seq after 640 ms.
2018-11-19T21:58:09.301-05:00 Debug: RetryLoop retrying Get _sync:seq after 1280 ms.
2018-11-19T21:58:13.082-05:00 Debug: RetryLoop retrying Get _sync:seq after 2560 ms.
2018-11-19T21:58:18.144-05:00 WARNING: RetryLoop for Get _sync:seq giving up after 11 attempts – base.RetryLoop() at util.go:338
2018-11-19T21:58:18.144-05:00 Cache: Initializing changes cache with options {ChannelCacheOptions:{ChannelCacheMinLength:0 ChannelCacheMaxLength:0 ChannelCacheAge:0s} CachePendingSeqMaxWait:5s CachePendingSeqMaxNum:10000 CacheSkippedSeqMaxWait:1h0m0s}
2018-11-19T21:58:18.148-05:00 Initializing changes cache for database remote with sequence: 0
2018-11-19T21:58:18.149-05:00 Feed: Starting mutation feed on bucket mybucket due to either channel cache mode
or doc tracking (auto-import/bucketshadow)
2018-11-19T21:58:18.150-05:00 Feed: Using DCP feed for bucket: "mybucket " (based on feed_type specified in config file)
2018-11-19T21:58:20.653-05:00 FATAL: Error opening database remote: Error retrieving stats-vbseqno - DCP not supported – rest.RunServer() at config.go:781

can you help me please?

thanks a lot.