truenas / charts

TrueNAS SCALE Apps Catalogs & Charts
BSD 3-Clause "New" or "Revised" License
311 stars 295 forks source link

[SearXNG] No Python found #2917

Closed Karmalakas closed 2 weeks ago

Karmalakas commented 3 weeks ago

Just tried adding SearXNG app and deployment fails with:

Startup probe failed: HTTP probe failed with statuscode: 500

Log is flooded with:

2024-11-05 11:04:13.507557+02:00--- no python application found, check your startup logs for errors ---
2024-11-05 11:04:13.507601+02:00[pid: 25|app: -1|req: -1/20] 172.16.0.1 () {26 vars in 313 bytes} [Tue Nov  5 09:04:13 2024] GET /healthz => generated 21 bytes in 0 msecs (HTTP/1.1 500) 3 headers in 102 bytes (0 switches on core 0)

TrueNAS Scale Dragonfish-24.04.2.3

stavros-k commented 2 weeks ago

Looks like something is broken in the container. I would recommend raising an issue upstream, as we dont build the container

Karmalakas commented 2 weeks ago

Created an issue and it was converted to a discussion, so I assume it might take a while until it's resolved 😕

Karmalakas commented 2 weeks ago

@stavros-k, unfortunately I was redirected back here 😕 Looks like some permissions issue.

stavros-k commented 2 weeks ago

It works fine for me.

image

Based on the info you have shared, I can't reproduce. Furthermore, I'd suggest upgrading to 24.10.x TrueNAS.

Karmalakas commented 2 weeks ago

Upgraded to ElectricEel-24.10.0.1 and not only I still have the exact same error for SearXNG, but quite a few other apps now lost access to their settings files and/or files they created. Homepage no longer has access to settings. Deluge no longer has access to downloaded files... 🤦‍♂️

Also I got this alert

App(s) failed to migrate, please check /var/log/app_migrations.log for more details.

But no idea how to check this, because I don't have permissions to read _appmigrations.log with my admin user in shell

stavros-k commented 2 weeks ago

Sorry but without sharing more information no one can help you.

Karmalakas commented 2 weeks ago

What kind of information would you require? I've mounted dataset for config with these permissions: image

As I mentioned, configs are created upon deployment, but then in the logs there's permission denied error

stavros-k commented 2 weeks ago

SearXNG runs as root, I don't see why it would have permission issues. You can try removing ACLs, as I've seen few apps not like them.

Karmalakas commented 2 weeks ago

You can try removing ACLs

Where can I do that? I didn't set it anywhere 🤔 If you're talking about this, it's not set image

stavros-k commented 2 weeks ago

image

It should be in the edit button on the screenshot you shared.

Karmalakas commented 2 weeks ago

Should I just "Strip ACL" for this mounted dataset? image

stavros-k commented 2 weeks ago

Yes

Karmalakas commented 2 weeks ago

When clicked to deploy, after ~10-ish seconds of "Deploying" status it just "Stopped" Added back ACLs to dataset and now it behaves the same as I just wrote - stops deploying after 10-15 seconds and no logs

Karmalakas commented 2 weeks ago

So I decided to try removing everything related to SearXNG and recreate from scratch. While creating a dataset, this time instead of choosing "Apps" preset, I left it on "Generic" - and it seems it worked. Everything loads and search itself runs, although in the logs I see this four times:

2024-11-08 16:38:48.319623+00:002024-11-08 16:38:48,319 WARNING:searx.botdetection.config: missing config file: /etc/searxng/limiter.toml

Anyway, considering this as resolved, but if you have any insight about this limiter.toml, I'd be grateful to hear it 🙏

stavros-k commented 2 weeks ago

I suppose this is an optional config. It will probably get created when you do some specific setting. But I'm not aware of what this does.

Happy to know that it works, I've implemented a change regarding permissions, that will rollout slowly to all apps once upgraded to v2 library.