searxng / searxng

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
https://docs.searxng.org
GNU Affero General Public License v3.0
13.25k stars 1.41k forks source link

Installation script error #3935

Closed tazogil2 closed 4 days ago

tazogil2 commented 4 days ago

Please, my private instance of searx was running like a charm for months on a raspberry (python 3.9.1) until a fatal update two weeks ago. Following the complete log of the installlation.

pi@sabsab:~/Downloads/searxng $ git log -1
commit cf7627557ab29e31efbf4a0719d1083592e22242 (HEAD -> master, origin/master, origin/HEAD)
Author: mrpaulblack <paul@paulgo.io>
Date:   Wed Oct 16 17:18:01 2024 +0200

log

pi@sabsab:~/Downloads/searxng $ sudo -H ./utils/searxng.sh install all

====================
SearXNG installation
====================

SearXNG
=======

SearXNG -- install packages
---------------------------

package(s)::

   python3-dev python3-babel python3-venv uwsgi uwsgi-plugin-python3
   git build-essential libxslt-dev zlib1g-dev libffi-dev libssl-dev
   python-is-python3

Should packages be installed? [YES/no] y
Atteint :1 http://security.debian.org/debian-security bullseye-security InRelease
Atteint :2 http://deb.debian.org/debian bullseye InRelease                                  
Atteint :3 http://deb.debian.org/debian bullseye-updates InRelease                          
Réception de :4 http://archive.raspberrypi.org/debian bullseye InRelease [39,0 kB]
Réception de :5 http://archive.raspberrypi.org/debian bullseye/main arm64 Packages [320 kB]
Réception de :6 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [327 kB]
686 ko réceptionnés en 2s (384 ko/s)                        
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Tous les paquets sont à jour.
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Note : sélection de « libxslt1-dev » au lieu de « libxslt-dev »
build-essential est déjà la version la plus récente (12.9).
libffi-dev est déjà la version la plus récente (3.3-6).
libxslt1-dev est déjà la version la plus récente (1.1.34-4+deb11u1).
python3-babel est déjà la version la plus récente (2.8.0+dfsg.1-7).
python3-dev est déjà la version la plus récente (3.9.2-3).
python3-venv est déjà la version la plus récente (3.9.2-3).
uwsgi est déjà la version la plus récente (2.0.19.1-7.1).
uwsgi-plugin-python3 est déjà la version la plus récente (2.0.19.1-7.1).
python-is-python3 est déjà la version la plus récente (3.9.2-1).
zlib1g-dev est déjà la version la plus récente (1:1.2.11.dfsg-2+deb11u2).
git est déjà la version la plus récente (1:2.30.2-1+deb11u3).
libssl-dev est déjà la version la plus récente (1.1.1w-0+deb11u1+rpt1).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
** press any [KEY] to continue **

SearXNG -- install user
-----------------------

useradd --shell /bin/bash --system  --home-dir "/usr/local/searxng"  --comment 'Privacy-respecting metasearch engine' searxng
mkdir "/usr/local/searxng"
chown -R "searxng:searxng" "/usr/local/searxng"
groups searxng
-->|searxng : searxng
** press any [KEY] to continue **

Clone SearXNG sources
---------------------

INFO:  clone into: /usr/local/searxng/searxng-src
mkdir -p "/usr/local/searxng"
cd "/usr/local/searxng"
git clone --branch "master" --origin "origin" "/home/pi/Downloads/searxng" "searxng-src"
  |searxng| Clonage dans 'searxng-src'...
  |searxng| fait.
cd "/usr/local/searxng/searxng-src"
git remote set-url origin https://github.com/searxng/searxng
git config user.email "root@sabsab"
git config user.name "root"
git config --list
  |searxng| safe.directory=/usr/local/searxng/searxng-src
  |searxng| safe.directory=/usr/local/searxng/searxng-src
  |searxng| safe.directory=/home/pi/Downloads/searxng/.git
  |searxng| safe.directory=/usr/local/searxng/searxng-src
  |searxng| safe.directory=/home/pi/Downloads/searxng/.git
  |searxng| safe.directory=/usr/local/searxng/searxng-src
  |searxng| safe.directory=/home/pi/Downloads/searxng/.git
  |searxng| safe.directory=/usr/local/searxng/searxng-src
  |searxng| core.repositoryformatversion=0
  |searxng| core.filemode=true
  |searxng| core.bare=false
  |searxng| core.logallrefupdates=true
  |searxng| remote.origin.url=https://github.com/searxng/searxng
  |searxng| remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
  |searxng| branch.master.remote=origin
  |searxng| branch.master.merge=refs/heads/master
  |searxng| user.email=root@sabsab
  |searxng| user.name=root
** press any [KEY] to continue **

Create virtualenv (python)
--------------------------

INFO:  create pyenv in /usr/local/searxng/searx-pyenv
rm -rf "/usr/local/searxng/searx-pyenv"
python -m venv "/usr/local/searxng/searx-pyenv"
grep -qFs -- 'source /usr/local/searxng/searx-pyenv/bin/activate' ~/.profile   || echo 'source /usr/local/searxng/searx-pyenv/bin/activate' >> ~/.profile
INFO:  inspect python's virtual environment
command -v python && python --version
  |searxng| /usr/local/searxng/searx-pyenv/bin/python
  |searxng| Python 3.9.2
** press any [KEY] to continue **
INFO:  install needed python packages
pip install -U pip
pip install -U setuptools
pip install -U wheel
pip install -U pyyaml
cd /usr/local/searxng/searxng-src
pip install --use-pep517 --no-build-isolation -e .
  |searxng| Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
  |searxng| Requirement already satisfied: pip in ./searx-pyenv/lib/python3.9/site-packages (20.3.4)
  |searxng| Collecting pip
  |searxng|   Downloading https://www.piwheels.org/simple/pip/pip-24.2-py3-none-any.whl (1.8 MB)
  |searxng| Installing collected packages: pip
  |searxng|   Attempting uninstall: pip
  |searxng|     Found existing installation: pip 20.3.4
  |searxng|     Uninstalling pip-20.3.4:
  |searxng|       Successfully uninstalled pip-20.3.4
  |searxng| Successfully installed pip-24.2
  |searxng| Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
  |searxng| Requirement already satisfied: setuptools in ./searx-pyenv/lib/python3.9/site-packages (44.1.1)
  |searxng| Collecting setuptools
  |searxng|   Downloading https://www.piwheels.org/simple/setuptools/setuptools-75.2.0-py3-none-any.whl (1.2 MB)
  |searxng|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 3.2 MB/s eta 0:00:00
  |searxng| Installing collected packages: setuptools
  |searxng|   Attempting uninstall: setuptools
  |searxng|     Found existing installation: setuptools 44.1.1
  |searxng|     Uninstalling setuptools-44.1.1:
  |searxng|       Successfully uninstalled setuptools-44.1.1
  |searxng| Successfully installed setuptools-75.2.0
  |searxng| Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
  |searxng| Collecting wheel
  |searxng|   Downloading https://www.piwheels.org/simple/wheel/wheel-0.44.0-py3-none-any.whl (67 kB)
  |searxng| Installing collected packages: wheel
  |searxng| Successfully installed wheel-0.44.0
  |searxng| Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
  |searxng| Collecting pyyaml
  |searxng|   Downloading PyYAML-6.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (2.1 kB)
  |searxng| Downloading PyYAML-6.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (720 kB)
  |searxng|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 720.9/720.9 kB 2.4 MB/s eta 0:00:00
  |searxng| Installing collected packages: pyyaml
  |searxng| Successfully installed pyyaml-6.0.2
  |searxng| Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
  |searxng| Obtaining file:///usr/local/searxng/searxng-src
  |searxng|   Checking if build backend supports build_editable: started
  |searxng|   Checking if build backend supports build_editable: finished with status 'done'
  |searxng|   Preparing editable metadata (pyproject.toml): started
  |searxng|   Preparing editable metadata (pyproject.toml): finished with status 'done'
  |searxng| Collecting certifi==2024.8.30 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/certifi/certifi-2024.8.30-py3-none-any.whl (167 kB)
  |searxng| Collecting babel==2.16.0 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/babel/babel-2.16.0-py3-none-any.whl (9.6 MB)
  |searxng|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.6/9.6 MB 4.6 MB/s eta 0:00:00
  |searxng| Collecting flask-babel==4.0.0 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/flask-babel/flask_babel-4.0.0-py3-none-any.whl (9.6 kB)
  |searxng| Collecting flask==3.0.3 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/flask/flask-3.0.3-py3-none-any.whl (101 kB)
  |searxng| Collecting jinja2==3.1.4 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/jinja2/jinja2-3.1.4-py3-none-any.whl (133 kB)
  |searxng| Collecting lxml==5.3.0 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading lxml-5.3.0-cp39-cp39-manylinux_2_28_aarch64.whl.metadata (3.8 kB)
  |searxng| Collecting pygments==2.18.0 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/pygments/pygments-2.18.0-py3-none-any.whl (1.2 MB)
  |searxng|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 1.9 MB/s eta 0:00:00
  |searxng| Collecting python-dateutil==2.9.0.post0 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/python-dateutil/python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
  |searxng| Requirement already satisfied: pyyaml==6.0.2 in /usr/local/searxng/searx-pyenv/lib/python3.9/site-packages (from searxng==2024.10.16+cf7627557) (6.0.2)
  |searxng| Collecting httpx==0.24.1 (from httpx[http2]==0.24.1->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/httpx/httpx-0.24.1-py3-none-any.whl (75 kB)
  |searxng| Collecting Brotli==1.1.0 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading Brotli-1.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (5.5 kB)
  |searxng| Collecting uvloop==0.20.0 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading uvloop-0.20.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (4.9 kB)
  |searxng| Collecting httpx-socks==0.7.7 (from httpx-socks[asyncio]==0.7.7->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/httpx-socks/httpx_socks-0.7.7-py3-none-any.whl (12 kB)
  |searxng| Collecting setproctitle==1.3.3 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading setproctitle-1.3.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (9.9 kB)
  |searxng| Collecting redis==5.0.8 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/redis/redis-5.0.8-py3-none-any.whl (255 kB)
  |searxng| Collecting markdown-it-py==3.0.0 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/markdown-it-py/markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
  |searxng| Collecting fasttext-predict==0.9.2.2 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading fasttext_predict-0.9.2.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (1.7 kB)
  |searxng| Collecting pydantic==2.9.2 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/pydantic/pydantic-2.9.2-py3-none-any.whl (434 kB)
  |searxng| Collecting typer-slim==0.12.5 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/typer-slim/typer_slim-0.12.5-py3-none-any.whl (47 kB)
  |searxng| Collecting pytomlpp==1.0.13 (from searxng==2024.10.16+cf7627557)
  |searxng|   Downloading pytomlpp-1.0.13.tar.gz (1.3 MB)
  |searxng|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 3.0 MB/s eta 0:00:00
  |searxng|   Preparing metadata (pyproject.toml): started
  |searxng|   Preparing metadata (pyproject.toml): finished with status 'done'
  |searxng| Collecting Werkzeug>=3.0.0 (from flask==3.0.3->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/werkzeug/werkzeug-3.0.4-py3-none-any.whl (227 kB)
  |searxng| Collecting itsdangerous>=2.1.2 (from flask==3.0.3->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/itsdangerous/itsdangerous-2.2.0-py3-none-any.whl (16 kB)
  |searxng| Collecting click>=8.1.3 (from flask==3.0.3->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/click/click-8.1.7-py3-none-any.whl (97 kB)
  |searxng| Collecting blinker>=1.6.2 (from flask==3.0.3->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/blinker/blinker-1.8.2-py3-none-any.whl (9.5 kB)
  |searxng| Collecting importlib-metadata>=3.6.0 (from flask==3.0.3->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/importlib-metadata/importlib_metadata-8.5.0-py3-none-any.whl (26 kB)
  |searxng| Collecting pytz>=2022.7 (from flask-babel==4.0.0->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/pytz/pytz-2024.2-py3-none-any.whl (507 kB)
  |searxng| Collecting httpcore<0.18.0,>=0.15.0 (from httpx==0.24.1->httpx[http2]==0.24.1->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/httpcore/httpcore-0.17.3-py3-none-any.whl (74 kB)
  |searxng| Collecting idna (from httpx==0.24.1->httpx[http2]==0.24.1->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/idna/idna-3.10-py3-none-any.whl (70 kB)
  |searxng| Collecting sniffio (from httpx==0.24.1->httpx[http2]==0.24.1->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/sniffio/sniffio-1.3.1-py3-none-any.whl (10 kB)
  |searxng| Collecting python-socks>=2.0.0 (from httpx-socks==0.7.7->httpx-socks[asyncio]==0.7.7->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/python-socks/python_socks-2.5.3-py3-none-any.whl (52 kB)
  |searxng| Collecting async-timeout>=3.0.1 (from httpx-socks[asyncio]==0.7.7->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/async-timeout/async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
  |searxng| Collecting h2<5,>=3 (from httpx[http2]==0.24.1->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/h2/h2-4.1.0-py3-none-any.whl (57 kB)
  |searxng| Collecting MarkupSafe>=2.0 (from jinja2==3.1.4->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading MarkupSafe-3.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (4.0 kB)
  |searxng| Collecting mdurl~=0.1 (from markdown-it-py==3.0.0->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/mdurl/mdurl-0.1.2-py3-none-any.whl (10.0 kB)
  |searxng| Collecting annotated-types>=0.6.0 (from pydantic==2.9.2->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/annotated-types/annotated_types-0.7.0-py3-none-any.whl (13 kB)
  |searxng| Collecting pydantic-core==2.23.4 (from pydantic==2.9.2->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading pydantic_core-2.23.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (6.6 kB)
  |searxng| Collecting typing-extensions>=4.6.1 (from pydantic==2.9.2->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/typing-extensions/typing_extensions-4.12.2-py3-none-any.whl (37 kB)
  |searxng| Collecting six>=1.5 (from python-dateutil==2.9.0.post0->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/six/six-1.16.0-py2.py3-none-any.whl (11 kB)
  |searxng| Collecting shellingham>=1.3.0 (from typer-slim==0.12.5->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/shellingham/shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)
  |searxng| Collecting rich>=10.11.0 (from typer-slim==0.12.5->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/rich/rich-13.9.2-py3-none-any.whl (242 kB)
  |searxng| Collecting hyperframe<7,>=6.0 (from h2<5,>=3->httpx[http2]==0.24.1->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/hyperframe/hyperframe-6.0.1-py3-none-any.whl (12 kB)
  |searxng| Collecting hpack<5,>=4.0 (from h2<5,>=3->httpx[http2]==0.24.1->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/hpack/hpack-4.0.0-py3-none-any.whl (32 kB)
  |searxng| Collecting h11<0.15,>=0.13 (from httpcore<0.18.0,>=0.15.0->httpx==0.24.1->httpx[http2]==0.24.1->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/h11/h11-0.14.0-py3-none-any.whl (58 kB)
  |searxng| Collecting anyio<5.0,>=3.0 (from httpcore<0.18.0,>=0.15.0->httpx==0.24.1->httpx[http2]==0.24.1->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/anyio/anyio-4.6.2.post1-py3-none-any.whl (90 kB)
  |searxng| Collecting zipp>=3.20 (from importlib-metadata>=3.6.0->flask==3.0.3->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/zipp/zipp-3.20.2-py3-none-any.whl (9.2 kB)
  |searxng| Collecting exceptiongroup>=1.0.2 (from anyio<5.0,>=3.0->httpcore<0.18.0,>=0.15.0->httpx==0.24.1->httpx[http2]==0.24.1->searxng==2024.10.16+cf7627557)
  |searxng|   Downloading https://www.piwheels.org/simple/exceptiongroup/exceptiongroup-1.2.2-py3-none-any.whl (16 kB)
  |searxng| Downloading Brotli-1.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.9 MB)
  |searxng|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.9/2.9 MB 3.9 MB/s eta 0:00:00
  |searxng| Downloading fasttext_predict-0.9.2.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (109 kB)
  |searxng| Downloading lxml-5.3.0-cp39-cp39-manylinux_2_28_aarch64.whl (4.8 MB)
  |searxng|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 3.8 MB/s eta 0:00:00
  |searxng| Downloading setproctitle-1.3.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (30 kB)
  |searxng| Downloading uvloop-0.20.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.5 MB)
  |searxng|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.5/3.5 MB 2.3 MB/s eta 0:00:00
  |searxng| Downloading pydantic_core-2.23.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.8 MB)
  |searxng|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 2.7 MB/s eta 0:00:00
  |searxng| Downloading MarkupSafe-3.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (21 kB)
  |searxng| Building wheels for collected packages: searxng, pytomlpp
  |searxng|   Building editable for searxng (pyproject.toml): started
  |searxng|   Building editable for searxng (pyproject.toml): finished with status 'done'
  |searxng|   Created wheel for searxng: filename=searxng-2024.10.16+cf7627557-0.editable-py3-none-any.whl size=19862 sha256=01cc369c230d8538a5b54b8d2f4c81da6c815fd5ba79dedf1fcab90643f92e41
  |searxng|   Stored in directory: /tmp/pip-ephem-wheel-cache-75mme7hj/wheels/2f/28/47/989149a02a4d4c5b70294fbf0006213128852581574496ff81
  |searxng|   Building wheel for pytomlpp (pyproject.toml): started
  |searxng|   Building wheel for pytomlpp (pyproject.toml): finished with status 'error'
  |searxng|   error: subprocess-exited-with-error
  |searxng|   
  |searxng|   × Building wheel for pytomlpp (pyproject.toml) did not run successfully.
  |searxng|   │ exit code: 1
  |searxng|   ╰─> [78 lines of output]
  |searxng|       running bdist_wheel
  |searxng|       running build
  |searxng|       running build_py
  |searxng|       creating build/lib.linux-aarch64-cpython-39/pytomlpp
  |searxng|       copying src/pytomlpp/__init__.py -> build/lib.linux-aarch64-cpython-39/pytomlpp
  |searxng|       copying src/pytomlpp/_io.py -> build/lib.linux-aarch64-cpython-39/pytomlpp
  |searxng|       copying src/pytomlpp/_impl.pyi -> build/lib.linux-aarch64-cpython-39/pytomlpp
  |searxng|       copying src/pytomlpp/py.typed -> build/lib.linux-aarch64-cpython-39/pytomlpp
  |searxng|       running build_ext
  |searxng|       building 'pytomlpp._impl' extension
  |searxng|       Traceback (most recent call last):
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
  |searxng|           main()
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
  |searxng|           json_out['return_val'] = hook(**hook_input['kwargs'])
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
  |searxng|           return _build_backend().build_wheel(wheel_directory, config_settings,
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/build_meta.py", line 434, in build_wheel
  |searxng|           return _build(['bdist_wheel', '--dist-info-dir', metadata_directory])
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/build_meta.py", line 422, in _build
  |searxng|           return self._build_with_temp_dir(
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/build_meta.py", line 403, in _build_with_temp_dir
  |searxng|           self.run_setup()
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/build_meta.py", line 516, in run_setup
  |searxng|           super().run_setup(setup_script=setup_script)
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/build_meta.py", line 318, in run_setup
  |searxng|           exec(code, locals())
  |searxng|         File "<string>", line 23, in <module>
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/__init__.py", line 117, in setup
  |searxng|           return distutils.core.setup(**attrs)
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 183, in setup
  |searxng|           return run_commands(dist)
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
  |searxng|           dist.run_commands()
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
  |searxng|           self.run_command(cmd)
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/dist.py", line 991, in run_command
  |searxng|           super().run_command(command)
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
  |searxng|           cmd_obj.run()
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/command/bdist_wheel.py", line 407, in run
  |searxng|           self.run_command("build")
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
  |searxng|           self.distribution.run_command(command)
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/dist.py", line 991, in run_command
  |searxng|           super().run_command(command)
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
  |searxng|           cmd_obj.run()
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 135, in run
  |searxng|           self.run_command(cmd_name)
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
  |searxng|           self.distribution.run_command(command)
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/dist.py", line 991, in run_command
  |searxng|           super().run_command(command)
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
  |searxng|           cmd_obj.run()
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 98, in run
  |searxng|           _build_ext.run(self)
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
  |searxng|           self.build_extensions()
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions
  |searxng|           self._build_extensions_serial()
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial
  |searxng|           self.build_extension(ext)
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 263, in build_extension
  |searxng|           _build_ext.build_extension(self, ext)
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 557, in build_extension
  |searxng|           objects = self.compiler.compile(
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py", line 596, in compile
  |searxng|           macros, objects, extra_postargs, pp_opts, build = self._setup_compile(
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py", line 354, in _setup_compile
  |searxng|           pp_opts = gen_preprocess_options(macros, incdirs)
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py", line 1222, in gen_preprocess_options
  |searxng|           pp_opts.extend(f"-I{dir}" for dir in include_dirs)
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py", line 1222, in <genexpr>
  |searxng|           pp_opts.extend(f"-I{dir}" for dir in include_dirs)
  |searxng|         File "<string>", line 12, in __str__
  |searxng|       ModuleNotFoundError: No module named 'pybind11'
  |searxng|       [end of output]
  |searxng|   
  |searxng|   note: This error originates from a subprocess, and is likely not a problem with pip.
  |searxng|   ERROR: Failed building wheel for pytomlpp
  |searxng| Successfully built searxng
  |searxng| Failed to build pytomlpp
  |searxng| ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pytomlpp)
** press any [KEY] to continue **

install /etc/searxng/settings.yml
---------------------------------
INFO:  install (eval=0): /etc/searxng/settings.yml
INFO:  install: /home/pi/Downloads/searxng/utils/templates/etc/searxng/settings.yml
-->|'/home/pi/Downloads/searxng/utils/templates/etc/searxng/settings.yml' -> '/etc/searxng/settings.yml'
sed -i -e "s/ultrasecretkey/971709a44948b296ef36611f11537f62/g" "/etc/searxng/settings.yml"
** press any [KEY] to continue **

Test SearXNG instance locally
-----------------------------

Activate debug mode, start a minimal SearXNG service and debug a HTTP
request/response cycle.

WARN:  Do not enable debug in a production environment!
INFO:  try to enable debug mode ...
cd /usr/local/searxng/searxng-src
sed -i -e "s/debug: false/debug: true/g" "/etc/searxng/settings.yml"
INFO:  restart uWSGI service
export SEARXNG_SETTINGS_PATH="/etc/searxng/settings.yml"
cd /usr/local/searxng/searxng-src
timeout 10 python searx/webapp.py &
sleep 3
  |searxng| Traceback (most recent call last):
  |searxng|   File "/usr/local/searxng/searxng-src/searx/webapp.py", line 25, in <module>
  |searxng|     import httpx
  |searxng| ModuleNotFoundError: No module named 'httpx'
curl --location --verbose --head --insecure 127.0.0.1:8888
  |searxng| *   Trying 127.0.0.1:8888...
  |searxng|   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
  |searxng|                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* connect to 127.0.0.1 port 8888 failed: Connexion refusée
  |searxng| * Failed to connect to 127.0.0.1 port 8888: Connexion refusée
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  |searxng| * Closing connection 0
  |searxng| curl: (7) Failed to connect to 127.0.0.1 port 8888: Connexion refusée

INFO:  try to disable debug mode ...
cd /usr/local/searxng/searxng-src
sed -i -e "s/debug: true/debug: false/g" "/etc/searxng/settings.yml"
INFO:  restart uWSGI service
** press any [KEY] to continue **

SearXNG (install uwsgi)
=======================
INFO:  installing uwsgi ...

installation of packages
------------------------

package(s)::

   uwsgi

Should packages be installed? [YES/no] 
Yes
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
uwsgi est déjà la version la plus récente (2.0.19.1-7.1).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.

Install searxng.ini using socket at: /usr/local/searxng/run/socket
INFO:  install (eval=1): /etc/uwsgi/apps-available/searxng.ini
INFO:  variant --> :socket
INFO:  BUILD /home/pi/Downloads/searxng/cache/etc/uwsgi/apps-available/searxng.ini:socket
INFO:  BUILD using template /home/pi/Downloads/searxng/utils/templates/etc/uwsgi/apps-available/searxng.ini:socket
INFO:  install: /home/pi/Downloads/searxng/cache/etc/uwsgi/apps-available/searxng.ini:socket
-->|'/home/pi/Downloads/searxng/cache/etc/uwsgi/apps-available/searxng.ini:socket' -> '/etc/uwsgi/apps-available/searxng.ini'
INFO:  enabled uWSGI app: searxng.ini (restart required)
INFO:  restart uWSGI service
INFO:  uWSGI app: searxng.ini is installed
INFO:  uWSGI socket is located at: /usr/local/searxng/run/socket
** press any [KEY] to continue **

Redis DB
========
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'searx'

In your instance, redis DB connector is configured at:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'searx'
ERROR: SearXNG instance can't connect redis DB / check redis & your settings

HTTP Server
===========
INFO:  Nginx is installed on this host.

Do you want to install a reverse proxy [YES/no] 
Yes

Install nginx site searxng.conf
===============================

This installs SearXNG's uWSGI app as Nginx site.  The Nginx site is
located at: /etc/nginx/default.apps-available/searxng.conf and requires
a uWSGI.
INFO:  uWSGI socket is located at: /usr/local/searxng/run/socket
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'searx'

The configured redis DB is not available: If your server is public to
the internet, you should setup a bot protection to block excessively
bot queries.  Bot protection requires a redis DB.  About bot protection
visit the official SearXNG documentation and query for the word 'limiter'.

INFO:  Nginx packages are installed [OK]
INFO:  checking existence: 'include /etc/nginx/default.d/*.conf;' in file /etc/nginx/sites-available/default
        include /etc/nginx/default.d/*.conf;
INFO:  OK, already exists.
INFO:  install (eval=1): /etc/nginx/default.apps-available/searxng.conf
INFO:  variant --> :socket
INFO:  BUILD /home/pi/Downloads/searxng/cache/etc/nginx/default.apps-available/searxng.conf:socket
INFO:  BUILD using template /home/pi/Downloads/searxng/utils/templates/etc/nginx/default.apps-available/searxng.conf:socket
INFO:  file /etc/nginx/default.apps-available/searxng.conf already installed
INFO:  enable nginx app: searxng.conf
INFO:  reload nginx ..

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
INFO:  installed nginx app: searxng.conf
INFO:  got 500 from http://sabsab/searxng

Finalize installation
=====================

Do you want to run some checks? [YES/no] 
Yes
INFO:  wrapper:  utils/searxng.sh instance _call searxng.check

SearXNG checks
--------------
INFO:  [OK] (old) account 'searx' does not exists
INFO:  [OK] (old) account 'filtron' does not exists
INFO:  [OK] (old) account 'morty' does not exists
Traceback (most recent call last):
  File "/usr/local/searxng/searxng-src/utils/searxng_check.py", line 19, in <module>
    import searx
ModuleNotFoundError: No module named 'searx'
return42 commented 4 days ago

searx was running like a charm for months on a raspberry ... |searxng| ERROR: Failed building wheel for pytomlpp

I assume you have a 32bit architecture / your issue is already reported here:

Last commit that works on 32bit is https://github.com/searxng/searxng/commit/3e747d0491b23f9431ce6ccc79875233614e165a .. sadly you have to rollback to this commit.


close this issue / duplicate of #3887

tazogil2 commented 4 days ago

Thank you for your help but look at the following, my raspeberry pi4 is not 32 bit architecture :

@.***:~/Downloads/searxng $ uname -a Linux sabsab 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

Le jeudi 17 octobre 2024 à 14:00, Markus Heiser @.***> a écrit :

searx was running like a charm for months on a raspberry ... |searxng| ERROR: Failed building wheel for pytomlpp

I assume you have a 32bit architecture / your issue is already reported here:

Last commit that works on 32bit is 3e747d0 .. sadly you have to rollback to this commit.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Bnyro commented 4 days ago

It's a duplicate of https://github.com/searxng/searxng/issues/3896 actually.