Skip to content
Back

Random Execution Timeouts and getaddrinfo ENOTFOUND on Self-Hosted Appwrite

  • 0
  • Self Hosted
  • Functions
  • REST API
okudlac
12 Aug, 2025, 16:19

Hi, I’m running a self-hosted Appwrite (v1.5.10) on a VPS. My setup involves calling an external API many times from Appwrite Functions. Under higher load, I occasionally get random failures like:

Synchronous function execution timed out. Use asynchronous execution instead, or ensure the execution duration doesn't exceed 30 seconds. Error Code: 408 This happens randomly, especially when there’s heavier traffic. I’ve already verified that I have enough function executors available, so it’s not a simple scaling issue.

While testing another script that deletes older documents from a database collection (loop with deleteDocument calls), I started getting errors like:

deleteDocument <id> failed: getaddrinfo ENOTFOUND appwrite.myprojectdomain.com deleteDocument <id> failed: getaddrinfo ENOTFOUND appwrite.myprojectdomain.com These were just sequential deleteDocument calls in a loop, so nothing extreme — yet they failed with DNS resolution errors.

Given that both the random execution timeouts and the getaddrinfo ENOTFOUND occur under load, I’m wondering:

Could this be related to DNS resolver overload in Docker / the VPS?

Is there any known issue with DNS lookups in Appwrite functions under heavy load?

Any best practices for configuring DNS servers for self-hosted Appwrite in production to avoid this?

I’ve tested on another server with a newer Appwrite version, but the issue persisted, so it doesn’t seem version-specific.

Any ideas or similar experiences would be appreciated.

TL;DR
Developers running self-hosted Appwrite are experiencing random execution timeouts and getaddrinfo ENOTFOUND errors under heavy load, even with enough function executors available. The issues may be related to DNS resolver overload in Docker/the VPS causing DNS lookup failures. It's unclear if there are known issues with DNS lookups in Appwrite functions under heavy load. For production environments, consider configuring DNS servers appropriately to mitigate these errors.
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