Function gets stuck, doesn't terminate. It executes everything but then throws 30s sync timeout.
- 0
- Self Hosted
- Functions
I have random occurrences of sync function executions not terminating. I added a test log message right before the return res.json(response, 200, headers); (last line of the function).
While logs don't show in the exeucution view in Appwrite Console, because there it only shows the timeout error (see screenshot), they do show in Sentry. And that test log is being sent, which means the function executes until that line before return statement.
Also, the actual database operations of this function get done.
So it basically does everything it should, but somewhere (on the client perhaps?) completion of the function is not detected. And the 30s sync timeout error gets thrown.
Self-hosted setup with server specs: 4 vCPU 8 GB RAM 40 GB Disk local
Function is not heavy, some db operations. If successful, it finishes in approx. 500ms.
Recommended threads
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.
- All my apps are not opening now
All my apps are not opening now 200+ apps are not opening plz fast
- Failed to generate functions SSL
```appwrite-worker-certificates | Cannot renew domain (functions.domain.com) on attempt no. 9 certificate: Failed to verify domain DNS records. appwrite-worker...