Couchbase Server Community Edition 7.6.4 build 5146
Couchbase Sync Gateway/2.8.2(1;4df7a2d) CE
Trying to take database offline for resync, but it doesn’t return, seems to be stuck:
curl -kSsi -H “content-type: application/json” -H “accept: application/json” -X POST “https://localhost:4985/licensees/_offline”
Checking from another shell:
safedoorpm@sdpmwdeusd0:~$ curl -kSs “https://localhost:4985/licensees/” | jq ‘.’
{
"db_name": "licensees",
"update_seq": 372673,
"committed_update_seq": 372673,
"instance_start_time": 1759899276436420,
"compact_running": false,
"purge_seq": 0,
"disk_format_version": 0,
"state": "Stopping",
"server_uuid": "c5d5d896cc3219dffa7c762b2c0d7906"
}
I’ve let it sit for over an hour, no response.
I previsously managed to do _offline
followed by _resync
and _online
, and have even restarted Sync Gateway, Couchbase, and the entire server (Ubuntu) and it still does this.
Restarting SG doesn’t report any problems that I can see:
safedoorpm@sdpmwdeusd0:~$ sudo systemctl restart sync_gateway
safedoorpm@sdpmwdeusd0:~$ sudo systemctl status sync_gateway
● sync_gateway.service - Couchbase Sync Gateway server
Loaded: loaded (/lib/systemd/system/sync_gateway.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2025-10-10 19:40:56 UTC; 7s ago
Process: 483212 ExecStartPre=/bin/mkdir -p /home/sync_gateway/logs (code=exited, status=0/SUCCESS)
Process: 483220 ExecStartPre=/bin/chown -R sync_gateway:sync_gateway /home/sync_gateway/logs (code=exited, status=0/SUCCESS)
Process: 483225 ExecStartPre=/bin/mkdir -p /home/sync_gateway/data (code=exited, status=0/SUCCESS)
Process: 483226 ExecStartPre=/bin/chown -R sync_gateway:sync_gateway /home/sync_gateway/data (code=exited, status=0/SUCCESS)
Main PID: 483227 (sync_gateway)
Tasks: 15 (limit: 19081)
Memory: 49.9M
CGroup: /system.slice/sync_gateway.service
└─483227 /opt/couchbase-sync-gateway/bin/sync_gateway --defaultLogFilePath /home/sync_gateway/logs /home/sync_gateway/sync_gateway.json
Oct 10 19:41:01 sdpmwdeusd0 bash[483227]: 2025-10-10T19:41:01.105Z [DBG] Changes+: c:[560b4392] MultiChangesFeed sending {Seq:372672, ID:_user/kent.mcphee@safedoorpm.com, Changes:[]} (t>
Oct 10 19:41:01 sdpmwdeusd0 bash[483227]: 2025-10-10T19:41:01.105Z [DBG] Changes+: c:[560b4392] MultiChangesFeed waiting... (to kent.mcphee@safedoorpm.com)
Oct 10 19:41:01 sdpmwdeusd0 bash[483227]: 2025-10-10T19:41:01.105Z [DBG] Changes+: No new changes to send to change listener. Waiting for "bucket-licensees"'s count to pass 0
Oct 10 19:41:01 sdpmwdeusd0 bash[483227]: 2025-10-10T19:41:01.105Z [DBG] Sync+: c:[560b4392] Sending 1 changes
Oct 10 19:41:01 sdpmwdeusd0 bash[483227]: 2025-10-10T19:41:01.105Z [DBG] Sync+: c:[560b4392] Sending 0 changes
Oct 10 19:41:01 sdpmwdeusd0 bash[483227]: 2025-10-10T19:41:01.105Z [DBG] WS+: c:#002 Queued MSG#1~
Oct 10 19:41:01 sdpmwdeusd0 bash[483227]: 2025-10-10T19:41:01.105Z [DBG] WSFrame+: c:#002 Push MSG#1~
Oct 10 19:41:01 sdpmwdeusd0 bash[483227]: 2025-10-10T19:41:01.105Z [INF] Sync: c:[560b4392] Sent all changes to client
Oct 10 19:41:01 sdpmwdeusd0 bash[483227]: 2025-10-10T19:41:01.105Z [DBG] WSFrame+: c:#002 Sending frame: MSG#1~ (flags= 101000, size= 51)
Oct 10 19:41:03 sdpmwdeusd0 bash[483227]: 2025-10-10T19:41:03.657Z [INF] Replicate: Starting sg-replicate replications...
If I try _offline
again, it still hangs
I have another server with basically identical configuration and it doesn’t have this issue. Basically the same .json configuration file, except with different credentials and a slightly different sync function as one is our dev system, one is QA.
Could it be something specific about the data? Or maybe some subtle configuration difference? Where should I look?