Skip to content

Commit 848502f

Browse files
authored
DOC-12829: Publish Couchbase Server 7.6.4 Docs
Merge pull request #3753 from couchbase/prerelease/7.6.4 Rebase and merge not available due to merge conflicts.
2 parents 134275d + 4e98994 commit 848502f

File tree

19 files changed

+767
-29
lines changed

19 files changed

+767
-29
lines changed

modules/ROOT/nav.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,10 @@ include::cli:partial$cbcli/nav.adoc[]
313313
** xref:cli:cbtools/cbtransfer.adoc[cbtransfer]
314314
** xref:cli:cbtools/cbworkloadgen.adoc[cbworkloadgen]
315315
** xref:cli:couchbase-server.adoc[couchbase-server]
316+
** xref:cli:finderr.adoc[finderr]
316317
** xref:cli:mctimings.adoc[mctimings]
317318
** xref:cli:mcstat.adoc[mcstat]
319+
** xref:cli:mctestauth.adoc[mctestauth]
318320
* xref:rest-api:rest-intro.adoc[REST API Reference]
319321
320322
** xref:rest-api:rest-cluster-intro.adoc[Nodes and Clusters API]
@@ -507,7 +509,7 @@ include::cli:partial$cbcli/nav.adoc[]
507509
*** xref:rest-api:rest-fts-query.adoc[Active Queries]
508510
*** xref:rest-api:rest-fts-partition-file-transfer.adoc[Rebalance Based on File Transfer]
509511
510-
** xref:eventing:eventing-api.adoc[Eventing Service API]
512+
** xref:eventing-rest-api:index.adoc[Eventing Service API]
511513
512514
** xref:analytics:rest-analytics.adoc[Analytics Service API]
513515
*** xref:analytics-rest-service:index.adoc[Analytics Service REST API]

modules/cli/pages/cli-intro.adoc

Lines changed: 63 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
= CLI Reference
22
:description: The command-line interface (CLI) tools let you manage and monitor your Couchbase Server installation including clusters, servers, vBuckets, and XDCR.
3-
:tools-ver: 7.6.2
3+
:tools-ver: 7.6.4
44

55
[abstract]
66
{description}
@@ -39,46 +39,97 @@ You can collect diagnostics through the command-line interface by using the xref
3939
[#server-tools-packages]
4040
== Server Tools Packages
4141

42-
For convenience, Couchbase provides a tools package that contains the following utilities:
42+
For convenience, Couchbase provides the Server developer tools package and the Server admin tools package.
43+
44+
=== Server Developer Tools Package
45+
46+
The Server developer tools package lets you install the following EE Server utilities on the systems where you have not installed Couchbase Server:
4347

4448
* xref:tools:cbimport.adoc[`cbimport`]
4549
* xref:tools:cbexport.adoc[`cbexport`]
4650
* xref:cli:cbq-tool.adoc[`cbq`]
4751
* xref:backup-restore:cbbackupmgr.adoc[`cbbackupmgr`]
4852

49-
This package lets you install these tools on systems where you have not installed Couchbase Server.
5053

5154
Download the command line tools package for your platform from the following links:
5255

53-
* Linux: https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-tools_{tools-ver}-linux_x86_64.tar.gz[]
54-
* Linux aarch64: https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-tools_{tools-ver}-linux_aarch64.tar.gz[]
55-
* macOS: https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-tools_{tools-ver}-macos_x86_64.zip[]
56-
* macOS arm64: https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-tools_{tools-ver}-macos_arm64.zip[]
57-
* Windows: https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-tools_{tools-ver}-windows_amd64.zip[]
56+
* Linux: https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-dev-tools_{tools-ver}-linux_x86_64.tar.gz[]
57+
* Linux aarch64: https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-dev-tools_{tools-ver}-linux_aarch64.tar.gz[]
58+
* macOS: https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-dev-tools_{tools-ver}-macos_x86_64.zip[]
59+
* macOS arm64: https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-dev-tools_{tools-ver}-macos_arm64.zip[]
60+
* Windows: https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-dev-tools_{tools-ver}-windows_amd64.zip[]
5861

5962
Unzip or untar the packages, and the binaries are ready to run.
6063
For example:
6164

6265
[source,console,subs="attributes+"]
6366
----
64-
wget https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-tools_{tools-ver}-linux_x86_64.tar.gz
67+
wget https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-dev-tools_{tools-ver}-linux_x86_64.tar.gz
6568
66-
tar -xf couchbase-server-tools_{tools-ver}-linux_x86_64.tar.gz
69+
tar -xf couchbase-server-dev-tools_{tools-ver}-linux_x86_64.tar.gz
6770
----
6871

6972
Each package also contains a `README` file and a copy of the software license.
7073

7174
NOTE: On Windows, you must have a recent version of the Microsoft Visual {cpp} Redistributable runtime libraries installed.
7275
If you do not have these libraries installed, download them from https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170[Microsoft Visual {cpp} Redistributable latest supported downloads].
7376

77+
=== Server Admin Tools Package
78+
79+
The Server admin tools package lets you install the following Server utilities on the systems where you have not installed Couchbase Server:
80+
81+
* xref:backup-restore:cbbackupmgr.adoc[`cbbackupmgr`]
82+
* https://docs.couchbase.com/sdk-api/couchbase-c-client/md_doc_2cbc.html[`cbc`]
83+
* xref:tools:cbdatarecovery.adoc[`cbdatarecovery`]
84+
* xref:tools:cbexport.adoc[`cbexport`]
85+
* xref:tools:cbimport.adoc[`cbimport`]
86+
* xref:cli:cbq-tool.adoc[`cbq`]
87+
* xref:cli:cbstats-intro.adoc[`cbstats`]
88+
* xref:cli:cbcli/couchbase-cli.adoc[`couchbase-cli`]
89+
* xref:cli:mcstat.adoc[`mcstat`]
90+
* xref:cli:mctimings.adoc[`mctimings`]
91+
* xref:cli:mctestauth.adoc[`mctestauth`]
92+
93+
Download the command line tools package for your platform from the following links:
94+
95+
* Linux: https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-admin-tools_{tools-ver}-linux_x86_64.tar.gz[]
96+
* Linux aarch64: https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-admin-tools_{tools-ver}-linux_aarch64.tar.gz[]
97+
* macOS: https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-admin-tools_{tools-ver}-macos_x86_64.zip[]
98+
* macOS arm64: https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-admin-tools_{tools-ver}-macos_arm64.zip[]
99+
* Windows: https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-admin-tools_{tools-ver}-windows_amd64.zip[]
100+
101+
Unzip or untar the packages, and the binaries are ready to run.
102+
For example:
103+
104+
[source,console,subs="attributes+"]
105+
----
106+
wget https://packages.couchbase.com/releases/{tools-ver}/couchbase-server-admin-tools_{tools-ver}-linux_x86_64.tar.gz
107+
108+
tar -xf couchbase-server-admin-tools_{tools-ver}-linux_x86_64.tar.gz
109+
----
110+
111+
Each package also contains a `README` file and a copy of the software license.
112+
113+
NOTE: On Windows, you must have a recent version of the Microsoft Visual {cpp} Redistributable runtime libraries installed.
114+
If you do not have these libraries installed, download them from https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist[Microsoft Visual {cpp} Redistributable latest supported downloads].
115+
116+
74117
[#version-compatibility]
75118
== Version Compatibility
76119

77120
The versions of the utilities installed by the tools package are the same as the corresponding Couchbase Server installation package.
78121

79-
The {tools-ver} `cbimport`, `cbexport`, `cbbackupmgr`, and `cbq` utilities are compatible with the following Couchbase Server versions:
122+
For Server developer tools package, the {tools-ver} version of `cbimport`, `cbexport`, `cbbackupmgr`, and `cbq` utilities are compatible with the following Couchbase Server versions:
80123

81-
* 7.6.0, 7.6.1
124+
* 7.6.0, 7.6.1, 7.6.2, 7.6.3
82125
* 7.2.x
83126
* 7.1.x
84127
* 7.0.x
128+
129+
You can download and use the latest version of the utilities (`cbimport`, `cbexport`, `cbbackupmgr`, and `cbq`) with earlier Couchbase Server versions.
130+
131+
For Server admin tools package, do the following:
132+
133+
* Use the `--version` option to get the version of the utility. However, for the `cbc` utility, use the `cbc version` option.
134+
* `couchbase-cli` is a utility for administering the Couchbase cluster. Make sure that the versions of `couchbase-cli` and the Couchbase cluster match.
135+
* For all utilities, a feature that exists in a latest Server version only is not supported by an earlier version utility.

modules/cli/pages/finderr.adoc

Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
= finderr
2+
:description: pass:q[The [.cmd]`finderr` tool returns the full details of any Query service or cbq shell error.]
3+
:page-status: Couchbase Server 7.6.4
4+
:page-topic-type: reference
5+
6+
[abstract]
7+
{description}
8+
9+
== Syntax
10+
11+
The basic syntax is:
12+
13+
----
14+
finderr <number|string|regex>
15+
----
16+
17+
== Description
18+
19+
ifeval::['{page-component-version}' == '7.6']
20+
This tool is only available in Couchbase Server 7.6.4 and later.
21+
endif::[]
22+
23+
Depending upon your platform, this tool is at the following locations:
24+
25+
[cols="1,3"]
26+
|===
27+
| Operating system | Location
28+
29+
| Linux
30+
| [.path]`/opt/couchbase/bin/`
31+
32+
| Windows
33+
| [.path]`C:\Program Files\Couchbase\Server\bin\`
34+
35+
| Mac OS X
36+
| [.path]`/Applications/CouchbaseServer.app/Contents/Resources/couchbase-core/bin/`
37+
|===
38+
39+
== Options
40+
41+
The tool takes a single argument, which must be one of the following:
42+
43+
number::
44+
A number representing an error code.
45+
In this case, the tool returns the full details of the error matching the error code.
46+
47+
string::
48+
A string.
49+
In this case, the tool searches for the target string in all of the error message fields except for `USER ERROR`, and returns the full details of any errors that match the string.
50+
51+
regex::
52+
A regular expression.
53+
In this case, the tool searches for the regular expression in all of the error message fields except for `USER ERROR`, and returns the full details of any errors that match the pattern.
54+
55+
== Output
56+
57+
If the tool finds a single error that matches the find argument, it outputs the full details of the error.
58+
59+
If the tool finds multiple errors that match the find argument, it outputs a list showing the code and description of each matching error.
60+
You can use the tool again, passing the code or description as an argument, to get the full details of any of these errors.
61+
62+
Full error details include some or all of the following fields.
63+
64+
[options="header", cols="50a,147a"]
65+
|===
66+
|Name|Description
67+
68+
|**APPLIES TO**
69+
|One of the following:
70+
71+
* `cbq-shell`: The error applies to the cbq shell.
72+
* `Server`: The error applies to the server.
73+
74+
|**CODE**
75+
|A number representing the error.
76+
77+
|**DESCRIPTION**
78+
|Message describing why the error occurred.
79+
80+
|**REASON**
81+
|List of possible causes of the error.
82+
83+
|**USER ACTION**
84+
|List of possible steps a user can take to mitigate the error.
85+
86+
|**USER ERROR**
87+
|One of the following:
88+
89+
* `Yes`: The error was caused by the user.
90+
* `No`: The error was caused by other services, or was internal to the server.
91+
* `Maybe`: A combination of both.
92+
|===
93+
94+
NOTE: The error details also include a `SYMBOL` field, which contains a representation string for the error.
95+
This field is for internal use only, and is not shown in the output.
96+
However, the tool does search this field when the find argument is a string or a regular expression.
97+
98+
== Examples
99+
100+
[[finderr-ex1]]
101+
.Find error details by code number
102+
====
103+
.Command
104+
[source,sh]
105+
----
106+
./finderr 5011
107+
----
108+
109+
.Output
110+
----
111+
CODE
112+
5011 (error)
113+
114+
115+
DESCRIPTION
116+
Abort: «reason»
117+
118+
119+
REASON
120+
The SQL++ abort() function was called in the statement.
121+
e.g. SELECT abort('An example cause')
122+
123+
124+
USER ERROR
125+
Yes
126+
127+
128+
APPLIES TO
129+
Server
130+
----
131+
====
132+
133+
[[finderr-ex2]]
134+
.Find error details by matching a string
135+
====
136+
.Command
137+
[source,sh]
138+
----
139+
./finderr "A semantic error is present in the statement."
140+
----
141+
142+
.Output
143+
----
144+
CODE
145+
3100 (error)
146+
147+
148+
DESCRIPTION
149+
A semantic error is present in the statement.
150+
151+
152+
REASON
153+
The statement includes portions that violate semantic constraints.
154+
155+
156+
USER ACTION
157+
The cause will contain more detail on the violation; revise the statement and re-submit.
158+
159+
160+
USER ERROR
161+
Yes
162+
163+
164+
APPLIES TO
165+
Server
166+
----
167+
====
168+
169+
[[finderr-ex3]]
170+
.Find multiple errors by matching a string
171+
====
172+
.Command
173+
[source,sh]
174+
----
175+
./finderr "semantic"
176+
----
177+
178+
.Output
179+
----
180+
Matching errors
181+
3100 A semantic error is present in the statement.
182+
3220 «name» window function «clause» «reason»
183+
3300 recursive_with semantics: «cause»
184+
----
185+
====
186+
187+
[[finderr-ex4]]
188+
.Find multiple errors by matching a regular expression
189+
====
190+
.Command
191+
[source,sh]
192+
----
193+
./finderr "[UI][NP]SERT"
194+
----
195+
196+
.Output
197+
----
198+
Matching errors
199+
3150 MERGE with ON KEY clause cannot have document key specification in INSERT action.
200+
3160 MERGE with ON clause must have document key specification in INSERT action
201+
3180 MERGE with ON KEY clause cannot have USE INDEX hint specified on target.
202+
5006 Out of key validation space.
203+
5050 No INSERT key for «document»
204+
5060 No INSERT value for «document»
205+
5070 Cannot INSERT non-string key «key» of type «type»
206+
5071 Cannot INSERT non-OBJECT options «options» of type «type»
207+
5072 No UPSERT key for «value»
208+
5073 Cannot act on the same key multiple times in an UPSERT statement
209+
5075 No UPSERT value for «value»
210+
5078 Cannot UPSERT non-string key «key» of type «type».
211+
5079 Cannot UPSERT non-OBJECT options «value» of type «type».
212+
5330 Multiple INSERT of the same document (document key «key») in a MERGE statement
213+
12036 Error in INSERT of key: «key»
214+
15005 No keys to insert «details»
215+
----
216+
====
217+
218+
== See Also
219+
220+
* The {sqlpp} xref:n1ql:n1ql-language-reference/metafun.adoc#finderr[FINDERR()] function
221+
* xref:n1ql:n1ql-language-reference/n1ql-error-codes.adoc[]

0 commit comments

Comments
 (0)