SearXNG query causes open-webui to crash with exit status 8 FPE #1422

Closed
opened 2025-11-11 14:44:52 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @V3ntus on GitHub (Jul 2, 2024).

Bug Report

Description

Bug Summary:
After the RAG receives a response from SearXNG and during/after storing in the vector DB, open-webui crashes with floating point exception and no extra information.

Steps to Reproduce:

  1. Set up locally hosted SearXNG following instructions (no uWSGI)
  2. Configure open-webui to point to local SearXNG
  3. Execute Web Search query with any model.

Expected Behavior:
open-webui should handle this error.

Actual Behavior:
open-webui crashed with no extra debug info or stacktrace.

Environment

  • Open WebUI Version: 0.3.7

  • Ollama (if applicable): 0.1.47

  • Operating System: NixOS 24.11.20240630.e6cdd8a (Vicuna)

  • Browser (if applicable): Google Chrome 125.0.6422.76 (Official Build) (64-bit)

Reproduction Details

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
    • As this isn't running in Docker, journald logs have been attached instead.

Logs and Screenshots

Browser Console Logs:
image

**Docker Container Logs:**
Jul 02 20:00:04 ai open-webui[28354]: INFO:root:trying to web search with ('searxng', 'Write a convex hull algorithm in Python')
Jul 02 20:00:04 ai open-webui[28354]: DEBUG:apps.rag.search.searxng:searching http://192.168.2.12:8082/search
Jul 02 20:00:04 ai open-webui[28354]: DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.2.12:8082
Jul 02 20:00:06 ai open-webui[28354]: DEBUG:urllib3.connectionpool:http://192.168.2.12:8082 "GET /search?q=Write+a+convex+hull+algorithm+in+Python&format=json&pageno=1&safesearch=1&language=en-US&time_range=&categories=&theme=simple&image_proxy=0 HTTP/1.1" 200 30309
Jul 02 20:00:06 ai open-webui[28354]: DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): docs.scipy.org:443
Jul 02 20:00:06 ai open-webui[28354]: DEBUG:urllib3.connectionpool:https://docs.scipy.org:443 "GET /doc/scipy/reference/generated/scipy.spatial.ConvexHull.html HTTP/1.1" 200 40134
Jul 02 20:00:06 ai open-webui[28354]: DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): www.geeksforgeeks.org:443
Jul 02 20:00:06 ai open-webui[28354]: DEBUG:urllib3.connectionpool:https://www.geeksforgeeks.org:443 "GET /convex-hull-in-python/ HTTP/1.1" 200 None
Jul 02 20:00:07 ai open-webui[28354]: DEBUG:chardet.charsetprober:SHIFT_JIS Japanese prober hit error at byte 167294
Jul 02 20:00:07 ai open-webui[28354]: DEBUG:chardet.charsetprober:EUC-JP Japanese prober hit error at byte 167292
Jul 02 20:00:07 ai open-webui[28354]: DEBUG:chardet.charsetprober:GB2312 Chinese prober hit error at byte 167294
Jul 02 20:00:07 ai open-webui[28354]: DEBUG:chardet.charsetprober:EUC-KR Korean prober hit error at byte 167292
Jul 02 20:00:07 ai open-webui[28354]: DEBUG:chardet.charsetprober:CP949 Korean prober hit error at byte 167292
Jul 02 20:00:07 ai open-webui[28354]: DEBUG:chardet.charsetprober:Big5 Chinese prober hit error at byte 167293
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:EUC-TW Taiwan prober hit error at byte 167292
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:Johab Korean prober hit error at byte 167292
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:windows-1251 Russian confidence = 0.01
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:KOI8-R Russian confidence = 0.01
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:ISO-8859-5 Russian confidence = 0.01
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:MacCyrillic Russian confidence = 0.0
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:IBM866 Russian confidence = 0.0
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:IBM855 Russian confidence = 0.01
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:ISO-8859-7 Greek confidence = 0.04076314982037212
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:windows-1253 Greek confidence = 0.04076314982037212
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:ISO-8859-5 Bulgarian confidence = 0.0
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:windows-1251 Bulgarian confidence = 0.0
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:TIS-620 Thai confidence = 0.01
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:ISO-8859-9 Turkish confidence = 0.5598125885666775
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:windows-1255 Hebrew confidence = 0.0
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:windows-1255 Hebrew confidence = 0.09041689691840087
Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:windows-1255 Hebrew confidence = 0.04109858950836403
Jul 02 20:00:08 ai open-webui[28354]: INFO:apps.rag.main:store_data_in_vector_db [Document(page_content='ConvexHull — SciP ...
Jul 02 20:00:08 ai open-webui[28354]: INFO:apps.rag.main:deleting existing collection 3646a85ff26e1dbd4a69127e043fda5e965888c200ce07d43dd9f9b5042cd7f
Jul 02 20:00:15 ai open-webui[28354]: [47B blob data]
Jul 02 20:00:15 ai systemd[1]: open-webui.service: Main process exited, code=dumped, status=8/FPE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit open-webui.service has exited.
░░ 
░░ The process' exit code is 'dumped' and its exit status is 8.

Screenshots (if applicable):
[Attach any relevant screenshots to help illustrate the issue]

Installation Method

Manual installation through NixOS

Additional Information

[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]

Note

If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!

Originally created by @V3ntus on GitHub (Jul 2, 2024). # Bug Report ## Description **Bug Summary:** After the RAG receives a response from SearXNG and during/after storing in the vector DB, open-webui crashes with floating point exception and no extra information. **Steps to Reproduce:** 1. Set up locally hosted SearXNG following instructions (no uWSGI) 2. Configure open-webui to point to local SearXNG 3. Execute Web Search query with any model. **Expected Behavior:** open-webui should handle this error. **Actual Behavior:** open-webui crashed with no extra debug info or stacktrace. ## Environment - **Open WebUI Version:** 0.3.7 - **Ollama (if applicable):** 0.1.47 - **Operating System:** NixOS 24.11.20240630.e6cdd8a (Vicuna) - **Browser (if applicable):** Google Chrome 125.0.6422.76 (Official Build) (64-bit) ## Reproduction Details **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [ ] I have included the Docker container logs. - **As this isn't running in Docker, journald logs have been attached instead.** ## Logs and Screenshots **Browser Console Logs:** ![image](https://github.com/open-webui/open-webui/assets/29584664/a2af5515-5225-4e6b-a879-7d4cd3f1ddbb) <details> <summary>**Docker Container Logs:**</summary> ``` Jul 02 20:00:04 ai open-webui[28354]: INFO:root:trying to web search with ('searxng', 'Write a convex hull algorithm in Python') Jul 02 20:00:04 ai open-webui[28354]: DEBUG:apps.rag.search.searxng:searching http://192.168.2.12:8082/search Jul 02 20:00:04 ai open-webui[28354]: DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.2.12:8082 Jul 02 20:00:06 ai open-webui[28354]: DEBUG:urllib3.connectionpool:http://192.168.2.12:8082 "GET /search?q=Write+a+convex+hull+algorithm+in+Python&format=json&pageno=1&safesearch=1&language=en-US&time_range=&categories=&theme=simple&image_proxy=0 HTTP/1.1" 200 30309 Jul 02 20:00:06 ai open-webui[28354]: DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): docs.scipy.org:443 Jul 02 20:00:06 ai open-webui[28354]: DEBUG:urllib3.connectionpool:https://docs.scipy.org:443 "GET /doc/scipy/reference/generated/scipy.spatial.ConvexHull.html HTTP/1.1" 200 40134 Jul 02 20:00:06 ai open-webui[28354]: DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): www.geeksforgeeks.org:443 Jul 02 20:00:06 ai open-webui[28354]: DEBUG:urllib3.connectionpool:https://www.geeksforgeeks.org:443 "GET /convex-hull-in-python/ HTTP/1.1" 200 None Jul 02 20:00:07 ai open-webui[28354]: DEBUG:chardet.charsetprober:SHIFT_JIS Japanese prober hit error at byte 167294 Jul 02 20:00:07 ai open-webui[28354]: DEBUG:chardet.charsetprober:EUC-JP Japanese prober hit error at byte 167292 Jul 02 20:00:07 ai open-webui[28354]: DEBUG:chardet.charsetprober:GB2312 Chinese prober hit error at byte 167294 Jul 02 20:00:07 ai open-webui[28354]: DEBUG:chardet.charsetprober:EUC-KR Korean prober hit error at byte 167292 Jul 02 20:00:07 ai open-webui[28354]: DEBUG:chardet.charsetprober:CP949 Korean prober hit error at byte 167292 Jul 02 20:00:07 ai open-webui[28354]: DEBUG:chardet.charsetprober:Big5 Chinese prober hit error at byte 167293 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:EUC-TW Taiwan prober hit error at byte 167292 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:Johab Korean prober hit error at byte 167292 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:windows-1251 Russian confidence = 0.01 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:KOI8-R Russian confidence = 0.01 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:ISO-8859-5 Russian confidence = 0.01 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:MacCyrillic Russian confidence = 0.0 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:IBM866 Russian confidence = 0.0 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:IBM855 Russian confidence = 0.01 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:ISO-8859-7 Greek confidence = 0.04076314982037212 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:windows-1253 Greek confidence = 0.04076314982037212 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:ISO-8859-5 Bulgarian confidence = 0.0 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:windows-1251 Bulgarian confidence = 0.0 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:TIS-620 Thai confidence = 0.01 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:ISO-8859-9 Turkish confidence = 0.5598125885666775 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:windows-1255 Hebrew confidence = 0.0 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:windows-1255 Hebrew confidence = 0.09041689691840087 Jul 02 20:00:08 ai open-webui[28354]: DEBUG:chardet.charsetprober:windows-1255 Hebrew confidence = 0.04109858950836403 Jul 02 20:00:08 ai open-webui[28354]: INFO:apps.rag.main:store_data_in_vector_db [Document(page_content='ConvexHull — SciP ... Jul 02 20:00:08 ai open-webui[28354]: INFO:apps.rag.main:deleting existing collection 3646a85ff26e1dbd4a69127e043fda5e965888c200ce07d43dd9f9b5042cd7f Jul 02 20:00:15 ai open-webui[28354]: [47B blob data] Jul 02 20:00:15 ai systemd[1]: open-webui.service: Main process exited, code=dumped, status=8/FPE ░░ Subject: Unit process exited ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ An ExecStart= process belonging to unit open-webui.service has exited. ░░ ░░ The process' exit code is 'dumped' and its exit status is 8. ``` </details> **Screenshots (if applicable):** [Attach any relevant screenshots to help illustrate the issue] ## Installation Method Manual installation through NixOS ## Additional Information [Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.] ## Note If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
Author
Owner

@V3ntus commented on GitHub (Jul 2, 2024):

Relevant NixOS config:

{
  services.ollama = {
    enable = true;
    acceleration = "cuda";
    host = "0.0.0.0";
  };

  services.open-webui = {
    enable = true;
    port = 8081;
    host = "0.0.0.0";
    environment = {
      GLOBAL_LOG_LEVEL = "DEBUG";
      MAIN_LOG_LEVEL = "DEBUG";
      RAG_LOG_LEVEL = "DEBUG";
    };
  };

  services.searx = {
    enable = true;
    settings = {
      use_default_settings = true;
      server = {
        port = 8082;
	bind_address = "0.0.0.0";
	secret_key = "...";
	limiter = false;
	image_proxy = true;
      };
      ui = {
        static_use_hash = true;
      };
      search = {
        safe_search = 0;
	autocomplete = "";
	default_lang = "";
        formats = [
	  "html"
	  "json"
	];
      };
    }; 
  };
}
@V3ntus commented on GitHub (Jul 2, 2024): Relevant NixOS config: ```nix { services.ollama = { enable = true; acceleration = "cuda"; host = "0.0.0.0"; }; services.open-webui = { enable = true; port = 8081; host = "0.0.0.0"; environment = { GLOBAL_LOG_LEVEL = "DEBUG"; MAIN_LOG_LEVEL = "DEBUG"; RAG_LOG_LEVEL = "DEBUG"; }; }; services.searx = { enable = true; settings = { use_default_settings = true; server = { port = 8082; bind_address = "0.0.0.0"; secret_key = "..."; limiter = false; image_proxy = true; }; ui = { static_use_hash = true; }; search = { safe_search = 0; autocomplete = ""; default_lang = ""; formats = [ "html" "json" ]; }; }; }; } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#1422