I am running a continuous push replicator on iOS using Couchbase Lite 2.5.2:
Couchbase Server: Community Edition 6.0.0 build 1693
Couchbase Gateway: Couchbase Sync Gateway/2.5.0(271;bf3ddf6) CE
After pushing some documents, after a short time it gives me:
2019-07-09 00:49:31.714373+0100 App.iOS[21336:648888] [69]| WARNING) [Network] {C4SocketImpl#1}==> litecore::repl::C4SocketImpl wss://sync.server.com:443/app/_blipsync @0x7f7e57e822e0
Then I get:
2019-07-09 00:49:31.730066+0100 App.iOS[21336:648888] [69]| WARNING) [Network] {C4SocketImpl#1} Unexpected or unclean socket disconnect! (reason=errno, code=54)
Then some of this:
2019-07-09 00:49:31.740771+0100 App.iOS[21336:648803] [70]| ERROR) [Replicator] {Repl#2}==> litecore::repl::Replicator /Users/user/Library/Developer/CoreSimulator/Devices/AC3CC977-6FC7-40B6-B7F1-68F2E3A1F1D5/data/Containers/Data/Application/5E2403AD-FDDC-45C7-BE68-B17A22440CF4/Documents/app_30bf0d3d47f146d4ad9ca2a67505dd08.cblite2/ ->wss://sync.server.com:443/app/_blipsync @0x7f7e57e8b1b8
And finally this, after which it’ll not function properly anymore:
2019-07-09 00:49:31.752448+0100 App.iOS[21336:648803] [70]| ERROR) [Replicator] {Repl#2} Got LiteCore error: POSIX error 54 “CouchbaseLiteException (POSIXDomain / 54): Connection reset by peer.”
I have mostly been using single shot replication and that doesn’t give me these errors, even on longer syncs. The logs on the server don’t show any errors or abnormalities.
Anyone got any ideas?