schmurnan,
@schmurnan@lemmy.world avatar

I replied to another comment on here saying that I’d tried this once before, via a Docker container, but just wasn’t getting any results back (kept getting timeouts from all the search engines).

I’ve just revisited it, and still get the timeouts. Reckon you’re able to help me troubleshoot it?

Below are the logs from Portainer:


<span style="color:#323232;"> File "/usr/local/searxng/searx/network/__init__.py", line 165, in get
</span><span style="color:#323232;">    return request('get', url, **kwargs)
</span><span style="color:#323232;">           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
</span><span style="color:#323232;">  File "/usr/local/searxng/searx/network/__init__.py", line 98, in request
</span><span style="color:#323232;">    raise httpx.TimeoutException('Timeout', request=None) from e
</span><span style="color:#323232;">httpx.TimeoutException: Timeout
</span><span style="color:#323232;">2023-08-06 09:58:13,651 ERROR:searx.engines.soundcloud: Fail to initialize
</span><span style="color:#323232;">Traceback (most recent call last):
</span><span style="color:#323232;">  File "/usr/local/searxng/searx/network/__init__.py", line 96, in request
</span><span style="color:#323232;">    return future.result(timeout)
</span><span style="color:#323232;">           ^^^^^^^^^^^^^^^^^^^^^^
</span><span style="color:#323232;">  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 458, in result
</span><span style="color:#323232;">    raise TimeoutError()
</span><span style="color:#323232;">TimeoutError
</span><span style="color:#323232;">The above exception was the direct cause of the following exception:
</span><span style="color:#323232;">Traceback (most recent call last):
</span><span style="color:#323232;">  File "/usr/local/searxng/searx/search/processors/abstract.py", line 75, in initialize
</span><span style="color:#323232;">    self.engine.init(get_engine_from_settings(self.engine_name))
</span><span style="color:#323232;">  File "/usr/local/searxng/searx/engines/soundcloud.py", line 69, in init
</span><span style="color:#323232;">    guest_client_id = get_client_id()
</span><span style="color:#323232;">                      ^^^^^^^^^^^^^^^
</span><span style="color:#323232;">  File "/usr/local/searxng/searx/engines/soundcloud.py", line 45, in get_client_id
</span><span style="color:#323232;">    response = http_get("https://soundcloud.com")
</span><span style="color:#323232;">               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
</span><span style="color:#323232;">  File "/usr/local/searxng/searx/network/__init__.py", line 165, in get
</span><span style="color:#323232;">    return request('get', url, **kwargs)
</span><span style="color:#323232;">           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
</span><span style="color:#323232;">  File "/usr/local/searxng/searx/network/__init__.py", line 98, in request
</span><span style="color:#323232;">    raise httpx.TimeoutException('Timeout', request=None) from e
</span><span style="color:#323232;">httpx.TimeoutException: Timeout
</span><span style="color:#323232;">2023-08-06 09:58:13,654 ERROR:searx.engines.soundcloud: Fail to initialize
</span><span style="color:#323232;">Traceback (most recent call last):
</span><span style="color:#323232;">  File "/usr/local/searxng/searx/network/__init__.py", line 96, in request
</span><span style="color:#323232;">    return future.result(timeout)
</span><span style="color:#323232;">           ^^^^^^^^^^^^^^^^^^^^^^
</span><span style="color:#323232;">  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 458, in result
</span><span style="color:#323232;">    raise TimeoutError()
</span><span style="color:#323232;">TimeoutError
</span><span style="color:#323232;">The above exception was the direct cause of the following exception:
</span><span style="color:#323232;">Traceback (most recent call last):
</span><span style="color:#323232;">  File "/usr/local/searxng/searx/search/processors/abstract.py", line 75, in initialize
</span><span style="color:#323232;">    self.engine.init(get_engine_from_settings(self.engine_name))
</span><span style="color:#323232;">  File "/usr/local/searxng/searx/engines/soundcloud.py", line 69, in init
</span><span style="color:#323232;">    guest_client_id = get_client_id()
</span><span style="color:#323232;">                      ^^^^^^^^^^^^^^^
</span><span style="color:#323232;">  File "/usr/local/searxng/searx/engines/soundcloud.py", line 45, in get_client_id
</span><span style="color:#323232;">    response = http_get("https://soundcloud.com")
</span><span style="color:#323232;">               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
</span><span style="color:#323232;">  File "/usr/local/searxng/searx/network/__init__.py", line 165, in get
</span><span style="color:#323232;">    return request('get', url, **kwargs)
</span><span style="color:#323232;">           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
</span><span style="color:#323232;">  File "/usr/local/searxng/searx/network/__init__.py", line 98, in request
</span><span style="color:#323232;">    raise httpx.TimeoutException('Timeout', request=None) from e
</span><span style="color:#323232;">httpx.TimeoutException: Timeout
</span><span style="color:#323232;">2023-08-06 10:02:05,024 ERROR:searx.engines.wikidata: engine timeout
</span><span style="color:#323232;">2023-08-06 10:02:05,024 ERROR:searx.engines.duckduckgo: engine timeout
</span><span style="color:#323232;">2023-08-06 10:02:05,024 ERROR:searx.engines.google: engine timeout
</span><span style="color:#323232;">2023-08-06 10:02:05,024 ERROR:searx.engines.qwant: engine timeout
</span><span style="color:#323232;">2023-08-06 10:02:05,024 ERROR:searx.engines.startpage: engine timeout
</span><span style="color:#323232;">2023-08-06 10:02:05,024 ERROR:searx.engines.wikibooks: engine timeout
</span><span style="color:#323232;">2023-08-06 10:02:05,024 ERROR:searx.engines.wikiquote: engine timeout
</span><span style="color:#323232;">2023-08-06 10:02:05,024 ERROR:searx.engines.wikisource: engine timeout
</span><span style="color:#323232;">2023-08-06 10:02:05,025 ERROR:searx.engines.wikipecies: engine timeout
</span><span style="color:#323232;">2023-08-06 10:02:05,025 ERROR:searx.engines.wikiversity: engine timeout
</span><span style="color:#323232;">2023-08-06 10:02:05,025 ERROR:searx.engines.wikivoyage: engine timeout
</span><span style="color:#323232;">2023-08-06 10:02:05,025 ERROR:searx.engines.brave: engine timeout
</span><span style="color:#323232;">2023-08-06 10:02:05,481 WARNING:searx.engines.wikidata: ErrorContext('searx/search/processors/online.py', 118, "response = req(params['url'], **request_args)", 'httpx.TimeoutException', None, (None, None, None)) False
</span><span style="color:#323232;">2023-08-06 10:02:05,481 ERROR:searx.engines.wikidata: HTTP requests timeout (search duration : 6.457878380082548 s, timeout: 6.0 s) : TimeoutException
</span><span style="color:#323232;">2023-08-06 10:02:05,482 WARNING:searx.engines.wikisource: ErrorContext('searx/search/processors/online.py', 118, "response = req(params['url'], **request_args)", 'httpx.TimeoutException', None, (None, None, None)) False
</span><span style="color:#323232;">2023-08-06 10:02:05,484 ERROR:searx.engines.wikisource: HTTP requests timeout (search duration : 6.460748491808772 s, timeout: 6.0 s) : TimeoutException
</span><span style="color:#323232;">2023-08-06 10:02:05,485 WARNING:searx.engines.brave: ErrorContext('searx/search/processors/online.py', 118, "response = req(params['url'], **request_args)", 'httpx.TimeoutException', None, (None, None, None)) False
</span><span style="color:#323232;">2023-08-06 10:02:05,485 ERROR:searx.engines.brave: HTTP requests timeout (search duration : 6.461546086706221 s, timeout: 6.0 s) : TimeoutException
</span><span style="color:#323232;">2023-08-06 10:02:05,487 WARNING:searx.engines.google: ErrorContext('searx/search/processors/online.py', 118, "response = req(params['url'], **request_args)", 'httpx.TimeoutException', None, (None, None, None)) False
</span><span style="color:#323232;">2023-08-06 10:02:05,487 ERROR:searx.engines.google: HTTP requests timeout (search duration : 6.463769535068423 s, timeout: 6.0 s) : TimeoutException
</span><span style="color:#323232;">2023-08-06 10:02:05,489 WARNING:searx.engines.wikiversity: ErrorContext('searx/search/processors/online.py', 118, "response = req(params['url'], **request_args)", 'httpx.TimeoutException', None, (None, None, None)) False
</span><span style="color:#323232;">2023-08-06 10:02:05,489 ERROR:searx.engines.wikiversity: HTTP requests timeout (search duration : 6.466003180015832 s, timeout: 6.0 s) : TimeoutException
</span><span style="color:#323232;">2023-08-06 10:02:05,490 WARNING:searx.engines.wikivoyage: ErrorContext('searx/search/processors/online.py', 118, "response = req(params['url'], **request_args)", 'httpx.TimeoutException', None, (None, None, None)) False
</span><span style="color:#323232;">2023-08-06 10:02:05,490 ERROR:searx.engines.wikivoyage: HTTP requests timeout (search duration : 6.466597221791744 s, timeout: 6.0 s) : TimeoutException
</span><span style="color:#323232;">2023-08-06 10:02:05,490 WARNING:searx.engines.qwant: ErrorContext('searx/search/processors/online.py', 118, "response = req(params['url'], **request_args)", 'httpx.TimeoutException', None, (None, None, None)) False
</span><span style="color:#323232;">2023-08-06 10:02:05,490 ERROR:searx.engines.qwant: HTTP requests timeout (search duration : 6.4669976509176195 s, timeout: 6.0 s) : TimeoutException
</span><span style="color:#323232;">2023-08-06 10:02:05,491 WARNING:searx.engines.wikibooks: ErrorContext('searx/search/processors/online.py', 118, "response = req(params['url'], **request_args)", 'httpx.TimeoutException', None, (None, None, None)) False
</span><span style="color:#323232;">2023-08-06 10:02:05,491 ERROR:searx.engines.wikibooks: HTTP requests timeout (search duration : 6.4674198678694665 s, timeout: 6.0 s) : TimeoutException
</span><span style="color:#323232;">2023-08-06 10:02:05,491 WARNING:searx.engines.wikiquote: ErrorContext('searx/search/processors/online.py', 118, "response = req(params['url'], **request_args)", 'httpx.TimeoutException', None, (None, None, None)) False
</span><span style="color:#323232;">2023-08-06 10:02:05,492 WARNING:searx.engines.wikipecies: ErrorContext('searx/search/processors/online.py', 118, "response = req(params['url'], **request_args)", 'httpx.TimeoutException', None, (None, None, None)) False
</span><span style="color:#323232;">2023-08-06 10:02:05,492 ERROR:searx.engines.wikiquote: HTTP requests timeout (search duration : 6.468321242835373 s, timeout: 6.0 s) : TimeoutException
</span><span style="color:#323232;">2023-08-06 10:02:05,492 ERROR:searx.engines.wikipecies: HTTP requests timeout (search duration : 6.468797960784286 s, timeout: 6.0 s) : TimeoutException
</span><span style="color:#323232;">2023-08-06 10:02:05,496 WARNING:searx.engines.duckduckgo: ErrorContext('searx/engines/duckduckgo.py', 98, 'res = get(query_url, headers=headers)', 'httpx.TimeoutException', None, (None, None, None)) False
</span><span style="color:#323232;">2023-08-06 10:02:05,497 ERROR:searx.engines.duckduckgo: HTTP requests timeout (search duration : 6.47349306801334 s, timeout: 6.0 s) : TimeoutException
</span><span style="color:#323232;">2023-08-06 10:02:05,511 WARNING:searx.engines.startpage: ErrorContext('searx/engines/startpage.py', 214, 'resp = get(get_sc_url, headers=headers)', 'httpx.TimeoutException', None, (None, None, None)) False
</span><span style="color:#323232;">2023-08-06 10:02:05,511 ERROR:searx.engines.startpage: HTTP requests timeout (search duration : 6.487425099126995 s, timeout: 6.0 s) : TimeoutException
</span><span style="color:#323232;">2023-08-06 10:04:27,475 ERROR:searx.engines.duckduckgo: engine timeout
</span><span style="color:#323232;">2023-08-06 10:04:27,770 WARNING:searx.engines.duckduckgo: ErrorContext('searx/search/processors/online.py', 118, "response = req(params['url'], **request_args)", 'httpx.TimeoutException', None, (None, None, None)) False
</span><span style="color:#323232;">2023-08-06 10:04:27,771 ERROR:searx.engines.duckduckgo: HTTP requests timeout (search duration : 3.2968566291965544 s, timeout: 3.0 s) : TimeoutException
</span><span style="color:#323232;">2023-08-06 10:04:50,094 ERROR:searx.engines.duckduckgo: engine timeout
</span><span style="color:#323232;">2023-08-06 10:04:50,187 WARNING:searx.engines.duckduckgo: ErrorContext('searx/engines/duckduckgo.py', 98, 'res = get(query_url, headers=headers)', 'httpx.ConnectTimeout', None, (None, None, 'duckduckgo.com')) False
</span><span style="color:#323232;">2023-08-06 10:04:50,187 ERROR:searx.engines.duckduckgo: HTTP requests timeout (search duration : 3.0933595369569957 s, timeout: 3.0 s) : ConnectTimeout
</span>

The above is a simple search for “best privacy focused search engines 2023”, followed by the same search again but using the ddg! bang in front of it.

I can post my docker-compose if it helps?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • Ask_kbincafe
  • oklahoma
  • feritale
  • SuperSentai
  • KamenRider
  • All magazines