You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 73d22d8
Browse filesBrowse the repository at this point in the historyBrowse files
Document brownfield adoption and safe no-systemd detach behavior, move unattended details out of the quick start, and avoid inferring package version suffixes.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ed25bd3e-4cfc-4ee1-b8ee-7733474cc141
Signed-off-by: Guanzhou Song <guanzhousong@microsoft.com>
Copy file name to clipboardExpand all lines: app/services/articleService.ts
+79-17Lines changed: 79 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -161,7 +161,7 @@ If something does not work as expected:
161
161
- [Package Finder](/packages)
162
162
`;
163
163
164
-
constlinuxPackagesGuideContent=`# Linux Packages Quick Start
164
+
exportconstlinuxPackagesGuideContent=`# Linux Packages Quick Start
165
165
166
166
Install DocumentDB from the published package repository and get a MongoDB-compatible endpoint on your own host.
167
167
@@ -241,14 +241,7 @@ ${buildSetupCommand('18')}
241
241
242
242
It creates a new private PostgreSQL 18 instance, installs the extensions, starts the gateway, and enables it at boot. It **prompts for the admin password**. The explicit major and fresh-instance flags keep another installed PostgreSQL major or an existing system cluster from being selected accidentally.
243
243
244
-
In a non-interactive shell, the command exits unless you provide a password source:
To adopt an existing PostgreSQL instance instead, follow [Operating a package install](/docs/linux-packages); brownfield setup intentionally has different lifecycle and restart requirements.
244
+
For automation, use the complete [unattended setup](/docs/linux-packages#unattended-setup) command. To adopt an existing PostgreSQL instance instead, follow [Adopt an existing PostgreSQL instance](/docs/linux-packages#adopt-an-existing-postgre-sql-instance); brownfield setup intentionally has different lifecycle and restart requirements.
252
245
253
246
Now open a shell against the endpoint:
254
247
@@ -287,7 +280,7 @@ A database and collection are created on first write:
287
280
More failure modes, including hosts without systemd: [Operating a package install](/docs/linux-packages#troubleshooting).
288
281
`;
289
282
290
-
constlinuxPackagesOperationsContent=`# Operating a package install
283
+
exportconstlinuxPackagesOperationsContent=`# Operating a package install
291
284
292
285
Day-2 operations for a DocumentDB installed from Linux packages: securing the endpoint, managing services, running SQL, upgrading, and removal. Install first with the [Linux Packages Quick Start](/docs/getting-started/packages).
@@ -429,9 +482,8 @@ Do not run \`documentdb-local-reset\` for brownfield installations: the PostgreS
429
482
its data belong to the operator. Do not run restore before a greenfield reset either; restore
430
483
deletes the state that identifies custom data directories and protects adopted clusters.
431
484
432
-
Confirm the stack is down with \`ss -lnt | grep 10260\`. On a multi-major host remove one major
433
-
at a time and re-check the survivor: \`documentdb-common\` owns the shared tooling and only
434
-
\`documentdb-N\` holds it.
485
+
On a systemd multi-major host, remove one major at a time and re-check the survivor:
486
+
\`documentdb-common\` owns the shared tooling and only \`documentdb-N\` holds it.
435
487
436
488
## Known issues in 0.116
437
489
@@ -442,7 +494,7 @@ These are defects in this release, not expected behaviour. Most need a host with
442
494
| Status | \`documentdb-setup --status\` can report "active" for any process holding port 10260 | **any host** |
443
495
| Upgrade | \`documentdb-setup\` does not run \`ALTER EXTENSION documentdb_core UPDATE\`; run it yourself | **any host** |
444
496
| Restart | Re-running \`documentdb-setup\` to restart can hang; redirecting output to a file avoids it | no systemd |
445
-
| Stop | \`documentdb-setup --restore --pg-version N\` reports success without stopping the gateway — use an unscoped \`--restore\`, which stops every major on the host | no systemd |
497
+
| Stop | A scoped \`documentdb-setup --restore --pg-version N\` cannot stop a nohup gateway; follow the no-systemd brownfield removal steps above | no systemd |
446
498
| Minimal RHEL | Install \`procps-ng\` first, or \`--restore\` reports success while the gateway keeps serving and a later run fails with \`Port 10260 is already in use\` | no systemd |
447
499
448
500
**Prefer a systemd host for anything you care about**, where the service lifecycle is managed by systemd rather than by the setup script.
@@ -474,7 +526,17 @@ Failure modes beyond the four in the [quick start](/docs/getting-started/package
474
526
475
527
## Unattended setup
476
528
477
-
\`documentdb-setup\` prompts for the admin password. For servers and CI, pass \`--admin-password-file <file>\` or \`--admin-password-stdin\` together with \`--yes\`.
529
+
\`documentdb-setup\` prompts for the admin password. For servers and CI, provide exactly one
530
+
password source and pass \`--yes\`. For a new private instance:
0 commit comments