Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] kilrah/searxng

Featured Replies

  • 3 months later...
  • Replies 54
  • Views 26.5k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • plantsandbinary
    plantsandbinary

    Alright seeing as I have to do everything myself to get this container working properly and without any error spam etc.   I've done the following and until the maintainer of this container d

  • @Kilrah   BINGO!   That fixed it. Running on port 80!   Thx very much for the tip!

  • I'm not sure what was wrong, I couldn't get this to work all day yesterday, woke up this morning and now it works. Thank you again.

Posted Images

Is there a way to change the port?

  • Author

Sure, as long as it's in the default bridged mode like any other container...

Edited by Kilrah

My configuration for this Docker (SearXNG) seems to be missing the "Container Port" that I see in other containers.

image.png.014af33d8d8bb42bbe5375cf15287a69.png

 

Another Docker has these options:

image.png.0120cf8706c6509fa0360467d6460036.png

 

  • Author

See above, you likely don't have Networking for that container set to bridge.

 

image.thumb.png.ee2622b13bd6e7829f9a7ae2b23c1a5f.png

Edited by Kilrah

  • 2 weeks later...

Hello, thank you for this container. I cannot seem to get this to work with nginx proxy manager though. All my other containers are working fine except this one. I'm assuming there is something that needs to be changed in the docker to allow this to proxy correctly? Any idea of want needs to be done?

  • Author

Nothing special here...

 

image.png.02cb83e4269bce1e0505ed1121d17d77.png

 

searxng on bridge, NPM on host

I'm not sure what was wrong, I couldn't get this to work all day yesterday, woke up this morning and now it works. Thank you again.

  • 4 weeks later...

Am I the only one with internal server error since the update yesterday?

 

Traceback (most recent call last):
  File "/usr/local/searxng/searx/webapp.py", line 1398, in <module>
    redis_initialize()
  File "/usr/local/searxng/searx/redisdb.py", line 56, in initialize
    _CLIENT.ping()
  File "/usr/lib/python3.10/site-packages/redis/commands/core.py", line 1194, in ping
    return self.execute_command("PING", **kwargs)
  File "/usr/lib/python3.10/site-packages/redis/client.py", line 1255, in execute_command
    conn = self.connection or pool.get_connection(command_name, **options)
  File "/usr/lib/python3.10/site-packages/redis/connection.py", line 1441, in get_connection
    connection.connect()
  File "/usr/lib/python3.10/site-packages/redis/connection.py", line 698, in connect
    sock = self.retry.call_with_retry(
  File "/usr/lib/python3.10/site-packages/redis/retry.py", line 46, in call_with_retry
    return do()
  File "/usr/lib/python3.10/site-packages/redis/connection.py", line 699, in <lambda>
    lambda: self._connect(), lambda error: self.disconnect(error)
  File "/usr/lib/python3.10/site-packages/redis/connection.py", line 1171, in _connect
    sock.settimeout(self.socket_timeout)
AttributeError: 'UnixDomainSocketConnection' object has no attribute 'socket_timeout'
unable to load app 0 (mountpoint='') (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
--- no python application found, check your startup logs for errors ---
[pid: 15|app: -1|req: -1/1] 192.168.178.162 () {36 vars in 1944 bytes} [Sat Mar 25 11:50:20 2023] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 3 headers in 102 bytes (0 switches on core 0)
--- no python application found, check your startup logs for errors ---
[pid: 49|app: -1|req: -1/2] 192.168.178.162 () {36 vars in 1942 bytes} [Sat Mar 25 11:50:20 2023] GET /favicon.ico => generated 21 bytes in 0 msecs (HTTP/1.1 500) 3 headers in 102 bytes (0 switches on core 0)

 

  • Author

Looks like it broke indeed, I forced to tag 2023.3.22-38414355 and that's fine

Thanks, that's working for me too. 

3 hours ago, Kilrah said:

Looks like it broke indeed, I forced to tag 2023.3.22-38414355 and that's fine

I'm having this issue as well... however I don't know much about troubleshooting/fixing things like this.  Can you ELI5 what you did?  Thanks!

The only thing you have to do is to add ":2023.3.22-38414355" like in the picture under repository - by that way this particular working build is used

Screenshot_20230325_162159.thumb.png.d0080ccb6fd0514087be30bf34554c2b.png

Edited by gilladur

9 minutes ago, gilladur said:

The only thing you have to do is to add ":2023.3.22-38414355" like in the picture under repository - by that way this particular working build is used

Screenshot_20230325_162159.thumb.png.d0080ccb6fd0514087be30bf34554c2b.png

Thank you!

  • Author

Latest seems to be fixed now, so probably best to remove the tag.

 

  • 1 month later...

Revisiting the port concerns.

 

What if you are not running the container in bridge mode? I have a dedicated IP assigned and the container is stuck at port 8080. Could this be down to the template config? I see that line 30 is setting 8080 hardcoded.

  • Author

You can only map port in bridge mode, when on host or br0 the app's original port is always used. 

It's uncommon for dockerized apps to give a way to change it, especially for something simple like this where there is no reason not to run bridged.

That would make sense in normal situations but Unraid's docker networking is a little.....unique from what I understand. The default bridge is hooked into the primary NIC of the server. If you want to run your docker containers on a secondary NIC -like me, you have to run that NIC in bridge with Vlans. Each container on that network gets its own IP on the host network. I've set up a number of other containers that use 8080 or the like but when you flip to the custom bridge network, it ignores the container default and uses the defined variable as the port. In my case, 80.

 

In this template, the reverse seems to be the case. Anything other than bridge forces the predefined container port and ignores the provided port variable.

 

This is the first time I've come across a container that acts like this.

  • Author
7 minutes ago, aglyons said:

If you want to run your docker containers on a secondary NIC

Yeah definitely not the standard unraid scenario...

 

There's nothing special about this template though.

7 minutes ago, aglyons said:

Anything other than bridge forces the predefined container port and ignores the provided port variable.

That's standard behavior, weird that you'd have seen otherwise. Note that if you change the ports in the template while on bridge mode then change to something non-bridge the port remains where you had set it which means it's not the app's one anymore and it breaks until you go into the edit dialog and change it, that's everywhere on unraid.

 

Seeing the doc you might be able to change the app port by adding a BIND_ADDRESS variable to the template.

 

 

Edited by Kilrah

@Kilrah

 

BINGO!

 

That fixed it. Running on port 80!

 

Thx very much for the tip!

Edited by aglyons

  • 1 month later...

Has anyone been able to proxy this docker with NGINX and an SSL cert? I am trying to put this container behind Authelia; however, Authelia requires the proxied site to have an SSL cert ... Unfortunately, once I add a cert to SearXNG (using the built in letsencrypt) I get a browser error of "TOO_MANY_HTTP_REDIRECTS" ... my other dockers don't have an issue with this, just SearXNG. Is there a redirect in the docker that I should know about and change?

  • 6 months later...
  • Author

Done.

Wow super fast reply. Thanks!

 

Do you have any idea why SearXNG is not respecting my settings.yml?

 

I have changed a few settings in the /appdata/searxng/settings.yml file and it doesn't seem to respect these as the defaults at all. I know that it used to but now it doesn't seem to.

 

I have a mostly default template setup:

image.thumb.png.b6250661544f57b201ec1105494cc49c.png 

 

The settings file doesn't seem to have any syntax errors or anything either. Mainly I wanted to turn on safesearch etc. and set centred results and so on. Yet it seems to just ignore these. I've also cleared cookies, tried on incognito and of course restarted the container a few times.

 

Any ideas?

  • Author

I don't know, but here it seems to have generated ".new" files and those are the ones that have current modification dates...

 

image.png.1e3b9392a19a2507159e94d8579e4a9d.png

 

Maybe there's been some migration at some point? would search their docs and issues...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.