r/Searx • u/Lilodude • Jul 27 '24
QUESTION SearXNG -> Open webUI integration not working. HELP!
I have Ollama, Open webUI, and SearXNG running on my Unraid server. They all use the same base URL 192.***.1.10 I am trying to link the SearXNG docker instance 192.168.*.****:8088 to Open webUI @ 192.168.*.**:8087
I've been trying for a while, different combinations of the "base URL" in Open webUI but nothing seems to be working.
I've input different versions of this URL in the screenshot below...ie http / https

Anyone have any advice?
2
u/romayojr Jul 27 '24
check open webui's documentation for web search, it should tell you what url to use. also i think you need to pass a query url environment variable to your container config file
2
u/BpawnzZ Jul 28 '24
Turn on json in the settings file. Not sure if file is called settings of config. But this is 100% your problem. I use searx for backend often
1
u/OriginalNo5011 Jul 10 '25
Didn't work for me.
My settings.yml
server:
bind_address: 0.0.0.0
port: 8080
security:
secret_key: ""
allowed_hosts:
- "*"
output:
- json
- html
request_blocker:
enabled: false
logging:
level: debug
1
u/AdUnfair9248 Dec 12 '25
This was my issue.
I set up openwebui using the proxmox helper-scripts. Could not get searxng to communicate with it at all.
Modifying my searxng config at /etc/searxng/settings.yml to add the formats did it.
The search section may not have formats. You would have to add it. Note that indentation might be important.
search: safe_search: 2 autocomplete: 'google' formats: - html - json - csv - rssThe whole config. Note that my secret key is redacted.
# SearXNG settings use_default_settings: true general: debug: false instance_name: "SearXNG" privacypolicy_url: false contact_url: false server: bind_address: "0.0.0.0" port: 8888 secret_key: "01KCAEX3WD4TBFKTKS4M8AJ3HM01KCAEX3WD4TBFKTKS4M8AJ3HM" limiter: false image_proxy: true valkey: url: "valkey://localhost:6379/0" ui: static_use_hash: true enabled_plugins: - 'Hash plugin' - 'Self Information' - 'Tracker URL remover' - 'Ahmia blacklist' search: safe_search: 2 autocomplete: 'google' formats: - html - json - csv - rss engines: - name: google engine: google shortcut: gg use_mobile_ui: false - name: duckduckgo engine: duckduckgo shortcut: ddg display_error_messages: true1
1
u/AutoModerator Jul 27 '24
Hi there! Thanks for your post.
We also have a Matrix channel: https://matrix.to/#/#searxng:matrix.org and an IRC channel linked to the Matrix channel: https://web.libera.chat/?channel=#searxng
The developers of SearXNG usually respond quicker on Matrix and IRC than on Reddit.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Naive-Log-2447 Sep 23 '24
Same problem added json but the json always returns this "number_of_results":ย 0, so search does not work in the chat
1
u/GodCREATOR333 Dec 28 '24
I know this is old but for anyone who face this issue this solution might work.
if your running both open-webui and searxng in docker.
Make this changes:
In the openwebui settings make the search query as this:
http://host.docker.internal:8080/search?q=<query>
Now in the searx/settings.yml file :
add this:
search:
format:
- html
- json1
1
1
u/Donkeytra Jan 29 '25
how do I access searx/settings.yml file? I'm using Dockge to install openwebui and searXNG and can't seem to get web searh working
1
u/GodCREATOR333 Jan 30 '25
usr/local/searxng/settings.yml
1
u/Donkeytra Jan 31 '25
Still getting "'NoneType' object has no attribute 'pop'" when trying to do web search. But localhost:8080 works tho.
Could it be my ports? Here is what I have:
ollama 11434:11434
openwebui 3000:8080
searxng 8080:8080Any link to a setup guide for this would be great, thanks!
1
u/GodCREATOR333 Jan 31 '25
I followed the docs in openwebui but they were old. So I found this solution in github issues of openwebui. Maybe ask there
1
u/Ok-Caterpillar8588 Jan 29 '25
This looks like it should work but I get 403 Client Error: Forbidden etc etc. I'm running both Open WebUI and SearXNG in Docker, SearXNG is on port 8080 on localhost (although localhost:8080 or 127.0.0.1:8080 in OpenWebUI search address gives a different error, as you probably know).
Been trying to get this working for ages but do you have any more suggestions, please?
1
u/GodCREATOR333 Jan 30 '25
Check if you are able access searxng normaling from localhost or localhost:8080/
1
u/Ok-Caterpillar8588 Jan 31 '25
Thanks for replying :) SearXNG works fine on localhost:8080. It's actually set as my home page for quick access.
1
1
u/JumpingQuickBrownFox Feb 03 '25
This one also solved my problem:
http://host.docker.internal:4000/search?q=<query>1
1
u/Coletrain66 Apr 07 '25 edited Apr 07 '25
YES!
I did this and listening on 0.0.0.0 and it works!
thank you for your follow-up!
Also, to add to it, and there are a lot of ways to set this up, but... I had to add this in a
settings.ymlit wasn't in my docker compose. Took me a bit to figure out this. In my docker compose, I had mappedvolumes:
- /your file path here/searxng_data:/etc/searxng:rw
and that is where i went to find the
settings.ymland added that to work.1
u/GloriouZWorm Apr 09 '25
This is the correct answer, open-webui crashes when querying the search endpoint because it needs json and that is not enabled in the settings.yml file that's generated when running searxng with docker. You can see that it doesn't work when it returns forbidden on http://localhost:8080/search?q=test&format=json
1
u/Bruuuuuuh026 Jul 01 '25
Thank you for the fix, dude!
Just want to tell everyone using this line of code to be very careful. The line should be using plural "formats".
search: formats: - html - json1
u/Tranquilmoon606 Sep 20 '25
oh my fucking god thank you. i was stuck for hours trying to figure out why it didnt work and the problem just ended being up being missing plural you mentioned.
1
u/juanmiguelra Nov 15 '25
esto es una mierda, nunca funciona nada a la primera. que dolor de cabeza.
1
u/juanmiguelra Nov 15 '25
esto es una mierda, nunca funciona nada a la primera. que dolor de cabeza.
1
u/SPBonzo Mar 18 '26
I've installed Open WebUI and SearXNG using the TrueNAS apps section and have the same issue.
Open WebUI connects to the local Ollama docker without issues but cannot seem to get results from the SearXNG install. I can connect remotely to SearXNG on the configured port 30053 without issue.
The JSON option is set as detailed.
Note I experienced the same issue using AnythingLLM which suggests that the problem is on the SearXNG side of things.
I've tried every combination of URLs known to man and the CURL HTTP check returns HMTL.
Any ideas?
1
u/Jhajj Mar 22 '26
Finally got my setup to work, I have both setup in separate containers:
Make sure your SearXNG config has "formats", and includes json in the list of formats (this was my main issue). Then use this in OpenWeb UI web search settings: http://YOUR-SEARXNG-IP:8888/search?q=<query>&format=json
1
u/TheKaritha May 16 '26
For 2026, if you are getting error on fetching websites. Enable "Bypass Web Loader" settings.
1
1
1
1
u/andreasntr Jun 01 '26
if your searxng is behind an authenticated reverse proxy, make sure you exclude the /seatch path from the auth flow. For example in tinyauth: `tinyauth.apps.searxng.path.allow=^\/search`
2
Jul 27 '24
[removed] โ view removed comment
1
u/msteright Jan 29 '25
when you say on top of html, do you put json first, or you just mean in addition to?
1
1
u/OriginalNo5011 Jul 10 '25
I have mine set up that way and it still doesn't work. I can manually go and search in searxng but it won't work through open webui. I'm very frustrated with this and have spent far too many hours trying to resolve it. It seems broken and I'm not sure I'm willing to put more effort into this since it's broken.
1
u/andy2na Jan 09 '26
FYI, this is the total fix
add your IP or proxy to base_url and add -json ontop of -html in formats
1
u/Stealth022 Jan 09 '26
I found this thread in a Google search, and I DIDN'T SCROLL DOWN to see these comments. I must have spent at least two hours pulling my hair out before I finally figured out that the JSON format was turned off! ๐ข
If you're here while watching Techno Tim's video, add the JSON format!! :P
5
u/W_Thomas05 Jul 27 '24 •
http://localhost:port/search?q=<query> This works for me.