Hi!

Does anyone host SearXNG on a Proxmox container? I can get it to install and run fine. However all search engines return HTTP connection errors. I’m guessing it’s an Apache misconfig perhaps. Could be something else.

This is using the manual install method. Followed it from their instructions. I’m a docker newb so chose the manual method with Apache and UWSGI instead.

The LXC config itself seems fine. Gave it 2GB RAM and swap. It can reach/ping google/bing etc. Having done a general search, I’ve not found something useful. :(

  • cetshwayo@thelemmy.clubOP
    link
    fedilink
    English
    arrow-up
    5
    ·
    20 hours ago

    Well it seems getting it to work via docker wasn’t that difficult. I have it working now. Thank you to everyone for your suggestions!

    I always thought Docker was some incomprehensible techno-wizardry. Especially when it comes to its networking. Which is odd as I have no issue maintaining a bunch of VMs and LXCs in my homelab. Title changed to solved. Thanks again!

      • cetshwayo@thelemmy.clubOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 hours ago

        I was trying to install it standalone using their install script instructions. The ‘solution’ was to switch to using their docker instructions and run their docker instead.

    • civ@lemmy.civl.cc
      link
      fedilink
      English
      arrow-up
      1
      ·
      18 hours ago

      I switched from many separate Proxmox VMs for all my services, to a single VM with like 15 docker compose stacks (though still with separate VMs for things like TrueNAS). So much easier to deal with, though it does have some drawbacks of course

    • cetshwayo@thelemmy.clubOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      22 hours ago

      Thanks for taking the time with your suggestion. Unfortunately, DNS does not seem to be an issue. Pinging works fine. The below is from the container.

        • cetshwayo@thelemmy.clubOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          22 hours ago

          Nothing stands out.

          It most likely is something with the application or apache. However I wouldn’t know where to look. A general google search has not led me anywhere useful. :(

  • plateee@piefed.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    21 hours ago

    Got a few commands to try from a terminal:

    curl https://google.com/
    curl https://<your searxng fqdn>
    

    Try from the SearXNG terminal too.

    Lastly, in the container with Apache, there should be some log directory, maybe /var/log/apache2/? Try doing a tail -f /path/to/error.log. You could also do something like docker compose logs -f and (while tailing/looking at logs), try your search again.

    If all else fails, sudo journalctl -xef and/or sudo dmesg -wT may offer something interesting.

    • cetshwayo@thelemmy.clubOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      20 hours ago

      Curl works for google and also with bing. Just as pinging and wget. This instance is not public facing so it does not have an assigned domain. I’m trying to run it locally at the moment.

      Apache logs (/var/log/apache2/error.log) does show up something interesting. Thought it might be Apache or UWSGI. UWSGI has issues with connecting to a socket it seems. x.x.x.x is my desktop IP.

      [Mon May 11 19:44:53.702774 2026] [core:notice] [pid 1644:tid 1644] AH00094: Command line: '/usr/sbin/apache2'

      [Mon May 11 19:45:55.440224 2026] [proxy:error] [pid 1957:tid 1961] (2)No such file or directory: AH02454: uwsgi: attempt to connect to Unix domain socket /usr/local/searxng/run/socket (uwsgi-uds-searxng:0) failed

      [Mon May 11 19:45:55.440252 2026] [:error] [pid 1957:tid 1961] [client x.x.x.x:56586] AH10101: failed to make connection to backend: uwsgi-uds-searxng:0

      [Mon May 11 19:46:20.548413 2026] [mpm_event:notice] [pid 1644:tid 1644] AH00493: SIGUSR1 received. Doing graceful restart

      According to systemd, apache2 and uwsgi both run without error.

      None of this runs in a docker so can’t look there. This is all on a LXC.