searxng / searxng-docker

The docker-compose files for setting up a SearXNG instance with docker.
GNU Affero General Public License v3.0
1.01k stars 247 forks source link

SSL: CERTIFICATE_VERIFY_FAILED #181

Closed ChaiFox closed 8 months ago

ChaiFox commented 9 months ago

I have had searxng set up before in a docker container on an rpi but unfortunately after redoing the setup in docker (using portainer) on a different machine (from scratch) I keep getting an error with the cert. The only thing thats been modified is the .env and the secret key in settings. I've looked over the Caddy file and the caddy TLS options and everything seems fine. I also cannot access searxng over https as it gives PR_END_OF_FILE_ERROR

2023-09-18T17:14:14.041516549Z Python version: 3.11.5 (main, Aug 26 2023, 11:59:23) [GCC 12.2.1 20220924]
2023-09-18T17:14:14.051041664Z Python main interpreter initialized at 0x7f800fe57778
2023-09-18T17:14:14.051155450Z python threads support enabled
2023-09-18T17:14:14.051224163Z your server socket listen backlog is limited to 100 connections
2023-09-18T17:14:14.051274880Z your mercy for graceful operations on workers is 60 seconds
2023-09-18T17:14:14.051610302Z mapped 362016 bytes (353 KB) for 8 cores
2023-09-18T17:14:14.051752717Z *** Operational MODE: preforking+threaded ***
2023-09-18T17:14:14.052065138Z added /usr/local/searxng/ to pythonpath.
2023-09-18T17:14:14.052120984Z spawned uWSGI master process (pid: 7)
2023-09-18T17:14:14.052457407Z spawned uWSGI worker 1 (pid: 10, cores: 4)
2023-09-18T17:14:14.052721578Z spawned uWSGI worker 2 (pid: 11, cores: 4)
2023-09-18T17:14:14.053016112Z spawned 4 offload threads for uWSGI worker 1
2023-09-18T17:14:14.053233634Z spawned 4 offload threads for uWSGI worker 2
2023-09-18T17:14:15.650917932Z 2023-09-18 17:14:15,643 ERROR:searx.engines.wikidata: Fail to initialize
2023-09-18T17:14:15.650951808Z Traceback (most recent call last):
2023-09-18T17:14:15.650962661Z   File "/usr/local/searxng/searx/search/processors/abstract.py", line 75, in initialize
2023-09-18T17:14:15.650972231Z     self.engine.init(get_engine_from_settings(self.engine_name))
2023-09-18T17:14:15.650981422Z   File "/usr/local/searxng/searx/engines/wikidata.py", line 762, in init
2023-09-18T17:14:15.650990529Z     jsonresponse = send_wikidata_query(query)
2023-09-18T17:14:15.650999288Z                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651007930Z   File "/usr/local/searxng/searx/engines/wikidata.py", line 156, in send_wikidata_query
2023-09-18T17:14:15.651017189Z     http_response = get(SPARQL_ENDPOINT_URL + '?' + urlencode({'query': query}), headers=get_headers())
2023-09-18T17:14:15.651026116Z                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651034978Z   File "/usr/local/searxng/searx/network/__init__.py", line 165, in get
2023-09-18T17:14:15.651043854Z     return request('get', url, **kwargs)
2023-09-18T17:14:15.651052550Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651061028Z   File "/usr/local/searxng/searx/network/__init__.py", line 96, in request
2023-09-18T17:14:15.651069808Z     return future.result(timeout)
2023-09-18T17:14:15.651078502Z            ^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651087027Z   File "/usr/lib/python3.11/concurrent/futures/_base.py", line 456, in result
2023-09-18T17:14:15.651095799Z     return self.__get_result()
2023-09-18T17:14:15.651104438Z            ^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651112969Z   File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
2023-09-18T17:14:15.651121820Z     raise self._exception
2023-09-18T17:14:15.651130374Z   File "/usr/local/searxng/searx/network/network.py", line 291, in request
2023-09-18T17:14:15.651139467Z     return await self.call_client(False, method, url, **kwargs)
2023-09-18T17:14:15.651148265Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651165219Z   File "/usr/local/searxng/searx/network/network.py", line 272, in call_client
2023-09-18T17:14:15.651174075Z     response = await client.request(method, url, **kwargs)
2023-09-18T17:14:15.651182728Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651191688Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1530, in request
2023-09-18T17:14:15.651200640Z     return await self.send(request, auth=auth, follow_redirects=follow_redirects)
2023-09-18T17:14:15.651209420Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651227842Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1617, in send
2023-09-18T17:14:15.651236830Z     response = await self._send_handling_auth(
2023-09-18T17:14:15.651246837Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651255712Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1645, in _send_handling_auth
2023-09-18T17:14:15.651264735Z     response = await self._send_handling_redirects(
2023-09-18T17:14:15.651273329Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651281863Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects
2023-09-18T17:14:15.651290741Z     response = await self._send_single_request(request)
2023-09-18T17:14:15.651299511Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651308203Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1719, in _send_single_request
2023-09-18T17:14:15.651317152Z     response = await transport.handle_async_request(request)
2023-09-18T17:14:15.651325930Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651334605Z   File "/usr/lib/python3.11/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
2023-09-18T17:14:15.651343557Z     resp = await self._pool.handle_async_request(req)
2023-09-18T17:14:15.651352346Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651361005Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 262, in handle_async_request
2023-09-18T17:14:15.651370050Z     raise exc
2023-09-18T17:14:15.651378548Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 245, in handle_async_request
2023-09-18T17:14:15.651387574Z     response = await connection.handle_async_request(request)
2023-09-18T17:14:15.651396324Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651404892Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection.py", line 92, in handle_async_request
2023-09-18T17:14:15.651413870Z     raise exc
2023-09-18T17:14:15.651422476Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection.py", line 69, in handle_async_request
2023-09-18T17:14:15.651432462Z     stream = await self._connect(request)
2023-09-18T17:14:15.651441291Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651449834Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection.py", line 149, in _connect
2023-09-18T17:14:15.651458720Z     stream = await stream.start_tls(**kwargs)
2023-09-18T17:14:15.651467417Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651475977Z   File "/usr/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 78, in start_tls
2023-09-18T17:14:15.651484938Z     raise exc
2023-09-18T17:14:15.651493450Z   File "/usr/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 69, in start_tls
2023-09-18T17:14:15.651502402Z     ssl_stream = await anyio.streams.tls.TLSStream.wrap(
2023-09-18T17:14:15.651511511Z                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.651520416Z   File "/usr/lib/python3.11/site-packages/anyio/streams/tls.py", line 125, in wrap
2023-09-18T17:14:15.651529239Z     await wrapper._call_sslobject_method(ssl_object.do_handshake)
2023-09-18T17:14:15.651537966Z   File "/usr/lib/python3.11/site-packages/anyio/streams/tls.py", line 133, in _call_sslobject_method
2023-09-18T17:14:15.651547041Z     result = func(*args)
2023-09-18T17:14:15.651555751Z              ^^^^^^^^^^^
2023-09-18T17:14:15.651564374Z   File "/usr/lib/python3.11/ssl.py", line 979, in do_handshake
2023-09-18T17:14:15.651573225Z     self._sslobj.do_handshake()
2023-09-18T17:14:15.651581851Z ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1006)
2023-09-18T17:14:15.655771981Z WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x7f800fe57778 pid: 10 (default app)
2023-09-18T17:14:15.680702261Z 2023-09-18 17:14:15,678 ERROR:searx.engines.soundcloud: Fail to initialize
2023-09-18T17:14:15.680756715Z Traceback (most recent call last):
2023-09-18T17:14:15.680767936Z   File "/usr/local/searxng/searx/search/processors/abstract.py", line 75, in initialize
2023-09-18T17:14:15.680777669Z     self.engine.init(get_engine_from_settings(self.engine_name))
2023-09-18T17:14:15.680786860Z   File "/usr/local/searxng/searx/engines/soundcloud.py", line 69, in init
2023-09-18T17:14:15.680796177Z     guest_client_id = get_client_id()
2023-09-18T17:14:15.680805095Z                       ^^^^^^^^^^^^^^^
2023-09-18T17:14:15.680813853Z   File "/usr/local/searxng/searx/engines/soundcloud.py", line 45, in get_client_id
2023-09-18T17:14:15.680822972Z     response = http_get("https://soundcloud.com")
2023-09-18T17:14:15.680832041Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.680840974Z   File "/usr/local/searxng/searx/network/__init__.py", line 165, in get
2023-09-18T17:14:15.680850159Z     return request('get', url, **kwargs)
2023-09-18T17:14:15.680858901Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.680867638Z   File "/usr/local/searxng/searx/network/__init__.py", line 96, in request
2023-09-18T17:14:15.680876718Z     return future.result(timeout)
2023-09-18T17:14:15.680885527Z            ^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.680894213Z   File "/usr/lib/python3.11/concurrent/futures/_base.py", line 456, in result
2023-09-18T17:14:15.680903298Z     return self.__get_result()
2023-09-18T17:14:15.680912109Z            ^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.680920779Z   File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
2023-09-18T17:14:15.680929812Z     raise self._exception
2023-09-18T17:14:15.680938601Z   File "/usr/local/searxng/searx/network/network.py", line 291, in request
2023-09-18T17:14:15.680947609Z     return await self.call_client(False, method, url, **kwargs)
2023-09-18T17:14:15.680956700Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.680965782Z   File "/usr/local/searxng/searx/network/network.py", line 272, in call_client
2023-09-18T17:14:15.680974900Z     response = await client.request(method, url, **kwargs)
2023-09-18T17:14:15.680983856Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.680993056Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1530, in request
2023-09-18T17:14:15.681002215Z     return await self.send(request, auth=auth, follow_redirects=follow_redirects)
2023-09-18T17:14:15.681011294Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.681020518Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1617, in send
2023-09-18T17:14:15.681030001Z     response = await self._send_handling_auth(
2023-09-18T17:14:15.681038853Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.681049295Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1645, in _send_handling_auth
2023-09-18T17:14:15.681059019Z     response = await self._send_handling_redirects(
2023-09-18T17:14:15.681067909Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.681099308Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects
2023-09-18T17:14:15.681110609Z     response = await self._send_single_request(request)
2023-09-18T17:14:15.681119948Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.681129120Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1719, in _send_single_request
2023-09-18T17:14:15.681138540Z     response = await transport.handle_async_request(request)
2023-09-18T17:14:15.681147809Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.681157017Z   File "/usr/lib/python3.11/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
2023-09-18T17:14:15.681166567Z     resp = await self._pool.handle_async_request(req)
2023-09-18T17:14:15.681175649Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.681184756Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 262, in handle_async_request
2023-09-18T17:14:15.681194515Z     raise exc
2023-09-18T17:14:15.681203694Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 245, in handle_async_request
2023-09-18T17:14:15.681213142Z     response = await connection.handle_async_request(request)
2023-09-18T17:14:15.681231071Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.681241306Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection.py", line 92, in handle_async_request
2023-09-18T17:14:15.681251108Z     raise exc
2023-09-18T17:14:15.681260107Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection.py", line 69, in handle_async_request
2023-09-18T17:14:15.681269864Z     stream = await self._connect(request)
2023-09-18T17:14:15.681278898Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.681287863Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection.py", line 149, in _connect
2023-09-18T17:14:15.681297341Z     stream = await stream.start_tls(**kwargs)
2023-09-18T17:14:15.681306548Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.681315620Z   File "/usr/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 78, in start_tls
2023-09-18T17:14:15.681325024Z     raise exc
2023-09-18T17:14:15.681334798Z   File "/usr/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 69, in start_tls
2023-09-18T17:14:15.681344410Z     ssl_stream = await anyio.streams.tls.TLSStream.wrap(
2023-09-18T17:14:15.681353459Z                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.681362545Z   File "/usr/lib/python3.11/site-packages/anyio/streams/tls.py", line 125, in wrap
2023-09-18T17:14:15.681470636Z     await wrapper._call_sslobject_method(ssl_object.do_handshake)
2023-09-18T17:14:15.681487780Z   File "/usr/lib/python3.11/site-packages/anyio/streams/tls.py", line 133, in _call_sslobject_method
2023-09-18T17:14:15.681497937Z     result = func(*args)
2023-09-18T17:14:15.681506874Z              ^^^^^^^^^^^
2023-09-18T17:14:15.681524164Z   File "/usr/lib/python3.11/ssl.py", line 979, in do_handshake
2023-09-18T17:14:15.681534209Z     self._sslobj.do_handshake()
2023-09-18T17:14:15.681543081Z ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1006)
2023-09-18T17:14:15.752286659Z 2023-09-18 17:14:15,743 ERROR:searx.engines.wikidata: Fail to initialize
2023-09-18T17:14:15.752337446Z Traceback (most recent call last):
2023-09-18T17:14:15.752349864Z   File "/usr/local/searxng/searx/search/processors/abstract.py", line 75, in initialize
2023-09-18T17:14:15.752360512Z     self.engine.init(get_engine_from_settings(self.engine_name))
2023-09-18T17:14:15.752370289Z   File "/usr/local/searxng/searx/engines/wikidata.py", line 762, in init
2023-09-18T17:14:15.752380259Z     jsonresponse = send_wikidata_query(query)
2023-09-18T17:14:15.752389706Z                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.752399121Z   File "/usr/local/searxng/searx/engines/wikidata.py", line 156, in send_wikidata_query
2023-09-18T17:14:15.752428344Z     http_response = get(SPARQL_ENDPOINT_URL + '?' + urlencode({'query': query}), headers=get_headers())
2023-09-18T17:14:15.752457001Z                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.752467916Z   File "/usr/local/searxng/searx/network/__init__.py", line 165, in get
2023-09-18T17:14:15.752477996Z     return request('get', url, **kwargs)
2023-09-18T17:14:15.752487686Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.752497425Z   File "/usr/local/searxng/searx/network/__init__.py", line 96, in request
2023-09-18T17:14:15.752520991Z     return future.result(timeout)
2023-09-18T17:14:15.752530440Z            ^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.752539857Z   File "/usr/lib/python3.11/concurrent/futures/_base.py", line 456, in result
2023-09-18T17:14:15.752549854Z     return self.__get_result()
2023-09-18T17:14:15.752559220Z            ^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.752583233Z   File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
2023-09-18T17:14:15.752594211Z     raise self._exception
2023-09-18T17:14:15.752604086Z   File "/usr/local/searxng/searx/network/network.py", line 291, in request
2023-09-18T17:14:15.752614806Z     return await self.call_client(False, method, url, **kwargs)
2023-09-18T17:14:15.752624953Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.752634735Z   File "/usr/local/searxng/searx/network/network.py", line 272, in call_client
2023-09-18T17:14:15.752644775Z     response = await client.request(method, url, **kwargs)
2023-09-18T17:14:15.752654682Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.752664793Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1530, in request
2023-09-18T17:14:15.752674898Z     return await self.send(request, auth=auth, follow_redirects=follow_redirects)
2023-09-18T17:14:15.752684801Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.752694623Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1617, in send
2023-09-18T17:14:15.752704768Z     response = await self._send_handling_auth(
2023-09-18T17:14:15.752716368Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.752726924Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1645, in _send_handling_auth
2023-09-18T17:14:15.752736897Z     response = await self._send_handling_redirects(
2023-09-18T17:14:15.752746643Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.752756348Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects
2023-09-18T17:14:15.752766699Z     response = await self._send_single_request(request)
2023-09-18T17:14:15.752776534Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.752786391Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1719, in _send_single_request
2023-09-18T17:14:15.752796502Z     response = await transport.handle_async_request(request)
2023-09-18T17:14:15.752806193Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.752816011Z   File "/usr/lib/python3.11/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
2023-09-18T17:14:15.752826252Z     resp = await self._pool.handle_async_request(req)
2023-09-18T17:14:15.752835947Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.752845749Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 262, in handle_async_request
2023-09-18T17:14:15.752869389Z     raise exc
2023-09-18T17:14:15.752879307Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 245, in handle_async_request
2023-09-18T17:14:15.752889160Z     response = await connection.handle_async_request(request)
2023-09-18T17:14:15.752898781Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.752908385Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection.py", line 92, in handle_async_request
2023-09-18T17:14:15.752918549Z     raise exc
2023-09-18T17:14:15.752927854Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection.py", line 69, in handle_async_request
2023-09-18T17:14:15.752937958Z     stream = await self._connect(request)
2023-09-18T17:14:15.752947522Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.752956992Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection.py", line 149, in _connect
2023-09-18T17:14:15.752966710Z     stream = await stream.start_tls(**kwargs)
2023-09-18T17:14:15.752976301Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.752985783Z   File "/usr/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 78, in start_tls
2023-09-18T17:14:15.752995741Z     raise exc
2023-09-18T17:14:15.753004944Z   File "/usr/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 69, in start_tls
2023-09-18T17:14:15.753014618Z     ssl_stream = await anyio.streams.tls.TLSStream.wrap(
2023-09-18T17:14:15.753024615Z                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.753034238Z   File "/usr/lib/python3.11/site-packages/anyio/streams/tls.py", line 125, in wrap
2023-09-18T17:14:15.753043984Z     await wrapper._call_sslobject_method(ssl_object.do_handshake)
2023-09-18T17:14:15.753053773Z   File "/usr/lib/python3.11/site-packages/anyio/streams/tls.py", line 133, in _call_sslobject_method
2023-09-18T17:14:15.753063539Z     result = func(*args)
2023-09-18T17:14:15.753086693Z              ^^^^^^^^^^^
2023-09-18T17:14:15.753160976Z   File "/usr/lib/python3.11/ssl.py", line 979, in do_handshake
2023-09-18T17:14:15.753172853Z     self._sslobj.do_handshake()
2023-09-18T17:14:15.753182679Z ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1006)
2023-09-18T17:14:15.766753281Z 2023-09-18 17:14:15,762 ERROR:searx.engines.soundcloud: Fail to initialize
2023-09-18T17:14:15.766792045Z Traceback (most recent call last):
2023-09-18T17:14:15.766802605Z   File "/usr/local/searxng/searx/search/processors/abstract.py", line 75, in initialize
2023-09-18T17:14:15.766812120Z     self.engine.init(get_engine_from_settings(self.engine_name))
2023-09-18T17:14:15.766821226Z   File "/usr/local/searxng/searx/engines/soundcloud.py", line 69, in init
2023-09-18T17:14:15.766830181Z     guest_client_id = get_client_id()
2023-09-18T17:14:15.766838822Z                       ^^^^^^^^^^^^^^^
2023-09-18T17:14:15.766847638Z   File "/usr/local/searxng/searx/engines/soundcloud.py", line 45, in get_client_id
2023-09-18T17:14:15.766856859Z     response = http_get("https://soundcloud.com")
2023-09-18T17:14:15.766865822Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.766874604Z   File "/usr/local/searxng/searx/network/__init__.py", line 165, in get
2023-09-18T17:14:15.766884026Z     return request('get', url, **kwargs)
2023-09-18T17:14:15.766892778Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.766901354Z   File "/usr/local/searxng/searx/network/__init__.py", line 96, in request
2023-09-18T17:14:15.766910238Z     return future.result(timeout)
2023-09-18T17:14:15.766918847Z            ^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.766927344Z   File "/usr/lib/python3.11/concurrent/futures/_base.py", line 456, in result
2023-09-18T17:14:15.766936299Z     return self.__get_result()
2023-09-18T17:14:15.766945157Z            ^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.766953695Z   File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
2023-09-18T17:14:15.766962722Z     raise self._exception
2023-09-18T17:14:15.766971357Z   File "/usr/local/searxng/searx/network/network.py", line 291, in request
2023-09-18T17:14:15.766980291Z     return await self.call_client(False, method, url, **kwargs)
2023-09-18T17:14:15.766989297Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.766998059Z   File "/usr/local/searxng/searx/network/network.py", line 272, in call_client
2023-09-18T17:14:15.767006981Z     response = await client.request(method, url, **kwargs)
2023-09-18T17:14:15.767015811Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.767024544Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1530, in request
2023-09-18T17:14:15.767033519Z     return await self.send(request, auth=auth, follow_redirects=follow_redirects)
2023-09-18T17:14:15.767042564Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.767051308Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1617, in send
2023-09-18T17:14:15.767060321Z     response = await self._send_handling_auth(
2023-09-18T17:14:15.767069063Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.767079602Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1645, in _send_handling_auth
2023-09-18T17:14:15.767089179Z     response = await self._send_handling_redirects(
2023-09-18T17:14:15.767097891Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.767106557Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects
2023-09-18T17:14:15.767115526Z     response = await self._send_single_request(request)
2023-09-18T17:14:15.767124450Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.767133125Z   File "/usr/lib/python3.11/site-packages/httpx/_client.py", line 1719, in _send_single_request
2023-09-18T17:14:15.767142260Z     response = await transport.handle_async_request(request)
2023-09-18T17:14:15.767151114Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.767160884Z   File "/usr/lib/python3.11/site-packages/httpx/_transports/default.py", line 353, in handle_async_request
2023-09-18T17:14:15.767169909Z     resp = await self._pool.handle_async_request(req)
2023-09-18T17:14:15.767178442Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.767190081Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 262, in handle_async_request
2023-09-18T17:14:15.767199419Z     raise exc
2023-09-18T17:14:15.767207902Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection_pool.py", line 245, in handle_async_request
2023-09-18T17:14:15.767217002Z     response = await connection.handle_async_request(request)
2023-09-18T17:14:15.767225772Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.767234600Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection.py", line 92, in handle_async_request
2023-09-18T17:14:15.767243713Z     raise exc
2023-09-18T17:14:15.767265494Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection.py", line 69, in handle_async_request
2023-09-18T17:14:15.767274875Z     stream = await self._connect(request)
2023-09-18T17:14:15.767283831Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.767292722Z   File "/usr/lib/python3.11/site-packages/httpcore/_async/connection.py", line 149, in _connect
2023-09-18T17:14:15.767302288Z     stream = await stream.start_tls(**kwargs)
2023-09-18T17:14:15.767311382Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.767320250Z   File "/usr/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 78, in start_tls
2023-09-18T17:14:15.767329457Z     raise exc
2023-09-18T17:14:15.767338240Z   File "/usr/lib/python3.11/site-packages/httpcore/_backends/anyio.py", line 69, in start_tls
2023-09-18T17:14:15.767347218Z     ssl_stream = await anyio.streams.tls.TLSStream.wrap(
2023-09-18T17:14:15.767356017Z                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-09-18T17:14:15.767364964Z   File "/usr/lib/python3.11/site-packages/anyio/streams/tls.py", line 125, in wrap
2023-09-18T17:14:15.767374666Z     await wrapper._call_sslobject_method(ssl_object.do_handshake)
2023-09-18T17:14:15.767383918Z   File "/usr/lib/python3.11/site-packages/anyio/streams/tls.py", line 133, in _call_sslobject_method
2023-09-18T17:14:15.767393242Z     result = func(*args)
2023-09-18T17:14:15.767402148Z              ^^^^^^^^^^^
2023-09-18T17:14:15.767411008Z   File "/usr/lib/python3.11/ssl.py", line 979, in do_handshake
2023-09-18T17:14:15.767420120Z     self._sslobj.do_handshake()
2023-09-18T17:14:15.767428985Z ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1006)
2023-09-18T17:14:15.767700847Z WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x7f800fe57778 pid: 11 (default app)
unixfox commented 8 months ago

Make sure there is nothing that alter the traffic of your searxng container.