[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
- [Self-hosted] Realtime crashes with "Mis...
- Error trying to deploy functions from CL...
✗ Error • on-auth-create (6a00b2ab000c9ce2949b) • Server Error ✗ Error: No functions were pushed. Prject ID: 69ffe0270033a4ac420a
- Intermittent Deploy and Execution Errors...
Project: project-fra-658e2f5f4ba30df91177 Function ID: 69bde006001c56757f49 **Several execution errors with:** Timed out waiting for runtime.\nError Code: 400...