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 1bafc6f
Browse filesBrowse the repository at this point in the historyBrowse files
Correct the no-systemd setup statements in the package guide
Tested with the 1.0.1 packages on a host without systemd: re-running
setup keeps a loopback bind, and a scoped restore stops only that
major's recorded gateway. The 1.0 packages also depend on procps, so
the minimal-RHEL known issue no longer applies.
Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
Copy file name to clipboardExpand all lines: app/services/articleService.ts
+9-11Lines changed: 9 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -336,7 +336,7 @@ The gateway binds **all interfaces** (\`0.0.0.0:10260\` and \`[::]:10260\`) by d
336
336
337
337
Before using this anywhere but a private machine:
338
338
339
-
- Restrict the listener with \`DOCUMENTDB_LISTEN_ADDR=127.0.0.1:10260\` in \`/etc/documentdb/local/<major>/gateway.env\` and restart the service, or firewall port \`10260\`. **Re-running \`documentdb-setup\` silently resets this to a wildcard bind**, so re-check with \`grep DOCUMENTDB_LISTEN_ADDR /etc/documentdb/local/<major>/gateway.env\` afterwards. A firewall rule is the more durable control.
339
+
- Restrict the listener with \`DOCUMENTDB_LISTEN_ADDR=127.0.0.1:10260\` in \`/etc/documentdb/local/<major>/gateway.env\` and restart the service, or firewall port \`10260\`. Re-running \`documentdb-setup\` keeps a loopback address written this way, and prints \`Keeping gateway bind address\` when it does.
340
340
- Use a strong admin password and create per-application users rather than sharing \`admin\`.
341
341
342
342
### Replace the self-signed certificate
@@ -544,19 +544,18 @@ On a systemd host, a scoped restore stops and disables that major's gateway:
544
544
sudo documentdb-setup --restore --pg-version 18
545
545
\`\`\`
546
546
547
-
On a host without systemd, the current setup tooling cannot safely attribute a nohup gateway process to one
548
-
PostgreSQL major. If only one DocumentDB major is configured, use an unscoped restore so the
549
-
orphan gateway sweep runs:
547
+
On a host without systemd, the same scoped restore stops the gateway that setup started for
548
+
that major and leaves other majors running. It skips a gateway it has no valid record of; if the
549
+
port is still listening afterwards, find the process on it and stop it. Setup runs the gateway
550
+
as \`documentdb-gateway\`, so \`sudo -u documentdb-gateway ss -lntp\` shows its PID even in a
551
+
container where root's \`ss\` doesn't. An unscoped restore also stops nohup gateways started by
552
+
the packaged binary's full path, but it detaches every configured major; re-run setup for the
553
+
majors you are keeping:
550
554
551
555
\`\`\`bash
552
556
sudo documentdb-setup --restore --yes
553
557
\`\`\`
554
558
555
-
If more than one DocumentDB major is configured without systemd, schedule a maintenance window
556
-
and use the same unscoped restore. It detaches every configured major and stops the nohup
557
-
gateways; re-run setup for the majors you are keeping afterward. A scoped restore alone is not
558
-
sufficient on a no-systemd host.
559
-
560
559
Restart the adopted PostgreSQL service after restore to apply removal of the managed settings.
561
560
On an unscoped multi-major restore, restart each operator-managed PostgreSQL service involved.
562
561
@@ -589,8 +588,7 @@ These are defects in this release, not expected behaviour. Most need a host with
589
588
| --- | --- | --- |
590
589
| Status | \`documentdb-setup --status\` can report "active" for any process holding port 10260 | **any host** |
591
590
| Restart | Re-running \`documentdb-setup\` to restart can hang; redirecting output to a file avoids it | no systemd |
592
-
| Stop | A scoped \`documentdb-setup --restore --pg-version N\` cannot stop a nohup gateway; follow the no-systemd brownfield removal steps above | no systemd |
593
-
| 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 |
591
+
| Stop | A scoped \`documentdb-setup --restore --pg-version N\` skips a nohup gateway it has no valid record of; follow the no-systemd brownfield removal steps above | no systemd |
594
592
595
593
**Prefer a systemd host for anything you care about**, where the service lifecycle is managed by systemd rather than by the setup script.
0 commit comments