Skip to content
Back

[SOLVED] curl error Number: 6 — functions never execute on self-hosted Appwrite

  • 0
  • Self Hosted
  • Flutter
  • Functions
Nabil
15 Apr, 2026, 19:42

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:

TypeScript
Internal curl error has occurred within the executor! Error Number: 6Error 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

TypeScript
# 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

TypeScript
# 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

TypeScript
# 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 invalid by default (confirmed on Contabo). Deployment works fine, only execution fails. No explicit error in app logs.

TL;DR
Cloud Functions fail due to a curl error Number: 6 on self-hosted Appwrite. The issue is caused by the host VPS's /etc/resolv.conf file containing 'search invalid', which Docker inherits and leads to a resolution error. To fix, update the /etc/resolv.conf file on the host and restart the executor to inherit the new DNS config.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more