Back

Receiving Timeout with Starter Function template in Selfhosted 1.6

  • 0
  • Self Hosted
  • Functions
Tandashi
29 Oct, 2024, 00:29

I have setup my own Appwrite Instance via Docker on my Server and everything seems to be working fine except functions. I tried to use the default starter function template but always receive a Timeout when the function tries to fetch the users.

TypeScript
Could not list users: Get "https://.../v1/users": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

This timeout only happens inside the function. When using an HTTP client (HTTPie) and executing the API requests via that it works without a problem (see attached screenshot).

Brief overview of my setup: I have a Traefik instance which proxies all requests to the Appwrite Traefik container/compose setup. Furthermore I have changed _APP_OPTIONS_FORCE_HTTPS and _APP_OPTIONS_FUNCTIONS_FORCE_HTTPS to enabled. Lastly I have set _APP_DOMAIN, _APP_DOMAIN_FUNCTIONS and _APP_DOMAIN_TARGET to point to my domain. The rest has been left untouched compared to the getting started files.

At this point I am kind of lost for solutions since I have tried everything I can think of in the past 2 days.

Thank you in advance 🙂

TL;DR
Receiving timeout error when using Starter Function template in Selfhosted 1.6. Can't fetch users, but HTTP requests work from container. Setup includes Traefik instance and Appwrite Traefik container setup. Tried various solutions without success for 2 days.
Tandashi
29 Oct, 2024, 00:52

Also I just tried to wget the landing page from withing the executor container but it tries so connect for forever. Using any other machine with the same url works without any issues. However wget against google.com works from the container.

Ping from within the container to the domain gets me responses without any issues.

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