Repository navigation
Commit c136455
Fix blockers found by a cold-start test of the published page (#160)
Two testers followed https://documentdb.io/docs/getting-started/packages/
verbatim in containers, with no prior knowledge of DocumentDB. The online
path worked first try on both distributions. The air-gapped path could not
be completed on either, and two smaller traps were found elsewhere.
Air-gapped, DEB: the staging block calls dpkg-scanpackages, which lives in
dpkg-dev and is not installed in ubuntu:24.04. The word dpkg-dev did not
appear on the page. This failed silently in the worst way: the shell
redirection still created a 0-byte Packages file, the && short-circuited
before gzip, apt-get update on the target then exited 0, and the install
failed an hour and 200 MB later with "E: Unable to locate package
documentdb-18". Install dpkg-dev first, mirroring the RPM block, which
already installs createrepo_c.
Air-gapped, RPM: dnf aborts the entire transaction when any enabled
repository is unreachable, and every RHEL-compatible image ships baseos,
appstream and extras enabled. The bundle was read successfully and the
install still failed with "Failed to download metadata for repo 'baseos'".
Add --disablerepo='*' --enablerepo=documentdb-offline and explain the
asymmetry with APT, which only warns and continues.
Both offline install commands lacked -y while the online ones have it, so
both aborted at the confirmation prompt in a container. Add it.
"Smaller offline cases" listed the preconditions for skipping the bundle
but omitted jq, which documentdb-common and documentdb-postgresql-tools
both depend on. On an air-gapped host jq cannot be resolved from anywhere,
so the case did not work as written.
Also state which part of the install block to run when staging (up to
apt update, not the final install), and note that what makes the bundle
work is the index inside it, not the package files.
Elsewhere: the blanket "in a container, drop sudo" advice breaks
"sudo -u documentdb-local psql", which switches user rather than elevates
-- dropping sudo there yields "bash: - : invalid option". And a bare -p
makes mongosh prompt, so a non-interactive shell sends an empty password
and fails with "MongoServerError: Invalid key"; that form was introduced
by my own earlier change and is now inline.
Finally, the non-systemd note promised that --restore stops the gateway.
That is true on Debian/Ubuntu and false on a minimal RHEL image, because
documentdb-setup finds the directly-started gateway with pgrep and
procps-ng is not installed there. Verified both ways: on ubuntu:24.04
--restore logged "Stopping orphan (non-systemd) gateway daemon (pid 7770)"
and the port went down; on rockylinux:9 it reported success while the
gateway kept serving authenticated traffic. Note the prerequisite.
That last one is a packaging bug rather than a documentation one --
documentdb-common declares neither procps-ng (RPM) nor procps (DEB) --
and is reported separately.
Signed-off-by: Guanzhou Song <guanzhou.song@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f18515db-c52f-4197-aa50-d81359c7c7631 parent db8b73e commit c136455
1 file changed
Lines changed: 16 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
236 | 239 | | |
237 | 240 | | |
238 | 241 | | |
| |||
310 | 313 | | |
311 | 314 | | |
312 | 315 | | |
313 | | - | |
| 316 | + | |
314 | 317 | | |
315 | 318 | | |
316 | 319 | | |
| 320 | + | |
317 | 321 | | |
318 | 322 | | |
319 | 323 | | |
| |||
337 | 341 | | |
338 | 342 | | |
339 | 343 | | |
340 | | - | |
| 344 | + | |
341 | 345 | | |
342 | 346 | | |
343 | 347 | | |
344 | | - | |
| 348 | + | |
345 | 349 | | |
346 | 350 | | |
347 | | - | |
| 351 | + | |
348 | 352 | | |
349 | 353 | | |
350 | 354 | | |
351 | 355 | | |
352 | 356 | | |
353 | 357 | | |
354 | 358 | | |
355 | | - | |
| 359 | + | |
356 | 360 | | |
357 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
358 | 365 | | |
359 | 366 | | |
360 | 367 | | |
361 | 368 | | |
362 | 369 | | |
363 | 370 | | |
364 | | - | |
| 371 | + | |
365 | 372 | | |
366 | 373 | | |
367 | 374 | | |
| |||
0 commit comments