Package Details: searx 1.1.0-2

Git Clone URL: https://aur.archlinux.org/searx.git (read-only, click to copy)
Package Base: searx
Description: A privacy-respecting, hackable metasearch engine (python(3) based)
Upstream URL: https://searx.github.io/searx/
Licenses: AGPL
Conflicts: searx-git
Replaces: searx-py3
Submitter: Jake
Maintainer: Jake
Last Packager: Jake
Votes: 38
Popularity: 0.000018
First Submitted: 2016-09-07 11:42 (UTC)
Last Updated: 2023-06-03 10:47 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

Jake commented on 2020-02-13 19:36 (UTC)

@MagicTheRipper: Post the log output from journalctl -u uwsgi@searx.service, please. Otherwise it is impossible to debug.

MagicTheRipper commented on 2020-02-13 19:03 (UTC) (edited on 2020-02-13 19:12 (UTC) by MagicTheRipper)

Im having an error when I connect to localhost:8888,it shows this "Internal Server Error" as a result on my browser

Any fix

Jake commented on 2020-02-13 11:58 (UTC) (edited on 2020-02-13 11:59 (UTC) by Jake)

@noctux: Thanks a lot for the patch, i have applied it now (pkgrel=2).

noctux commented on 2020-02-13 08:55 (UTC)

Breaks with recent releases of werkzeug 1.0.0. Upstream has a patch: https://github.com/asciimoo/searx/commit/b8b13372c8fd3bfe978a1c724ab98b05348df054

Update for the pkgbuild:

diff --git a/0003-Fix-deprecated-werkzeug-import.patch b/0003-Fix-deprecated-werkzeug-import.patch
new file mode 100644
index 0000000..ca6e27c
--- /dev/null
+++ b/0003-Fix-deprecated-werkzeug-import.patch
@@ -0,0 +1,43 @@
+From b8b13372c8fd3bfe978a1c724ab98b05348df054 Mon Sep 17 00:00:00 2001
+Message-Id: <b8b13372c8fd3bfe978a1c724ab98b05348df054.1581582658.git.git@rationality.eu>
+In-Reply-To: <a818d3241df2cf010086f837a504b11983c3d55f.1581582658.git.git@rationality.eu>
+References: <a818d3241df2cf010086f837a504b11983c3d55f.1581582658.git.git@rationality.eu>
+From: Nicolas Gelot <nicolas.gelot@e.email>
+Date: Thu, 6 Feb 2020 22:40:58 +0100
+Subject: [PATCH 3/6] Fix deprecated werkzeug import
+
+Close: #1830
+Signed-off-by: Nicolas Gelot <nicolas.gelot@e.email>
+---
+ requirements.txt | 2 +-
+ searx/webapp.py  | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/requirements.txt b/requirements.txt
+index 6e4df37a..ea4a5a7a 100644
+--- a/requirements.txt
++++ b/requirements.txt
+@@ -1,6 +1,6 @@
+ certifi==2019.3.9
+ babel==2.7.0
+-flask-babel==0.12.2
++flask-babel==1.0.0
+ flask==1.0.2
+ idna==2.8
+ jinja2==2.10.1
+diff --git a/searx/webapp.py b/searx/webapp.py
+index aadefe6b..5ed9f127 100644
+--- a/searx/webapp.py
++++ b/searx/webapp.py
+@@ -47,7 +47,7 @@ except:
+     from html import escape
+ from datetime import datetime, timedelta
+ from time import time
+-from werkzeug.contrib.fixers import ProxyFix
++from werkzeug.middleware.proxy_fix import ProxyFix
+ from flask import (
+     Flask, request, render_template, url_for, Response, make_response,
+     redirect, send_from_directory
+-- 
+2.25.0
+
diff --git a/PKGBUILD b/PKGBUILD
index 369ce74..8b0a835 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,24 +27,31 @@ replaces=('searx-py3')
 backup=('etc/searx/settings.yml' 'etc/uwsgi/searx.ini')
 source=("https://github.com/asciimoo/searx/archive/v$pkgver.zip"
         'searx.ini'
-        'searx.sysusers')
+        'searx.sysusers'
+        '0003-Fix-deprecated-werkzeug-import.patch')
 sha512sums=('3ae4e4c295830e65eefbd39ed9885b60a42a4d4db4d87c179ace76cf43f8c75d49f1363f019bedd135c0597191612e16592cacd159ae97a42a25dcc2fee9d00b'
             '6e1e7771e747e2bcb9cbc3e5ec9735461b6d791c0c0412e06e7dd802c18625edd0916de32164bf780c18ef7b6a87f55ed1e917377b3adb2bf53c0344f34b49e8'
-            '6856e26451fe053d37c2ce4b9d5f3b35891dd8ec702c5256c02d04415124c57705abc497f12943948a85621bb0238d26c2c1f3a7bf42404a6ff1487c7655909e')
+            '6856e26451fe053d37c2ce4b9d5f3b35891dd8ec702c5256c02d04415124c57705abc497f12943948a85621bb0238d26c2c1f3a7bf42404a6ff1487c7655909e'
+            '064738f57b8bfbd937d56c592f7321140aab5f894e8ea457ae0d2d9407523f58471f4ba7424968f1d6db7fe51e4f8d360d1e997284eeb7b8528dbcf10f5f12dd')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  patch --forward --strip=1 --input="${srcdir}/0003-Fix-deprecated-werkzeug-import.patch"
+}

 package() {
   cd $srcdir/$pkgname-$pkgver

   # Allow newer versions of the dependencies
   sed -i "s|==|>=|g" requirements.txt
-  
+
   # Generate a random secret key
   sed -i -e "s/ultrasecretkey\" # change this!/`openssl rand -hex 32`\"/g" $pkgname/settings.yml

   python3.8 setup.py install --root=$pkgdir --optimize=1
-  
+
   mv $pkgdir/usr/lib/python3.8/site-packages/{README.rst,requirements*,searx}
-  
+
   mkdir -p $pkgdir/etc/$pkgname
   mv $pkgdir/usr/lib/python3.8/site-packages/$pkgname/settings.yml $pkgdir/etc/$pkgname/
   ln -s /etc/$pkgname/settings.yml $pkgdir/usr/lib/python3.8/site-packages/$pkgname/settings.yml

bjo commented on 2019-12-03 07:00 (UTC) (edited on 2019-12-03 07:00 (UTC) by bjo)

@GI_Jack run systemctl start uwsgi@searx

GI_Jack commented on 2019-12-03 02:18 (UTC)

add systemd package for running this as a daemon.

bjo commented on 2019-11-25 10:01 (UTC)

Could you add the patch from https://github.com/asciimoo/searx/pull/1749 ? It would make google working again.

kseistrup commented on 2019-11-18 19:04 (UTC)

@Jake, that's great – thanks for letting us know.

Re: problems: I didn't cause problems as such, but it did create warnings from systemd in syslog.

Jake commented on 2019-11-18 18:50 (UTC)

@kseistrup: I deleted the user and reinstalled the package (sysusers does not touch existing users) for the test. It works fine and shows no warnings. Most official packages have system users without homedir, so in general it should be okay. We could even drop the extra user and use the uwsgi user, that has also no homedir set... Also i am pretty sure many users still had the user created with an older python version (even 2.x) in the homedir and that causes no issues, otherwise they surely would have surfaced by now.