Skip to content

docs(libsql-server): fix LIBSQL_BOTTOMLESS_AWS_DEFAULT_REGION env var name#2229

Open
Booki-Brain wants to merge 1 commit intotursodatabase:mainfrom
Booki-Brain:fix/bottomless-env-var-doc
Open

docs(libsql-server): fix LIBSQL_BOTTOMLESS_AWS_DEFAULT_REGION env var name#2229
Booki-Brain wants to merge 1 commit intotursodatabase:mainfrom
Booki-Brain:fix/bottomless-env-var-doc

Conversation

@Booki-Brain
Copy link
Copy Markdown

Problem

The libsql-server/README.md documents the bottomless region environment variable as LIBSQL_BOTTOMLESS_AWS_REGION, but the actual implementation in bottomless/src/replicator.rs reads LIBSQL_BOTTOMLESS_AWS_DEFAULT_REGION:

https://github.com/tursodatabase/libsql/blob/main/bottomless/src/replicator.rs#L139
https://github.com/tursodatabase/libsql/blob/main/bottomless/src/replicator.rs#L201

Users following the README will set the wrong variable and see sqld fail with:

Error: Internal Error: LIBSQL_BOTTOMLESS_AWS_DEFAULT_REGION was not set

Changes

  • Correct the region environment variable name in libsql-server/README.md to match replicator.rs
  • Add LIBSQL_BOTTOMLESS_AWS_SESSION_TOKEN (also supported in replicator.rs:200 but previously undocumented)
  • Improve the comment descriptions for each variable
  • Add an explicit note with the exact error message users will encounter when the variable is missing — makes this page findable via a Google search of the error

Verification

Verified by:

  1. Reading bottomless/src/replicator.rs lines 139, 198-201 (env_var calls)
  2. Encountering this exact error during a self-hosted deployment using MinIO as S3 backend

Impact

Docs-only change, no code or behaviour changes. Should reduce time-to-first-success for new self-hosters using bottomless replication, particularly those using MinIO, Cloudflare R2, Wasabi, or other S3-compatible providers in local / EU-only deployments.

… name

The README documented the bottomless region environment variable as
LIBSQL_BOTTOMLESS_AWS_REGION, but the replicator source code
(bottomless/src/replicator.rs:139,201) actually reads
LIBSQL_BOTTOMLESS_AWS_DEFAULT_REGION.

Setting the documented name results in sqld failing with:
  Error: Internal Error: LIBSQL_BOTTOMLESS_AWS_DEFAULT_REGION was not set

This corrects the README to match the actual implementation, adds
LIBSQL_BOTTOMLESS_AWS_SESSION_TOKEN (also supported by the replicator
but undocumented), improves the comment descriptions, and adds a note
with the exact error message users will encounter so they can search
for it.

Verified against bottomless/src/replicator.rs env_var calls.
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.

1 participant