I have a Problem bringing my database online after I added a collection to my config.
Couchbase Version: 7.2.4
Sync-Gateway Version: 3.1.6
Issue not resolved: Issue-CBG-3405
Config:
{
"bucket": "myBucket",
"import_docs": false,
"enable_shared_bucket_access": true,
"num_index_replicas": 0,
"revs_limit": 250,
"cache": {
"channel_cache": {
"max_wait_pending": 3000,
"max_num_pending": 500,
"max_wait_skipped": 300000,
"enable_star_channel": false,
"max_length": 250,
"min_length": 10,
"expiry_seconds": 300
},
"rev_cache": {
"size": 1000
}
},
"scopes": {
"_default": {
"collections": {
"_default": {
"sync": "function (doc, oldDoc) { if(doc._deleted) { return; } channel(doc.channels); }"
},
"myCollection": {
"sync": "function (doc, oldDoc) { if(doc._deleted) { return; } channel(doc.channels); }"
}
}
}
}
}
I tried the following steps by following the documentation via the Admin REST Api:
- Bring the database offline
- Update the config
- Resync and wait until it is completed
- Bring the database online
Request POST: myHost/myBucket/_resync?regenerate_sequences=true
Request body:
{
"scopes": {
"_default": ["_default"]
},
"regenerate_sequences": true
}
The resync works fine but I can´t bring the database online because the following error is displayed:
2024-06-04T07:20:47.200Z [ERR] Database has collections that require regenerate_sequences resync before it can go online: [_default._default] -- rest.(*ServerContext).TakeDbOnline() at server_context.go:1290
{
"db_name": "myBucket",
"instance_start_time": 1717485687050336,
"compact_running": false,
"purge_seq": 0,
"disk_format_version": 0,
"state": "Offline",
"server_uuid": "92ccab065000ea1d315d9e8521ec4035",
"require_resync": [
"_default._default"
]
}
Related Post: sync-gateway-database-cant-go-online/36313