[SOLVED] curl error Number: 6 — functions never execute on self-hosted Appwrite
- 0
- Self Hosted
- Flutter
- Functions
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird problem
Symptom All Cloud Functions fail silently with:
Internal curl error has occurred within the executor! Error Number: 6 — Error Code: 500
Functions show Failed in console. Logs tab is completely empty. The function never starts.
Root cause
The host VPS /etc/resolv.conf contains search invalid (injected by systemd-resolved on some VPS providers). Docker inherits this and injects it into every container's DNS config.
When the executor spawns a runtime container and tries to contact it via its random hex hostname (e.g. a12924175ffd597e), Docker DNS resolves it as a12924175ffd597e.invalid → SERVFAIL → curl error 6 (CURLE_COULDNT_RESOLVE_HOST).
Confirm
# On the host
cat /etc/resolv.conf | grep search
# If you see "search invalid" → that's your problem
# Inside the executor
docker exec openruntimes-executor cat /etc/resolv.conf | grep search
# Also shows "search invalid"
Fix
# Fix the host resolv.conf
sed -i 's/search invalid/search ./' /etc/resolv.conf
# Restart executor to inherit the new DNS config
cd ~/appwrite && docker compose restart openruntimes-executor
Verify
# Should now show "search ."
docker exec openruntimes-executor cat /etc/resolv.conf | grep search
# Trigger any function → should return 200 with logs
Affects fresh Appwrite 1.8.x installs on VPS providers where systemd-resolved sets
search invalidby default (confirmed on Contabo). Deployment works fine, only execution fails. No explicit error in app logs.
Recommended threads
- general_bad_request when creating accoun...
I have created a new bug request, could anyone have a look - https://github.com/appwrite/appwrite/issues/11908?
- Cannot use custom SMTP for messaging (SM...
Hey there! I'm on Appwrite Self-hosted 1.9.0. I've never used the messaging feature before, always sent emails through functions or a custom backend, but I'v...
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...