Skip to content
Back

Function timed out during cold start (v1.6.1)

  • 0
  • Self Hosted
  • Functions
afunworm
19 Apr, 2025, 21:36

This is a self-hosted AppWrite instance, version 1.6.1.

I have a very simple testing function:

TypeScript
return res.json({
    motto: "Build like a team of hundreds_",
    learn: "https://appwrite.io/docs",
    connect: "https://appwrite.io/discord",
    getInspired: "https://builtwith.appwrite.io",
  });

However, try running it always returns 500 error, with nothing much to work with in the error log:

Here's the error in the appwrite container:

TypeScript
Function timed out during cold start.

And this is what shows up in the executor container:

TypeScript
[Error] Type: Exception
[Error] Message: Function timed out during cold start.
[Error] File: /usr/local/app/http.php
[Error] Line: 1229
[Error] Type: Exception
[Error] Message: Function timed out during cold start.
[Error] File: /usr/local/app/http.php
[Error] Line: 1229

What should I do next to try to debug this?

TL;DR
Issue: Function is timing out during cold start in the self-hosted AppWrite instance (v1.6.1). Solution: This seems to be a cold start issue. To debug, check if the function is taking too long to start due to dependencies or other factors. Consider optimizing the function or platform setup to improve cold start performance.
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