[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
- Function executions via custom domain fr...
Aplogies if this was asked already. I'm self-hosting 1.9 on a self-hosted instance of Dokploy. I've made the necessary adjustments to the original compose file ...
- Running into a server error on my self-h...
Hey everyone, I'm running into a server error on my self-hosted setup after updating to v1.19.0. The issue only happens during user creation and deletion. Ever...
- Storage System
Hey guys, quick question regarding massive storage scaling. I’m working in digital forensics and I’m constantly dealing with huge binary disk images, usually be...