Skip to content

docs: worker.local.env, and the search flag that silently does nothing - #177

Merged
marinom2 merged 1 commit into
mainfrom
docs/worker-settings
Jul 29, 2026
Merged

docs: worker.local.env, and the search flag that silently does nothing#177
marinom2 merged 1 commit into
mainfrom
docs/worker-settings

Conversation

@marinom2

Copy link
Copy Markdown
Owner

Search configuration is documented nowhere in this repo — not the variable names, not where to put them, not that they get dropped on reinstall. An operator configuring it has to get the names from elsewhere, and at least one circulating spelling is wrong.

The variable is SEARCH_ENABLED, with a D

SEARCH_ENABLE is read by nothing. Set it and the worker starts cleanly, reports healthy, and never advertises search. No error, no log line — the only way to notice is that the capability never shows up, which looks like a network problem rather than a typo.

Verified against the shipped image, not assumed:

strings /bin/worker | grep -oE '\bSEARCH_[A-Z_]+\b'   #  ->  SEARCH_ENABLED

SEARCH_ENABLE does not occur in the binary at all. The doc includes that command so readers can check their own image rather than trust a file that may age.

Also recorded

Two things that cost real time doing this by hand:

  • The container must run as --user rootsession-keys.enc is root:root 0600, so the image's default appuser cannot read its own keystore and crash-loops on permission denied.
  • worker.local.env alone is not a complete environment. Starting with only --env-file fails with CHAIN_ID is required plus four siblings; the installer's -e flags supply those.

Pairs with #176, which added the --env-file support this documents.

Search configuration was documented nowhere in this repo - not the correct
variable names, not where to put them, not that they are dropped on reinstall.
An operator configuring it had to get the names from somewhere else, and at least
one circulating spelling is wrong.

The variable is SEARCH_ENABLED. `SEARCH_ENABLE` without the D is read by nothing:
the worker starts cleanly, reports healthy, and never advertises search. There is
no error and no log line, so the only way to notice is to observe that the
capability never appears - which can take a while, and looks like a network
problem rather than a typo.

Verified against the shipped image rather than assumed:

  strings /bin/worker | grep -oE '\bSEARCH_[A-Z_]+\b'   ->  SEARCH_ENABLED

`SEARCH_ENABLE` does not occur in the binary at all. The doc includes that command
so the next reader can check their own image instead of trusting a file that may
age badly.

Also records the two things that cost real time when setting this up by hand:
the container must run as root (session-keys.enc is root:root 0600, so the image's
default appuser cannot read its own keystore and crash-loops), and this file alone
is not a complete environment - without the installer's -e flags the worker exits
with "CHAIN_ID is required" and four more.
@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lightnode Ready Ready Preview, Comment Jul 29, 2026 1:10pm

Request Review

@marinom2
marinom2 merged commit db74bae into main Jul 29, 2026
6 checks passed
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