I am trying to run a resync on my production server but it keeps failing after about an hour by just sending back an empty response to the curl POST _resync request I made. I am using Couchbase Server Enterprise 3.0.2, sync gateway enterprise 1.0.3. I have run resyncs successfully before, and I was able to run the resync on our development database (which is sync gateway 1.1.0) successfully with the same sync gateway config document (only difference is server name in databases config section). The sync-gateway log does not show any error message, but I originally only had HTTP and Access log flags enabled so that the log file would not get too large to open with a text editor. Which flags should I enable to be able to see an error message, or would it log an error with a resync somewhere else? Sync gateway itself runs fine throughout the entire process and is still running normally after the failure.
I am re-running it now and I can see that it is not using an excessive amount of CPU or RAM while running the resync, but that memory usage is steadily increasing. It started at about 14% of RAM and now it is up to 27% of RAM after running for about 15 minutes. The database being resynced has about 2 million documents in it.