SurfSense icon indicating copy to clipboard operation
SurfSense copied to clipboard

Error in backend container

Open woutercoppens opened this issue 5 months ago • 3 comments

I'm trying to run SurfSense in containers via podman. The quadlets and env-files can be found at: https://github.com/woutercoppens/Bluefin_Linux/tree/main/quadlets

The backend gives an error: [Errno -2] Name or service not known and restarts the container:

aug 21 12:06:51 aipc surfsense_backend[21159]: /usr/local/lib/python3.12/site-packages/chonkie/chunker/code.py:75: UserWarning: The language is set> aug 21 12:06:51 aipc surfsense_backend[21159]: warnings.warn("The language is set to auto. This would adversely affect the performance of the c> aug 21 12:06:51 aipc surfsense_backend[21159]: INFO:flashrank.Ranker:Downloading ms-marco-MiniLM-L-12-v2... aug 21 12:06:51 aipc surfsense_backend[21159]: Downloading https://github.com/zackees/ffmpeg_bins/raw/main/v5.0/linux.zip -> /usr/local/lib/python3> aug 21 12:06:51 aipc surfsense_backend[21159]: aug 21 12:06:51 aipc surfsense_backend[21159]: Download of https://github.com/zackees/ffmpeg_bins/raw/main/v5.0/linux.zip -> /usr/local/lib/python3> aug 21 12:06:51 aipc surfsense_backend[21159]: Extracting /usr/local/lib/python3.12/site-packages/static_ffmpeg/bin/linux.zip -> /usr/local/lib/pyt> aug 21 12:06:51 aipc surfsense_backend[21159]: Loading FlashRankRanker model ms-marco-MiniLM-L-12-v2 (this message can be suppressed by setting ver> aug 21 12:06:51 aipc surfsense_backend[21159]: Loading model FlashRank model ms-marco-MiniLM-L-12-v2... aug 21 12:06:52 aipc surfsense_backend[21159]: [736B blob data] aug 21 12:06:52 aipc surfsense_backend[21159]: INFO: Will watch for changes in these directories: ['/app/app'] aug 21 12:06:55 aipc surfsense_backend[21159]: INFO: Started server process [1] aug 21 12:06:55 aipc surfsense_backend[21159]: INFO: Waiting for application startup. aug 21 12:06:55 aipc surfsense_backend[21159]: INFO: Application startup complete. aug 21 12:06:55 aipc surfsense_backend[21159]: ERROR: [Errno -2] Name or service not known aug 21 12:06:55 aipc surfsense_backend[21159]: INFO: Waiting for application shutdown. aug 21 12:06:55 aipc surfsense_backend[21159]: INFO: Application shutdown complete. aug 21 12:06:56 aipc podman[21696]: 2025-08-21 12:06:56.964702181 +0200 CEST m=+8.690999104 container died d6c08c77dd4069b534a798e67394670b37091e06> aug 21 12:06:57 aipc podman[21696]: 2025-08-21 12:06:57.424760885 +0200 CEST m=+9.151057798 container remove d6c08c77dd4069b534a798e67394670b37091e> aug 21 12:06:57 aipc surfsense_backend[21696]: d6c08c77dd4069b534a798e67394670b37091e061e44cc4d5081fe8a174689d6 aug 21 12:06:57 aipc systemd[3351]: surfsense_backend.service: Main process exited, code=exited, status=1/FAILURE ░░ Subject: Unit process exited ░░ Defined-By: systemd ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel ░░ ░░ An ExecStart= process belonging to unit UNIT has exited. ░░ ░░ The process' exit code is 'exited' and its exit status is 1. aug 21 12:06:57 aipc systemd[3351]: surfsense_backend.service: Failed with result 'exit-code'.`

How can I put the container in debug mode to see what is going on?

woutercoppens avatar Aug 21 '25 11:08 woutercoppens

I’d like to take on this issue. The error suggests a DNS/name resolution problem inside the container. I’ll debug by running the container in interactive/verbose mode, checking env vars, network settings, and logs. With experience in Podman, systemd quadlets, and backend debugging, I’m confident I can quickly identify and fix the root cause.

GuiltyCrownne avatar Sep 25 '25 19:09 GuiltyCrownne

You can find my quadlets here: https://github.com/woutercoppens/Bluefin_Linux/tree/main/quadlets

woutercoppens avatar Sep 26 '25 06:09 woutercoppens

Hi, I'm getting the exact sam error. Has the solution already been identified?

Kind regards, Erwin

Epannec avatar Nov 19 '25 10:11 Epannec