Go functions cold start timeout on self-hosted 1.9.0 — event triggers firing in logs but not UI
- 0
- Self Hosted
- Functions
- Web
Hey everyone — running into a persistent cold start issue with Go functions on self-hosted Appwrite 1.9.0 (Elestio/Hetzner). Looking for how others are handling this. Setup:
Self-hosted Appwrite 1.9.0 on Elestio (Hetzner Germany) Three Go 1.23 functions with database event triggers Functions deploy successfully
What the functions do:
on-status-change — fires on entity document updates, rewrites document-level permissions based on participation_status, appends to audit log sync-entity-arrays — fires on relationship table creates/deletes, rebuilds denormalized filter arrays on entity documents on-intake-submission — fires on intake_submissions document create, sends confirmation email to applicant and alert to team via Brevo
The problem:
Event triggers fire correctly (confirmed via appwrite-worker-functions logs) But functions hit cold start timeout before executing Worker logs show: Cold start timeout exceeded while starting the server Function timeout is set to 15s, instances are s-0.5vcpu-512mb Zero executions appear in the console Executions tab despite triggers firing
What we've tried:
Confirmed event strings are correct format for 1.9.0 Scoped events to specific collections instead of wildcards Manual execution fires but with code 0 ( no config on manual execution set )
Questions:
What runtime spec are people using for Go functions to avoid cold start issues? Is there a recommended minimum timeout setting for Go on self-hosted? Any way to keep the runtime warm between executions on self-hosted? Is the s-0.5vcpu-512mb spec simply too small for Go cold starts?
as i'm understanding it....appwrite is the ONLY service to cold start a docker shell every time a function runs?? This seems crazy to me and it seems like the only option would be to continue upgrading only for functions or self host another instance on elestio for db functions which also seems like a lot.
Any help appreciated 🙏
Recommended threads
- Selfhost - Starting Docker containers fa...
I am stuck at installing appwrite. Specifically, the containers dont want to start up. The images are downloaded and ready. Dockhand is reporting containers st...
- It says domain already used but I have d...
I accidentally deleted the project in which I used my domain originally (orexia.app) from name.com. Now I am trying to add it to a different project and it says...
- Is this normal in the self host custom d...
when i try to add custom domain to the project did not see this in 1.8.0 ok when pressed the retry it says "DNS verification failed with resolver 8.8.8.8. Domai...