Rank 2: Process
I've tried with github deploy now and it's the same situation
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
I've tried with github deploy now and it's the same situation
Rank 2: Process
Anyone can help with this?
Admin
What's the output of docker ps -a right after failed build?
Rank 2: Process
Admin
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
Rank 2: Process
Is there anyway to verify that? Or only way is to increase RAM or CPU on the machine?
Rank 2: Process
Anyone?
Admin
That depends on your provider. Usually they allow you to increase the specs on your VPS
Rank 2: Process
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
Rank 2: Process
Possible to look into this issue? The hosting costs are significantly higher with the faster CPU
Admin
What version of Appwrite do you have?
Rank 2: Process
1.4.13
Admin
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
Rank 2: Process
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.
Rank 2: Process
Can anyone help with the timeout issue?
Admin
Help how? Your server needs more resources
Rank 2: Process
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.
Moderator
Maybe there's something wrong with your function code so due to that it doesn't gets deployed?
Rank 2: Process
If I use a better CPU to make it compile faster (less than 10 minutes) then it gets deployed without problem
Rank 2: Process
The issue here is the environmental config value for deployment build timeout isn’t being respected.
Admin
Would you please create an issue?
Admin
for reproduction steps, you can put...
Admin
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
Admin
@Triple Gelato have you had a chance to create the issue?
Rank 2: Process