Repository navigation
Closed
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/k8sKubernetes commands, Helm charts, pods, services, and policiessource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Description
Problem
A live run on 2026-11-07 against the pinned image (searxng/searxng:2026.10.23-629368e40) in namespace devops showed three engine faults and two log lines.
GET /search?q=<query>&format=json&categories=general,it,sciencereturned 58 hits, butunresponsive_enginesheld[duckduckgo, timeout]. The engine hadoutgoing.request_timeout: 5.0(k8s/devops/searxng/configmap.yaml).- An earlier container run found that the engine
pypireturned no hit. The engine reads HTML fromhttps://pypi.org/search/(searx/engines/pypi.pyat the pinned commit) and takes the entries with the XPatha[@class="package-snippet"]. On 2026-11-07 one request to that URL from the dev container returned HTTP 200 with 3,038 bytes, the title "Client Challenge", and nopackage-snippetelement. A scraping engine that gets a challenge page never answers, whatever the timeout. - The same earlier run found that
duckduckgoandgithubrate-limited one address after about 30 queries. SearXNG then suspends the engine for a time, and the engine is silent for the rest of that time. - The pod log has the ERROR "X-Forwarded-For nor X-Real-IP header is set!" and the WARNING "missing config file: /etc/searxng/limiter.toml".
The two log lines are harmless, by the source of the pinned commit:
- The ERROR comes from
searx/botdetection/trusted_proxies.py(log_error_only_once). The proxy middleware logs it once, when a request has neither header. The roadmap Service sends none, andserver.limiter: falsemeans that no code uses the client address. - The WARNING comes from
Config.from_tomlinsearx/botdetection/config.py.limiter.initializeinsearx/limiter.pycallsget_cfg()even when the limiter is off ("the botdetection must be activated"), and a missing file leaves the defaults of the schema in force.
So pypi is a fault, the duckduckgo timeout and the two rate limits are probable faults that need a measure, and the two log lines are noise.
Expected
Read the settings in k8s/devops/searxng/configmap.yaml and the SearXNG documents at the pinned tag, then:
- Remove the engine
pypifromkeep_only, and from the list ink8s/README.md("The engines"). Keep only engines that answer. A package search is not lost: the other engines and the web chain cover it. - Measure the
duckduckgotimeout with 20 queries atrequest_timeout5.0 and at a higher value. Set the value that removes the timeout, or set atimeouton that engine only, and write the numbers in the proposal. Ifduckduckgostill times out, the proposal says so, and the ConfigMap keeps it only if it answers in most queries. - For the rate limits of
duckduckgoandgithub, read the documents of SearXNG on engine suspension and decide with evidence: keep the engine and accept the suspension, or remove it. Do not add a retry loop. - Say in a comment of the ConfigMap that the two log lines are harmless, with the file and the reason, so that a reader does not chase them. Do not mount a
limiter.tomlto hide them. - The web search chain stays as it is:
searxng, thenduckduckgo, thenfirecrawl(web_searchinsrc/devops_cli/ai/web_search.py). A reply with no hit and withunresponsive_enginesalready makes the provider raise and pass the search on. - Do not change the cluster. The change is the ConfigMap file, its test and its document.
Acceptance criteria
-
uv run pytest tests/invariants/test_k8s_searxng.py::test_the_settings_keep_no_engine_that_never_answersfails on the current code: the test reads the list intests/fixtures/searxng/engines_that_never_answer.txt(new, with the reason and the date for each engine, first linepypi) and findspypiinkeep_only. -
uv run pytest tests/invariants/test_k8s_searxng.py::test_the_readme_lists_the_engines_that_the_settings_keepis a guard. It compares the list ink8s/README.mdwithkeep_only. It passes before the change, and it fails if the settings change and the README does not. -
uv run pytest tests/ai/test_web_search_searxng.py -k unresponsivepasses before and after: a reply with no hit and with unresponsive engines passes the search on to the next provider.
Existing tool considered
SearXNG already has what is needed: use_default_settings.engines.keep_only, outgoing.request_timeout, a timeout for each engine, and the suspension of a failed engine. No new tool is needed. A different meta-search service was not considered, because #3924 put SearXNG in the stack.
Cost
- Build: about 40k tokens (the file edits, the measure of 40 queries, two tests, two paragraphs) and about 1.5 hours, with most of the time in the measure.
- Keep: low. One fixture file with a reason for each dropped engine.
- Fix: an engine that never answers slows every search by its timeout and lowers the hit count. Today the cost is one dead engine in ten and a 5-second wait on a timeout.
Related
- feat(k8s): run SearXNG in namespace devops #3924 (SearXNG in the stack)
- test(k8s): live check of the SearXNG service #3929 (the live check of SearXNG)
- test(k8s): live check that Crawl4AI refuses internal URLs #3894 (the check of Crawl4AI, whose report code test(k8s): live check of the SearXNG service #3929 reuses)
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/k8sKubernetes commands, Helm charts, pods, services, and policiessource/agentFiled by an agenttype/bugType bug: the code does not do what it mustvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 7, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(k8s)scope of the title gives the scope.Engines are broken but the fallback chain still returns results, so the impact is degraded, not total.Removes a dead engine and fixes timeouts so search answers are more reliable.Requires timeout measurement, engine removal, ConfigMap edit, a new test, and a README update.Both target the SearXNG ConfigMap in k8s/devops/searxng/, but 3924 creates it and this item fixes engine entries in it.devops-cli-service commentedon Nov 8, 2026
Released in v0.87.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.87.1
devops-cli-service commentedon Nov 8, 2026
Live since 2026-11-08 04:10 UTC