Skip to content

Correct the no-systemd setup statements in the package guide - #245

Merged
guanzhousongmicrosoft merged 1 commit into
documentdb:mainfrom
GuanzhouSong:guanzhousong/no-systemd-setup-facts
Nov 10, 2026
Merged

guanzhousongmicrosoft merged 1 commit into
documentdb:mainfrom
GuanzhouSong:guanzhousong/no-systemd-setup-facts

Conversation

@GuanzhouSong

Copy link
Copy Markdown
Contributor

The operations guide says re-running documentdb-setup silently resets a loopback DOCUMENTDB_LISTEN_ADDR to a wildcard bind, and that a scoped --restore --pg-version N can't stop a gateway on a host without systemd, so readers are told to detach every major to remove one. Neither matches the 1.0 setup script: a scoped restore stops the gateway it has a valid record for, and a re-run keeps a 127.0.0.1:<port> or [::1]:<port> bind. Its "Minimal RHEL" known issue is also stale: the 1.0 packages depend on procps/procps-ng, and an unscoped restore refuses to run without pgrep.

Checked with the released 1.0.1 packages in an Ubuntu 24.04 arm64 container without systemd, PG17 on 10260 and PG18 on 10261. After setting PG17 to 127.0.0.1:10260, a re-run printed Keeping gateway bind address 127.0.0.1 from the previous run and ss -lnt showed 127.0.0.1:10260. Then documentdb-setup --restore --pg-version 18 exited 0, port 10261 closed, and PG17 kept listening on 127.0.0.1:10260. The setup script is identical in v1.0-0 and v1.0-1.

For a gateway with no valid record, the guide now says to find the process and stop it: the unscoped restore only sweeps gateways started by the packaged binary's full path, and it detaches every major.

Found by the review of #244; independent of it.

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>
@guanzhousongmicrosoft
guanzhousongmicrosoft merged commit 9cac7c2 into documentdb:main Nov 10, 2026
3 checks passed
guanzhousongmicrosoft pushed a commit that referenced this pull request Nov 10, 2026
DocumentDB 1.0.1 is withdrawn: its extension version 1.0-1 has no upgrade path to later releases. This reverts the version move in #244 and keeps #245 and the unrelated sample and tsconfig changes that landed with #244.

Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
Co-authored-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants