couchbaselabs / couchbaselabs/couchbase-mobile-tools
Collection property not specified and default collection is not configured
- Dominant language
- C++
- Stars
- 44
- Forks
- 60
- Avg merge
- 22h 7m
- Merged PRs (30d)
- 4
Description
Hey,
I try to use the cblite tool to replicate a database. The database has several collections within the _default scope.
I use the following command to pull the remote database: `./cblite openremote --token "sometoken" --collection _default.collectionname1 wss://example.com:4984/dbname/`
With this I get the error:
```
2025-02-05T19:32:31.004610 Sync ERROR Obj=/cblite_cli/C4RemoteRepl#4/Repl#5/ CorrID=6e1f5d0f Got error response: HTTP 400 'Collection property not specified and default collection is not configured for this database'
2025-02-05T19:32:31.004876 Sync ERROR Obj=/cblite_cli/C4RemoteRepl#4/Repl#5/ CorrID=6e1f5d0f Stopping due to fatal error: WebSocket error 400, "Collection property not specified and default collection is not configured for this database"
2025-02-05T19:32:31.026586 Sync ERROR Obj=/cblite_cli/C4RemoteRepl#4/Repl#5/Puller#10/ Coll=0 Got error response: HTTP 400 'Collection property not specified and default collection is not configured for this database'
2025-02-05T19:32:31.026736 Sync ERROR Obj=/cblite_cli/C4RemoteRepl#4/Repl#5/ CorrID=6e1f5d0f Stopping due to fatal error: WebSocket error 400, "Collection property not specified and default collection is not configured for this database"
2025-02-05T19:32:31.050952 Sync ERROR Obj=/cblite_cli/C4RemoteRepl#4/Repl#5/ CorrID=6e1f5d0f Got LiteCore error: WebSocket error 4002, "Unrecognized collection"
Error replicating: Collection property not specified and default collection is not configured for this database (/400)
```
What am I doing wrong?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the cblite openremote command and reproduce the reported invocation against a database containing multiple collections in the _default scope. Trace why --collection _default.collectionname1 produces the missing-default-collection and unrecognized-collection errors; done means identifying the cause and documenting or correcting the expected collection syntax or behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100