Flutter Developer
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 hostcat /etc/resolv.conf | grep search# If you see "search invalid" → that's your problem
# Inside the executordocker exec openruntimes-executor cat /etc/resolv.conf | grep search# Also shows "search invalid"Fix
# Fix the host resolv.confsed -i 's/search invalid/search ./' /etc/resolv.conf
# Restart executor to inherit the new DNS configcd ~/appwrite && docker compose restart openruntimes-executorVerify
# Should now show "search ." docker exec openruntimes-executor cat /etc/resolv.conf | grep search
# Trigger any function → should return 200 with logsAffects 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.