I've tried with github deploy now and it's the same situation
Anyone can help with this?
What's the output of docker ps -a
right after failed build?
Hmm... The container isn't exiting...I wonder if it's really timing out....i know it takes like 5 minutes on cloud. It could be taking even longer on a lower spec machine
Is there anyway to verify that? Or only way is to increase RAM or CPU on the machine?
Anyone?
That depends on your provider. Usually they allow you to increase the specs on your VPS
There's no option to update RAM only so I tried a faster CPU, then the deployment finishes within 8 minutes without issue. So I'm guessing there must be a timeout set somewhere with _APP_FUNCTIONS_BUILD_TIMEOUT
being ignored
Possible to look into this issue? The hosting costs are significantly higher with the faster CPU
What version of Appwrite do you have?
1.4.13
I looked through the code and it should be using that build timeout that defaults to 15 minutes. I'm not sure why it's ending at 10 minutes
I've tried to lower to 1 CPU with 1 GB RAM and deploy again, it ends at 10 minute mark again. But according to usage graphs RAM usage is just around 80% so doesn't seem like out of memory issue.
Can anyone help with the timeout issue?
Help how? Your server needs more resources
Help in fixing that it’s not using the correct timeout configuration? I’m fine with longer deploying times but appwrite isn’t respecting the config value and terminating early.
Maybe there's something wrong with your function code so due to that it doesn't gets deployed?
If I use a better CPU to make it compile faster (less than 10 minutes) then it gets deployed without problem
The issue here is the environmental config value for deployment build timeout isn’t being respected.
Would you please create an issue?
for reproduction steps, you can put...
0. Ensure `_APP_FUNCTIONS_BUILD_TIMEOUT` is set to 900 (seconds)
1. Create a starter function
2. Update the build command to `sleep 720`
3. Create a deployment
@Triple Gelato have you had a chance to create the issue?
Recommended threads
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...