Skip to content

SearXNG script fails to completeΒ #4158

@krestaino

Description

@krestaino

βœ… Have you read and understood the above guidelines?

yes

πŸ“œ What is the name of the script you are using?

SearXNG

πŸ“‚ What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/searxng.sh)"

βš™οΈ What settings are you using?

  • Default Settings
  • Advanced Settings

πŸ–₯️ Which Linux distribution are you using?

Debian 12

πŸ“ Provide a clear and concise description of the issue.

The script fails using both Default Settings and Advanced Settings.

πŸ”„ Steps to reproduce the issue.

Step 1: Run the script (bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/searxng.sh)")
Step 2: Script fails at step "Setup SearXNG"

❌ Paste the full error output (if available).

Default Settings:

   _____                _  __ _   ________
  / ___/___  ____ _____| |/ // | / / ____/
  \__ \/ _ \/ __ `/ ___/   //  |/ / / __  
 ___/ /  __/ /_/ / /  /   |/ /|  / /_/ /  
/____/\___/\__,_/_/  /_/|_/_/ |_/\____/   
                                          
  βš™οΈ  Using Default Settings on node pve-01
  πŸ–₯️  Operating System: debian
  🌟  Version: 12
  πŸ“¦  Container Type: Unprivileged
  πŸ’Ύ  Disk Size: 7 GB
  🧠  CPU Cores: 2
  πŸ› οΈ  RAM Size: 2048 MiB
  πŸ†”  Container ID: 100
  πŸš€  Creating a SearXNG LXC using the above default settings
  
  βœ”οΈ  Using tank-zfs for Template Storage.
  βœ”οΈ  Using local-zfs for Container Storage.
  βœ”οΈ  Updated LXC Template List
  βœ”οΈ  LXC Template is ready to use.
  βœ”οΈ  LXC Container 100 was successfully created.
  βœ”οΈ   Started LXC Container
  βœ”οΈ  Set up Container OS
  βœ”οΈ  Network Connected: 2600:480a:3a13:1c00:be24:11ff:fe4f:7391 
  βœ”οΈ  IPv4 Internet Connected
  βœ”οΈ  IPv6 Internet Connected
  βœ”οΈ  DNS Resolved github.com to 140.82.113.3
  βœ”οΈ  Updated Container OS
  βœ”οΈ  Core dependencies installed
  βœ”οΈ  Installed Dependencies
  βœ”οΈ  Setup Python3
 β § Setup SearXNG 
[ERROR] in line 50: exit code 0: while executing command "$@" > /dev/null 2>&1
The silent function has suppressed the error, run the script with verbose mode enabled, which will provide more detailed output.

/dev/fd/63: line 72: SPINNER_PID: unbound variable

Advanced Settings:

Collecting h11<0.15,>=0.13 (from httpcore<0.18.0,>=0.15.0->httpx==0.24.1->httpx[http2]==0.24.1->searxng==2025.4.30+fd33559cf)
  Downloading h11-0.14.0-py3-none-any.whl.metadata (8.2 kB)
 β §Collecting anyio<5.0,>=3.0 (from httpcore<0.18.0,>=0.15.0->httpx==0.24.1->httpx[http2]==0.24.1->searxng==2025.4.30+fd33559cf)
  Downloading anyio-4.9.0-py3-none-any.whl.metadata (4.7 kB)
Downloading babel-2.17.0-py3-none-any.whl (10.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.2/10.2 MB 31.8 MB/s eta 0:00:00
Downloading Brotli-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.9/2.9 MB 30.9 MB/s eta 0:00:00
Downloading certifi-2025.1.31-py3-none-any.whl (166 kB)
Downloading fasttext_predict-0.9.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (298 kB)
 β ΈDownloading flask-3.1.0-py3-none-any.whl (102 kB)
Downloading flask_babel-4.0.0-py3-none-any.whl (9.6 kB)
Downloading httpx-0.24.1-py3-none-any.whl (75 kB)
Downloading httpx_socks-0.7.7-py3-none-any.whl (12 kB)
 β ΌDownloading isodate-0.7.2-py3-none-any.whl (22 kB)
Downloading jinja2-3.1.6-py3-none-any.whl (134 kB)
Downloading lxml-5.4.0-cp311-cp311-manylinux_2_28_x86_64.whl (4.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.9/4.9 MB 31.3 MB/s eta 0:00:00
Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Downloading msgspec-0.19.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (210 kB)
Downloading pygments-2.19.1-py3-none-any.whl (1.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 27.3 MB/s eta 0:00:00
Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Downloading redis-5.0.8-py3-none-any.whl (255 kB)
 β ‡Downloading setproctitle-1.3.5-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (31 kB)
Downloading typer_slim-0.15.2-py3-none-any.whl (45 kB)
Downloading uvloop-0.21.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.0/4.0 MB 30.8 MB/s eta 0:00:00
 β ‹Downloading h2-4.2.0-py3-none-any.whl (60 kB)
Downloading hpack-4.1.0-py3-none-any.whl (34 kB)
Downloading httpcore-0.17.3-py3-none-any.whl (74 kB)
Downloading anyio-4.9.0-py3-none-any.whl (100 kB)
 β ™Downloading h11-0.14.0-py3-none-any.whl (58 kB)
Downloading hyperframe-6.1.0-py3-none-any.whl (13 kB)
Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Downloading sniffio-1.3.1-py3-none-any.whl (10 kB)
 β ΉDownloading async_timeout-5.0.1-py3-none-any.whl (6.2 kB)
Downloading blinker-1.9.0-py3-none-any.whl (8.5 kB)
Downloading click-8.1.8-py3-none-any.whl (98 kB)
Downloading idna-3.10-py3-none-any.whl (70 kB)
Downloading itsdangerous-2.2.0-py3-none-any.whl (16 kB)
 β ΈDownloading MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23 kB)
Downloading python_socks-2.7.1-py3-none-any.whl (54 kB)
Downloading pytz-2025.2-py2.py3-none-any.whl (509 kB)
 β ΌDownloading six-1.17.0-py2.py3-none-any.whl (11 kB)
Downloading typing_extensions-4.13.2-py3-none-any.whl (45 kB)
Downloading werkzeug-3.1.3-py3-none-any.whl (224 kB)
 β ΄Installing collected packages: pytz, fasttext-predict, Brotli, uvloop, typing-extensions, sniffio, six, setproctitle, python-socks, pygments, msgspec, mdurl, MarkupSafe, lxml, itsdangerous, isodate, idna, hyperframe, hpack, h11, click, certifi, blinker, babel, async-timeout, Werkzeug, typer-slim, redis, python-dateutil, markdown-it-py, jinja2, h2, anyio, httpcore, flask, httpx, flask-babel, httpx-socks, searxng
 β §  DEPRECATION: Legacy editable install of searxng==2025.4.30+fd33559cf from file:///usr/local/searxng/searxng-src (setup.py develop) is deprecated. pip 25.3 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at https://github.com/pypa/pip/issues/11457
  Running setup.py develop for searxng
 ⠏    error: subprocess-exited-with-error╸━ 38/39 [searxng]
    
    Γ— python setup.py develop did not run successfully.
    β”‚ exit code: 1
    ╰─> [102 lines of output]
        /usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
        !!
        
                ********************************************************************************
                Please consider removing the following classifiers in favor of a SPDX license expression:
        
                License :: OSI Approved :: GNU Affero General Public License v3
        
                See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
                ********************************************************************************
        
        !!
          self._finalize_license_expression()
        2025-04-30 15:14:06,871 INFO:root: running develop
        /usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated.
        !!
        
                ********************************************************************************
                Please avoid running ``setup.py`` and ``develop``.
                Instead, use standards-based tools like pip or uv.
        
                By 2025-Oct-31, you need to update your project and remove deprecated calls
                or your builds will no longer be supported.
        
                See https://github.com/pypa/setuptools/issues/917 for details.
                ********************************************************************************
        
        !!
          self.initialize_options()
        Obtaining file:///usr/local/searxng/searxng-src
          Installing build dependencies: started
          Installing build dependencies: finished with status 'done'
          Checking if build backend supports build_editable: started
          Checking if build backend supports build_editable: finished with status 'done'
          Getting requirements to build editable: started
          Getting requirements to build editable: finished with status 'error'
          error: subprocess-exited-with-error
        
          Γ— Getting requirements to build editable did not run successfully.
          β”‚ exit code: 1
          ╰─> [27 lines of output]
              Traceback (most recent call last):
                File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
                  main()
                File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
                  json_out["return_val"] = hook(**hook_input["kwargs"])
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable
                  return hook(config_settings)
                         ^^^^^^^^^^^^^^^^^^^^^
                File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable
                  return self.get_requires_for_build_wheel(config_settings)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
                  return self._get_build_requires(config_settings, requirements=[])
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
                  self.run_setup()
                File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 512, in run_setup
                  super().run_setup(setup_script=setup_script)
                File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup
                  exec(code, locals())
                File "<string>", line 6, in <module>
                File "/usr/local/searxng/searxng-src/searx/__init__.py", line 11, in <module>
                  import searx.settings_loader
                File "/usr/local/searxng/searxng-src/searx/settings_loader.py", line 27, in <module>
                  import yaml
              ModuleNotFoundError: No module named 'yaml'
              [end of output]
        
          note: This error originates from a subprocess, and is likely not a problem with pip.
        error: subprocess-exited-with-error
        
        Γ— Getting requirements to build editable did not run successfully.
        β”‚ exit code: 1
        ╰─> See above for output.
        
        note: This error originates from a subprocess, and is likely not a problem with pip.
        Traceback (most recent call last):
          File "<string>", line 2, in <module>
          File "<pip-setuptools-caller>", line 35, in <module>
          File "/usr/local/searxng/searxng-src/setup.py", line 18, in <module>
            setup(
          File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/__init__.py", line 117, in setup
            return distutils.core.setup(**attrs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 186, in setup
            return run_commands(dist)
                   ^^^^^^^^^^^^^^^^^^
          File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
            dist.run_commands()
          File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
            self.run_command(cmd)
          File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/dist.py", line 1104, in run_command
            super().run_command(command)
          File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
            cmd_obj.run()
          File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/command/develop.py", line 39, in run
            subprocess.check_call(cmd)
          File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
            raise CalledProcessError(retcode, cmd)
        subprocess.CalledProcessError: Command '['/usr/local/searxng/searx-pyenv/bin/python3', '-m', 'pip', 'install', '-e', '.', '--use-pep517', '--no-deps']' returned non-zero exit status 1.
        [end of output]
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

Γ— python setup.py develop did not run successfully.
β”‚ exit code: 1
╰─> [102 lines of output]
    /usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
    !!
    
            ********************************************************************************
            Please consider removing the following classifiers in favor of a SPDX license expression:
    
            License :: OSI Approved :: GNU Affero General Public License v3
    
            See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
            ********************************************************************************
    
    !!
      self._finalize_license_expression()
    2025-04-30 15:14:06,871 INFO:root: running develop
    /usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:90: DevelopDeprecationWarning: develop command is deprecated.
    !!
    
            ********************************************************************************
            Please avoid running ``setup.py`` and ``develop``.
            Instead, use standards-based tools like pip or uv.
    
            By 2025-Oct-31, you need to update your project and remove deprecated calls
            or your builds will no longer be supported.
    
            See https://github.com/pypa/setuptools/issues/917 for details.
            ********************************************************************************
    
    !!
      self.initialize_options()
    Obtaining file:///usr/local/searxng/searxng-src
      Installing build dependencies: started
      Installing build dependencies: finished with status 'done'
      Checking if build backend supports build_editable: started
      Checking if build backend supports build_editable: finished with status 'done'
      Getting requirements to build editable: started
      Getting requirements to build editable: finished with status 'error'
      error: subprocess-exited-with-error
    
      Γ— Getting requirements to build editable did not run successfully.
      β”‚ exit code: 1
      ╰─> [27 lines of output]
          Traceback (most recent call last):
            File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
              main()
            File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
              json_out["return_val"] = hook(**hook_input["kwargs"])
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 157, in get_requires_for_build_editable
              return hook(config_settings)
                     ^^^^^^^^^^^^^^^^^^^^^
            File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 473, in get_requires_for_build_editable
              return self.get_requires_for_build_wheel(config_settings)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
              return self._get_build_requires(config_settings, requirements=[])
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
              self.run_setup()
            File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 512, in run_setup
              super().run_setup(setup_script=setup_script)
            File "/tmp/pip-build-env-blq583pj/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup
              exec(code, locals())
            File "<string>", line 6, in <module>
            File "/usr/local/searxng/searxng-src/searx/__init__.py", line 11, in <module>
              import searx.settings_loader
            File "/usr/local/searxng/searxng-src/searx/settings_loader.py", line 27, in <module>
              import yaml
          ModuleNotFoundError: No module named 'yaml'
          [end of output]
    
      note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error
    
    Γ— Getting requirements to build editable did not run successfully.
    β”‚ exit code: 1
    ╰─> See above for output.
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
    Traceback (most recent call last):
      File "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 35, in <module>
      File "/usr/local/searxng/searxng-src/setup.py", line 18, in <module>
        setup(
      File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/__init__.py", line 117, in setup
        return distutils.core.setup(**attrs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 186, in setup
        return run_commands(dist)
               ^^^^^^^^^^^^^^^^^^
      File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
        dist.run_commands()
      File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
        self.run_command(cmd)
      File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/dist.py", line 1104, in run_command
        super().run_command(command)
      File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
        cmd_obj.run()
      File "/usr/local/searxng/searx-pyenv/lib/python3.11/site-packages/setuptools/command/develop.py", line 39, in run
        subprocess.check_call(cmd)
      File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/usr/local/searxng/searx-pyenv/bin/python3', '-m', 'pip', 'install', '-e', '.', '--use-pep517', '--no-deps']' returned non-zero exit status 1.
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
 β ‹
[ERROR] in line 43: exit code 0: while executing command $STD pip install -e /usr/local/searxng/searxng-src
/dev/fd/63: line 72: SPINNER_PID: unbound variable

πŸ–ΌοΈ Additional context (optional).

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions